您尚未登录。

楼主 # 2023-03-31 12:30:38

william198757
会员
注册时间: 2019-11-22
已发帖子: 7
积分: 12

Kernel panic - not syncing: No working init found. Try passing init=

更新linux kernel到5.2版本,就一直进不了文件系统,Run /sbin/init as init process,看到这个报错,去文件系统里找这个文件,确认已经打包进去了
求指导

另外想问下 kernel的lib或module的文件需要打包到文件系统吗?
cp -r $YOUR_MOD_FILE  rootfs/lib/modules/
上面这句没有打包,不清楚YOUR_MOD_FILE 是指哪个文件


SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x70000, size 0x10000
SF: 65536 bytes @ 0x70000 Read: OK
device 0 offset 0x80000, size 0x400000
SF: 4194304 bytes @ 0x80000 Read: OK
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 816fa000, end 816ff37d ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-nano (william@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 Thu Mar 30 07:32:31 PDT 2023
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 58316K/65536K available (3735K kernel code, 185K rwdata, 1152K rodata, 1024K init, 216K bss, 7220K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x250/0x3c4 with crng_init=0
[    0.000048] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000123] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000671] Console: colour dummy device 80x30
[    0.000761] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070241] pid_max: default: 32768 minimum: 301
[    0.070659] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070699] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072059] CPU: Testing write buffer coherency: ok
[    0.073918] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076032] devtmpfs: initialized
[    0.083269] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.083328] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.083560] pinctrl core: initialized pinctrl subsystem
[    0.085323] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.087397] cpuidle: using governor menu
[    0.137106] SCSI subsystem initialized
[    0.137405] usbcore: registered new interface driver usbfs
[    0.137518] usbcore: registered new interface driver hub
[    0.137684] usbcore: registered new device driver usb
[    0.138111] videodev: Linux video capture interface: v2.00
[    0.138943] clocksource: Switched to clocksource timer
[    0.170263] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.184998] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.185587] jffs2: version 2.2. (NAND) (SUMMARY)  漏 2001-2006 Red Hat, Inc.
[    0.187596] JFS: nTxBlock = 455, nTxLock = 3644
[    0.194193] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.194231] io scheduler mq-deadline registered
[    0.194250] io scheduler kyber registered
[    0.206090] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.388162] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.395291] printk: console [ttyS0] disabled
[    0.415540] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 25, base_baud = 6250000) is a 16550A
[    0.708334] printk: console [ttyS0] enabled
[    0.714991] SCSI Media Changer driver v0.25 
[    0.722850] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.727640] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.734103] Creating 4 MTD partitions on "spi0.0":
[    0.738912] 0x000000000000-0x000000070000 : "u-boot"
[    0.746884] 0x000000070000-0x000000080000 : "dtb"
[    0.754465] 0x000000080000-0x000000480000 : "kernel"
[    0.762311] 0x000000480000-0x000001000000 : "rootfs"
[    0.770906] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.777438] ehci-platform: EHCI generic platform driver
[    0.783090] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.789407] ohci-platform: OHCI generic platform driver
[    0.794990] usbcore: registered new interface driver usb-storage
[    0.801484] udc-core: couldn't find an available UDC - added [g_webcam] to list of pending drivers
[    0.811633] input: 1c23400.lradc as /devices/platform/soc/1c23400.lradc/input/input0
[    0.820456] i2c /dev entries driver
[    0.826584] Goodix-TS 0-0014: i2c test failed attempt 1: -6
[    0.869191] Goodix-TS 0-0014: i2c test failed attempt 2: -6
[    0.909025] Goodix-TS 0-0014: I2C communication failure: -6
[    0.916411] vivid-000: using single planar format API
[    0.936628] vivid-000: CEC adapter cec0 registered for HDMI input 0
[    0.943565] vivid-000: V4L2 capture device registered as video0
[    0.950438] vivid-000: CEC adapter cec1 registered for HDMI output 0
[    0.957308] vivid-000: V4L2 output device registered as video1
[    0.963779] vivid-000: V4L2 capture device registered as vbi0, supports raw and sliced VBI
[    0.972649] vivid-000: V4L2 output device registered as vbi1, supports raw and sliced VBI
[    0.981394] vivid-000: V4L2 capture device registered as swradio0
[    0.987975] vivid-000: V4L2 receiver device registered as radio0
[    0.994551] vivid-000: V4L2 transmitter device registered as radio1
[    1.002081] vim2m vim2m.0: Device registered as /dev/video2
[    1.008773] vicodec vicodec.0: Device 'stateful-encoder' registered as /dev/video3
[    1.016954] vicodec vicodec.0: Device 'stateful-decoder' registered as /dev/video4
[    1.025151] vicodec vicodec.0: Device 'stateless-decoder' registered as /dev/video5
[    1.033250] usbcore: registered new interface driver uvcvideo
[    1.039085] USB Video Class driver (1.1.1)
[    1.043181] gspca_main: v2.14.0 registered
[    1.047269] cpia2: V4L-Driver for Vision CPiA2 based cameras v3.0.1
[    1.053696] usbcore: registered new interface driver cpia2
[    1.087735] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.096573] usbcore: registered new interface driver usbhid
[    1.102262] usbhid: USB HID core driver
[    1.121775] random: fast init done
[    1.236865] random: crng init done
[    2.499477] jffs2: notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    2.521024] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[    2.529123] devtmpfs: mounted
[    2.536588] Freeing unused kernel memory: 1024K
[    2.541316] Run /sbin/init as init process
[    4.489978] Run /etc/init as init process
[    4.502130] Run /bin/init as init process
[    4.506260] Run /bin/sh as init process
[    4.513556] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[    4.527715] CPU: 0 PID: 1 Comm: swapper Not tainted 5.2.0-licheepi-nano #1
[    4.534569] Hardware name: Allwinner suniv Family
[    4.539339] [<c0107f98>] (unwind_backtrace) from [<c0105c04>] (show_stack+0x10/0x14)
[    4.547101] [<c0105c04>] (show_stack) from [<c01108c4>] (panic+0xe8/0x2e8)
[    4.553988] [<c01108c4>] (panic) from [<c04a1c60>] (kernel_init+0xd8/0x110)
[    4.560948] [<c04a1c60>] (kernel_init) from [<c01010e0>] (ret_from_fork+0x14/0x34)
[    4.568495] Exception stack(0xc3835fb0 to 0xc3835ff8)
[    4.573544] 5fa0:                                     00000000 00000000 00000000 00000000
[    4.581711] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.589871] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    4.596480] Rebooting in 5 seconds..
[   10.575709] Reboot failed -- System halted

离线

楼主 #3 2023-04-05 16:15:53

william198757
会员
注册时间: 2019-11-22
已发帖子: 7
积分: 12

Re: Kernel panic - not syncing: No working init found. Try passing init=

谢谢各位
我尝试换了几个文件系统都报同样的错误;

替换新的kernel就好了,可能是之前kernel哪里配置的问题;

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn