Zero启动时,提示没有权限。

image ![](file:///C:\Users\Administrator\Documents\Tencent Files\441993361\Image\Group\Image1\L]7[[2%)E62OXN$8E{}`3U4.png)

麻烦看看,是啥问题。

U-Boot 2017.01-rc2-00073-gdd6e8740dc-dirty (May 22 2019 - 22:40:38 -0400) Allwinner Technology

CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: No ethernet found.
starting USB…
No controllers found
Hit any key to stop autoboot: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK

Flattened Device Tree blob at 41800000

Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dff206 … OK

Starting kernel …

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.10.15-licheepi-zero+ (tony@edsnPay) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02) ) #1 SMP Sat May 25 20:57:57 EDT 2019
[ 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] percpu: Embedded 14 pages/cpu @c3f63000 s24716 r8192 d24436 u57344
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 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: 55152K/65536K available (6144K kernel code, 199K rwdata, 1412K rodata, 1024K init, 262K bss, 10384K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc4800000 - 0xff800000 ( 944 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a31f00 ( 200 kB)
[ 0.000000] .bss : 0xc0a33000 - 0xc0a7484c ( 263 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000018] Switching to timer-based delay loop, resolution 41ns
[ 0.000140] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000344] Console: colour dummy device 80x30
[ 0.000379] Calibrating delay loop (skipped), value calculated using timer frequency… 48.00 BogoMIPS (lpj=240000)
[ 0.000393] pid_max: default: 32768 minimum: 301
[ 0.000527] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000539] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001233] CPU: Testing write buffer coherency: ok
[ 0.001633] /cpus/cpu@0 missing clock-frequency property
[ 0.001657] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002011] Setting up static identity map for 0x40100000 - 0x40100058
[ 0.002750] smp: Bringing up secondary CPUs …
[ 0.002767] smp: Brought up 1 node, 1 CPU
[ 0.002777] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002784] CPU: All CPU(s) started in SVC mode.
[ 0.003565] devtmpfs: initialized
[ 0.006322] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.006615] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.006641] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.006798] pinctrl core: initialized pinctrl subsystem
[ 0.007800] NET: Registered protocol family 16
[ 0.008253] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009472] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.009489] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.020843] SCSI subsystem initialized
[ 0.021124] usbcore: registered new interface driver usbfs
[ 0.021186] usbcore: registered new interface driver hub
[ 0.021280] usbcore: registered new device driver usb
[ 0.021520] pps_core: LinuxPPS API ver. 1 registered
[ 0.021529] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.021551] PTP clock support registered
[ 0.021752] Advanced Linux Sound Architecture Driver Initialized.
[ 0.023547] clocksource: Switched to clocksource arch_sys_counter
[ 0.033892] NET: Registered protocol family 2
[ 0.034529] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.034562] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.034585] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.034674] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.034719] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.034930] NET: Registered protocol family 1
[ 0.035540] RPC: Registered named UNIX socket transport module.
[ 0.035558] RPC: Registered udp transport module.
[ 0.035564] RPC: Registered tcp transport module.
[ 0.035569] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.037736] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.046692] NFS: Registering the id_resolver key type
[ 0.046744] Key type id_resolver registered
[ 0.046752] Key type id_legacy registered
[ 0.046801] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.051289] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.051311] io scheduler noop registered
[ 0.051318] io scheduler deadline registered
[ 0.051525] io scheduler cfq registered (default)
[ 0.055692] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.123167] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.126455] console [ttyS0] disabled
[ 0.146738] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 31, base_baud = 1500000) is a U6_16550A
[ 0.710704] console [ttyS0] enabled
[ 0.714903] [drm] Initialized
[ 0.720602] m25p80 spi32766.0: w25q128 (16384 Kbytes)
[ 0.725778] 4 cmdlinepart partitions found on MTD device spi32766.0
[ 0.732036] Creating 4 MTD partitions on “spi32766.0”:
[ 0.737206] 0x000000000000-0x000000100000 : “uboot”
[ 0.742736] 0x000000100000-0x000000110000 : “dtb”
[ 0.747939] 0x000000110000-0x000000510000 : “kernel”
[ 0.753277] 0x000000510000-0x000001000000 : “rootfs”
[ 0.759052] libphy: Fixed MDIO Bus: probed
[ 0.763395] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 0.769996] ehci-platform: EHCI generic platform driver
[ 0.775338] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
[ 0.781534] ohci-platform: OHCI generic platform driver
[ 0.787239] udc-core: couldn’t find an available UDC - added [g_cdc] to list of pending drivers
[ 0.796903] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 0.803785] sun6i-rtc 1c20400.rtc: RTC enabled
[ 0.808320] i2c /dev entries driver
[ 0.813079] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[ 0.822654] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 0.883592] sunxi-mmc 1c0f000.mmc: base:0xc48ae000 irq:23
[ 0.889922] usbcore: registered new interface driver usbhid
[ 0.895582] usbhid: USB HID core driver
[ 0.901079] NET: Registered protocol family 17
[ 0.905761] Key type dns_resolver registered
[ 0.910181] Registering SWP/SWPB emulation handler
[ 0.921275] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 0.929207] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 0.935053] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[ 0.946246] hub 1-0:1.0: USB hub found
[ 0.950117] hub 1-0:1.0: 1 port detected
[ 0.954895] using random self ethernet address
[ 0.959388] using random host ethernet address
[ 0.964947] usb0: HOST MAC 0e:35:4a:9d:2d:5c
[ 0.969272] usb0: MAC e6:14:e0:d7:22:a9
[ 0.973148] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 0.980733] g_cdc gadget: g_cdc ready
[ 0.984750] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:05 UTC (5)
[ 0.992904] vcc3v0: disabling
[ 0.995951] vcc5v0: disabling
[ 0.998918] ALSA device list:
[ 1.001880] No soundcards found.
[ 1.007353] random: fast init done
[ 1.049560] random: crng init done
[ 3.317001] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[ 3.324156] devtmpfs: mounted
[ 3.328300] Freeing unused kernel memory: 1024K
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 logging: OK
Starting mdev…
/etc/init.d/S10mdev: line 21: can’t create /proc/sys/kernel/hotplug: nonexistent directory
mdev: /sys/dev: No such file or directory
modprobe: can’t change directory to ‘/lib/modules’: No such file or directory
[ 6.253962] ------------[ cut here ]------------
[ 6.258623] WARNING: CPU: 0 PID: 69 at drivers/mtd/spi-nor/spi-nor.c:1182 spi_nor_write+0x138/0x1b4
[ 6.267750] Writing at offset 100 into a NOR page. Writing partial pages may decrease reliability and increase wear of NOR flash.
[ 6.267755] Modules linked in:
[ 6.282471] CPU: 0 PID: 69 Comm: start-stop-daem Not tainted 4.10.15-licheepi-zero+ #1
[ 6.290374] Hardware name: Allwinner sun8i Family
[ 6.295103] [] (unwind_backtrace) from [] (show_stack+0x10/0x14)
[ 6.302844] [] (show_stack) from [] (dump_stack+0x84/0x98)
[ 6.310065] [] (dump_stack) from [] (__warn+0xe8/0x100)
[ 6.317023] [] (__warn) from [] (warn_slowpath_fmt+0x38/0x48)
[ 6.324502] [] (warn_slowpath_fmt) from [] (spi_nor_write+0x138/0x1b4)
[ 6.332760] [] (spi_nor_write) from [] (mtd_writev+0xa4/0xec)
[ 6.340242] [] (mtd_writev) from [] (jffs2_flash_writev+0x414/0x4b0)
[ 6.348328] [] (jffs2_flash_writev) from [] (jffs2_write_dnode+0xd4/0x328)
[ 6.356933] [] (jffs2_write_dnode) from [] (jffs2_do_setattr+0x280/0x558)
[ 6.365450] [] (jffs2_do_setattr) from [] (jffs2_setattr+0x24/0x48)
[ 6.373449] [] (jffs2_setattr) from [] (notify_change+0x1c4/0x3d0)
[ 6.381365] [] (notify_change) from [] (do_truncate+0x80/0xa4)
[ 6.388932] [] (do_truncate) from [] (path_openat+0x5f4/0xf30)
[ 6.396496] [] (path_openat) from [] (do_filp_open+0x60/0xc4)
[ 6.403972] [] (do_filp_open) from [] (do_sys_open+0x110/0x1c0)
[ 6.411624] [] (do_sys_open) from [] (ret_fast_syscall+0x0/0x3c)
[ 6.419397] —[ end trace 908c57608a554286 ]—
Initializing random number generator… done.
Starting network: ip: RTNETLINK answers: Operation not permitted
ip: SIOCSIFFLAGS: Operation not permitted
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/console: Permission denied