Page 1 of 1

4G模块插入后运行一段时间会OOPS

Posted: 2025-03-02 12:13
by xjxkeep@gmail.com
如题开发板是pico minib ,接入4G模块后运行一段时间后就会出现错误 有时也会刚开机就OOPS
复现方式,使用官方sdk编译出的镜像,usb改成了host模式, 连接的是ML307R的4G模块,加载了cdc ether 驱动,修改了内核的option.c添加了ML307R的vid和pid。


现象1
[root@luckfox root]# [ 4.408177] rkisp-vir0: wrap_line mode can not set the mirror
[ 2889.839925] 8<--- cut here ---
[ 2889.848771] Unable to handle kernel NULL pointer dereference at virtual address 00000035
[ 2889.856871] pgd = d71b29b4
[ 2889.859590] [00000035] *pgd=00000000
[ 2889.863189] Internal error: Oops - BUG: 17 [#1] THUMB2
[ 2889.868337] Modules linked in: rve rockit(O) rknpu mpp_vcodec(O) rga3 phy_rockchip_csi2_dphy phy_rockchip_csi2_dphy_hw video_rkisp vidm
[ 2889.882520] CPU: 0 PID: 233 Comm: vcodec_thread_0 Tainted: G O 5.10.160 #2
[ 2889.890695] Hardware name: Rockchip (Device Tree)
[ 2889.895432] PC is at ubifs_jnl_update+0x16/0x360
[ 2889.900073] LR is at ubifs_unlink+0x10d/0x184
[ 2889.904445] pc : [<b0124692>] lr : [<b0127af9>] psr: 500000b3
[ 2889.910714] sp : b16efe90 ip : b1cb15b8 fp : b060e3c0
[ 2889.915949] r10: b0548f00 r9 : b0548f80 r8 : b16eff40
[ 2889.921187] r7 : b1cb1570 r6 : b060e408 r5 : b060e460 r4 : b1cb1578
[ 2889.927726] r3 : 00000001 r2 : b16eff40 r1 : b1cb1570 r0 : b1cb1578
[ 2889.934274] Flags: nZcV IRQs off FIQs on Mode SVC_32 ISA Thumb Segment user
[ 2889.941670] Control: 50c53c7d Table: 0193c059 DAC: 00000055
[ 2889.947432] Process vcodec_thread_0 (pid: 233, stack limit = 0xa25bfcb6)
[ 2889.954145] Stack: (0xb16efe90 to 0xb16f0000)
[ 2889.958524] fe80: 00000000 00000000 00000000 00000000
[ 2889.966713] fea0: 00000000 b1ca6c00 00000000 00000000 00000000 00000000 00000900 00000510
[ 2889.974905] fec0: 00000900 b16efee8 b1cb1578 b060e408 b060e408 b0085245 b065c7f4 dbf8fa2c
[ 2889.983096] fee0: b1cb1578 b1cb1570 b060e460 b1cb1578 b060e408 b169c278 b0548f80 b0548f00
[ 2889.991288] ff00: b060e3c0 b0127af9 00000001 00000000 b1cb1570 b060e3c0 b060e3d8 b0027969
[ 2889.999479] ff20: b002798b b169c000 b060e3c0 00000000 b16eff38 b03c5763 a5d19a00 b00363c7
[ 2890.007669] ff40: b15ddb80 b169c000 ffffe000 00000001 b16eff68 b15ddbc8 b1643d28 b194c420
[ 2890.015859] ff60: 00000000 b03c5873 ffffe000 b15ddbc8 b15ddbcc b0022779 00000000 b194c400
[ 2890.024038] ff80: b19dc4e0 b16ee000 b0022725 b0022a39 b19dc4e0 b002297d 00000000 00000000
[ 2890.032226] ffa0: 00000000 00000000 00000000 b00082e9 00000000 00000000 00000000 00000000
[ 2890.040415] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.048602] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[ 2890.056819] [<b0124692>] (ubifs_jnl_update) from [<b0127af9>] (ubifs_unlink+0x10d/0x184)
[ 2890.064932] [<b0127af9>] (ubifs_unlink) from [<b16ee000>] (0xb16ee000)
[ 2890.071480] Code: 4690 681b 9313 69cb (6b5b) f013
[ 2890.076287] ---[ end trace 5e0b496638aa8352 ]---
[ 2890.080994] 8<--- cut here ---
[ 2890.084064] Unable to handle kernel paging request at virtual address 04c4b444
[ 2890.091291] pgd = d71b29b4
[ 2890.094008] [04c4b444] *pgd=00000000
[ 2890.097600] Internal error: Oops - BUG: 5 [#2] THUMB2
[ 2890.102658] Modules linked in: rve rockit(O) rknpu mpp_vcodec(O) rga3 phy_rockchip_csi2_dphy phy_rockchip_csi2_dphy_hw video_rkisp vidm
[ 2890.116814] CPU: 0 PID: 233 Comm: vcodec_thread_0 Tainted: G D O 5.10.160 #2
[ 2890.124987] Hardware name: Rockchip (Device Tree)
[ 2890.129714] PC is at __enqueue_entity.constprop.23+0x28/0x54
[ 2890.135388] LR is at enqueue_task_fair+0xdb/0x100
[ 2890.140103] pc : [<b002721c>] lr : [<b0027427>] psr: a00001b3
[ 2890.146372] sp : b16efb28 ip : e6383000 fp : 0000001f
[ 2890.151607] r10: b2d64f69 r9 : 00000020 r8 : 3504f982
[ 2890.156845] r7 : 00000001 r6 : b1cb1578 r5 : b0548f80 r4 : b160f72a
[ 2890.163383] r3 : 04c4b41c r2 : b0dd59b0 r1 : b1cb1580 r0 : 3504f982
[ 2890.169924] Flags: NzCv IRQs off FIQs on Mode SVC_32 ISA Thumb Segment user
[ 2890.177323] Control: 50c53c7d Table: 0193c059 DAC: 00000055
[ 2890.183082] Process vcodec_thread_0 (pid: 233, stack limit = 0xa25bfcb6)
[ 2890.189793] Stack: (0xb16efb28 to 0xb16f0000)
[ 2890.194172] fb20: b060e3c0 b0dd5980 b0dd59b0 00000000 00000000 b060e3c0
[ 2890.202361] fb40: 00000009 b0dd5980 b0dd5980 00000000 b16efb68 20000193 00000000 00000001
[ 2890.210549] fb60: 00000000 b00250bb 00000000 00000001 b16efb78 b00254a9 00000000 00000000
[ 2890.218740] fb80: 00000600 b106ff0c b060e9f0 b03c59b9 b060e9fc 00000000 00000000 b03c59c1
[ 2890.226931] fba0: b16efbe4 b00295f7 b060e9fc 00000001 00000001 b16efbe4 b060e9fc 00000001
[ 2890.235123] fbc0: 00000000 40000193 00000000 b0620700 b0620700 b0029683 00000000 b16efbe4
[ 2890.243311] fbe0: 29aaaaab 00000000 00000000 00000000 b16efbf0 b16efbf0 b061b258 00000027
[ 2890.251503] fc00: e625f5a6 000002a0 b0620700 b002969f 00000000 00000001 00000001 b0049573
[ 2890.259697] fc20: b061b254 00000000 00000000 b00495c5 b16ee000 b0035387 20000133 b0621080
[ 2890.267887] fc40: b16efd30 b003e031 b0621080 b245fac8 00000193 b0620740 b0621080 00000000
[ 2890.276077] fc60: 00000028 b00359d1 e625dedd 000002a0 b0620754 00000193 e625dedd 000002a0
[ 2890.284259] fc80: 00000193 b0620700 00000193 e625dedd 000002a0 ffffffff 7fffffff b04d14fa
[ 2890.292450] fca0: 00000017 b0035d57 00000000 00000003 e625dedd 000002a0 00000000 b0709200
[ 2890.300642] fcc0: b0737740 b06280b8 b0607374 00000011 b16ee000 b04d14fa 00000017 b030e633
[ 2890.308834] fce0: b030e615 b00304b1 00000011 b0709200 b06280b8 00000000 ffffe000 b002e21f
[ 2890.317027] fd00: b16efd30 b0607374 b4802000 b16efd30 b0628184 b01a8263 b03c5fb7 b003fba2
[ 2890.325217] fd20: 20000133 ffffffff b16efd64 b0008d13 00000000 00000000 b169c000 00000001
[ 2890.333408] fd40: b169c000 b169c3c0 0000000b ffffe000 ffffe000 00000000 b04d14fa 00000017
[ 2890.341600] fd60: 00000000 b16efd80 b03c5fb7 b003fba2 20000133 ffffffff b169c000 af000000
[ 2890.349793] fd80: b16ee000 b169c000 00000000 b0013fd3 b16ee000 b169c000 00000000 b0015f3f
[ 2890.357986] fda0: 0000000b b061b254 80000000 b169c000 00000017 b000e18b b16ee208 0000000b
[ 2890.366178] fdc0: 00000017 00000035 b16efe40 00000017 00000000 00000017 b16ee000 b0548f00
[ 2890.374368] fde0: b060e3c0 b000f9eb 00000000 b000fb43 b000fa11 00000017 b060b078 00000035
[ 2890.382563] fe00: b16efe40 b16eff40 b16ee000 b0548f00 b060e3c0 b000fc75 b1cc3814 af8f25f4
[ 2890.390757] fe20: 00000000 af8b5e93 00000000 b0124692 500000b3 ffffffff b16efe74 b0008c8d
[ 2890.398951] fe40: b1cb1578 b1cb1570 b16eff40 00000001 b1cb1578 b060e460 b060e408 b1cb1570
[ 2890.407143] fe60: b16eff40 b0548f80 b0548f00 b060e3c0 b1cb15b8 b16efe90 b0127af9 b0124692
[ 2890.415334] fe80: 500000b3 ffffffff b030e615 00000000 00000000 00000000 00000000 00000000
[ 2890.423524] fea0: 00000000 b1ca6c00 00000000 00000000 00000000 00000000 00000900 00000510
[ 2890.431714] fec0: 00000900 b16efee8 b1cb1578 b060e408 b060e408 b0085245 b065c7f4 dbf8fa2c
[ 2890.439908] fee0: b1cb1578 b1cb1570 b060e460 b1cb1578 b060e408 b169c278 b0548f80 b0548f00
[ 2890.448100] ff00: b060e3c0 b0127af9 00000001 00000000 b1cb1570 b060e3c0 b060e3d8 b0027969
[ 2890.456292] ff20: b002798b b169c000 b060e3c0 00000000 b16eff38 b03c5763 a5d19a00 b00363c7
[ 2890.464487] ff40: b15ddb80 b169c000 ffffe000 00000001 b16eff68 b15ddbc8 b1643d28 b194c420
[ 2890.472679] ff60: 00000000 b03c5873 ffffe000 b15ddbc8 b15ddbcc b0022779 00000000 b194c400
[ 2890.480872] ff80: b19dc4e0 b16ee000 b0022725 b0022a39 b19dc4e0 b002297d 00000000 00000000
[ 2890.489063] ffa0: 00000000 00000000 00000000 b00082e9 00000000 00000000 00000000 00000000
[ 2890.497251] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.505439] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[ 2890.513650] [<b002721c>] (__enqueue_entity.constprop.23) from [<b0027427>] (enqueue_task_fair+0xdb/0x100)
[ 2890.523244] [<b0027427>] (enqueue_task_fair) from [<b00250bb>] (activate_task+0xb/0x10)
[ 2890.531275] [<b00250bb>] (activate_task) from [<b00254a9>] (try_to_wake_up+0xa5/0xd4)
[ 2890.539141] [<b00254a9>] (try_to_wake_up) from [<b03c59c1>] (autoremove_wake_function+0x9/0x1c)
[ 2890.547870] [<b03c59c1>] (autoremove_wake_function) from [<b00295f7>] (__wake_up_common+0x5b/0xb4)
[ 2890.556850] [<b00295f7>] (__wake_up_common) from [<b0029683>] (__wake_up_common_lock+0x33/0x44)
[ 2890.565571] [<b0029683>] (__wake_up_common_lock) from [<b002969f>] (__wake_up+0xb/0x10)
[ 2890.573604] [<b002969f>] (__wake_up) from [<b0049573>] (irq_work_single+0x1f/0x42)
[ 2890.581207] [<b0049573>] (irq_work_single) from [<b00495c5>] (irq_work_run_list+0x2f/0x34)
[ 2890.589496] [<b00495c5>] (irq_work_run_list) from [<b0035387>] (update_process_times+0x43/0x5c)
[ 2890.598226] [<b0035387>] (update_process_times) from [<b003e031>] (tick_sched_timer+0x25/0x5c)
[ 2890.606868] [<b003e031>] (tick_sched_timer) from [<b00359d1>] (__hrtimer_run_queues.constprop.3+0x93/0xe6)
[ 2890.616548] [<b00359d1>] (__hrtimer_run_queues.constprop.3) from [<b0035d57>] (hrtimer_interrupt+0x6f/0x134)
[ 2890.626403] [<b0035d57>] (hrtimer_interrupt) from [<b030e633>] (arch_timer_handler_phys+0x1f/0x22)
[ 2890.635386] [<b030e633>] (arch_timer_handler_phys) from [<b00304b1>] (handle_percpu_devid_irq+0x25/0x78)
[ 2890.644888] [<b00304b1>] (handle_percpu_devid_irq) from [<b002e21f>] (__handle_domain_irq+0x4b/0x64)
[ 2890.654048] [<b002e21f>] (__handle_domain_irq) from [<b01a8263>] (gic_handle_irq+0x41/0x4e)
[ 2890.662429] [<b01a8263>] (gic_handle_irq) from [<b0008d13>] (__irq_svc+0x53/0x7c)
[ 2890.669923] Exception stack(0xb16efd30 to 0xb16efd78)
[ 2890.674991] fd20: 00000000 00000000 b169c000 00000001
[ 2890.683181] fd40: b169c000 b169c3c0 0000000b ffffe000 ffffe000 00000000 b04d14fa 00000017
[ 2890.691369] fd60: 00000000 b16efd80 b03c5fb7 b003fba2 20000133 ffffffff
[ 2890.698013] [<b0008d13>] (__irq_svc) from [<b003fba2>] (futex_exit_release+0x18/0x2e)
[ 2890.705876] [<b003fba2>] (futex_exit_release) from [<b0013fd3>] (exit_mm_release+0xb/0x16)
[ 2890.714165] [<b0013fd3>] (exit_mm_release) from [<b0015f3f>] (do_exit+0x147/0x584)
[ 2890.721765] [<b0015f3f>] (do_exit) from [<b000e18b>] (die+0x14b/0x17c)
[ 2890.728325] [<b000e18b>] (die) from [<b000f9eb>] (__do_kernel_fault.part.0+0x3f/0x64)
[ 2890.736180] [<b000f9eb>] (__do_kernel_fault.part.0) from [<b000fb43>] (do_page_fault+0x133/0x188)
[ 2890.745072] [<b000fb43>] (do_page_fault) from [<b000fc75>] (do_DataAbort+0x25/0x7c)
[ 2890.752753] [<b000fc75>] (do_DataAbort) from [<b0008c8d>] (__dabt_svc+0x4d/0x80)
[ 2890.760160] Exception stack(0xb16efe40 to 0xb16efe88)
[ 2890.765237] fe40: b1cb1578 b1cb1570 b16eff40 00000001 b1cb1578 b060e460 b060e408 b1cb1570
[ 2890.773430] fe60: b16eff40 b0548f80 b0548f00 b060e3c0 b1cb15b8 b16efe90 b0127af9 b0124692
[ 2890.781610] fe80: 500000b3 ffffffff
[ 2890.785133] [<b0008c8d>] (__dabt_svc) from [<b0124692>] (ubifs_jnl_update+0x16/0x360)
[ 2890.792994] [<b0124692>] (ubifs_jnl_update) from [<b0127af9>] (ubifs_unlink+0x10d/0x184)
[ 2890.801104] [<b0127af9>] (ubifs_unlink) from [<b16ee000>] (0xb16ee000)
[ 2890.807643] Code: 490a bcf0 f179 bbf8 (e9d3) 160a
[ 2890.812453] ---[ end trace 5e0b496638aa8353 ]---
[ 2890.817085] Kernel panic - not syncing: Fatal exception in interrupt
[ 2890.823448] CRU:
[ 2890.825321] 00000000: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.833862] 00000020: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.842403] 00000040: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.850941] 00000060: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.859482] 00000080: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.868024] 000000a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.876564] 000000c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.885107] 000000e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.893647] 00000100: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.902187] 00000120: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.910727] 00000140: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.919268] 00000160: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.927809] 00000180: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.936348] 000001a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.944889] 000001c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.953439] 000001e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.961981] 00000200: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.970521] 00000220: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.979061] 00000240: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.987601] 00000260: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2890.996142] 00000280: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.004684] 000002a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.013225] 000002c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.021764] 000002e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.030307] 00000300: 00006101 00000000 00000000 00000000 00000000 00000000 0040b71b 00000000
[ 2891.038846] 00000320: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.047386] 00000340: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.055926] 00000360: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.064465] 00000380: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.073014] 000003a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.081552] 000003c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.090094] 000003e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.098633] 00000400: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.107175] 00000420: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.115724] 00000440: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.124272] 00000460: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.132813] 00000480: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.141352] 000004a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.149902] 000004c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.158442] 000004e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.166981] 00000500: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.175521] 00000520: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.184061] 00000540: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.192601] 00000560: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.201136] 00000580: 00000000 00000000
[ 2891.205000] rockchip-thermal ff3c8000.tsadc: channal 0: temperature(52 C)
[ 2891.211793] THERMAL REGS:
[ 2891.214442] 00000000: 00000100 00000003 00000005 00000001 00000000 00000001 00000000 00000001
[ 2891.222981] 00000020: 00000000 00000000 00000000 00000223 00000000 00000000 00000000 00000000
[ 2891.231518] 00000040: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2891.240055] 00000060: 00000000 00000000 00000000 0000024c 00000000 00000000 00000000 00000000
[ 2891.248582] 00000080: 00000000 00000000
[ 2891.252470] cpu cpu0: cur_freq: 408000000 Hz, volt: 850000 uV
[ 2891.258235] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---


现象2

Code: Select all

[root@luckfox init.d]# [  435.222137] rkvenc_540c: rkvenc_task_timeout:1985: task 21537 state 0xf processing time out!
[  435.222200] rkvenc_540c: dvbm_en     -   1
[  435.222212] rkvenc_540c: fmt         -   1
[  435.222224] rkvenc_540c: jpg_en      -   0
[  435.222237] rkvenc_540c: vsldy       -   0x07003fff
[  435.222250] rkvenc_540c: st_wdg      -   0x00000000
[  435.222262] rkvenc_540c: st_ppl      -   0x0000052a
[  435.222273] rkvenc_540c: st_vsp0     -   0x00260000
[  435.222286] rkvenc_540c: st_vsp1     -   0x00260006
[  435.222298] rkvenc_540c: vepu_cycle  -   0x01377c35
[  435.391954] 8<--- cut here ---
[  435.395101] Unable to handle kernel NULL pointer dereference at virtual address 00000004
[  435.403241] pgd = dd88ad9f
[  435.406086] [00000004] *pgd=00000000
[  435.410083] Internal error: Oops - BUG: 817 [#1] THUMB2
[  435.415323] Modules linked in: rve rockit(O) rknpu mpp_vcodec(O) rga3 phy_rockchip_csi2_dphy phy_rockchip_csi2_dphy_hw video_rkisp vidm
[  435.429475] CPU: 0 PID: 708 Comm: kworker/0:0 Tainted: G           O      5.10.160 #2
[  435.437307] Hardware name: Rockchip (Device Tree)
[  435.442040] Workqueue: events dbs_work_handler
[  435.446503] PC is at clk_composite_recalc_rate+0xc/0x18
[  435.451737] LR is at clk_recalc+0x1d/0x28
[  435.455752] pc : [<b01c8268>]    lr : [<b01c5321>]    psr: 60000033
[  435.462018] sp : b0bcbe44  ip : b0bcbe34  fp : b0bcf740
[  435.467247] r10: 000639c0  r9 : 00000000  r8 : 00000000
[  435.472480] r7 : 18519600  r6 : 08f0d180  r5 : 23c34600  r4 : 00000000
[  435.479012] r3 : b0005300  r2 : 00000000  r1 : 23c34600  r0 : 00000000
[  435.485552] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb  Segment user
[  435.492857] Control: 50c53c7d  Table: 015b8059  DAC: 00000055
[  435.498613] Process kworker/0:0 (pid: 708, stack limit = 0xab26754b)
[  435.504969] Stack: (0xb0bcbe44 to 0xb0bcc000)
[  435.509341] be40:          b07153c0 23c34600 b07153c0 00000000 b01c546f b07153c0 00000000
[  435.517521] be60: 23c34600 b01c5495 b0704cc0 b060ae30 b060ae30 b01c54ab b0bcf740 b01c54c5
[  435.525699] be80: b0be3000 b02f6c05 00000000 00000000 b0be3400 b0bcbee0 b067b014 b02f9689
[  435.533882] bea0: b0be3400 b0bd6300 b060ae30 18519600 b067b014 00000000 00000000 000639c0
[  435.542063] bec0: 00000000 b02fbad5 b060ae30 18519600 00000000 b0be3400 b0bcf7c0 b02f9a5f
[  435.550243] bee0: b0be3400 000927c0 000639c0 000000a9 b0be3400 b0be4100 0026a840 002c2e00
[  435.558423] bf00: b0bd77e0 b0be4100 b0b5a800 b02fadf9 b0be4130 00000000 b0be4104 b065c6d8
[  435.566601] bf20: 00000000 00000000 b0be4134 b02fb145 b02fb129 b1326cc0 b0be4130 b060d9ec
[  435.574781] bf40: b2758200 b001fdcf b1326cc0 b0be4130 b1326cc0 b1326cd4 b060d9ec b061f5a0
[  435.582963] bf60: b0664928 b060da00 b10f1f20 b0020079 b10f1f00 b1050000 b0bca000 b001ff99
[  435.591144] bf80: b1326cc0 b099bed0 b10f1f20 b0022a39 b1050000 b002297d 00000000 00000000
[  435.599321] bfa0: 00000000 00000000 00000000 b00082e9 00000000 00000000 00000000 00000000
[  435.607499] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  435.615676] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[  435.623875] [<b01c8268>] (clk_composite_recalc_rate) from [<b01c5321>] (clk_recalc+0x1d/0x28)
[  435.632412] [<b01c5321>] (clk_recalc) from [<b01c546f>] (__clk_recalc_rates+0x15/0x3e)
[  435.640345] [<b01c546f>] (__clk_recalc_rates) from [<b01c5495>] (__clk_recalc_rates+0x3b/0x3e)
[  435.648965] [<b01c5495>] (__clk_recalc_rates) from [<b01c54ab>] (clk_core_get_rate_recalc+0x13/0x1c)
[  435.658104] [<b01c54ab>] (clk_core_get_rate_recalc) from [<b01c54c5>] (clk_get_rate+0x11/0x1a)
[  435.666726] [<b01c54c5>] (clk_get_rate) from [<b02f6c05>] (dev_pm_opp_set_rate+0x91/0x2ac)
[  435.675011] [<b02f6c05>] (dev_pm_opp_set_rate) from [<b02fbad5>] (rockchip_cpufreq_opp_set_rate+0x21/0x5e)
[  435.684675] [<b02fbad5>] (rockchip_cpufreq_opp_set_rate) from [<b02f9a5f>] (__cpufreq_driver_target+0x1df/0x258)
[  435.694864] [<b02f9a5f>] (__cpufreq_driver_target) from [<b02fadf9>] (od_dbs_update+0x8b/0xe6)
[  435.703480] [<b02fadf9>] (od_dbs_update) from [<b02fb145>] (dbs_work_handler+0x1d/0x36)
[  435.711507] [<b02fb145>] (dbs_work_handler) from [<b001fdcf>] (process_one_work+0xd5/0x136)
[  435.719876] [<b001fdcf>] (process_one_work) from [<b0020079>] (worker_thread+0xe1/0x18c)
[  435.727978] [<b0020079>] (worker_thread) from [<b0022a39>] (kthread+0xbd/0xc8)
[  435.735212] [<b0022a39>] (kthread) from [<b00082e9>] (ret_from_fork+0x11/0x28)
[  435.742433] Exception stack(0xb0bcbfb0 to 0xb0bcbff8)
[  435.747486] bfa0:                                     00000000 00000000 00000000 00000000
[  435.755663] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  435.763838] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  435.770464] Code: 685c f8d0 2088 6fc0 (6044) 681b
[  435.775739] ---[ end trace f384721c50407599 ]---
[  620.799069] rkvenc_540c: dvbm_en     -   0
[  620.803185] rkvenc_540c: fmt         -   1
[  620.807281] rkvenc_540c: jpg_en      -   0
[  620.811376] rkvenc_540c: vsldy       -   0x00000000
[  620.816253] rkvenc_540c: st_wdg      -   0x0000052a
[  620.821132] rkvenc_540c: st_ppl      -   0x0000052a
[  620.826010] rkvenc_540c: st_vsp0     -   0x002e0000
[  620.830887] rkvenc_540c: st_vsp1     -   0x002e0006
[  620.835765] rkvenc_540c: vepu_cycle  -   0x1fffff00
现象3

Code: Select all

[root@luckfox init.d]# [ 5353.059009] Internal error: Oops - BUG: 0 [#1] THUMB2
[ 5353.064087] Modules linked in: rve rockit(O) rknpu mpp_vcodec(O) rga3 phy_rockchip_csi2_dphy phy_rockchip_csi2_dphy_hw video_rkisp vidm
[ 5353.078244] CPU: 0 PID: 233 Comm: vcodec_thread_0 Tainted: G           O      5.10.160 #2
[ 5353.086413] Hardware name: Rockchip (Device Tree)
[ 5353.091794] PC is at hal_h265e_v540c_get_task+0x8c/0x4b8 [mpp_vcodec]
[ 5353.098669] LR is at mpp_frame_get_osd+0x9/0x14 [mpp_vcodec]
[ 5353.104338] pc : [<af8bf850>]    lr : [<af8a94bd>]    psr: 40000033
[ 5353.110605] sp : b15ebd98  ip : b241cb74  fp : b1007e00
[ 5353.115833] r10: b1ccb794  r9 : 007a007a  r8 : b1ccb794
[ 5353.121064] r7 : b2408258  r6 : 000002c0  r5 : af8f5e7c  r4 : b2406000
[ 5353.127595] r3 : 00000000  r2 : af8dd42f  r1 : af8dd42f  r0 : 00000000
[ 5353.134132] Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb  Segment user
[ 5353.141439] Control: 50c53c7d  Table: 01910059  DAC: 00000055
[ 5353.147203] Process vcodec_thread_0 (pid: 233, stack limit = 0x1a3983d9)
[ 5353.153908] Stack: (0xb15ebd98 to 0xb15ec000)
[ 5353.158274] bd80:                                                       b2431800 b2418000
[ 5353.166458] bda0: b241cb30 00000000 b2419208 b1c87ea0 b1cffe58 af8bb3eb b2418000 b1ccb794
[ 5353.174639] bdc0: 00000000 b2418000 af8f5e70 b2408000 b1ccb794 b1ccb780 b2408040 af8f5e6c
[ 5353.182820] bde0: 00000000 b1c87ea0 b1cffe58 af8b5db9 b2460000 00000004 b0bdb800 00000000
[ 5353.191000] be00: af8d5a7a af8dd42f af956628 af93b041 b1c87e20 7d6d9fb6 b2404400 00000002
[ 5353.199180] be20: b1c93868 b2408000 b2409510 af8f5e6c b2409500 b243a818 00000000 af8f26c4
[ 5353.207362] be40: 00000001 af8b338d b2408000 b243a818 00000064 af8f26a0 00000000 00000001
[ 5353.215543] be60: b2404400 af956628 af8f5be8 af8f26c4 00000001 af8a7707 af8d54e0 b1949040
[ 5353.223724] be80: 00000000 24ab4677 00000000 b243a818 00000000 b1c93858 00000000 00000000
[ 5353.231905] bea0: 00000000 b2404400 00000000 00000000 00000000 00000000 000002c0 00000240
[ 5353.240084] bec0: 000002c0 00000240 00000000 00000000 00000000 00000000 00000000 00000000
[ 5353.248263] bee0: 3f10aa96 00000001 ffffffff b0bdb800 000000c2 00000000 00000000 00000000
[ 5353.256443] bf00: 00000000 00000000 00020a57 00000000 00000000 00000000 00000000 00000000
[ 5353.264624] bf20: b12fc8c0 af8f59dc af8f5be8 00000002 b19480c0 b19480e8 af8f5e20 b1949360
[ 5353.272802] bf40: 00000000 af8a79c5 b1655a80 5b11e29a 000004de af8a7b0d af8a7ab9 ffffe000
[ 5353.280984] bf60: b1655ac8 00000001 b1655acc b1655ac8 b15d3d28 b002276f 00000000 b1949340
[ 5353.289166] bf80: b19d94e0 b15ea000 b0022725 b0022a39 b19d94e0 b002297d 00000000 00000000
[ 5353.297343] bfa0: 00000000 00000000 00000000 b00082e9 00000000 00000000 00000000 00000000
[ 5353.305523] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 5353.313701] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[ 5353.322607] [<af8bf850>] (hal_h265e_v540c_get_task [mpp_vcodec]) from [<af8b5db9>] (mpp_enc_impl_reg_cfg+0x8dd/0x978 [mpp_vcodec])
[ 5353.334969] [<af8b5db9>] (mpp_enc_impl_reg_cfg [mpp_vcodec]) from [<af8b338d>] (mpp_enc_cfg_reg+0xfd/0x154 [mpp_vcodec])
[ 5353.346463] [<af8b338d>] (mpp_enc_cfg_reg [mpp_vcodec]) from [<af8a7707>] (enc_chan_process_single_chan+0x3ab/0x43c [mpp_vcodec])
[ 5353.358737] [<af8a7707>] (enc_chan_process_single_chan [mpp_vcodec]) from [<af8a79c5>] (mpp_vcodec_enc_routine+0x65/0x94 [mpp_vcodec])
[ 5353.371438] [<af8a79c5>] (mpp_vcodec_enc_routine [mpp_vcodec]) from [<af8a7b0d>] (vcodec_thread_worker+0x55/0xbc [mpp_vcodec])
[ 5353.383146] [<af8a7b0d>] (vcodec_thread_worker [mpp_vcodec]) from [<b002276f>] (kthread_worker_fn+0x4b/0x6c)
[ 5353.392991] [<b002276f>] (kthread_worker_fn) from [<b0022a39>] (kthread+0xbd/0xc8)
[ 5353.400574] [<b0022a39>] (kthread) from [<b00082e9>] (ret_from_fork+0x11/0x28)
[ 5353.407793] Exception stack(0xb15ebfb0 to 0xb15ebff8)
[ 5353.412845] bfa0:                                     00000000 00000000 00000000 00000000
[ 5353.421022] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 5353.429201] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 5353.435828] Code: f2fe dfc2 69fb 4658 (f113) 023f
[ 5353.440636] ---[ end trace 5860d275561b6979 ]---

Re: 4G模块插入后运行一段时间会OOPS

Posted: 2025-03-04 11:02
by Crocodile
您好,你提供的日志主要是Rockit库和NPU相关的报错,建议将/oem/usr/ko/insmod_ko.sh 文件移动到其他文件夹或更改为/oem/usr/ko/insmod_ko.sh.bak 避免开机加载相关驱动,然后重启插入4G模块观察是否还有内核奔溃的情况,排除驱动内存分配冲突的可能性。

Re: 4G模块插入后运行一段时间会OOPS

Posted: 2025-03-06 13:30
by xjxkeep@gmail.com
Crocodile wrote: 2025-03-04 11:02 您好,你提供的日志主要是Rockit库和NPU相关的报错,建议将/oem/usr/ko/insmod_ko.sh 文件移动到其他文件夹或更改为/oem/usr/ko/insmod_ko.sh.bak 避免开机加载相关驱动,然后重启插入4G模块观察是否还有内核奔溃的情况,排除驱动内存分配冲突的可能性。
您好,我修改了/oem/usr/ko/insmod_ko.sh.bak 系统启动不久后 串口就没有反应了 (无法响应我的输入 也没有日志输出 串口连接正常 串口独立供电可以排除串口模块本身的原因) 这是系统的启动日志 日志1

我尝试了第二种方式,在系统启动后再插入4G模块,系统正常加载cdc_ether驱动。
但是在我使用udhcpc的时候出现了如下报错日志(偶发) 系统没有立即退出
紧接着串口没有反应(几乎必现) 日志2

看上去问题总发生在运行了udhcpc指令之后
尝试使用dhcpcd替换udhcpc 得到的现象是一样的(串口无反应)
日志1

Code: Select all


Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.160 (xjx@XJXPC) (arm-rockchip830-linux-uclibcgnueabihf-gcc (crosstool-NG 1.24.0) 8.3.0, GNU ld (crosstool-NG 1.24.0) 2.32) #35
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c53c7d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Luckfox Pico Mini
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 24576 KiB at 0x02800000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: user_debug=31 storagemedia=mtd androidboot.storagemedia=mtd androidboot.mode=normal  rootwait earlycon=uart8250,mmio32,0xff5
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 33776K/65536K available (3687K kernel code, 371K rwdata, 1784K rodata, 196K init, 138K bss, 7184K reserved, 24576K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000471] Console: colour dummy device 80x30
[    0.000518] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000533] pid_max: default: 4096 minimum: 301
[    0.000691] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000707] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001315] CPU: Testing write buffer coherency: ok
[    0.001969] Setting up static identity map for 0x81c0 - 0x81f8
[    0.002445] devtmpfs: initialized
[    0.008733] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.008924] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008945] futex hash table entries: 16 (order: -5, 192 bytes, linear)
[    0.009024] pinctrl core: initialized pinctrl subsystem
[    0.010227] NET: Registered protocol family 16
[    0.010633] DMA: failed to allocate 0 KiB pool for atomic coherent allocation
[    0.011181] Registered FIQ tty driver
[    0.011496] thermal_sys: Registered thermal governor 'step_wise'
[    0.011503] thermal_sys: Registered thermal governor 'user_space'
[    0.011723] cpuidle: using governor menu
[    0.023999] rockchip-gpio ff380000.gpio: probed /pinctrl/gpio@ff380000
[    0.024780] rockchip-gpio ff530000.gpio: probed /pinctrl/gpio@ff530000
[    0.025526] rockchip-gpio ff550000.gpio: probed /pinctrl/gpio@ff550000
[    0.026177] rockchip-gpio ff560000.gpio: probed /pinctrl/gpio@ff560000
[    0.026268] rockchip-pinctrl pinctrl: probed pinctrl
[    0.034835] fiq_debugger fiq_debugger.0: IRQ uart_irq not found
[    0.034860] fiq_debugger fiq_debugger.0: IRQ wakeup not found
[    0.035130] printk: console [ttyFIQ0] enabled
[    0.035320] Registered fiq debugger ttyFIQ0
[    0.037313] SCSI subsystem initialized
[    0.037529] usbcore: registered new interface driver usbfs
[    0.037577] usbcore: registered new interface driver hub
[    0.037629] usbcore: registered new device driver usb
[    0.037840] mc: Linux media interface: v0.10
[    0.037883] videodev: Linux video capture interface: v2.00
[    0.039022] Advanced Linux Sound Architecture Driver Initialized.
[    0.039799] rockchip-cpuinfo cpuinfo: SoC            : 11031000
[    0.039824] rockchip-cpuinfo cpuinfo: Serial         : 4764689cc94a0227
[    0.040252] rockchip,rknpor-powergood ff000000.syscon:rknpor-powergood: probe success!
[    0.041021] clocksource: Switched to clocksource arch_sys_counter
[    0.046836] NET: Registered protocol family 2
[    0.047076] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.047483] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.047518] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.047536] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.047553] TCP: Hash tables configured (established 1024 bind 1024)
[    0.047658] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.047681] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.047819] NET: Registered protocol family 1
[    0.048507] RPC: Registered named UNIX socket transport module.
[    0.048532] RPC: Registered udp transport module.
[    0.048539] RPC: Registered tcp transport module.
[    0.048545] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.050463] rockchip-thermal ff3c8000.tsadc: tsadc is probed successfully!
[    0.051521] Initialise system trusted keyrings
[    0.051832] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.055235] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.056062] NFS: Registering the id_resolver key type
[    0.056141] Key type id_resolver registered
[    0.056150] Key type id_legacy registered
[    0.056192] jffs2: version 2.2. (NAND) ᅡᄅ 2001-2006 Red Hat, Inc.
Seeding 256 bits and crediting
[    0.056640] Key type asymmetric registered
Saving 256 bits of creditable seed for next boot
[    0.056662] Asymmetric key parser 'x509' registered
Starting syslogd: OK
[    0.056686] io scheduler mq-deadline registered
[    0.057052] rockchip-usb2phy ff3e0000.usb2-phy: IRQ index 0 not found
Starting klogd: [    0.061488] dma-pl330 ff420000.dma-controller: Loaded driver for PL330 DMAC-241330
OK
[    0.061517] dma-pl330 ff420000.dma-controller:       DBUFF-128x8bytes Num_Chans-8 Num_Peri-32 Num_Events-16
[    0.062269] rockchip-pvtm ff240000.pvtm: pvtm@0 probed
[    0.062435] rockchip-pvtm ff390000.pvtm: pvtm@0 probed
Running sysctl: [    0.062714] rockchip-system-monitor rockchip-system-monitor: system monitor probe
[    0.063228] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    0.068405] random: crng init done
[    0.077029] brd: module loaded
[    0.082686] loop: module loaded
[    0.084755] spi-nand spi2.0: Winbond SPI NAND was found.
[    0.084794] spi-nand spi2.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 128
[    0.085896] 7 cmdlinepart partitions found on MTD device spi-nand0
OK
[    0.085916] Creating 7 MTD partitions on "spi-nand0":
Populating /dev using udev: [    0.085930] 0x000000000000-0x000000040000 : "env"
[    0.087711] 0x000000040000-0x000000080000 : "idblock"
[    0.089480] 0x000000080000-0x000000100000 : "uboot"
[    0.091346] 0x000000100000-0x000000500000 : "boot"
[    0.093087] 0x000000500000-0x000002300000 : "oem"
[    0.094924] 0x000002300000-0x000002900000 : "userdata"
[    0.096785] 0x000002900000-0x000007e00000 : "rootfs"
[    0.099954] usbcore: registered new interface driver cdc_ether
[    0.100018] usbcore: registered new interface driver cdc_subset
[    0.100050] usbcore: registered new interface driver zaurus
[    0.104058] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.104455] phy phy-ff3e0000.usb2-phy.0: illegal mode
[    0.104479] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    0.104515] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    0.104705] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000022010010
[    0.104755] xhci-hcd xhci-hcd.0.auto: irq 58, io mem 0xffb00000
[    0.105821] hub 1-0:1.0: USB hub found
[    0.105896] hub 1-0:1.0: 1 port detected
[    0.106229] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    0.106259] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    0.106288] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    0.106430] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.107081] hub 2-0:1.0: USB hub found
[    0.107140] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
[    0.107516] usbcore: registered new interface driver usb-storage
[    0.108173] i2c /dev entries driver
[    0.109497] i2c i2c-4: 1 i2c clients have been registered at 0x30
[    0.109843] i2c i2c-4: 2 i2c clients have been registered at 0x30
[    0.110813] usbcore: registered new interface driver uvcvideo
[    0.110831] USB Video Class driver (1.1.1)
[    0.111653] cpu cpu0: leakage=21
[    0.112397] cpu cpu0: avs=0
[    0.112560] cpu cpu0: opp calibration done
[    0.112705] cpu cpu0: l=10000 h=2147483647 hyst=5000 l_limit=0 h_limit=0 h_table=0
[    0.113160] Synopsys Designware Multimedia Card Interface Driver
[    0.115381] dwmmc_rockchip ffaa0000.mmc: No normal pinctrl state
[    0.115415] dwmmc_rockchip ffaa0000.mmc: No idle pinctrl state
[    0.115642] dwmmc_rockchip ffaa0000.mmc: IDMAC supports 32-bit address mode.
[    0.115693] dwmmc_rockchip ffaa0000.mmc: Using internal DMA controller.
[    0.115711] dwmmc_rockchip ffaa0000.mmc: Version ID is 270a
[    0.115754] dwmmc_rockchip ffaa0000.mmc: DW MMC controller at irq 48,32 bit host data width,256 deep fifo
[    0.117375] rv1106-acodec ff480000.acodec: current soc_id: rv1103
[    0.117483] rv1106-acodec ff480000.acodec: Use pa_ctl_gpio and pa_ctl_delay_ms: 0
[    0.119179] NET: Registered protocol family 17
[    0.119298] Key type dns_resolver registered
[    0.120212] Loading compiled-in X.509 certificates
[    0.136543] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    0.148700] input: adc-keys as /devices/platform/adc-keys/input/input0
[    0.234204] ubi0: attaching mtd6
[    0.382375] ubi0: scanning is finished
[    0.386685] ubi0: attached mtd6 (name "rootfs", size 85 MiB)
[    0.386710] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    0.386719] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    0.386729] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    0.386737] ubi0: good PEBs: 680, bad PEBs: 0, corrupted PEBs: 0
[    0.386747] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    0.386757] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 958115436
[    0.386765] ubi0: available PEBs: 0, total reserved PEBs: 680, PEBs reserved for bad PEB handling: 20
[    0.387901] ALSA device list:
[    0.387922]   #0: rv-acodec
[    0.388616] ubi0: background thread "ubi_bgt0d" started, PID 52
[    0.388729] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    0.403006] UBIFS (ubi0:0): recovery needed
[    0.427101] UBIFS (ubi0:0): recovery deferred
[    0.427222] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[    0.427237] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    0.427249] UBIFS (ubi0:0): FS size: 81899520 bytes (78 MiB, 645 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[    0.427258] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[    0.427270] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID EBAB242B-4919-41FE-92A3-2944DB3074BB, small LPT model
[    0.427791] VFS: Mounted root (ubifs filesystem) readonly on device 0:13.
[    0.428271] devtmpfs: mounted
[    0.428466] Freeing unused kernel memory: 196K
[    0.428476] Kernel memory protection not selected by kernel config.
[    0.428502] Run /sbin/init as init process
[    0.434866] process '/bin/busybox' started with executable stack
[    0.485964] UBIFS (ubi0:0): completing deferred recovery
[    0.537112] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 55
[    0.544611] UBIFS (ubi0:0): deferred recovery completed
[    0.753790] udevd[85]: starting version 3.2.7
[    0.768744] udevd[85]: specified group 'input' unknown
[    0.769797] udevd[85]: specified group 'kvm' unknown
[    0.791697] udevd[86]: starting eudev-3.2.7
[    1.153984] udevd[98]: failed to execute '/lib/udev/mtd_probe' 'mtd_probe /dev/mtd0ro': No such file or directory
[    1.158301] udevd[99]: failed to execute '/lib/udev/mtd_probe' 'mtd_probe /dev/mtd1ro': No such file or directory
[    1.160644] udevd[100]: failed to execute '/lib/udev/mtd_probe' 'mtd_probe /dev/mtd2ro': No such file or directory
[    1.162487] udevd[101]: failed to execute '/lib/udev/mtd_probe' 'mtd_probe /dev/mtd3ro': No such file or directory
[    1.178873] udevd[104]: failed to execute '/lib/udev/mtd_probe' 'mtd_probe /dev/mtd4ro': No such file or directory
[    1.194383] udevd[105]: failed to execute '/lib/udev/mtd_probe' 'mtd_probe /dev/mtd5ro': No such file or directory
[    1.204933] udevd[106]: failed to execute '/lib/udev/mtd_probe' 'mtd_probe /dev/mtd6ro': No such file or directory
done
/etc/init.d/S20linkmount info: mount point path [IGNORE] not found, skip...
***********/dev/ubi4_0 not exist***********
***********/dev/ubi4 not exist***********
[    1.607206] ubi4: attaching mtd4
[    1.659638] ubi4: scanning is finished
[    1.667483] ubi4: attached mtd4 (name "oem", size 30 MiB)
[    1.667512] ubi4: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI device number 4, total 240 LEBs (30474240 bytes, 29.1 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
[    1.667522] ubi4: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
try to make volume: /dev/ubi4_0 ...
[    1.667531] ubi4: VID header offset: 2048 (aligned 2048), data offset: 4096
ubimkvol: error!: bad volume size: "0"
[    1.667540] ubi4: good PEBs: 240, bad PEBs: 0, corrupted PEBs: 0
[    1.667549] ubi4: user volume: 1, internal volumes: 1, max. volumes count: 128
[    1.667559] ubi4: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1396574167
[    1.667568] ubi4: available PEBs: 0, total reserved PEBs: 240, PEBs reserved for bad PEB handling: 20
[    1.668776] ubi4: background thread "ubi_bgt4d" started, PID 126
[    1.693922] UBIFS (ubi4:0): Mounting in unauthenticated mode
[    1.694165] UBIFS (ubi4:0): background thread "ubifs_bgt4_0" started, PID 131
[    1.708975] UBIFS (ubi4:0): recovery needed
[    1.796455] UBIFS (ubi4:0): recovery completed
[    1.796578] UBIFS (ubi4:0): UBIFS: mounted UBI device 4, volume 0, name "oem"
[    1.796594] UBIFS (ubi4:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    1.796606] UBIFS (ubi4:0): FS size: 26157056 bytes (24 MiB, 206 LEBs), journal size 4190208 bytes (3 MiB, 33 LEBs)
[    1.796615] UBIFS (ubi4:0): reserved for root: 0 bytes (0 KiB)
[    1.796626] UBIFS (ubi4:0): media format: w4/r0 (latest is w5/r0), UUID 5BA79519-B347-4CE0-8E75-08B3BE1391C7, small LPT model
***********/dev/ubi5_0 not exist***********
[    1.836293] ubi5: attaching mtd5
***********/dev/ubi5 not exist***********
[    1.847285] ubi5: scanning is finished
UBI device number 5, total 48 LEBs (6094848 bytes, 5.8 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
[    1.855160] ubi5: attached mtd5 (name "userdata", size 6 MiB)
try to make volume: /dev/ubi5_0 ...
[    1.855186] ubi5: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubimkvol: error!: bad volume size: "0"
[    1.855196] ubi5: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    1.855205] ubi5: VID header offset: 2048 (aligned 2048), data offset: 4096
[    1.855213] ubi5: good PEBs: 48, bad PEBs: 0, corrupted PEBs: 0
[    1.855221] ubi5: user volume: 1, internal volumes: 1, max. volumes count: 128
[    1.855232] ubi5: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 674496983
[    1.855240] ubi5: available PEBs: 0, total reserved PEBs: 48, PEBs reserved for bad PEB handling: 20
[    1.857279] ubi5: background thread "ubi_bgt5d" started, PID 140
[    1.876757] UBIFS (ubi5:0): Mounting in unauthenticated mode
[    1.876991] UBIFS (ubi5:0): background thread "ubifs_bgt5_0" started, PID 145
Initializing random number generator... [    1.891847] UBIFS (ubi5:0): recovery needed
[    1.935782] UBIFS (ubi5:0): recovery completed
[    1.935902] UBIFS (ubi5:0): UBIFS: mounted UBI device 5, volume 0, name "userdata"
done.
[    1.935916] UBIFS (ubi5:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    1.935928] UBIFS (ubi5:0): FS size: 1777664 bytes (1 MiB, 14 LEBs), journal size 1142785 bytes (1 MiB, 9 LEBs)
[    1.935936] UBIFS (ubi5:0): reserved for root: 0 bytes (0 KiB)
[    1.935948] UBIFS (ubi5:0): media format: w4/r0 (latest is w5/r0), UUID 1188D5FC-A988-45D3-9AAF-A31F73D34402, small LPT model
/dev/ubi5_0 on /userdata type ubifs (rw,relatime,assert=read-only,ubi=5,vol=0)
ln: /oem/usr/www/userdata: No such file or directory
Starting network: ln: /oem/usr/www/usb0: No such file or directory
ln: /oem/usr/www/sdcard: No such file or directory
eth HWaddr cfg ok
Error: not found rkipc.ini !!!
/oem/usr/bin/RkLunch.sh: exit: line 107: Illegal number: -1
ifconfig: SIOCGIFFLAGS: No such device
OK
Starting ntpd: OK
Starting sshd: OK
Starting telnetd: OK
/etc/init.d/S50usbdevice: line 144: can't open : no such file
Debug: configfs_init
mount: mounting none on /sys/kernel/config failed: No such file or directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/rockchip': No such file or directory
/etc/init.d/S50usbdevice: line 76: can't create /sys/kernel/config/usb_gadget/rockchip/idVendor: nonexistent directory
/etc/init.d/S50usbdevice: line 77: can't create /sys/kernel/config/usb_gadget/rockchip/bcdDevice: nonexistent directory
/etc/init.d/S50usbdevice: line 78: can't create /sys/kernel/config/usb_gadget/rockchip/bcdUSB: nonexistent directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/rockchip/strings/0x409': No such file or directory
/etc/init.d/S50usbdevice: line 84: can't create /sys/kernel/config/usb_gadget/rockchip/strings/0x409/serialnumber: nonexistent directory
/etc/init.d/S50usbdevice: line 85: can't create /sys/kernel/config/usb_gadget/rockchip/strings/0x409/manufacturer: nonexistent directory
/etc/init.d/S50usbdevice: line 86: can't create /sys/kernel/config/usb_gadget/rockchip/strings/0x409/product: nonexistent directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/rockchip/functions/uac1.gs0': No such file or directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/rockchip/functions/uac2.gs0': No such file or directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/rockchip/functions/ffs.adb': No such file or directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/rockchip/functions/ffs.ntb': No such file or directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/rockchip/functions/mtp.gs0': No such file or directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/rockchip/functions/rndis.gs0': No such file or directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/rockchip/functions/acm.gs6': No such file or directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/rockchip/functions/mass_storage.0': No such file or directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/rockchip/functions/uvc.gs6': No such file or directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/rockchip/functions/hid.usb0': No such file or directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/rockchip/configs/b.1': No such file or directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/rockchip/configs/b.1/strings/0x409': No such file or directory
/etc/init.d/S50usbdevice: line 93: can't create /sys/kernel/config/usb_gadget/rockchip/os_desc/b_vendor_code: nonexistent directory
/etc/init.d/S50usbdevice: line 94: can't create /sys/kernel/config/usb_gadget/rockchip/os_desc/qw_sign: nonexistent directory
/etc/init.d/S50usbdevice: line 95: can't create /sys/kernel/config/usb_gadget/rockchip/configs/b.1/MaxPower: nonexistent directory
ln: /sys/kernel/config/usb_gadget/rockchip/os_desc/b.1: No such file or directory
/etc/init.d/S50usbdevice: line 420: can't create /sys/kernel/config/usb_gadget/rockchip/idProduct: nonexistent directory
ln: /sys/kernel/config/usb_gadget/rockchip/configs/b.1/f1: No such file or directory
ln: /sys/kernel/config/usb_gadget/rockchip/configs/b.1/f2: No such file or directory
/etc/init.d/S50usbdevice: line 368: can't create /sys/kernel/config/usb_gadget/rockchip/configs/b.1/strings/0x409/configuration: nonexistent directory
mount: mounting adb on /dev/usb-ffs/adb failed: No such device
[    3.381094] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    3.561919] usb 1-1: unable to read config index 0 descriptor/all
[    3.561970] usb 1-1: can't read configurations, error -71
ls: /sys/class/udc/: No such file or directory
/etc/init.d/S50usbdevice: line 425: can't create /sys/kernel/config/usb_gadget/rockchip/UDC: nonexistent directory
[    3.931089] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[    4.142623] cdc_ether 1-1:1.0 eth0: register 'cdc_ether' at usb-xhci-hcd.0.auto-1, CDC Ethernet Device, ac:0c:29:a3:9b:6d
ifconfig: SIOCSIFADDR: No such device
ifconfig: SIOCGIFFLAGS: No such device
/usr/bin/luckfox-config: line 46: warning: command substitution: ignored null byte in input
Only Luckfox Pico Ultra /Luckfox Pico Ultra W support RGB
Complete configuration loading
/root/main.py and /root/boot.py not exist ,pass...
OK
hwclock: can't open '/dev/misc/rtc': No such file or directory
RTC does not require time calibration

Welcome to luckfox pico
luckfox login: root
Password:
[root@luckfox root]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr AC:0C:29:A3:9B:6D
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:460 errors:0 dropped:0 overruns:0 frame:0
          TX packets:460 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:33932 (33.1 KiB)  TX bytes:33932 (33.1 KiB)

[root@luckfox root]# udhcpc
udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.0.100, server 192.168.0.1
udhcpc: lease of 192.168.0.100 obtained from 192.168.0.1, lease time 86400
deleting routers
adding dns 192.168.0.1

日志2

Code: Select all

[root@luckfox root]# [   30.091297] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[   30.901334] usb 1-1: device descriptor read/64, error -71
[   31.202110] usb 1-1: unable to read config index 0 descriptor/all
[   31.202166] usb 1-1: can't read configurations, error -71
[   31.571302] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[   31.762747] cdc_ether 1-1:1.0 eth0: register 'cdc_ether' at usb-xhci-hcd.0.auto-1, CDC Ethernet Device, ac:0c:29:a3:9b:6d

[root@luckfox root]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr AC:0C:29:A3:9B:6D
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:348 errors:0 dropped:0 overruns:0 frame:0
          TX packets:348 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:25644 (25.0 KiB)  TX bytes:25644 (25.0 KiB)

[root@luckfox root]# udhcpc
udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.0.100, server 192.168.0.1
udhcpc: lease of 192.168.0.100 obtained from 192.168.0.1, lease time 86400
deleting routers
adding dns 192.168.0.1
[root@luckfox root]# ifco[   50.270895] irq 58: nobody cared (try booting with the "irqpoll" option)
nfi[   50.270954] CPU: 0 PID: 0 Comm: swapper Not tainted 5.10.160 #3
[   50.270972] Hardware name: Rockchip (Device Tree)
[   50.271044] [<b000f56d>] (unwind_backtrace) from [<b000e03f>] (show_stack+0xb/0xc)
[   50.271094] [<b000e03f>] (show_stack) from [<b039a52d>] (__report_bad_irq+0x19/0x78)
[   50.271144] [<b039a52d>] (__report_bad_irq) from [<b002fb11>] (note_interrupt+0x119/0x18c)
g[   50.271191] [<b002fb11>] (note_interrupt) from [<b002e5d5>] (handle_irq_event_percpu+0x25/0x30)
[   50.271232] [<b002e5d5>] (handle_irq_event_percpu) from [<b002e5fb>] (handle_irq_event+0x1b/0x28)
[   50.271270] [<b002e5fb>] (handle_irq_event) from [<b0030389>] (handle_fasteoi_irq+0x57/0x90)
[   50.271307] [<b0030389>] (handle_fasteoi_irq) from [<b002e21f>] (__handle_domain_irq+0x4b/0x64)
[   50.271352] [<b002e21f>] (__handle_domain_irq) from [<b01a6203>] (gic_handle_irq+0x41/0x4e)
[   50.271396] [<b01a6203>] (gic_handle_irq) from [<b0008d13>] (__irq_svc+0x53/0x7c)
[   50.271420] Exception stack(0xb05cde60 to 0xb05cdea8)
[   50.271454] de60: b05e75a0 b0628c40 00000100 b05d4658 00000011 00000002 b05effd0 00000000
[   50.271487] de80: b04a0707 b05d4658 0000000a b0628c40 00000000 b05cdeb0 b0016d9d b0009418
[   50.271508] dea0: 40000133 ffffffff
[   50.271547] [<b0008d13>] (__irq_svc) from [<b0009418>] (__do_softirq+0x48/0x150)
[   50.271583] [<b0009418>] (__do_softirq) from [<b0016d9d>] (__irq_exit_rcu+0x31/0x68)
[   50.271622] [<b0016d9d>] (__irq_exit_rcu) from [<b002e223>] (__handle_domain_irq+0x4f/0x64)
[   50.271663] [<b002e223>] (__handle_domain_irq) from [<b01a6203>] (gic_handle_irq+0x41/0x4e)
[   50.271700] [<b01a6203>] (gic_handle_irq) from [<b0008d13>] (__irq_svc+0x53/0x7c)
[   50.271721] Exception stack(0xb05cdf30 to 0xb05cdf78)
[   50.271748] df20:                                     00000000 b2758800 b02ea44b b0012761
[   50.271781] df40: 00000000 00000000 ffffe000 b05cf05c b04a0707 b05b6250 b0622130 00000000
[   50.271810] df60: 00000000 b05cdf80 b000cc03 b000cbfa a0000033 ffffffff
[   50.271851] [<b0008d13>] (__irq_svc) from [<b000cbfa>] (arch_cpu_idle+0xc/0x1e)
[   50.271896] [<b000cbfa>] (arch_cpu_idle) from [<b03a21a5>] (default_idle_call+0x11/0x14)
[   50.271936] [<b03a21a5>] (default_idle_call) from [<b0026dbf>] (do_idle+0x6f/0x114)
[   50.271972] [<b0026dbf>] (do_idle) from [<b0026f0b>] (cpu_startup_entry+0xb/0xc)
[   50.272010] [<b0026f0b>] (cpu_startup_entry) from [<b059bb1b>] (start_kernel+0x2c3/0x350)
[   50.272029] handlers:
[   50.272064] [<eb43c32f>] usb_hcd_irq
[   50.272091] Disabling IRQ #58


Re: 4G模块插入后运行一段时间会OOPS

Posted: 2025-03-07 1:39
by Crocodile
/oem/usr/ko/insmod_ko.sh 主要是注册摄像头设备和RKNPU的,rkipc也会在没有检测到驱动后停止运行,我这边实测是不会出现串口断联的现象的,即使是出错应该也会报 OOPS 错误,建议多试几次确定是否是连接线老化或者接触不良
第二次后插入网卡 OOPS报错来源变为USB基本可以确定是驱动的问题,插入后过段时间出现的irq 58: nobody cared (try booting with the "irqpoll" option)导致内核奔溃,有可能是中断号58 同时被多个驱动使用,当网卡驱动想要使用 58 号中断时检测到已经被其他驱动占用就会弹这个日志(大概率是和 insmod_ko.sh 中注册的驱动冲突),这种可能需要您自行从4G网卡的源码中验证,insmod_ko.sh的驱动都是二进制的形式提供,Rockchip 没有提供源码