最近在荔枝派做nand尝试 按照大佬的指示
【全志V3s】SPI NAND Flash 驱动开发
却是无法走到登录这一步
这个权限是哪一步的问题呢
同样的镜像SD卡的就没这事
[ 9.232269] Run /sbin/init as init process
mount: you must be root
mount: you must be root
mkdir: can't create directory '/dev/pts': Permission denied
mkdir: can't create directory '/dev/shm': Permission denied
mount: you must be root
hostname: sethostname: Operation not permitted
U-Boot SPL 2022.04 (Aug 31 2024 - 20:21:39 -0700)
DRAM: 64 MiB
Trying to boot from sunxi SPI-NAND
sunxi SPI-NAND: Found Winbond W25N01GVxxIG (efaa21)
sunxi SPI-NAND: Loading u-boot from 0x20000
sunxi SPI-NAND: u-boot hcrc OK!
U-Boot 2022.04 (Aug 31 2024 - 20:21:39 -0700) 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... Card did not respond to voltage select! : -110
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 - 0x497278 ]
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42df9000, end 42dff920 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.2.0-licheepi-zero (qingyue@ubuntu) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)) #17 SMP Tue Sep 3 06:53:15 PDT 2024
[ 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 with Dock
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 32 MiB at 0x40c00000
[ 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: 21108K/65536K available (7168K kernel code, 300K rwdata, 1820K rodata, 1024K init, 322K bss, 11660K reserved, 32768K 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000021] Switching to timer-based delay loop, resolution 41ns
[ 0.000236] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000486] Console: colour dummy device 80x30
[ 0.000542] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000559] pid_max: default: 32768 minimum: 301
[ 0.000721] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.000739] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001521] CPU: Testing write buffer coherency: ok
[ 0.002040] /cpus/cpu@0 missing clock-frequency property
[ 0.002068] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002830] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.003035] rcu: Hierarchical SRCU implementation.
[ 0.003597] smp: Bringing up secondary CPUs ...
[ 0.003619] smp: Brought up 1 node, 1 CPU
[ 0.003630] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.003637] CPU: All CPU(s) started in HYP mode.
[ 0.003642] CPU: Virtualization extensions available.
[ 0.004686] devtmpfs: initialized
[ 0.008699] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.009017] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.009047] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.010485] pinctrl core: initialized pinctrl subsystem
[ 0.011588] NET: Registered protocol family 16
[ 0.012795] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.014129] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.014150] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.044181] SCSI subsystem initialized
[ 0.044412] usbcore: registered new interface driver usbfs
[ 0.044474] usbcore: registered new interface driver hub
[ 0.044577] usbcore: registered new device driver usb
[ 0.044840] mc: Linux media interface: v0.10
[ 0.044896] videodev: Linux video capture interface: v2.00
[ 0.045506] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000
[ 0.046025] Advanced Linux Sound Architecture Driver Initialized.
[ 0.047249] clocksource: Switched to clocksource arch_sys_counter
[ 0.059977] NET: Registered protocol family 2
[ 0.060778] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.060818] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.060842] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.060864] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.061009] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.061062] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.061365] NET: Registered protocol family 1
[ 0.063909] Initialise system trusted keyrings
[ 0.064295] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.099513] Key type asymmetric registered
[ 0.099537] Asymmetric key parser 'x509' registered
[ 0.099642] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 0.099655] io scheduler mq-deadline registered
[ 0.099663] io scheduler kyber registered
[ 0.100783] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.102666] OF: /soc/pinctrl@1c20800: could not get #clock-cells for /soc/rtc@1c20400
[ 0.104690] OF: /soc/pinctrl@1c20800: could not get #clock-cells for /soc/rtc@1c20400
[ 0.104720] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.178503] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.180981] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[ 0.182105] printk: console [ttyS0] disabled
[ 0.202408] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 37, base_baud = 1500000) is a U6_16550A
[ 0.767645] printk: console [ttyS0] enabled
[ 0.797752] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[ 0.809196] spi-nand spi0.0: Winbond SPI NAND was found.
[ 0.814523] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[ 0.823424] 4 fixed-partitions partitions found on MTD device spi0.0
[ 0.829871] Creating 4 MTD partitions on "spi0.0":
[ 0.834672] 0x000000000000-0x000000100000 : "uboot"
[ 0.842431] 0x000000100000-0x000000120000 : "dtb"
[ 0.848348] 0x000000120000-0x000000620000 : "kernel"
[ 0.854481] random: fast init done
[ 0.867675] 0x000000620000-0x000008000000 : "rootfs"
[ 1.032206] random: crng init done
[ 1.115094] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.121697] ehci-platform: EHCI generic platform driver
[ 1.127327] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 1.132967] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 1.141132] ehci-platform 1c1a000.usb: irq 27, io mem 0x01c1a000
[ 1.167270] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 1.174445] hub 1-0:1.0: USB hub found
[ 1.178384] hub 1-0:1.0: 1 port detected
[ 1.183021] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.189341] ohci-platform: OHCI generic platform driver
[ 1.194922] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 1.201642] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 1.209748] ohci-platform 1c1a400.usb: irq 28, io mem 0x01c1a400
[ 1.282287] hub 2-0:1.0: USB hub found
[ 1.286117] hub 2-0:1.0: 1 port detected
[ 1.293451] usbcore: registered new interface driver usb-storage
[ 1.300826] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.310171] sun6i-rtc 1c20400.rtc: registered as rtc0
[ 1.315234] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.319977] i2c /dev entries driver
[ 1.324934] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[ 1.333951] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[ 1.345904] ov5640 1-003c: ov5640_read_reg: error: reg=300a
[ 1.351552] ov5640 1-003c: ov5640_check_chip_id: failed to read chip identifier
[ 1.361528] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.370326] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 1.407014] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.414350] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[ 1.450992] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[ 1.459235] usbcore: registered new interface driver usbhid
[ 1.464811] usbhid: USB HID core driver
[ 1.468900] sunxi-cedar 1c0e000.video-codec: sunxi cedar version 0.01alpha
[ 1.475948] sunxi-cedar 1c0e000.video-codec: cedar-ve the get irq is 22
[ 1.485194] sun4i-codec 1c22c00.codec: ASoC: codec-analog@01c23000 not registered
[ 1.492822] sun4i-codec 1c22c00.codec: Failed to register our card
[ 1.500382] Initializing XFRM netlink socket
[ 1.504741] NET: Registered protocol family 17
[ 1.509863] Registering SWP/SWPB emulation handler
[ 1.515630] Loading compiled-in X.509 certificates
[ 1.529682] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.541263] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.547028] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.556527] hub 3-0:1.0: USB hub found
[ 1.560537] hub 3-0:1.0: 1 port detected
[ 1.566872] debugfs: Directory '1c22c00.codec' with parent 'V3s Audio Codec' already present!
[ 1.575553] sun4i-codec 1c22c00.codec: ASoC: Failed to create component debugfs directory: -17
[ 1.586016] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.595110] ubi0: attaching mtd3
[ 1.608575] mmc1: new high speed SDIO card at address 0001
[ 2.295626] ubi0: scanning is finished
[ 2.339218] ubi0: volume 0 ("rootfs") re-sized from 732 to 951 LEBs
[ 2.346329] ubi0: attached mtd3 (name "rootfs", size 121 MiB)
[ 2.352155] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 2.359037] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 2.365816] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 2.372779] ubi0: good PEBs: 975, bad PEBs: 0, corrupted PEBs: 0
[ 2.378788] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 2.386011] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 250715841
[ 2.395053] ubi0: available PEBs: 0, total reserved PEBs: 975, PEBs reserved for bad PEB handling: 20
[ 2.404336] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:09:36 UTC (576)
[ 2.412645] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 2.420646] ubi0: background thread "ubi_bgt0d" started, PID 96
[ 2.443243] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 2.450024] vcc2v8: disabling
[ 2.453002] vcc1v8: disabling
[ 2.455970] vcc5v0: disabling
[ 2.458983] ALSA device list:
[ 2.461953] #0: V3s Audio Codec
[ 2.466019] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 2.474756] cfg80211: failed to load regulatory.db
[ 2.495112] UBIFS (ubi0:0): Mounting in unauthenticated mode
[ 2.502461] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 102
[ 2.599273] UBIFS (ubi0:0): start fixing up free space
[ 9.097342] UBIFS (ubi0:0): free space fixup complete
[ 9.150861] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 9.158359] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 9.168281] UBIFS (ubi0:0): FS size: 91549696 bytes (87 MiB, 721 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[ 9.178713] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 9.184545] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 4F273E94-5E12-4ACB-937A-32E33D6F045A, small LPT model
[ 9.208589] VFS: Mounted root (ubifs filesystem) on device 0:12.
[ 9.220587] devtmpfs: mounted
[ 9.226000] Freeing unused kernel memory: 1024K
[ 9.232269] Run /sbin/init as init process
mount: you must be root
mount: you must be root
mkdir: can't create directory '/dev/pts': Permission denied
mkdir: can't create directory '/dev/shm': Permission denied
mount: you must be root
hostname: sethostname: Operation not permitted
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator... done.
Starting haveged: haveged: listening socket at 3
OK
Starting network: ip: RTNETLINK answers: Operation not permitted
ip: SIOCSIFFLAGS: Operation not permitted
FAIL
Starting dhcpcd...
no valid interfaces found
no interfaces have a carrier
forked to background, child pid 148
Starting dropbear sshd: FAIL
can't open /dev/ttyS0: Permission denied
can't open /dev/ttyS0: Permission denied
can't open /dev/ttyS0: Permission denied
can't open /dev/ttyS0: Permission denied
can't open /dev/ttyS0: Permission denied
can't open /dev/ttyS0: Permission denied
can't open /dev/ttyS0: Permission denied
can't open /dev/ttyS0: Permission denied
离线
已经解决了 在bin目录执行 sudo chown root * -R 解决了这个问题
离线