页次: 1
按照楼主的方式修改后,启动kernel出现错误。麻烦大佬给看下问题;
[ 3.565118] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 61 bytes from PEB 30:61440, read only 61 bytes, retry
[ 3.579899] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 61 bytes from PEB 30:61440, read only 61 bytes, retry
[ 3.595157] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 61 bytes from PEB 30:61440, read only 61 bytes, retry
[ 3.610462] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 61 bytes from PEB 30:61440, read 61 bytes
U-Boot SPL 2022.04-dirty (Oct 27 2022 - 17:26:33 +0800)
DRAM: 64 MiB
Trying to boot from sunxi SPI-NAND
sunxi SPI-NAND: Found Winbond W25N01GVxxIG (efaa21)
sunxi SPI-NAND: Loading u-boot from 0x10000
sunxi SPI-NAND: u-boot hcrc OK!
U-Boot 2022.04-dirty (Oct 27 2022 - 17:26:33 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
Core: 23 devices, 11 uclasses, devicetree: separate
WDT: Not starting watchdog@1c20ca0
MMC: mmc@1c0f000: 0
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1...
In: serial@1c28000
Out: serial@1c28000
Err: serial@1c28000
Net: No ethernet found.
Hit any key to stop autoboot: 0
Reading 131072 byte(s) (64 page(s)) at offset 0x00100000
Reading 5242880 byte(s) (2560 page(s)) at offset 0x00120000
Kernel image @ 0x41000000 [ 0x000000 - 0x4448a0 ]
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dffddf ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.2.0-licheepi-zero+ (gys@gys) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)) #3 SMP Thu Oct 27 16:12:34 CST 2022
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 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: Lichee Pi Zero
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] percpu: Embedded 16 pages/cpu s34508 r8192 d22836 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi0.0:1M(uboot)ro,128k(dtb)ro,5M(kernel)ro,-(rootfs) ubi.mtd=3 root=ubi0:rootfs rw rootfstype=ubifs
[ 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: 54008K/65536K available (7168K kernel code, 308K rwdata, 1736K rodata, 1024K init, 257K bss, 11528K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[ 0.000000] random: get_random_bytes called from start_kernel+0x300/0x48c with crng_init=0
[ 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.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000020] Switching to timer-based delay loop, resolution 41ns
[ 0.000199] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000434] Console: colour dummy device 80x30
[ 0.000489] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000506] pid_max: default: 32768 minimum: 301
[ 0.000666] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.000683] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001490] CPU: Testing write buffer coherency: ok
[ 0.001990] /cpus/cpu@0 missing clock-frequency property
[ 0.002016] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002768] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002984] rcu: Hierarchical SRCU implementation.
[ 0.003512] smp: Bringing up secondary CPUs ...
[ 0.003531] smp: Brought up 1 node, 1 CPU
[ 0.003541] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.003548] CPU: All CPU(s) started in HYP mode.
[ 0.003553] CPU: Virtualization extensions available.
[ 0.004627] devtmpfs: initialized
[ 0.008060] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.008360] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.008392] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.008654] pinctrl core: initialized pinctrl subsystem
[ 0.009658] NET: Registered protocol family 16
[ 0.010319] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.011576] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.011593] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.038551] SCSI subsystem initialized
[ 0.038731] usbcore: registered new interface driver usbfs
[ 0.038786] usbcore: registered new interface driver hub
[ 0.038890] usbcore: registered new device driver usb
[ 0.039114] mc: Linux media interface: v0.10
[ 0.039175] videodev: Linux video capture interface: v2.00
[ 0.039374] Advanced Linux Sound Architecture Driver Initialized.
[ 0.040933] clocksource: Switched to clocksource arch_sys_counter
[ 0.052716] NET: Registered protocol family 2
[ 0.053532] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.053574] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.053599] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.053623] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.053766] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.053817] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.054115] NET: Registered protocol family 1
[ 0.055961] Initialise system trusted keyrings
[ 0.056326] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.094438] Key type asymmetric registered
[ 0.094459] Asymmetric key parser 'x509' registered
[ 0.094560] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 0.094575] io scheduler mq-deadline registered
[ 0.094583] io scheduler kyber registered
[ 0.095575] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.099261] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.168004] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.170351] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[ 0.171539] printk: console [ttyS0] disabled
[ 0.191826] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A
[ 0.728873] printk: console [ttyS0] enabled
[ 0.757684] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[ 0.769119] spi-nand spi0.0: Winbond SPI NAND was found.
[ 0.774522] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[ 0.783365] 4 fixed-partitions partitions found on MTD device spi0.0
[ 0.789722] Creating 4 MTD partitions on "spi0.0":
[ 0.794610] 0x000000000000-0x000000100000 : "uboot"
[ 0.802442] 0x000000100000-0x000000120000 : "dtb"
[ 0.808166] 0x000000120000-0x000000620000 : "kernel"
[ 0.814793] random: fast init done
[ 0.828085] 0x000000620000-0x000008000000 : "rootfs"
[ 1.005439] random: crng init done
[ 1.092462] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.098998] ehci-platform: EHCI generic platform driver
[ 1.104613] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 1.110250] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 1.118245] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[ 1.150942] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 1.158114] hub 1-0:1.0: USB hub found
[ 1.162063] hub 1-0:1.0: 1 port detected
[ 1.166649] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.172971] ohci-platform: OHCI generic platform driver
[ 1.178506] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 1.185227] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 1.193180] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[ 1.265949] hub 2-0:1.0: USB hub found
[ 1.269773] hub 2-0:1.0: 1 port detected
[ 1.277090] usbcore: registered new interface driver usb-storage
[ 1.284706] sun6i-rtc 1c20400.rtc: registered as rtc0
[ 1.289769] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.294476] i2c /dev entries driver
[ 1.299317] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[ 1.308933] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.317632] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 1.353598] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.361166] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[ 1.372509] usbcore: registered new interface driver usbhid
[ 1.378086] usbhid: USB HID core driver
[ 1.384636] Initializing XFRM netlink socket
[ 1.388945] NET: Registered protocol family 17
[ 1.394080] Registering SWP/SWPB emulation handler
[ 1.399980] Loading compiled-in X.509 certificates
[ 1.414098] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.425613] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.431465] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.440802] hub 3-0:1.0: USB hub found
[ 1.444806] hub 3-0:1.0: 1 port detected
[ 1.450579] ubi0: attaching mtd3
[ 1.479896] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.492964] mmc0: new high speed SD card at address 2117
[ 1.504120] mmcblk0: mmc0:2117 APPSD 239 MiB
[ 1.515337] mmcblk0: p1
[ 2.096264] ubi0: scanning is finished
[ 2.141684] ubi0: volume 0 ("rootfs") re-sized from 826 to 951 LEBs
[ 2.148804] ubi0: attached mtd3 (name "rootfs", size 121 MiB)
[ 2.154636] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 2.161527] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 2.168306] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 2.175269] ubi0: good PEBs: 975, bad PEBs: 0, corrupted PEBs: 0
[ 2.181280] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 2.188493] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 630478368
[ 2.197536] ubi0: available PEBs: 0, total reserved PEBs: 975, PEBs reserved for bad PEB handling: 20
[ 2.206825] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:08:42 UTC (522)
[ 2.215181] vcc3v0: disabling
[ 2.218157] vcc5v0: disabling
[ 2.221172] ALSA device list:
[ 2.224139] No soundcards found.
[ 2.228084] ubi0: background thread "ubi_bgt0d" started, PID 96
[ 2.245454] UBIFS (ubi0:0): Mounting in unauthenticated mode
[ 2.254482] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 97
[ 2.455129] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 2.462604] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 2.472529] UBIFS (ubi0:0): FS size: 100184064 bytes (95 MiB, 789 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[ 2.483064] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 2.488895] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 4811226A-CD64-4A45-BABB-96C0111F9C3C, small LPT model
[ 2.513345] VFS: Mounted root (ubifs filesystem) on device 0:12.
[ 2.531658] devtmpfs: mounted
[ 2.537938] Freeing unused kernel memory: 1024K
[ 2.545152] Run /sbin/init as init process
[ 3.565118] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 61 bytes from PEB 30:61440, read only 61 bytes, retry
[ 3.579899] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 61 bytes from PEB 30:61440, read only 61 bytes, retry
[ 3.595157] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 61 bytes from PEB 30:61440, read only 61 bytes, retry
[ 3.610462] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 61 bytes from PEB 30:61440, read 61 bytes
[ 3.620912] CPU: 0 PID: 1 Comm: init Not tainted 5.2.0-licheepi-zero+ #3
[ 3.627604] Hardware name: Allwinner sun8i Family
[ 3.632334] [<c010ed14>] (unwind_backtrace) from [<c010b72c>] (show_stack+0x10/0x14)
[ 3.640076] [<c010b72c>] (show_stack) from [<c0718cb0>] (dump_stack+0x84/0x98)
[ 3.647298] [<c0718cb0>] (dump_stack) from [<c04e8314>] (ubi_io_read+0x154/0x344)
[ 3.654781] [<c04e8314>] (ubi_io_read) from [<c04e609c>] (ubi_eba_read_leb+0x98/0x428)
[ 3.662692] [<c04e609c>] (ubi_eba_read_leb) from [<c04e4dc0>] (ubi_leb_read+0x74/0xb4)
[ 3.670608] [<c04e4dc0>] (ubi_leb_read) from [<c0304fec>] (ubifs_leb_read+0x2c/0x78)
[ 3.678348] [<c0304fec>] (ubifs_leb_read) from [<c0306860>] (ubifs_read_node+0x94/0x250)
[ 3.686438] [<c0306860>] (ubifs_read_node) from [<c0323128>] (ubifs_tnc_read_node+0x48/0x10c)
[ 3.694958] [<c0323128>] (ubifs_tnc_read_node) from [<c03088d4>] (tnc_read_hashed_node+0x138/0x1b8)
[ 3.703996] [<c03088d4>] (tnc_read_hashed_node) from [<c0309ae0>] (ubifs_tnc_locate+0x1a4/0x1dc)
[ 3.712772] [<c0309ae0>] (ubifs_tnc_locate) from [<c030a240>] (ubifs_tnc_lookup_nm+0x38/0x13c)
[ 3.721375] [<c030a240>] (ubifs_tnc_lookup_nm) from [<c02fe11c>] (ubifs_lookup+0x21c/0x32c)
[ 3.729725] [<c02fe11c>] (ubifs_lookup) from [<c0220d48>] (__lookup_slow+0x8c/0x154)
[ 3.737465] [<c0220d48>] (__lookup_slow) from [<c0220e40>] (lookup_slow+0x30/0x44)
[ 3.745029] [<c0220e40>] (lookup_slow) from [<c0222de4>] (walk_component+0x1d0/0x310)
[ 3.752851] [<c0222de4>] (walk_component) from [<c02234dc>] (path_lookupat+0x68/0x1f4)
[ 3.760761] [<c02234dc>] (path_lookupat) from [<c0225790>] (filename_lookup+0x9c/0x10c)
[ 3.768760] [<c0225790>] (filename_lookup) from [<c0212868>] (do_faccessat+0xac/0x22c)
[ 3.776672] [<c0212868>] (do_faccessat) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[ 3.784490] Exception stack(0xc3833fa8 to 0xc3833ff0)
[ 3.789539] 3fa0: 00000063 00000008 000b1b72 00000006 00000000 00000000
[ 3.797708] 3fc0: 00000063 00000008 00000000 00000021 00000000 00000063 b6f64000 00000000
[ 3.805873] 3fe0: 000c24a0 becc1ac4 0008e980 b6ed80c6
Starting logging: OK
Starting mdev...
/etc/init.d/S10mdev: line 21: can't create /proc/sys/kernel/hotplug: nonexistent directory
modprobe: can't change directory to '/lib/modules': No such file or directory
Initializing random number generator... done.
Starting network: OK
Welcome to Lichee Pi
Lichee login:
页次: 1