luckfox pico max : ubifs error after using camera and hardware encoder
Posted: 2025-12-03 16:05
I run in loop the example : luckfox_pico_rtsp_opencv
[root@luckfox root]# while true;do ./luckfox_pico_rtsp_opencv & sleep 5 ; killall luckfox_pico_rtsp_opencv ; sleep 1; done
after some loops the ubifs driver is dead :
ls -R /oem/
/oem/:
usr
/oem/usr:
bin etc ko lib share
/oem/usr/bin:
ls: /oem/usr/bin/rk_event_test: Input/output error
ls: /oem/usr/bin/sample_ai_aenc: Input/output error
ls: /oem/usr/bin/luckfox_gpio_test: Input/output error
ls: /oem/usr/bin/simple_vi_bind_venc_chn_sharebuf_rv1106: Input/output error
ls: /oem/usr/bin/rk_mpi_aenc_test: Input/output error
ls: /oem/usr/bin/simple_vi_bind_venc_jpeg: Input/output error
in the console :
16:54:27.295875 --> [ 395.943851] Exception stack(0xb2917fa8 to 0xb2917ff0)
16:54:27.296473 --> [ 395.943865] 7fa0: 004dd140 00000000 004dd120 aef42a50 aef42ac8 aef42a50
16:54:27.297253 --> [ 395.943878] 7fc0: 004dd140 00000000 004dd120 000000c4 004db9f4 00000000 004dd120 004dc5e8
16:54:27.297716 --> [ 395.943887] 7fe0: 004dbd54 aef42a50 004768b8 a6f0b04c
16:54:27.298524 --> [ 395.943912] UBIFS error (ubi4:0 pid 783): ubifs_leb_read: reading 188 bytes from LEB 150:73152 failed, error -5
16:54:27.336395 --> [ 395.943923] CPU: 0 PID: 783 Comm: ls Tainted: G O 5.10.160 #18
16:54:27.337295 --> [ 395.943930] Hardware name: Generic DT based system
16:54:27.338073 --> [ 395.943944] [<b000f56d>] (unwind_backtrace) from [<b000e03f>] (show_stack+0xb/0xc)
16:54:27.338983 --> [ 395.943960] [<b000e03f>] (show_stack) from [<b012bcf1>] (ubifs_leb_read+0x3d/0x48)
16:54:27.339976 --> [ 395.943973] [<b012bcf1>] (ubifs_leb_read) from [<b012cbab>] (ubifs_read_node+0x8f/0x158)
16:54:27.340957 --> [ 395.943986] [<b012cbab>] (ubifs_read_node) from [<b013bfa9>] (ubifs_load_znode+0x65/0x2b0)
16:54:27.379441 --> [ 395.944001] [<b013bfa9>] (ubifs_load_znode) from [<b012e551>] (ubifs_lookup_level0+0x8f/0xf2)
16:54:27.380972 --> [ 395.944014] [<b012e551>] (ubifs_lookup_level0) from [<b012e5e9>] (ubifs_tnc_locate.part.4+0x35/0x11c)
16:54:27.382062 --> [ 395.944029] [<b012e5e9>] (ubifs_tnc_locate.part.4) from [<b0129c09>] (ubifs_iget+0x55/0x348)
16:54:27.382946 --> [ 395.944044] [<b0129c09>] (ubifs_iget) from [<b01277cd>] (ubifs_lookup+0x11d/0x1a4)
16:54:27.383964 --> [ 395.944058] [<b01277cd>] (ubifs_lookup) from [<b007dc1d>] (__lookup_slow+0x69/0x84)
16:54:27.422356 --> [ 395.944072] [<b007dc1d>] (__lookup_slow) from [<b007f299>] (walk_component+0x5d/0x8e)
16:54:27.423522 --> [ 395.944086] [<b007f299>] (walk_component) from [<b007f57b>] (path_lookupat+0x51/0xaa)
16:54:27.424477 --> [ 395.944100] [<b007f57b>] (path_lookupat) from [<b007fb2f>] (filename_lookup.part.21+0x35/0x6c)
16:54:27.425409 --> [ 395.944116] [<b007fb2f>] (filename_lookup.part.21) from [<b007a8dd>] (vfs_statx+0x41/0xa0)
16:54:27.426293 --> [ 395.944129] [<b007a8dd>] (vfs_statx) from [<b007acf7>] (vfs_fstatat+0x15/0x18)
16:54:27.465059 --> [ 395.944144] [<b007acf7>] (vfs_fstatat) from [<b007ad93>] (__do_sys_lstat64+0x17/0x24)
16:54:27.466222 --> [ 395.944158] [<b007ad93>] (__do_sys_lstat64) from [<b0008201>] (ret_fast_syscall+0x1/0x58)
16:54:27.466984 --> [ 395.944166] Exception stack(0xb2917fa8 to 0xb2917ff0)
16:54:27.467963 --> [ 395.944177] 7fa0: 004dd140 00000000 004dd120 aef42a50 aef42ac8 aef42a50
16:54:27.468960 --> [ 395.944188] 7fc0: 004dd140 00000000 004dd120 000000c4 004db9f4 00000000 004dd120 004dc5e8
16:54:27.469735 --> [ 395.944197] 7fe0: 004dbd54 aef42a50 004768b8 a6f0b04c
16:54:27.491090 --> [ 395.944219] UBIFS error (ubi4:0 pid 783): ubifs_iget: failed to read inode 200, error -5
16:54:27.492414 --> [ 395.944248] UBIFS error (ubi4:0 pid 783): ubifs_lookup: dead directory entry 'rk_event_test', error -5
16:54:29.176208 --> [ 398.003264] rockchip-sfc ffac0000.spi: DMA wait for transfer finish timeout
16:54:29.177275 --> [ 398.003299] rockchip-sfc ffac0000.spi: xfer data failed ret -110 dir 1
16:54:29.178219 --> [ 398.003334] ubi4 warning: ubi_io_read: error -5 while reading 188 bytes from PEB 205:90840, read only 0 bytes, retry
16:54:29.265736 --> [ 398.103456] rockchip-sfc ffac0000.spi: wait sfc idle timeout
16:54:29.267273 --> [ 398.103504] ubi4 warning: ubi_io_read: error -5 while reading 188 bytes from PEB 205:90840, read only 0 bytes, retry
16:54:31.334735 --> [ 400.163262] rockchip-sfc ffac0000.spi: DMA wait for transfer finish timeout
16:54:31.335755 --> [ 400.163297] rockchip-sfc ffac0000.spi: xfer data failed ret -110 dir 1
16:54:31.336700 --> [ 400.163333] ubi4 warning: ubi_io_read: error -5 while reading 188 bytes from PEB 205:90840, read only 0 bytes, retry
16:54:31.441393 --> [ 400.263446] rockchip-sfc ffac0000.spi: wait sfc idle timeout
16:54:31.442499 --> [ 400.263494] ubi4 error: ubi_io_read: error -5 while reading 188 bytes from PEB 205:90840, read 0 bytes
16:54:31.443415 --> [ 400.263508] CPU: 0 PID: 783 Comm: ls Tainted: G O 5.10.160 #18
16:54:31.444026 --> [ 400.263516] Hardware name: Generic DT based system
all is ok after reboot ...
I suspect that rkmpi SDK do not release some ressources then DMA is broken ....
I am not able to do more because I have not the rkmpi sources ....
can you help me ?
[root@luckfox root]# while true;do ./luckfox_pico_rtsp_opencv & sleep 5 ; killall luckfox_pico_rtsp_opencv ; sleep 1; done
after some loops the ubifs driver is dead :
ls -R /oem/
/oem/:
usr
/oem/usr:
bin etc ko lib share
/oem/usr/bin:
ls: /oem/usr/bin/rk_event_test: Input/output error
ls: /oem/usr/bin/sample_ai_aenc: Input/output error
ls: /oem/usr/bin/luckfox_gpio_test: Input/output error
ls: /oem/usr/bin/simple_vi_bind_venc_chn_sharebuf_rv1106: Input/output error
ls: /oem/usr/bin/rk_mpi_aenc_test: Input/output error
ls: /oem/usr/bin/simple_vi_bind_venc_jpeg: Input/output error
in the console :
16:54:27.295875 --> [ 395.943851] Exception stack(0xb2917fa8 to 0xb2917ff0)
16:54:27.296473 --> [ 395.943865] 7fa0: 004dd140 00000000 004dd120 aef42a50 aef42ac8 aef42a50
16:54:27.297253 --> [ 395.943878] 7fc0: 004dd140 00000000 004dd120 000000c4 004db9f4 00000000 004dd120 004dc5e8
16:54:27.297716 --> [ 395.943887] 7fe0: 004dbd54 aef42a50 004768b8 a6f0b04c
16:54:27.298524 --> [ 395.943912] UBIFS error (ubi4:0 pid 783): ubifs_leb_read: reading 188 bytes from LEB 150:73152 failed, error -5
16:54:27.336395 --> [ 395.943923] CPU: 0 PID: 783 Comm: ls Tainted: G O 5.10.160 #18
16:54:27.337295 --> [ 395.943930] Hardware name: Generic DT based system
16:54:27.338073 --> [ 395.943944] [<b000f56d>] (unwind_backtrace) from [<b000e03f>] (show_stack+0xb/0xc)
16:54:27.338983 --> [ 395.943960] [<b000e03f>] (show_stack) from [<b012bcf1>] (ubifs_leb_read+0x3d/0x48)
16:54:27.339976 --> [ 395.943973] [<b012bcf1>] (ubifs_leb_read) from [<b012cbab>] (ubifs_read_node+0x8f/0x158)
16:54:27.340957 --> [ 395.943986] [<b012cbab>] (ubifs_read_node) from [<b013bfa9>] (ubifs_load_znode+0x65/0x2b0)
16:54:27.379441 --> [ 395.944001] [<b013bfa9>] (ubifs_load_znode) from [<b012e551>] (ubifs_lookup_level0+0x8f/0xf2)
16:54:27.380972 --> [ 395.944014] [<b012e551>] (ubifs_lookup_level0) from [<b012e5e9>] (ubifs_tnc_locate.part.4+0x35/0x11c)
16:54:27.382062 --> [ 395.944029] [<b012e5e9>] (ubifs_tnc_locate.part.4) from [<b0129c09>] (ubifs_iget+0x55/0x348)
16:54:27.382946 --> [ 395.944044] [<b0129c09>] (ubifs_iget) from [<b01277cd>] (ubifs_lookup+0x11d/0x1a4)
16:54:27.383964 --> [ 395.944058] [<b01277cd>] (ubifs_lookup) from [<b007dc1d>] (__lookup_slow+0x69/0x84)
16:54:27.422356 --> [ 395.944072] [<b007dc1d>] (__lookup_slow) from [<b007f299>] (walk_component+0x5d/0x8e)
16:54:27.423522 --> [ 395.944086] [<b007f299>] (walk_component) from [<b007f57b>] (path_lookupat+0x51/0xaa)
16:54:27.424477 --> [ 395.944100] [<b007f57b>] (path_lookupat) from [<b007fb2f>] (filename_lookup.part.21+0x35/0x6c)
16:54:27.425409 --> [ 395.944116] [<b007fb2f>] (filename_lookup.part.21) from [<b007a8dd>] (vfs_statx+0x41/0xa0)
16:54:27.426293 --> [ 395.944129] [<b007a8dd>] (vfs_statx) from [<b007acf7>] (vfs_fstatat+0x15/0x18)
16:54:27.465059 --> [ 395.944144] [<b007acf7>] (vfs_fstatat) from [<b007ad93>] (__do_sys_lstat64+0x17/0x24)
16:54:27.466222 --> [ 395.944158] [<b007ad93>] (__do_sys_lstat64) from [<b0008201>] (ret_fast_syscall+0x1/0x58)
16:54:27.466984 --> [ 395.944166] Exception stack(0xb2917fa8 to 0xb2917ff0)
16:54:27.467963 --> [ 395.944177] 7fa0: 004dd140 00000000 004dd120 aef42a50 aef42ac8 aef42a50
16:54:27.468960 --> [ 395.944188] 7fc0: 004dd140 00000000 004dd120 000000c4 004db9f4 00000000 004dd120 004dc5e8
16:54:27.469735 --> [ 395.944197] 7fe0: 004dbd54 aef42a50 004768b8 a6f0b04c
16:54:27.491090 --> [ 395.944219] UBIFS error (ubi4:0 pid 783): ubifs_iget: failed to read inode 200, error -5
16:54:27.492414 --> [ 395.944248] UBIFS error (ubi4:0 pid 783): ubifs_lookup: dead directory entry 'rk_event_test', error -5
16:54:29.176208 --> [ 398.003264] rockchip-sfc ffac0000.spi: DMA wait for transfer finish timeout
16:54:29.177275 --> [ 398.003299] rockchip-sfc ffac0000.spi: xfer data failed ret -110 dir 1
16:54:29.178219 --> [ 398.003334] ubi4 warning: ubi_io_read: error -5 while reading 188 bytes from PEB 205:90840, read only 0 bytes, retry
16:54:29.265736 --> [ 398.103456] rockchip-sfc ffac0000.spi: wait sfc idle timeout
16:54:29.267273 --> [ 398.103504] ubi4 warning: ubi_io_read: error -5 while reading 188 bytes from PEB 205:90840, read only 0 bytes, retry
16:54:31.334735 --> [ 400.163262] rockchip-sfc ffac0000.spi: DMA wait for transfer finish timeout
16:54:31.335755 --> [ 400.163297] rockchip-sfc ffac0000.spi: xfer data failed ret -110 dir 1
16:54:31.336700 --> [ 400.163333] ubi4 warning: ubi_io_read: error -5 while reading 188 bytes from PEB 205:90840, read only 0 bytes, retry
16:54:31.441393 --> [ 400.263446] rockchip-sfc ffac0000.spi: wait sfc idle timeout
16:54:31.442499 --> [ 400.263494] ubi4 error: ubi_io_read: error -5 while reading 188 bytes from PEB 205:90840, read 0 bytes
16:54:31.443415 --> [ 400.263508] CPU: 0 PID: 783 Comm: ls Tainted: G O 5.10.160 #18
16:54:31.444026 --> [ 400.263516] Hardware name: Generic DT based system
all is ok after reboot ...
I suspect that rkmpi SDK do not release some ressources then DMA is broken ....
I am not able to do more because I have not the rkmpi sources ....
can you help me ?