Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

machybris for developers: exposing rockchip video and graphical hw acceleration in linux apps

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Hey, sorry for the delay

    I managed to install your DEB completely without breaking my LXDE/Xserver stuff.

    Code:
    sudo apt-get install lsb-release
    wget  http://mac-l1.com/v0.1.2/machybris-rk3188_4.4.2-0.1.2_armhf.deb
    sudo dpkg -i --force-all,confnew machybris-*_armhf.deb
    sudo apt-get install -f
    But now hwc_test complains:
    rock@radxa:~$ sudo test_hwc
    UMP: ump_arch_open() failed to open UMP device driver
    hwc already has procs! now overriding...
    width: 1024 height: 600
    UMP: ump_arch_open() failed to open UMP device driver
    ERROR: failed to open gralloc: (Operation not permitted)
    test_hwcomposer: eglplatform_hwcomposer.cpp:33: void hwcomposerws_init_module(ws_egl_interface*): Assertion `0' failed.
    and all GL ES related stuff complains also.

    I added fb=vc:64-63 to my kernel cmdline, but I still have a framebuffer console while booting, not sure if this is normal?

    CMDLINE:fbcon=vc:64-63 console=ttyFIQ0,115200 console=tty0 root=/dev/block/mtd/by-name/linuxroot rw rootfstype=ext4 init=/sbin/init mac_addr=de:ad:de:ad:be:ef initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:0x00008000@0x00002000(boot),-@0x0000A000(linuxroot)

    I had the sunxi-mali driver to work so EGL/GLES drivers are not necessary to me, as I have already working driver directly in linux.

    I'd like to strip the EGL/GLES part of the package. Would you mind guiding me in the right direction?

    According to " cat /var/lib/dpkg/info/machybris.list | egrep 'EGL|GLES|egl|gles' ", I removed everything related to EGL/GLES:

    /usr/local/lib/libEGL.so.1.0.0
    /usr/local/lib/libGLESv2.so.2.0.0
    /usr/local/lib/libEGL.la
    /usr/local/lib/libhybris-eglplatformcommon.so.1.0.0
    /usr/local/lib/pkgconfig/egl.pc
    /usr/local/lib/pkgconfig/glesv2.pc
    /usr/local/lib/pkgconfig/hybris-egl-platform.pc
    /usr/local/lib/pkgconfig/glesv1_cm.pc
    /usr/local/lib/pkgconfig/hwcomposer-egl.pc
    /usr/local/lib/libGLESv1_CM.so.1.0.1
    /usr/local/lib/libGLESv1_CM.la
    /usr/local/lib/libhybris/eglplatform_fbdev.la
    /usr/local/lib/libhybris/eglplatform_hwcomposer.la
    /usr/local/lib/libhybris/eglplatform_null.so
    /usr/local/lib/libhybris/eglplatform_null.la
    /usr/local/lib/libhybris/eglplatform_hwcomposer.so
    /usr/local/lib/libhybris/eglplatform_fbdev.so
    /usr/local/lib/libhybris-eglplatformcommon.la
    /usr/local/lib/libGLESv2.la
    /usr/local/include/EGL
    /usr/local/include/EGL/eglmesaext.h
    /usr/local/include/EGL/eglext.h
    /usr/local/include/EGL/egl.h
    /usr/local/include/EGL/eglplatform.h
    /usr/local/include/EGL/eglhybris.h
    /usr/local/include/GLES2
    /usr/local/include/GLES2/gl2platform.h
    /usr/local/include/GLES2/gl2.h
    /usr/local/include/GLES2/gl2ext.h
    /usr/local/include/hybris/eglplatformcommon
    /usr/local/include/hybris/eglplatformcommon/nativewindowbase.h
    /usr/local/include/hybris/eglplatformcommon/support.h
    /usr/local/include/hybris/eglplatformcommon/ws.h
    /usr/local/include/hybris/eglplatformcommon/hybris_nativebufferext.h
    /usr/local/include/hybris/eglplatformcommon/eglplatformcommon.h
    /usr/local/include/GLES
    /usr/local/include/GLES/glext.h
    /usr/local/include/GLES/gl.h
    /usr/local/include/GLES/glplatform.h
    /usr/local/include/GLES/egl.h
    /usr/local/bin/test_egl
    /usr/local/bin/test_egl_configs
    /usr/local/bin/test_glesv2
    /etc/profile.d/libhybris_path_eglplatform.sh
    /usr/local/lib/libGLESv1_CM.so
    /usr/local/lib/libEGL.so
    /usr/local/lib/libhybris-eglplatformcommon.so.1
    /usr/local/lib/libhybris-eglplatformcommon.so
    /usr/local/lib/libGLESv2.so.2
    /usr/local/lib/libGLESv2.so
    /usr/local/lib/libGLESv1_CM.so.1
    /usr/local/lib/libhybris/eglplatform_surfaceflinger.so
    /usr/local/lib/libhybris/eglplatform_surfaceflinger.la
    /usr/local/lib/libEGL.so.1
    /usr/local/hybris/lib/libGLESv1_CM.so
    /usr/local/hybris/lib/libEGL.so
    /usr/local/hybris/lib/libEGL.so.1.0.0
    /usr/local/hybris/lib/libGLESv2.so.2.0.0
    /usr/local/hybris/lib/libhybris-eglplatformcommon.so.1
    /usr/local/hybris/lib/libEGL.la
    /usr/local/hybris/lib/libhybris-eglplatformcommon.so.1.0.0
    /usr/local/hybris/lib/libhybris-eglplatformcommon.so
    /usr/local/hybris/lib/libGLESv2.so.2
    /usr/local/hybris/lib/libGLESv2.so
    /usr/local/hybris/lib/libGLESv1_CM.so.1
    /usr/local/hybris/lib/libGLESv1_CM.so.1.0.1
    /usr/local/hybris/lib/libGLESv1_CM.la
    /usr/local/hybris/lib/libEGL.so.1
    /usr/local/hybris/lib/libhybris-eglplatformcommon.la
    /usr/local/hybris/lib/libGLESv2.la
    /usr/local/hybris/include/EGL
    /usr/local/hybris/include/GLES2
    /usr/local/hybris/include/GLES
    /usr/local/hybris/bin/test_egl
    /usr/local/hybris/bin/test_egl_configs
    /usr/local/hybris/bin/test_glesv2
    and the X11 configuration at /etc/X11/xorg.conf

    I also commented the kernel modules things (mali, ump, mali_drm, drm) from the boot script (/usr/local/share/libhybris/libhybris.sh) to keep my mali kernel modules and removed the # set EGL_PLATFORM to default part

    Is there anything else to remove? Is there anything I should keep to be sure?

    Also, I'm not able to 'make' your player example:
    h265player.cpp:33:34: error: ‘OMX_RK_VIDEO_CodingHEVC’ was not declared in this scope
    ...
    h264player.cpp.text+0x5afe): undefined reference to `machybris_init'
    collect2: error: ld returned 1 exit status
    Would there be a way to use the h264 decoder directly in chromium, for example? I'm developing a web application that will be both accessible directly via a web browser but also embedded on a RK3188 based board. I will have to decode h264 video and want to find a way to use the VPU for that!

    Thanks for your support and your super work!
    Sorry if I'm still a linux-newbie!
    Jonathan

    Comment

    Working...
    X