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

  • 您好,你提供的日志主要是Rockit库和NPU相关的报错,建议将/oem/usr/ko/insmod_ko.sh 文件移动到其他文件夹或更改为/oem/usr/ko/insmod_ko.sh.bak 避免开机加载相关驱动,然后重启插入4G模块观察是否还有内核奔溃的情况,排除驱动内存分配冲突的可能性。
  • 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
    
    
    Last edited by xjxkeep@gmail.com on 2025-03-06 15:48, edited 1 time in total.
  • /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 没有提供源码