@george 您好,我又确认了一下,在用systemctl关闭rkaiq的服务之后,读取/dev/video11就是正常的未经isp处理的图像,颜色非常暗,然后开启rkaiq_3a_server之后图像就是全黑的,使用v4l2抓图像是没有读出来数据,感觉不像是读出来了全黑的图
Latest posts made by traceback
-
RE: CoolPi 4B OV5647 摄像头图片全黑
-
CoolPi 4B OV5647 摄像头图片全黑
在CoolPi 4B 上使用Rpi Camera rev1.3的摄像头,最开始读取/dev/video11,光线很暗,发现rkaiq_3a_server没有跑起来,所以使用Coolpi launchpad上的rkaiq_3a_server进行测试,server没有报错,但是v4l2读取到的图片全黑(试着用手电筒对着摄像头照,也是全黑的)
使用的内核是自己编译的,是github上的develop分支,两天前clone下来并编译的,除了更新rknpu驱动之外没有动其他的地方
dmesg信息:(base) root@Ubuntu:~# dmesg | grep ov564 [ 14.392970] ov5648 8-0036: driver version: 00.01.05 [ 14.392978] ov5648 8-0036: Failed to get power-gpios, maybe no use [ 14.392981] ov5648 8-0036: Failed to get reset-gpios, maybe no use [ 14.392984] ov5648 8-0036: Failed to get pwdn-gpios [ 14.393012] ov5648 8-0036: supply dovdd not found, using dummy regulator [ 14.393034] ov5648 8-0036: supply dvdd not found, using dummy regulator [ 14.393042] ov5648 8-0036: lane_num(2) pixel_rate(84000000) [ 14.393044] ov5648 8-0036: could not get default pinstate [ 14.398434] ov5648 8-0036: could not get sleep pinstate [ 14.406994] ov5648 8-0036: Detected OV005647 sensor [ 14.407004] rockchip-csi2-dphy csi2-dphy0: dphy0 matches m01_f_ov5648 8-0036:bus type 5
/dev/video设备:
(base) root@Ubuntu:~# ls /dev/video* /dev/video0 /dev/video12 /dev/video16 /dev/video2 /dev/video6 /dev/video-dec0 /dev/video1 /dev/video13 /dev/video17 /dev/video3 /dev/video7 /dev/video-enc0 /dev/video10 /dev/video14 /dev/video18 /dev/video4 /dev/video8 /dev/video11 /dev/video15 /dev/video19 /dev/video5 /dev/video9
v4l2 list devices信息:
(base) root@Ubuntu:~# v4l2-ctl --list-devices rkisp-statistics (platform: rkisp): /dev/video18 /dev/video19 rkcif-mipi-lvds2 (platform:rkcif): /dev/media0 rkcif (platform:rkcif-mipi-lvds2): /dev/video0 /dev/video1 /dev/video2 /dev/video3 /dev/video4 /dev/video5 /dev/video6 /dev/video7 /dev/video8 /dev/video9 /dev/video10 rkisp_mainpath (platform:rkisp0-vir0): /dev/video11 /dev/video12 /dev/video13 /dev/video14 /dev/video15 /dev/video16 /dev/video17 /dev/media1
media-ctl:
(base) root@Ubuntu:~# sudo media-ctl -p -d /dev/media0 Media controller API version 5.10.110 Media device information ------------------------ driver rkcif model rkcif-mipi-lvds2 serial bus info hw revision 0x0 driver version 5.10.110 Device topology - entity 1: stream_cif_mipi_id0 (1 pad, 11 links) type Node subtype V4L flags 0 device node name /dev/video0 pad0: Sink <- "rockchip-mipi-csi2":1 [ENABLED] <- "rockchip-mipi-csi2":2 [] <- "rockchip-mipi-csi2":3 [] <- "rockchip-mipi-csi2":4 [] <- "rockchip-mipi-csi2":5 [] <- "rockchip-mipi-csi2":6 [] <- "rockchip-mipi-csi2":7 [] <- "rockchip-mipi-csi2":8 [] <- "rockchip-mipi-csi2":9 [] <- "rockchip-mipi-csi2":10 [] <- "rockchip-mipi-csi2":11 [] - entity 5: stream_cif_mipi_id1 (1 pad, 11 links) type Node subtype V4L flags 0 device node name /dev/video1 pad0: Sink <- "rockchip-mipi-csi2":1 [] <- "rockchip-mipi-csi2":2 [ENABLED] <- "rockchip-mipi-csi2":3 [] <- "rockchip-mipi-csi2":4 [] <- "rockchip-mipi-csi2":5 [] <- "rockchip-mipi-csi2":6 [] <- "rockchip-mipi-csi2":7 [] <- "rockchip-mipi-csi2":8 [] <- "rockchip-mipi-csi2":9 [] <- "rockchip-mipi-csi2":10 [] <- "rockchip-mipi-csi2":11 [] - entity 9: stream_cif_mipi_id2 (1 pad, 11 links) type Node subtype V4L flags 0 device node name /dev/video2 pad0: Sink <- "rockchip-mipi-csi2":1 [] <- "rockchip-mipi-csi2":2 [] <- "rockchip-mipi-csi2":3 [ENABLED] <- "rockchip-mipi-csi2":4 [] <- "rockchip-mipi-csi2":5 [] <- "rockchip-mipi-csi2":6 [] <- "rockchip-mipi-csi2":7 [] <- "rockchip-mipi-csi2":8 [] <- "rockchip-mipi-csi2":9 [] <- "rockchip-mipi-csi2":10 [] <- "rockchip-mipi-csi2":11 [] - entity 13: stream_cif_mipi_id3 (1 pad, 11 links) type Node subtype V4L flags 0 device node name /dev/video3 pad0: Sink <- "rockchip-mipi-csi2":1 [] <- "rockchip-mipi-csi2":2 [] <- "rockchip-mipi-csi2":3 [] <- "rockchip-mipi-csi2":4 [ENABLED] <- "rockchip-mipi-csi2":5 [] <- "rockchip-mipi-csi2":6 [] <- "rockchip-mipi-csi2":7 [] <- "rockchip-mipi-csi2":8 [] <- "rockchip-mipi-csi2":9 [] <- "rockchip-mipi-csi2":10 [] <- "rockchip-mipi-csi2":11 [] - entity 17: rkcif_scale_ch0 (1 pad, 11 links) type Node subtype V4L flags 0 device node name /dev/video4 pad0: Sink <- "rockchip-mipi-csi2":1 [] <- "rockchip-mipi-csi2":2 [] <- "rockchip-mipi-csi2":3 [] <- "rockchip-mipi-csi2":4 [] <- "rockchip-mipi-csi2":5 [ENABLED] <- "rockchip-mipi-csi2":6 [] <- "rockchip-mipi-csi2":7 [] <- "rockchip-mipi-csi2":8 [] <- "rockchip-mipi-csi2":9 [] <- "rockchip-mipi-csi2":10 [] <- "rockchip-mipi-csi2":11 [] - entity 21: rkcif_scale_ch1 (1 pad, 11 links) type Node subtype V4L flags 0 device node name /dev/video5 pad0: Sink <- "rockchip-mipi-csi2":1 [] <- "rockchip-mipi-csi2":2 [] <- "rockchip-mipi-csi2":3 [] <- "rockchip-mipi-csi2":4 [] <- "rockchip-mipi-csi2":5 [] <- "rockchip-mipi-csi2":6 [ENABLED] <- "rockchip-mipi-csi2":7 [] <- "rockchip-mipi-csi2":8 [] <- "rockchip-mipi-csi2":9 [] <- "rockchip-mipi-csi2":10 [] <- "rockchip-mipi-csi2":11 [] - entity 25: rkcif_scale_ch2 (1 pad, 11 links) type Node subtype V4L flags 0 device node name /dev/video6 pad0: Sink <- "rockchip-mipi-csi2":1 [] <- "rockchip-mipi-csi2":2 [] <- "rockchip-mipi-csi2":3 [] <- "rockchip-mipi-csi2":4 [] <- "rockchip-mipi-csi2":5 [] <- "rockchip-mipi-csi2":6 [] <- "rockchip-mipi-csi2":7 [ENABLED] <- "rockchip-mipi-csi2":8 [] <- "rockchip-mipi-csi2":9 [] <- "rockchip-mipi-csi2":10 [] <- "rockchip-mipi-csi2":11 [] - entity 29: rkcif_scale_ch3 (1 pad, 11 links) type Node subtype V4L flags 0 device node name /dev/video7 pad0: Sink <- "rockchip-mipi-csi2":1 [] <- "rockchip-mipi-csi2":2 [] <- "rockchip-mipi-csi2":3 [] <- "rockchip-mipi-csi2":4 [] <- "rockchip-mipi-csi2":5 [] <- "rockchip-mipi-csi2":6 [] <- "rockchip-mipi-csi2":7 [] <- "rockchip-mipi-csi2":8 [ENABLED] <- "rockchip-mipi-csi2":9 [] <- "rockchip-mipi-csi2":10 [] <- "rockchip-mipi-csi2":11 [] - entity 33: rkcif_tools_id0 (1 pad, 11 links) type Node subtype V4L flags 0 device node name /dev/video8 pad0: Sink <- "rockchip-mipi-csi2":1 [] <- "rockchip-mipi-csi2":2 [] <- "rockchip-mipi-csi2":3 [] <- "rockchip-mipi-csi2":4 [] <- "rockchip-mipi-csi2":5 [] <- "rockchip-mipi-csi2":6 [] <- "rockchip-mipi-csi2":7 [] <- "rockchip-mipi-csi2":8 [] <- "rockchip-mipi-csi2":9 [ENABLED] <- "rockchip-mipi-csi2":10 [] <- "rockchip-mipi-csi2":11 [] - entity 37: rkcif_tools_id1 (1 pad, 11 links) type Node subtype V4L flags 0 device node name /dev/video9 pad0: Sink <- "rockchip-mipi-csi2":1 [] <- "rockchip-mipi-csi2":2 [] <- "rockchip-mipi-csi2":3 [] <- "rockchip-mipi-csi2":4 [] <- "rockchip-mipi-csi2":5 [] <- "rockchip-mipi-csi2":6 [] <- "rockchip-mipi-csi2":7 [] <- "rockchip-mipi-csi2":8 [] <- "rockchip-mipi-csi2":9 [] <- "rockchip-mipi-csi2":10 [ENABLED] <- "rockchip-mipi-csi2":11 [] - entity 41: rkcif_tools_id2 (1 pad, 11 links) type Node subtype V4L flags 0 device node name /dev/video10 pad0: Sink <- "rockchip-mipi-csi2":1 [] <- "rockchip-mipi-csi2":2 [] <- "rockchip-mipi-csi2":3 [] <- "rockchip-mipi-csi2":4 [] <- "rockchip-mipi-csi2":5 [] <- "rockchip-mipi-csi2":6 [] <- "rockchip-mipi-csi2":7 [] <- "rockchip-mipi-csi2":8 [] <- "rockchip-mipi-csi2":9 [] <- "rockchip-mipi-csi2":10 [] <- "rockchip-mipi-csi2":11 [ENABLED] - entity 45: rockchip-mipi-csi2 (12 pads, 122 links) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev0 pad0: Sink [fmt:SBGGR10_1X10/2592x1944 field:none crop.bounds:(0,0)/2592x1944 crop:(0,0)/2592x1944] <- "rockchip-csi2-dphy0":1 [ENABLED] pad1: Source -> "stream_cif_mipi_id0":0 [ENABLED] -> "stream_cif_mipi_id1":0 [] -> "stream_cif_mipi_id2":0 [] -> "stream_cif_mipi_id3":0 [] -> "rkcif_scale_ch0":0 [] -> "rkcif_scale_ch1":0 [] -> "rkcif_scale_ch2":0 [] -> "rkcif_scale_ch3":0 [] -> "rkcif_tools_id0":0 [] -> "rkcif_tools_id1":0 [] -> "rkcif_tools_id2":0 [] pad2: Source -> "stream_cif_mipi_id0":0 [] -> "stream_cif_mipi_id1":0 [ENABLED] -> "stream_cif_mipi_id2":0 [] -> "stream_cif_mipi_id3":0 [] -> "rkcif_scale_ch0":0 [] -> "rkcif_scale_ch1":0 [] -> "rkcif_scale_ch2":0 [] -> "rkcif_scale_ch3":0 [] -> "rkcif_tools_id0":0 [] -> "rkcif_tools_id1":0 [] -> "rkcif_tools_id2":0 [] pad3: Source -> "stream_cif_mipi_id0":0 [] -> "stream_cif_mipi_id1":0 [] -> "stream_cif_mipi_id2":0 [ENABLED] -> "stream_cif_mipi_id3":0 [] -> "rkcif_scale_ch0":0 [] -> "rkcif_scale_ch1":0 [] -> "rkcif_scale_ch2":0 [] -> "rkcif_scale_ch3":0 [] -> "rkcif_tools_id0":0 [] -> "rkcif_tools_id1":0 [] -> "rkcif_tools_id2":0 [] pad4: Source -> "stream_cif_mipi_id0":0 [] -> "stream_cif_mipi_id1":0 [] -> "stream_cif_mipi_id2":0 [] -> "stream_cif_mipi_id3":0 [ENABLED] -> "rkcif_scale_ch0":0 [] -> "rkcif_scale_ch1":0 [] -> "rkcif_scale_ch2":0 [] -> "rkcif_scale_ch3":0 [] -> "rkcif_tools_id0":0 [] -> "rkcif_tools_id1":0 [] -> "rkcif_tools_id2":0 [] pad5: Source -> "stream_cif_mipi_id0":0 [] -> "stream_cif_mipi_id1":0 [] -> "stream_cif_mipi_id2":0 [] -> "stream_cif_mipi_id3":0 [] -> "rkcif_scale_ch0":0 [ENABLED] -> "rkcif_scale_ch1":0 [] -> "rkcif_scale_ch2":0 [] -> "rkcif_scale_ch3":0 [] -> "rkcif_tools_id0":0 [] -> "rkcif_tools_id1":0 [] -> "rkcif_tools_id2":0 [] pad6: Source -> "stream_cif_mipi_id0":0 [] -> "stream_cif_mipi_id1":0 [] -> "stream_cif_mipi_id2":0 [] -> "stream_cif_mipi_id3":0 [] -> "rkcif_scale_ch0":0 [] -> "rkcif_scale_ch1":0 [ENABLED] -> "rkcif_scale_ch2":0 [] -> "rkcif_scale_ch3":0 [] -> "rkcif_tools_id0":0 [] -> "rkcif_tools_id1":0 [] -> "rkcif_tools_id2":0 [] pad7: Source -> "stream_cif_mipi_id0":0 [] -> "stream_cif_mipi_id1":0 [] -> "stream_cif_mipi_id2":0 [] -> "stream_cif_mipi_id3":0 [] -> "rkcif_scale_ch0":0 [] -> "rkcif_scale_ch1":0 [] -> "rkcif_scale_ch2":0 [ENABLED] -> "rkcif_scale_ch3":0 [] -> "rkcif_tools_id0":0 [] -> "rkcif_tools_id1":0 [] -> "rkcif_tools_id2":0 [] pad8: Source -> "stream_cif_mipi_id0":0 [] -> "stream_cif_mipi_id1":0 [] -> "stream_cif_mipi_id2":0 [] -> "stream_cif_mipi_id3":0 [] -> "rkcif_scale_ch0":0 [] -> "rkcif_scale_ch1":0 [] -> "rkcif_scale_ch2":0 [] -> "rkcif_scale_ch3":0 [ENABLED] -> "rkcif_tools_id0":0 [] -> "rkcif_tools_id1":0 [] -> "rkcif_tools_id2":0 [] pad9: Source -> "stream_cif_mipi_id0":0 [] -> "stream_cif_mipi_id1":0 [] -> "stream_cif_mipi_id2":0 [] -> "stream_cif_mipi_id3":0 [] -> "rkcif_scale_ch0":0 [] -> "rkcif_scale_ch1":0 [] -> "rkcif_scale_ch2":0 [] -> "rkcif_scale_ch3":0 [] -> "rkcif_tools_id0":0 [ENABLED] -> "rkcif_tools_id1":0 [] -> "rkcif_tools_id2":0 [] pad10: Source -> "stream_cif_mipi_id0":0 [] -> "stream_cif_mipi_id1":0 [] -> "stream_cif_mipi_id2":0 [] -> "stream_cif_mipi_id3":0 [] -> "rkcif_scale_ch0":0 [] -> "rkcif_scale_ch1":0 [] -> "rkcif_scale_ch2":0 [] -> "rkcif_scale_ch3":0 [] -> "rkcif_tools_id0":0 [] -> "rkcif_tools_id1":0 [ENABLED] -> "rkcif_tools_id2":0 [] pad11: Source -> "stream_cif_mipi_id0":0 [] -> "stream_cif_mipi_id1":0 [] -> "stream_cif_mipi_id2":0 [] -> "stream_cif_mipi_id3":0 [] -> "rkcif_scale_ch0":0 [] -> "rkcif_scale_ch1":0 [] -> "rkcif_scale_ch2":0 [] -> "rkcif_scale_ch3":0 [] -> "rkcif_tools_id0":0 [] -> "rkcif_tools_id1":0 [] -> "rkcif_tools_id2":0 [ENABLED] - entity 58: rockchip-csi2-dphy0 (2 pads, 2 links) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev1 pad0: Sink [fmt:SBGGR10_1X10/2592x1944@10000/150000 field:none] <- "m01_f_ov5648 8-0036":0 [ENABLED] pad1: Source -> "rockchip-mipi-csi2":0 [ENABLED] - entity 63: m01_f_ov5648 8-0036 (1 pad, 1 link) type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev2 pad0: Source [fmt:SBGGR10_1X10/2592x1944@10000/150000 field:none] -> "rockchip-csi2-dphy0":0 [ENABLED]
打开摄像头时,串口有输出:
[ 271.647209] rockchip-mipi-csi2 fdd30000.mipi2-csi2: stream on, src_sd: 00000000cc5b661a, sd_name:rockchip-csi2-dphy0 [ 271.657719] rockchip-mipi-csi2 fdd30000.mipi2-csi2: stream ON [ 293.181404] rockchip-mipi-csi2 fdd30000.mipi2-csi2: stream off, src_sd: 00000000cc5b661a, sd_name:rockchip-csi2-dphy0 [ 293.191999] rockchip-mipi-csi2 fdd30000.mipi2-csi2: stream OFF
后台可以看到rkaiq server:
(base) root@Ubuntu:~# ps -aux | grep aiq root 3356 0.0 0.0 2304 828 ? S 13:24 0:00 /bin/sh -c /usr/bin/rkaiq_3A_server 2>&1 | logger -t rkaiq_3A root 3357 1.0 0.1 341528 13248 ? Sl 13:24 0:00 /usr/bin/rkaiq_3A_server root 3358 0.0 0.0 11216 1504 ? S 13:24 0:00 logger -t rkaiq_3A root 3422 0.0 0.0 8648 2008 pts/0 R+ 13:24 0:00 grep --color=auto aiq
rkaiq_3a_server的输出:
Cound not find rkisp dev names, skipped /dev/media0 ERR: Bad media topology for: /dev/media0 DBG: get rkisp-isp-subdev devname: /dev/v4l-subdev3 DBG: get rkisp-input-params devname: /dev/video19 DBG: get rkisp-statistics devname: /dev/video18 DBG: get rkisp_mainpath devname: /dev/video11 rkaiq log level ff0 ************************** VERSION INFOS ************************** version release date: 2022-09-20 AIQ: AIQ v3.0x9.1 IQ PARSER: Calib v1.4.8,magicCode:1170944 ************************ VERSION INFOS END ************************ ERR: Bad media topology for: /dev/media2 ERR: Bad media topology for: /dev/media3 ERR: Bad media topology for: /dev/media4 ERR: Bad media topology for: /dev/media5 ERR: Bad media topology for: /dev/media6 ERR: Bad media topology for: /dev/media7 ERR: Bad media topology for: /dev/media8 ERR: Bad media topology for: /dev/media9 ERR: Bad media topology for: /dev/media10 ERR: Bad media topology for: /dev/media11 ERR: Bad media topology for: /dev/media12 ERR: Bad media topology for: /dev/media13 ERR: Bad media topology for: /dev/media14 ERR: Bad media topology for: /dev/media15 DBG: subscribe events from /dev/video19 success ! DBG: device manager start DBG: rkisp_init engine succeed DBG: /dev/media1: wait stream start event... DBG: /dev/media1: wait stream start event success ... DBG: /dev/media1: wait stream stop event...
v4l2-ctl抓图的log:
sudo v4l2-ctl --verbose -d /dev/video11 --set-fmt-video=width=1920,height=1080,pixelformat='NV12' --stream-mmap=4 --set-selection=target=crop,flags=0,top=0,left=0,width=1920,height=1080 --stream-to=out1.yuv VIDIOC_QUERYCAP: ok VIDIOC_G_FMT: ok VIDIOC_S_FMT: ok Format Video Capture Multiplanar: Width/Height : 1920/1080 Pixel Format : 'NV12' (Y/CbCr 4:2:0) Field : None Number of planes : 1 Flags : Colorspace : Default Transfer Function : Default YCbCr/HSV Encoding: Default Quantization : Full Range Plane 0 : Bytes per Line : 1920 Size Image : 3110400 VIDIOC_G_SELECTION: ok VIDIOC_S_SELECTION: ok VIDIOC_REQBUFS returned 0 (Success) VIDIOC_QUERYBUF returned 0 (Success) VIDIOC_QUERYBUF returned 0 (Success) VIDIOC_QUERYBUF returned 0 (Success) VIDIOC_QUERYBUF returned 0 (Success) VIDIOC_QBUF returned 0 (Success) VIDIOC_QBUF returned 0 (Success) VIDIOC_QBUF returned 0 (Success) VIDIOC_QBUF returned 0 (Success) VIDIOC_STREAMON returned 0 (Success)
(然后就卡死在那里了,Ctrl+C之后显示streaming off,out1.yuv大小为0)
请问一下大佬们有遇到过类似的情况吗,感激不尽!! -
RE: CoolPi 4B无法进入Android系统
@traceback 使用2023042819-coolpi-4b-android镜像,会卡死在I/TC: Secondary CPU 7 switching to normal world boot
-
RE: CoolPi 4B无法进入Android系统
@george 你好,问题还是这样,有的时候卡死,有的时候无限重启,我买了新的读卡器和闪迪的SD卡,并且对SD卡进行了格式化,log如下:
Device 0: unknown device switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found /extlinux/extlinux.conf Retrieving file: /extlinux/extlinux.conf reading /extlinux/extlinux.conf 434 bytes read in 7 ms (60.5 KiB/s) 1: Android coolpi Retrieving file: /initrd.img reading /initrd.img 13538757 bytes read in 1089 ms (11.9 MiB/s) Retrieving file: /Image reading /Image 38920200 bytes read in 3122 ms (11.9 MiB/s) append: androidboot.mode=normal androidboot.serialno=9572efc46eee3f67 console=ttyS0,115200 firmware_class.path=/vendor/etc/firmware init=/init rootwait ro loop.max_part=7 androidboot.wificountrycode=CN androidboot.hardware=rk30board androidboot.boot_devices=fe2e0000.mmc androidboot.selinux=permissive irqchip.gicv3_pseudo_nmi=0 rtleth=ethaddr:22:6e:92:0d:db:66 Retrieving file: /rk3588s-cp4.dtb reading /rk3588s-cp4.dtb 225093 bytes read in 24 ms (8.9 MiB/s) ## Flattened Device Tree blob at 0x0a100000 Booting using the fdt blob at 0x0a100000 'reserved-memory' ramoops@110000: addr=110000 size=e0000 Loading Ramdisk to eacea000, end eb9d35c5 ... OK Loading Device Tree to 00000000eacb0000, end 00000000eace9f44 ... OK Card did not respond to voltage select! mmc_init: -95, time 17 Card did not respond to voltage select! mmc_init: -95, time 16 ** Bad device mmc 0 ** switch to partitions #0, OK mmc1 is current device ** Unable to read file logo_kernel.bmp ** Card did not respond to voltage select! mmc_init: -95, time 17 Card did not respond to voltage select! mmc_init: -95, time 17 ** Bad device mmc 0 ** switch to partitions #0, OK mmc1 is current device ** Unable to read file logo_kernel.bmp ** Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000) Adding bank: 0x09400000 - 0xf0000000 (size: 0xe6c00000) Adding bank: 0x100000000 - 0x200000000 (size: 0x100000000) Adding bank: 0x2f0000000 - 0x300000000 (size: 0x10000000) ...... [ 18.914489][ T7] combophy_avdd0v85: supplied by vdd_0v85_s0 [ 18.914743][ T165] mali fb000000.gpu: Kernel DDK version g13p0-01eac0 [ 18.921218][ T7] combophy_avdd1v8: supplied by avcc_1v8_s0 [ 18.927539][ T165] mali fb000000.gpu: leakage=14 [ 18.935651][ T7] vcc_mipidphy0: supplied by vcc_3v3_s3 [ 18.937364][ T165] debugfs: Directory 'fb000000.gpu-mali' with parent 'vdd_gpu_s0' already present! [ 18.950906][ T7] vcc3v3_lcd0_n: supplied by vcc_3v3_s0 [ 18.953473][ T165] mali fb000000.gpu: pvtm=859 [ 18.960490][ T7] vcc_3v3_sd_s0: supplied by vcc_3v3_s3 [ 18.964960][ T165] mali fb000000.gpu: pvtm-volt-sel=2 [ 18.973526][ T165] mali fb000000.gpu: avs=0 [ 18.973729][ T7] rockchip-vop2 fdd90000.vop: [drm:vop2_bind] vp0 assign plane mask: 0x5, primary plane phy id: 2 [ 18.980417][ T165] W : [File] : drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c; [Line] : 136; [Func] : kbase_platform_rk_init(); power-off-delay-ms not available. [ 18.988343][ T7] rockchip-vop2 fdd90000.vop: [drm:vop2_bind] vp1 assign plane mask: 0xa, primary plane phy id: 3 [ 19.005393][ T165] mali fb000000.gpu: GPU hardware issue table may need updating: [ 19.005393][ T165] r0p0 status 5 is unknown; treating as r0p0 status 0 [ 19.014368][ T7] rockchip-vop2 fdd90000.vop: [drm:vop2_bind] vp2 assign plane mask: 0x140, primary plane phy id: 8 [ 19.028533][ T165] mali fb000000.gpu: GPU identified as 0x7 arch 10.8.6 r0p0 status 0 [ 19.039113][ T7] rockchip-vop2 fdd90000.vop: [drm:vop2_bind] vp3 assign plane mask: 0x280, primary plane phy id: 9 [ 19.047048][ T165] mali fb000000.gpu: No priority control manager is configured [ 19.057596][ T7] rockchip-drm display-subsystem: failed to get hdmi0_phy_pll: -2 [ 19.064985][ T165] mali fb000000.gpu: No memory group manager is configured [ 19.072619][ T7] rockchip-drm display-subsystem: failed to get hdmi1_phy_pll: -2 [ 19.079672][ T165] mali fb000000.gpu: Protected memory allocator not available [ 19.095418][ T165] mali fb000000.gpu: Capping CSF_FIRMWARE_TIMEOUT to CSF_FIRMWARE_PING_TIMEOUT [ 19.099506][ T7] rockchip-drm display-subsystem: bound fdd90000.vop (ops vop2_component_ops) [ 19.104838][ T165] mali fb000000.gpu: Couldn't find power_model DT node matching 'arm,mali-simple-power-model' [ 19.114748][ T7] dwhdmi-rockchip fde80000.hdmi: registered ddc I2C bus driver [ 19.122965][ T165] mali fb000000.gpu: Error -22, no DT entry: mali-simple-power-model.static-coefficient = 1*[0] [ 19.130580][ T7] rockchip-drm display-subsystem: bound fde80000.hdmi (ops dw_hdmi_rockchip_ops) [ 19.140734][ T165] mali fb000000.gpu: Error -22, no DT entry: mali-simple-power-model.dynamic-coefficient = 1*[0] [ 19.149573][ T7] rockchip-drm display-subsystem: bound fde20000.dsi (ops dw_mipi_dsi2_ops) [ 19.160003][ T165] mali fb000000.gpu: Error -22, no DT entry: mali-simple-power-model.ts = 4*[0] [ 19.168438][ T7] rockchip-drm display-subsystem: bound fde50000.dp (ops dw_dp_component_ops) [ 19.177344][ T165] mali fb000000.gpu: Error -22, no DT entry: mali-simple-power-model.thermal-zone = '' [ 19.186998][ T7] rockchip-drm display-subsystem: route-dsi0: failed to get logo,offset [ 19.196941][ T165] mali fb000000.gpu: Using configured power model mali-lodx-power-model, and fallback mali-simple-power-model [ 19.203631][ T7] rockchip-drm display-subsystem: connector[HDMI-A-1] can't found any modes [ 19.215090][ T165] mali fb000000.gpu: l=10000 h=85000 hyst=5000 l_limit=0 h_limit=800000000 h_table=0 [ 19.223542][ T7] rockchip-drm display-subsystem: can't not find any logo display [ 19.240476][ T7] rockchip-drm display-subsystem: failed to show kernel logo [ 19.248932][ T7] rockchip-drm display-subsystem: [drm] fb0: rockchipdrmfb frame buffer device [ 19.253405][ T165] mali fb000000.gpu: Probed as mali0 [ 19.263466][ T7] [drm] Initialized rockchip 3.0.0 20140818 for display-subsystem on minor 0 [ 19.272254][ T7] input: adc-keys as /devices/platform/adc-keys/input/input1 [ 19.280578][ T7] debugfs: File 'Capture' in directory 'dapm' already present! [ 19.347784][ T165] dwmmc_rockchip fe2c0000.mmc: IDMAC supports 32-bit address mode. [ 19.348504][ T1] rkcif rkcif-mipi-lvds2: clear unready subdev num: 1 [ 19.355569][ T165] dwmmc_rockchip fe2c0000.mmc: Using internal DMA controller. [ 19.362170][ T1] rockchip-csi2-dphy0: No link between dphy and sensor [ 19.369473][ T165] dwmmc_rockchip fe2c0000.mmc: Version ID is 270a [ 19.376298][ T1] rockchip-csi2-dphy0: No link between dphy and sensor [ 19.382434][ T165] dwmmc_rockchip fe2c0000.mmc: DW MMC controller at irq 80,32 bit host data width,256 deep fifo [ 19.389098][ T1] rkcif-mipi-lvds2: rkcif_update_sensor_info: stream[0] get remote terminal sensor failed! [ 19.389102][ T1] rkcif-mipi-lvds2: Async subdev notifier completed [ 19.412646][ T165] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0) [ 19.415579][ T1] rockchip-csi2-dphy0: No link between dphy and sensor [ 19.415585][ T1] rkcif-mipi-lvds2: rkcif_update_sensor_info: stream[0] get remote terminal sensor failed! [ 19.441973][ T1] rkcif-mipi-lvds2: There is not terminal subdev, not synchronized with ISP [ 19.450545][ T181] rockchip-csi2-dphy0: No link between dphy and sensor [ 19.450978][ T1] RKNPU fdab0000.npu: Adding to iommu group 0 [ 19.457269][ T181] rkcif-mipi-lvds2: rkcif_update_sensor_info: stream[0] get remote terminal sensor failed! [ 19.463222][ T1] RKNPU fdab0000.npu: RKNPU: rknpu iommu is enabled, using iommu mode [ 19.472984][ T181] rkcif-mipi-lvds2: There is not terminal subdev, not synchronized with ISP [ 19.492334][ T1] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdab0000-0xfdabffff] [ 19.501553][ T1] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdac0000-0xfdacffff] [ 19.510759][ T1] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdad0000-0xfdadffff] [ 19.520096][ T1] [drm] Initialized rknpu 0.8.2 20220829 for fdab0000.npu on minor 1 [ 19.522504][ T172] mmc_host mmc2: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0) [ 19.531219][ T1] RKNPU fdab0000.npu: leakage=7 [ 19.543419][ T1] debugfs: Directory 'fdab0000.npu-rknpu' with parent 'vdd_npu_s0' already present! [ 19.559146][ T1] RKNPU fdab0000.npu: pvtm=871 [ 19.560277][ T172] dwmmc_rockchip fe2c0000.mmc: Successfully tuned phase to 135 [ 19.570375][ T1] RKNPU fdab0000.npu: pvtm-volt-sel=3 [ 19.571173][ T172] mmc2: new ultra high speed SDR104 SDXC card at address aaaa [ 19.576605][ T1] RKNPU fdab0000.npu: avs=0 [ 19.584318][ T172] mmcblk2: mmc2:aaaa SR64G 59.5 GiB [ 19.588080][ T1] RKNPU fdab0000.npu: l=10000 h=85000 hyst=5000 l_limit=0 h_limit=800000000 h_table=0 [ 19.599272][ T172] mmcblk2: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 [ 19.631946][ T1] RKNPU fdab0000.npu: failed to find power_model node [ 19.638561][ T1] RKNPU fdab0000.npu: RKNPU: failed to initialize power model [ 19.645865][ T1] RKNPU fdab0000.npu: RKNPU: failed to get dynamic-coefficient [ 19.653876][ T1] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 19.663497][ T1] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 19.670755][ T138] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 [ 19.680057][ T138] cfg80211: failed to load regulatory.db [ 19.686056][ T1] rockchip-pm rockchip-suspend: not set pwm-regulator-config [ 19.693591][ T1] I : [File] : drivers/gpu/arm/mali400/mali/linux/mali_kernel_linux.c; [Line] : 409; [Func] : mali_module_init(); svn_rev_string_from_arm of this mali_ko is '', rk_ko_ver is '5', built at '18:43:18', on 'May 17 2023'. [ 19.714508][ T1] Mali: [ 19.714509][ T1] Mali device driver loaded [ 19.721558][ T1] rkisp rkisp0-vir0: clear unready subdev num: 1 [ 19.727842][ T1] rkisp0-vir0: Async subdev notifier completed [ 19.733838][ T1] ALSA device list: [ 19.737493][ T1] #0: rockchip,hdmi0 [ 19.741405][ T1] #1: rockchip,es8316-codec [ 19.745970][ T1] dw-apb-uart feb50000.serial: forbid DMA for kernel console [ 19.753392][ T1] Freeing unused kernel memory: 1344K [ 19.764203][ T1] Run /init as init process wait for device. 0x5344 [ 19.919481][ T250] Set signal voltage to initial state [ 19.925076][ T250] rk860-regulator 2-0042: rk860..... reset [ 19.931741][ T250] rk860-regulator 2-0042: force rk860x_reset ok! [ 19.937936][ T250] rk860-regulator 0-0043: rk860..... reset [ 19.944591][ T250] rk860-regulator 0-0043: force rk860x_reset ok! [ 19.950786][ T250] rk860-regulator 0-0042: rk860..... reset [ 19.957441][ T250] rk860-regulator 0-0042: force rk860x_reset ok! [ 19.968899][ T250] mpp_av1dec av1d-master: shutdown device [ 19.974480][ T250] mpp_av1dec av1d-master: shutdown success [ 19.980282][ T250] [WLAN_RFKILL]: Enter rfkill_wlan_shutdown [ 19.986026][ T250] [WLAN_RFKILL]: rockchip_wifi_power: 0 [ 19.991424][ T250] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false [ 19.998013][ T250] [WLAN_RFKILL]: wifi shut off power [GPIO-1-1] [ 20.004108][ T250] [WLAN_RFKILL]: rfkill_set_wifi_bt_power: 0 [ 20.010059][ T250] rkisp_hw fdcb0000.rkisp: rkisp_hw_shutdown [ 20.015895][ T250] mpp_rkvdec2 fdc48100.rkvdec-core: shutdown device [ 20.022323][ T250] mpp_rkvdec2 fdc48100.rkvdec-core: shutdown success [ 20.028845][ T250] mpp_rkvdec2 fdc38100.rkvdec-core: shutdown device [ 20.035273][ T250] mpp_rkvdec2 fdc38100.rkvdec-core: shutdown success [ 20.041795][ T250] mpp_rkvenc2 fdbe0000.rkvenc-core: shutdown device [ 20.048222][ T250] mpp_rkvenc2 fdbe0000.rkvenc-core: shutdown success [ 20.054747][ T250] mpp_rkvenc2 fdbd0000.rkvenc-core: shutdown device [ 20.061176][ T250] mpp_rkvenc2 fdbd0000.rkvenc-core: shutdown success [ 20.067699][ T250] mpp-iep2 fdbb0000.iep: shutdown device [ 20.073173][ T250] mpp-iep2 fdbb0000.iep: shutdown success [ 20.078740][ T250] mpp_vepu2 fdbac000.jpege-core: shutdown device [ 20.084908][ T250] mpp_vepu2 fdbac000.jpege-core: shutdown success [ 20.091169][ T250] mpp_vepu2 fdba8000.jpege-core: shutdown device [ 20.097335][ T250] mpp_vepu2 fdba8000.jpege-core: shutdown success [ 20.103596][ T250] mpp_vepu2 fdba4000.jpege-core: shutdown device [ 20.109764][ T250] mpp_vepu2 fdba4000.jpege-core: shutdown success [ 20.116024][ T250] mpp_vepu2 fdba0000.jpege-core: shutdown device [ 20.122193][ T250] mpp_vepu2 fdba0000.jpege-core: shutdown success [ 20.128455][ T250] mpp_jpgdec fdb90000.jpegd: shutdown device [ 20.134276][ T250] mpp_jpgdec fdb90000.jpegd: shutdown success [ 20.140202][ T250] mpp_vepu2 fdb50000.vepu: shutdown device [ 20.145850][ T250] mpp_vepu2 fdb50000.vepu: shutdown success [ 20.151584][ T250] mpp_vdpu2 fdb50400.vdpu: shutdown device [ 20.157232][ T250] mpp_vdpu2 fdb50400.vdpu: shutdown success [ 20.163049][ T250] xhci-hcd xhci-hcd.4.auto: remove, state 4 [ 20.168786][ T250] usb usb6: USB disconnect, device number 1 [ 20.174793][ T250] xhci-hcd xhci-hcd.4.auto: USB bus 6 deregistered [ 20.181314][ T250] xhci-hcd xhci-hcd.4.auto: remove, state 4 [ 20.187057][ T250] usb usb5: USB disconnect, device number 1 [ 20.193103][ T250] xhci-hcd xhci-hcd.4.auto: USB bus 5 deregistered [ 20.200265][ T250] reboot: Restarting system
-
CoolPi 4B无法进入Android系统
CoolPi 4B 从SD卡启动,在系统启动阶段会出现随机卡死/无限重启的情况,操作步骤如下:
下载20230517-coolpi-4b-android12镜像,使用balena etcher烧录到SD卡中,启动系统,从串口看输出,不能进入系统,具体表现是在加载系统时无限重启(之前遇到过,今天没有遇到)或卡死(如图)
尝试过的解决方案:
1.更换2023042819-coolpi-4b-android镜像,同样卡死
2.更换SD卡,仍然卡死
3.把SD卡插上读卡器,从靠下的USB3.0进行引导,仍然卡死
4.更换功率更大的充电器(之前用的是官方自带的)
请问一下有大佬遇见过这种情况吗?不胜感激! -
RE: How to update coolpi-4b npu driver in ubuntu?
@traceback
I found the solution in github:
FirstSecond -
RE: How to update coolpi-4b npu driver in ubuntu?
@george Is new kernel available now? Thank you!
-
How to update coolpi-4b npu driver in ubuntu?
I'm going to try rknn-llm, which need at least v0.9.6 driver version. The version in official ubuntu 22.04 is:
cat /sys/kernel/debug/rknpu/version RKNPU driver: v0.8.2
I have tried built the rknpu v0.9.6 from rknn-llm repository,but it terminates with error
drivers/rknpu/rknpu_gem.c: In function 'rknpu_gem_mmap_buffer': drivers/rknpu/rknpu_gem.c:988:9: error: implicit declaration of function 'vm_flags_clear' [-Werror=implicit-function-declaration] 988 | vm_flags_clear(vma, VM_PFNMAP); | ^~~~~~~~~~~~~~ cc1: all warnings being treated as errors
Above outputs are raisen when I compile rknpu 0.9.6 under coolpi-kernel 5.10.110
Are there any way to solve the error or update the npu driver?Thanks in advance!