Page tree
Skip to end of metadata
Go to start of metadata

This tutorial describe how to run Gsteamer with VCODEC on RK3288 Vyasa with Opensource Linux

All necessary patches for U-Boot, Linux and Buildroot is submitted in Mainline.

BSP Build

Build the BSP from here

VCODEC

bash> git clone https://github.com/openedev/rockchip-vcodec
bash> cd rockchip-vcodec
bash> git checkout -b working origin/working
bash> bash build.sh

Write SD

Setup SD card from here and copy rk-vcodec.ko

bash> cp /path/to/rockchip-vcodec/rk-vcodec.ko /media/jagan/<mount_point>/root
bash> syncbash> umount /dev/mmcblk0*

Gsteamer Running demo video

# modprobe -a rockchipdrm
[    9.608376] rockchip-drm display-subsystem: bound ff930000.vop (ops vop_component_ops [rockchipdrm])
[    9.619006] rockchip-drm display-subsystem: bound ff940000.vop (ops vop_component_ops [rockchipdrm])
[    9.629403] dwhdmi-rockchip ff980000.hdmi: Detected HDMI TX controller v2.00a with HDCP (DWC MHL PHY)
[    9.640628] rockchip-drm display-subsystem: bound ff980000.hdmi (ops dw_hdmi_rockchip_ops [rockchipdrm])
[    9.651251] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    9.658667] [drm] No driver support for vblank timestamp query.
[    9.703254] Console: switching to colour frame buffer device 128x48
[    9.762923] rockchip-drm display-subsystem: fb0:  frame buffer device
[    9.805965] [drm] Initialized rockchip 1.0.0 20140818 for display-subsystem on minor 0
# insmod rk-vcodec.ko
[   15.651507] rk_vcodec: loading out-of-tree module taints kernel.
[   15.659168] rk-vcodec ff9a000000000800.vpu-service: → [vcodec_probe]
[   15.666662] rk-vcodec ff9a000000000800.vpu-service: → [vcodec_read_property]
[   15.674762] rk-vcodec ff9a000000000800.vpu-service: ← [vcodec_read_property]
[   15.682843] rk-vcodec ff9a000000000800.vpu-service: → [vcodec_init_drvdata]
[   15.690822] rk-vcodec ff9a000000000800.vpu-service: ← [vcodec_init_drvdata]
[   15.698795] rk-vcodec ff9a000000000800.vpu-service: → [vpu_get_clk]
[   15.706013] rk-vcodec ff9a000000000800.vpu-service: ← [vpu_get_clk]
[   15.713205] rk-vcodec ff9a000000000800.vpu-service: invalid resource
[   15.720306] rk_vcodec: vcodec_probe:2589: ioremap registers base failed
[   15.727698] rk-vcodec ff9a000000000800.vpu-service: init failed
[   15.734339] rk-vcodec ff9a000000000800.vpu-service: ← [vcodec_probe]
[   15.741652] rk-vcodec: probe of ff9a000000000800.vpu-service failed with error -22
[   15.750247] rk-vcodec ff9c000000000400.hevc-service: → [vcodec_probe]
[   15.757680] rk-vcodec ff9c000000000400.hevc-service: → [vcodec_read_property]
[   15.765866] rk-vcodec ff9c000000000400.hevc-service: ← [vcodec_read_property]
[   15.774030] rk-vcodec ff9c000000000400.hevc-service: → [vcodec_init_drvdata]
[   15.782106] rk-vcodec ff9c000000000400.hevc-service: ← [vcodec_init_drvdata]
[   15.790168] rk-vcodec ff9c000000000400.hevc-service: → [vpu_get_clk]
[   15.797491] rk-vcodec ff9c000000000400.hevc-service: ← [vpu_get_clk]
[   15.804781] rk-vcodec ff9c000000000400.hevc-service: invalid resource
[   15.811977] rk_vcodec: vcodec_probe:2589: ioremap registers base failed
[   15.819370] rk-vcodec ff9c000000000400.hevc-service: init failed
[   15.826097] rk-vcodec ff9c000000000400.hevc-service: ← [vcodec_probe]
[   15.833492] rk-vcodec: probe of ff9c000000000400.hevc-service failed with error -22
# gst-play-1.0 /mnt/hd/Baahu-trailer.mp4
Press 'k' to see a list of keyboard shortcuts.
Now playing /mnt/hd/Baahu-trailer.mp4
Redistribute latency...
[   32.871061] random: crng init done
Redistribute latency...     
0:00:04.4 / 0:02:24.6

Video may play slow, since VCODEC work still under progress in Mainline Linux

  • No labels