|
本帖最后由 appleUncle 于 2020-8-18 06:14 编辑
我在板子上安装了ubuntu,成功源码安装了mpp,rga,drm库,运行mpp测试程序mpp_linux_cpp的时候报错:
- mpp_rt: NOT found ion allocator
- mpp_rt: found drm allocator
- failed to open rga dev /dev/v4l/by-path/platform-ff680000.rga-video-index0.
- failed to exec mRGA->init -1.
- failed to init codec
- mpp_meta: Assertion list_empty(&mlist_meta) failed at ~MppMetaService:133
- mpp_buffer: ~MppBufferService cleaning leaked group
- mpp_buffer: ~MppBufferService cleaning leaked buffer
- *** Error in `./mpp_linux_demo': free(): invalid pointer: 0x0000007f7000e460 ***
- Aborted
请问是什么问题?
我自己考虑应该是设备节点没有挂载好,请问怎么自己手动写rga drm等的设备节点呢?在kernel对应的dts文件中,看到有rga的设备数,但是不知道设备号定义在哪
- &rga {
- compatible = "rockchip,rga2";
- clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>;
- clock-names = "aclk_rga", "hclk_rga", "clk_rga";
- };
/proc/devices文件夹下面应该有注册这个设备,但是哪一个是rga?
- cat /proc/devices
- Character devices:
- 1 mem
- 4 /dev/vc/0
- 4 tty
- 4 ttyS
- 5 /dev/tty
- 5 /dev/console
- 5 /dev/ptmx
- 7 vcs
- 10 misc
- 13 input
- 29 fb
- 81 video4linux
- 89 i2c
- 108 ppp
- 116 alsa
- 128 ptm
- 136 pts
- 153 spi
- 166 ttyACM
- 180 usb
- 188 ttyUSB
- 189 usb_device
- 226 drm
- 240 hidraw
- 241 ttyGS
- 242 usbmon
- 243 nvme
- 244 rkvdec
- 245 vpu_service
- 246 bsg
- 247 iio
- 248 ptp
- 249 pps
- 250 cec
- 251 media
- 252 rtc
- 253 tpm
- 254 ttyFIQ
- Block devices:
- 1 ramdisk
- 259 blkext
- 7 loop
- 8 sd
- 11 sr
- 65 sd
- 66 sd
- 67 sd
- 68 sd
- 69 sd
- 70 sd
- 71 sd
- 128 sd
- 129 sd
- 130 sd
- 131 sd
- 132 sd
- 133 sd
- 134 sd
- 135 sd
- 179 mmc
- 253 nvme
- 254 zram
我查了下用mknod但是找不到设备的主次设备号,求救
|
|