machybris is a packaged libhybris solution for rockchip devices (RK3288, RK3188, RK312X) that exposes the following android libs that can be used to develop your linux apps:
- graphical HW acceleration (EGL, GLES libs)
- rockchips video HW acceleration (vpu, rkon2 libs)
- androids media service (media lib)
- makes, for instance, kodi / spmc run in linux (just install mackodi)
NEW RELEASE
Finally a new release of machybris (v0.1.1)! It can now also use androids native surfaceflinger as window composer allowing for a smooth vsync at 60 fps. machybris already ran on RK3288 devices, now I also added support for RK3188 and RK312X devices (disclaimer: I only tested this on my good old mk809iii and my FirePrime (sponsored by firefly): so would be interested if this runs on other devices too!)
EXAMPLE SOURCE CODE
And with this release see also some example application code to show how you can use machybris for your application development. See: https://github.com/mac-l1/machybris_examples.git. Here you can find the code for the demos that I put on youtube like the h264 movie player and h264 screen recorder. I also put a simple hevc/h265 movie player in there.
Hope this helps to unleash and show the power of rockchip hardware acceleration in linux applications for all of us!
Have fun!
And if you like it: please get me a faster computer by giving a small donation; it will benefit my impatience during compilation, my nails and future releases; any help is welcome!
Donate..
Cheers -- mac-l1
---
HOW TO INSTALL
1) First try my install_machybris.sh script; run this from a terminal/shell started on your rockchip device
sudo apt-get install curl curl -O http://mac-l1.com/install_machybris.sh; bash install_machybris.sh sudo reboot
test_hwc
IF NOT) then you probably need to DISABLE FBCON yourself manually. You need to make sure that the framebuffer console (the fbcon kernel module) is not started automatically in kernel. That can be done by:
a) Either use a kernel that does NOT have the fbcon module builtin, can be done by building kernel with CONFIG_FRAMEBUFFER_CONSOLE=n in kernel configuration file
b) Or simply put "fbcon=vc:64-63" in the parameter file of your image, just after "CMDLINE:". See the following example:
"CMDLINE:fbcon=vc:64-63 vmalloc=516M console=ttyFIQ0 console=tty0 init=/sbin/init root=/dev/mmcblk0p2 rootfstype=ext4 bla bla"
This can be done on an already linux-installed device using rkflashtool for linux to read/write parameter file http://radxa.com/Rock/flash_the_imag....28Advanced.29) or AndroidTool for Windows (read: advanced tab->export image,start=0,count=2, change the parameter file, write: flash it again using download image tab); or use a pre-configured image file.
HOW TO INSTALL MACHYBRIS EXAMPLES
See: https://github.com/mac-l1/machybris_examples.git.
sudo apt-get install curl git curl -O http://mac-l1.com/install_machybris.sh; bash install_machybris.sh sudo reboot # after reboot git clone https://github.com/mac-l1/machybris_examples.git cd machybris_examples ./make_all.sh
Comment