https://whycan.cn/t_1417.html#p7175
stdout-path 改了吗?
嗯嗯,改了的。我以前用SD卡启动时,从uart0改为uart2是正常的,用spi flash 启动时修改之后就会卡在上面显示的那个地方
多谢晕哥,16M和32M都成功启动了。
还有个问题,我想把默认的打印串口由UART0换为UART2,结果修改了之后就启动不了,下面是打印信息:
U-Boot SPL 2017.01-rc2 (Sep 05 2019 - 00:14:15)
DRAM: 64 MiB
Trying to boot from sunxi SPI
U-Boot 2017.01-rc2 (Sep 05 2019 - 00:14:15 -0700) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
U-Boot 2017.01-rc2 (Sep 05 2019 - 00:14:15 -0700) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 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 42dfff75 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.13.16-licheepi-zero (han@ubuntu) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)) #1 SMP Mon Sep 2 01:48:47 PDT 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 with Dock
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu @c3f5f000 s33868 r8192 d23476 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS2,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: 55080K/65536K available (6144K kernel code, 217K rwdata, 1456K rodata, 1024K init, 264K bss, 10456K 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 - 0xc0a367c0 ( 218 kB)
[ 0.000000] .bss : 0xc0a3daf0 - 0xc0a7fcac ( 265 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 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] arch_timer: 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000020] Switching to timer-based delay loop, resolution 41ns
[ 0.000186] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000413] Console: colour dummy device 80x30
[ 0.000448] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000462] pid_max: default: 32768 minimum: 301
[ 0.000588] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000602] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001189] CPU: Testing write buffer coherency: ok
[ 0.001552] /cpus/cpu@0 missing clock-frequency property
[ 0.001575] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002007] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002181] Hierarchical SRCU implementation.
[ 0.002686] smp: Bringing up secondary CPUs ...
[ 0.002701] smp: Brought up 1 node, 1 CPU
[ 0.002710] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002717] CPU: All CPU(s) started in SVC mode.
[ 0.003478] devtmpfs: initialized
[ 0.006595] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.006893] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.006921] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007087] pinctrl core: initialized pinctrl subsystem
[ 0.007920] random: get_random_u32 called from bucket_table_alloc+0xf4/0x244 with crng_init=0
[ 0.008057] NET: Registered protocol family 16
[ 0.008509] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009615] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.009632] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.023092] SCSI subsystem initialized
[ 0.023371] usbcore: registered new interface driver usbfs
[ 0.023436] usbcore: registered new interface driver hub
[ 0.023539] usbcore: registered new device driver usb
[ 0.023802] pps_core: LinuxPPS API ver. 1 registered
[ 0.023811] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.023833] PTP clock support registered
[ 0.024061] Advanced Linux Sound Architecture Driver Initialized.
[ 0.025881] clocksource: Switched to clocksource arch_sys_counter
[ 0.036241] NET: Registered protocol family 2
[ 0.036809] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.036842] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.036866] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.036987] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037034] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037237] NET: Registered protocol family 1
[ 0.037819] RPC: Registered named UNIX socket transport module.
[ 0.037836] RPC: Registered udp transport module.
[ 0.037842] RPC: Registered tcp transport module.
[ 0.037849] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.039903] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.048772] NFS: Registering the id_resolver key type
[ 0.048821] Key type id_resolver registered
[ 0.048828] Key type id_legacy registered
[ 0.048871] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.050348] random: fast init done
[ 0.053161] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.053182] io scheduler noop registered
[ 0.053189] io scheduler deadline registered
[ 0.053425] io scheduler cfq registered (default)
[ 0.053437] io scheduler mq-deadline registered
[ 0.053445] io scheduler kyber registered
[ 0.057733] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.126386] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.149781] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[ 0.171330] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 37, base_baud = 1500000) is a U6_16550A
[ 0.765307] console [ttyS2] enabled
[ 0.773104] m25p80 spi32766.0: mx25l12805d (16384 Kbytes)
[ 0.778618] spi32766.0: parser cmdlinepart: 4
[ 0.782974] 4 cmdlinepart partitions found on MTD device spi32766.0
[ 0.789258] Creating 4 MTD partitions on "spi32766.0":
[ 0.794400] 0x000000000000-0x000000100000 : "uboot"
[ 0.799911] 0x000000100000-0x000000110000 : "dtb"
[ 0.805016] 0x000000110000-0x000000510000 : "kernel"
[ 0.810451] 0x000000510000-0x000001000000 : "rootfs"
[ 0.816250] libphy: Fixed MDIO Bus: probed
[ 0.820869] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.826750] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.832458] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[ 0.838642] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 0.844308] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 0.851560] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 0.857232] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 0.864444] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 0.869416] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 0.876416] libphy: stmmac: probed
[ 0.881661] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.888318] ehci-platform: EHCI generic platform driver
[ 0.893839] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.899523] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 0.907457] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 0.935901] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.943172] hub 1-0:1.0: USB hub found
[ 0.947124] hub 1-0:1.0: 1 port detected
[ 0.951637] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.957935] ohci-platform: OHCI generic platform driver
[ 0.963476] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 0.970218] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 0.978169] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 1.051014] hub 2-0:1.0: USB hub found
[ 1.054833] hub 2-0:1.0: 1 port detected
[ 1.062467] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 1.072015] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.080886] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 1.087794] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.092328] i2c /dev entries driver
[ 1.097213] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[ 1.106700] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.175926] sunxi-mmc 1c0f000.mmc: base:0xc48d1000 irq:23
[ 1.235913] sunxi-mmc 1c10000.mmc: base:0xc48d5000 irq:24
[ 1.242299] usbcore: registered new interface driver usbhid
[ 1.247950] usbhid: USB HID core driver
[ 1.253365] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[ 1.261402] sun4i-codec 1c22c00.codec: Failed to register our card
[ 1.268848] NET: Registered protocol family 17
[ 1.273429] Key type dns_resolver registered
[ 1.277967] Registering SWP/SWPB emulation handler
[ 1.291484] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.302940] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.308795] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.317887] hub 3-0:1.0: USB hub found
[ 1.321740] hub 3-0:1.0: 1 port detected
[ 1.327010] using random self ethernet address
[ 1.331499] using random host ethernet address
[ 1.337132] usb0: HOST MAC ae:0f:e9:21:d0:9d
[ 1.341453] usb0: MAC 42:d5:68:5d:d6:d9
[ 1.345331] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.352906] g_cdc gadget: g_cdc ready
[ 1.359095] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.367698] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:06 UTC (6)
[ 1.375957] vcc5v0: disabling
[ 1.378933] ALSA device list:
[ 1.381895] #0: V3s Audio Codec
[ 1.425223] random: crng init done
[ 3.698237] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[ 3.705255] devtmpfs: mounted
[ 3.709496] Freeing unused kernel memory: 1024K
Starting logging: OK
Starting mdev...
modprobe: can't change directory to '/lib/modules': No such file or directory
Initializing random number generator... done.
Starting network: OK
U-Boot SPL 2017.01-rc2 (Aug 29 2019 - 20:11:47)
DRAM: 64 MiB
Trying to boot from sunxi SPI
U-Boot 2017.01-rc2 (Aug 29 2019 - 20:11:47 -0700) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
*** Warning - bad CRC, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
U-Boot 2017.01-rc2 (Aug 29 2019 - 20:11:47 -0700) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
*** Warning - bad CRC, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
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 42dfff82 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.2.0-licheepi-zero (han@ubuntu) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)) #3 SMP Thu Aug 29 03:27:06 PDT 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 with Dock
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu s34508 r8192 d22836 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 15883
[ 0.000000] Kernel command line: console=ttyS2,115200 earlyprintk panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2
[ 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: 53544K/64036K available (6144K kernel code, 301K rwdata, 1676K rodata, 1024K init, 252K bss, 10492K 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] 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 (virt).
[ 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.000213] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000448] Console: colour dummy device 80x30
[ 0.000505] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000522] pid_max: default: 32768 minimum: 301
[ 0.000688] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.000705] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001532] CPU: Testing write buffer coherency: ok
[ 0.002046] /cpus/cpu@0 missing clock-frequency property
[ 0.002072] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002890] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.003114] rcu: Hierarchical SRCU implementation.
[ 0.003675] smp: Bringing up secondary CPUs ...
[ 0.003698] smp: Brought up 1 node, 1 CPU
[ 0.003708] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.003715] CPU: All CPU(s) started in SVC mode.
[ 0.004809] devtmpfs: initialized
[ 0.008416] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.008741] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.008775] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.009026] pinctrl core: initialized pinctrl subsystem
[ 0.010189] NET: Registered protocol family 16
[ 0.010741] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.012013] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.012031] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.036184] SCSI subsystem initialized
[ 0.036361] usbcore: registered new interface driver usbfs
[ 0.036416] usbcore: registered new interface driver hub
[ 0.036527] usbcore: registered new device driver usb
[ 0.036762] mc: Linux media interface: v0.10
[ 0.036803] videodev: Linux video capture interface: v2.00
[ 0.037008] Advanced Linux Sound Architecture Driver Initialized.
[ 0.038352] clocksource: Switched to clocksource arch_sys_counter
[ 0.051326] NET: Registered protocol family 2
[ 0.052161] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.052199] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.052224] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.052247] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.052399] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.052454] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.052773] NET: Registered protocol family 1
[ 0.054694] Initialise system trusted keyrings
[ 0.055072] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.092765] Key type asymmetric registered
[ 0.092785] Asymmetric key parser 'x509' registered
[ 0.092907] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 0.092920] io scheduler mq-deadline registered
[ 0.092926] io scheduler kyber registered
[ 0.093977] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.097818] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.170783] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.173212] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[ 0.194612] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[ 0.216472] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 37, base_baud = 1500000) is a U6_16550A
[ 0.729698] printk: console [ttyS2] enabled
[ 0.759125] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[ 0.770749] m25p80 spi0.0: mx25l25635e (32768 Kbytes)
[ 0.776375] 4 fixed-partitions partitions found on MTD device spi0.0
[ 0.782843] Creating 4 MTD partitions on "spi0.0":
[ 0.787642] 0x000000000000-0x000000100000 : "u-boot"
[ 0.793433] 0x000000100000-0x000000110000 : "dtb"
[ 0.798863] 0x000000110000-0x000000510000 : "kernel"
[ 0.804430] 0x000000510000-0x000002000000 : "rootfs"
[ 0.810453] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.816987] ehci-platform: EHCI generic platform driver
[ 0.822669] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.828358] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 0.836315] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 0.868322] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.875533] hub 1-0:1.0: USB hub found
[ 0.879490] hub 1-0:1.0: 1 port detected
[ 0.884083] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.890396] ohci-platform: OHCI generic platform driver
[ 0.895937] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 0.902663] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 0.910621] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 0.983457] hub 2-0:1.0: USB hub found
[ 0.987296] hub 2-0:1.0: 1 port detected
[ 0.994669] usbcore: registered new interface driver usb-storage
[ 1.001990] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.011313] sun6i-rtc 1c20400.rtc: registered as rtc0
[ 1.016375] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.021111] i2c /dev entries driver
[ 1.026038] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[ 1.035708] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.044430] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 1.080970] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.088212] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[ 1.125100] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[ 1.133285] usbcore: registered new interface driver usbhid
[ 1.138952] usbhid: USB HID core driver
[ 1.144658] sun4i-codec 1c22c00.codec: ASoC: codec-analog@01c23000 not registered
[ 1.152288] sun4i-codec 1c22c00.codec: Failed to register our card
[ 1.159700] Initializing XFRM netlink socket
[ 1.164013] NET: Registered protocol family 17
[ 1.169290] Registering SWP/SWPB emulation handler
[ 1.175267] Loading compiled-in X.509 certificates
[ 1.185454] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0x(ptrval)
[ 1.196147] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[ 1.212471] Console: switching to colour frame buffer device 100x30
[ 1.224912] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[ 1.233759] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.245220] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.251070] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.260452] hub 3-0:1.0: USB hub found
[ 1.264364] hub 3-0:1.0: 1 port detected
[ 1.270931] debugfs: Directory '1c22c00.codec' with parent 'V3s Audio Codec' already present!
[ 1.279610] sun4i-codec 1c22c00.codec: ASoC: Failed to create component debugfs directory: -17
[ 1.289778] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.298485] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:00:06 UTC (6)
[ 1.306713] vcc5v0: disabling
[ 1.309753] ALSA device list:
[ 1.312722] #0: V3s Audio Codec
[ 1.317090] Waiting for root device /dev/mtdblock3...
[ 5.723345] random: fast init done
停在这里了,,
U-Boot SPL 2017.01-rc2 (Aug 28 2019 - 00:04:52)
DRAM: 64 MiB
Trying to boot from sunxi SPI
U-Boot 2017.01-rc2 (Aug 28 2019 - 00:04:52 -0700) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: c2, 20, 19
*** Warning - spi_flash_probe() failed, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
U-Boot 2017.01-rc2 (Aug 28 2019 - 00:04:52 -0700) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: c2, 20, 19
*** Warning - spi_flash_probe() failed, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
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: unrecognized JEDEC id bytes: c2, 20, 19
Failed to initialize SPI flash at 0:0 (error -2)
No SPI flash selected. Please run `sf probe'
No SPI flash selected. Please run `sf probe'
=>
我试了试32M的MX25L25635F,用烧录器烧录的,结果连内核都启动不了
晕哥,这链接里没找到这个问题相关的说明呀
U-Boot SPL 2017.01-rc2-00073-gdd6e8740dc-dirty (Aug 25 2019 - 20:26:43)
DRAM: 64 MiB
Trying to boot from sunxi SPI
U-Boot 2017.01-rc2-00073-gdd6e8740dc-dirty (Aug 25 2019 - 20:26:43 -0700) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
U-Boot 2017.01-rc2-00073-gdd6e8740dc-dirty (Aug 25 2019 - 20:26:43 -0700) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 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 42df9000, end 42dff144 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.13.16-licheepi-zero (han@ubuntu) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)) #3 SMP Wed Aug 21 23:03:30 PDT 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 with Dock
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu @c3de5000 s33868 r8192 d23476 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 15883
[ 0.000000] Kernel command line: console=ttyS2,115200 earlyprintk panic=5 rootwait root=/dev/mtdblock3 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: 53576K/64036K available (6144K kernel code, 218K rwdata, 1460K rodata, 1024K init, 264K bss, 10460K 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 : 0xc4000000 - 0xff800000 ( 952 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc3e89000 ( 62 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 - 0xc0a36840 ( 219 kB)
[ 0.000000] .bss : 0xc0a3db14 - 0xc0a7fcec ( 265 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 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] arch_timer: 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.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000020] Switching to timer-based delay loop, resolution 41ns
[ 0.000189] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000424] Console: colour dummy device 80x30
[ 0.000459] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000473] pid_max: default: 32768 minimum: 301
[ 0.000599] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000612] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001204] CPU: Testing write buffer coherency: ok
[ 0.001574] /cpus/cpu@0 missing clock-frequency property
[ 0.001599] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002038] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002223] Hierarchical SRCU implementation.
[ 0.002733] smp: Bringing up secondary CPUs ...
[ 0.002746] smp: Brought up 1 node, 1 CPU
[ 0.002756] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002763] CPU: All CPU(s) started in SVC mode.
[ 0.003530] devtmpfs: initialized
[ 0.006808] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.007098] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.007123] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007305] pinctrl core: initialized pinctrl subsystem
[ 0.008138] random: get_random_u32 called from bucket_table_alloc+0xf4/0x244 with crng_init=0
[ 0.008269] NET: Registered protocol family 16
[ 0.008746] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009864] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.009882] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.023745] SCSI subsystem initialized
[ 0.024051] usbcore: registered new interface driver usbfs
[ 0.024120] usbcore: registered new interface driver hub
[ 0.024225] usbcore: registered new device driver usb
[ 0.024463] pps_core: LinuxPPS API ver. 1 registered
[ 0.024472] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.024493] PTP clock support registered
[ 0.024745] Advanced Linux Sound Architecture Driver Initialized.
[ 0.026600] clocksource: Switched to clocksource arch_sys_counter
[ 0.037375] NET: Registered protocol family 2
[ 0.037952] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.037987] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.038012] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.038141] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.038190] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.038403] NET: Registered protocol family 1
[ 0.038999] RPC: Registered named UNIX socket transport module.
[ 0.039018] RPC: Registered udp transport module.
[ 0.039023] RPC: Registered tcp transport module.
[ 0.039030] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.041094] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.050183] NFS: Registering the id_resolver key type
[ 0.050232] Key type id_resolver registered
[ 0.050239] Key type id_legacy registered
[ 0.050284] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.051807] random: fast init done
[ 0.054730] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.054752] io scheduler noop registered
[ 0.054761] io scheduler deadline registered
[ 0.054969] io scheduler cfq registered (default)
[ 0.054980] io scheduler mq-deadline registered
[ 0.054987] io scheduler kyber registered
[ 0.059445] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.128306] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.151679] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[ 0.173199] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 37, base_baud = 1500000) is a U6_16550A
[ 0.762354] console [ttyS2] enabled
[ 0.770467] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.775534] spi0.0: parser cmdlinepart: 0
[ 0.779650] spi0.0: parser ofpart: 4
[ 0.783223] 4 ofpart partitions found on MTD device spi0.0
[ 0.788726] Creating 4 MTD partitions on "spi0.0":
[ 0.793522] 0x000000000000-0x000000100000 : "u-boot"
[ 0.799953] 0x000000100000-0x000000110000 : "dtb"
[ 0.805885] 0x000000110000-0x000000510000 : "kernel"
[ 0.812236] 0x000000510000-0x000001000000 : "rootfs"
[ 0.818990] libphy: Fixed MDIO Bus: probed
[ 0.823594] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.829489] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.835197] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[ 0.841385] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 0.847081] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 0.854295] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 0.859964] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 0.867189] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 0.872147] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 0.879129] libphy: stmmac: probed
[ 0.884340] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.891003] ehci-platform: EHCI generic platform driver
[ 0.896534] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.902222] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 0.910175] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 0.936616] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.943763] hub 1-0:1.0: USB hub found
[ 0.947709] hub 1-0:1.0: 1 port detected
[ 0.952185] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.958484] ohci-platform: OHCI generic platform driver
[ 0.964055] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 0.970779] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 0.978700] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 1.051675] hub 2-0:1.0: USB hub found
[ 1.055495] hub 2-0:1.0: 1 port detected
[ 1.063112] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 1.072661] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.081641] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 1.088548] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.093089] i2c /dev entries driver
[ 1.098036] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[ 1.107560] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.176658] sunxi-mmc 1c0f000.mmc: base:0xc407d000 irq:23
[ 1.236632] sunxi-mmc 1c10000.mmc: base:0xc423d000 irq:24
[ 1.243094] usbcore: registered new interface driver usbhid
[ 1.248746] usbhid: USB HID core driver
[ 1.254197] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[ 1.262243] sun4i-codec 1c22c00.codec: Failed to register our card
[ 1.269799] NET: Registered protocol family 17
[ 1.274360] Key type dns_resolver registered
[ 1.278890] Registering SWP/SWPB emulation handler
[ 1.291408] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4400000
[ 1.302125] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[ 1.318455] Console: switching to colour frame buffer device 100x30
[ 1.330867] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[ 1.339502] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.350900] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.356744] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.365841] hub 3-0:1.0: USB hub found
[ 1.369819] hub 3-0:1.0: 1 port detected
[ 1.374859] using random self ethernet address
[ 1.379412] using random host ethernet address
[ 1.384872] usb0: HOST MAC ca:89:de:d3:77:49
[ 1.389297] usb0: MAC 2a:37:7d:77:6e:11
[ 1.393195] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.400719] g_cdc gadget: g_cdc ready
[ 1.407149] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.416778] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:06:01 UTC (361)
[ 1.425112] vcc3v3: disabling
[ 1.428150] vcc5v0: disabling
[ 1.431119] ALSA device list:
[ 1.434082] #0: V3s Audio Codec
[ 1.476604] random: crng init done
[ 3.745056] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[ 3.752127] devtmpfs: mounted
[ 3.756391] Freeing unused kernel memory: 1024K
Starting logging: OK
Starting mdev...
modprobe: can't change directory to '/lib/modules': No such file or directory
Initializing random number generator... done.
Starting network: OK
[ 1.441333] ALSA device list:
[ 1.444297] #0: V3s Audio Codec
[ 1.486850] random: crng init done
[ 2.016567] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[ 2.023668] devtmpfs: mounted
[ 2.027980] Freeing unused kernel memory: 1024K
Starting logging: OK
Starting mdev...
modprobe: can't change directory to '/lib/modules': No such file or directory
Initializing random number generator... done.
Starting network: OK
现在卡在这里了,,然后就没反应了
Han 说:还能这么玩 说:1. CONFIG_MTD_BLOCK 这个有没有勾选?
2. bootargs 加 root=/linuxrc
3. jffs2 文件系统有问题:CONFIG_MTD_BLOCK 应该在哪勾选呀?
我把CONFIG_BOOTARGS 里的root=31:03改为了root=/linuxrc,可是会卡在这个地方:[ 1.407647] Waiting for root device /linuxrc...1. root用建议我帖子里的那个,记得勾上 Caching block device access to MTD devices
2. 检查你的分区结构与分区格式
你帖子里那个root=/dev/mtdblock3,这个具体地址是怎么确定的呀,还是说我直接用这个就行呢
1. CONFIG_MTD_BLOCK 这个有没有勾选?
2. bootargs 加 root=/linuxrc
3. jffs2 文件系统有问题:[ 3.840645] jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
[ 3.849120] jffs2: empty_blocks 0, bad_blocks 0, c->nr_blocks 175
[ 3.855382] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -5
CONFIG_MTD_BLOCK 应该在哪勾选呀?
我把CONFIG_BOOTARGS 里的root=31:03改为了root=/linuxrc,可是会卡在这个地方:[ 1.407647] Waiting for root device /linuxrc...
Han 说:晕哥 说:我也没有这么用过,建议满足需求的前提下尽量用 sd nand,现在市场上可以选择的 sd nand 多着了,也不需要自己去驱动,省事。
公司画的板上只有GD5F1GQ4UAYIG 这个芯片的接口,唉,没办法改了
建议优先更换硬件方案, 软件一时半会估计难以搞定吧。
如果实在要这样玩, 先搞定 Linux 上驱动 GD5F1GQ4UAYIG:
1. TF卡启动系统, 能识别GD5F1GQ4UAYIG
2. TF卡上的 U-Boot 能识别并读取 GD5F1GQ4UAYIG
3. TF卡上的 SPL 能被 V3s 的 BROM 读取并运行。
我看晕哥那次回复说已经成功使用GD5F1GQ4UAYIG启动系统了,晕哥当时怎么烧录的呀
Han 说:晕哥 说:勾选 SPI NAND 驱动和配置设备树
我用sunxi-fel 烧录指令进行烧录后,启动后没有任何打印输出,然后发现用sudo sunxi-fel spiflash-info 检测flash信息时,就显示“No SPI flash detected.”
只是说 linux 最新版本支持 spi nand,并没有说 sunxi-fel 支持 spi nand,
有一个比较曲线的办法解决这个问题,就是用 bsp 的 uboot, 他支持 spi nand的启动。
晕哥,上次在QQ群你发给我一个链接,说是里面有支持GD5F1GQ4UAYIG启动的镜像,是这个“Run_V3s_LicheePi0.bat”文件吗,这个文件应该怎么烧录到板子里
Han 说:晕哥 说:勾选 SPI NAND 驱动和配置设备树
我用sunxi-fel 烧录指令进行烧录后,启动后没有任何打印输出,然后发现用sudo sunxi-fel spiflash-info 检测flash信息时,就显示“No SPI flash detected.”
只是说 linux 最新版本支持 spi nand,并没有说 sunxi-fel 支持 spi nand,
有一个比较曲线的办法解决这个问题,就是用 bsp 的 uboot, 他支持 spi nand的启动。
我看荔枝派官网里介绍,BSP和linux都是用的主线uboot
"主线Uboot + Bsp 内核
如果不想被坑卓坑, 又想比较好地使用摄像头,可以使用主线Uboot加Bsp内核方案, 系统配置为fex文件配置。
主线uboot: https://github.com/Lichee-Pi/u-boot
bsp内核即前面的lichee linux: http://pan.baidu.com/s/1eRJrViy
主线Uboot + 主线linux
如果想使用主线的特性,可以使用 主线Uboot + 主线linux 开发环境。系统配置为dts设备树配置。
主线uboot: https://github.com/Lichee-Pi/u-boot
主线linux: https://github.com/Lichee-Pi/linux"
这应该怎么使用bsp的Uboot呀
Han 说:晕哥 说:四楼
加上之后,编译报了错误:
Reference to non-existent node or label "spi0_pins_a"
怎么添加这个引用呢sun8i-v3s.dtsi:
晕哥,你在Zero开发板上焊接GD5F1GQ4UAYIG的时候,除了焊接之外还有没有做什么改动呀?我焊接了之后,用dd指令检测不到flash.
No SPI flash detected.
U-Boot 2017.01-rc2-00073-gdd6e8740dc-dirty (Aug 12 2019 - 00:59:12 -0700) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 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 42df9000, end 42dff062 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.13.16-licheepi-zero (han@ubuntu) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)) #2 SMP Tue Aug 6 22:03:48 PDT 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 with Dock
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33868 r8192 d23476 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 15883
[ 0.000000] Kernel command line: console=ttyS2,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: 53580K/64036K available (6144K kernel code, 217K rwdata, 1456K rodata, 1024K init, 264K bss, 10456K 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 : 0xc4000000 - 0xff800000 ( 952 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc3e89000 ( 62 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 - 0xc0a367c0 ( 218 kB)
[ 0.000000] .bss : 0xc0a3daf0 - 0xc0a7fcac ( 265 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 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] arch_timer: 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.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000019] Switching to timer-based delay loop, resolution 41ns
[ 0.000185] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000414] Console: colour dummy device 80x30
[ 0.000448] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000462] pid_max: default: 32768 minimum: 301
[ 0.000588] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000603] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001202] CPU: Testing write buffer coherency: ok
[ 0.001573] /cpus/cpu@0 missing clock-frequency property
[ 0.001595] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002035] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002219] Hierarchical SRCU implementation.
[ 0.002726] smp: Bringing up secondary CPUs ...
[ 0.002739] smp: Brought up 1 node, 1 CPU
[ 0.002748] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002755] CPU: All CPU(s) started in SVC mode.
[ 0.003515] devtmpfs: initialized
[ 0.006748] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.007013] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.007042] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007203] pinctrl core: initialized pinctrl subsystem
[ 0.008051] random: get_random_u32 called from bucket_table_alloc+0xf4/0x244 with crng_init=0
[ 0.008190] NET: Registered protocol family 16
[ 0.008642] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009759] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.009775] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.023371] SCSI subsystem initialized
[ 0.023654] usbcore: registered new interface driver usbfs
[ 0.023741] usbcore: registered new interface driver hub
[ 0.023843] usbcore: registered new device driver usb
[ 0.024092] pps_core: LinuxPPS API ver. 1 registered
[ 0.024103] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.024128] PTP clock support registered
[ 0.024342] Advanced Linux Sound Architecture Driver Initialized.
[ 0.026198] clocksource: Switched to clocksource arch_sys_counter
[ 0.037100] NET: Registered protocol family 2
[ 0.037668] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.037701] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.037725] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.037859] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037905] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.038143] NET: Registered protocol family 1
[ 0.038740] RPC: Registered named UNIX socket transport module.
[ 0.038760] RPC: Registered udp transport module.
[ 0.038766] RPC: Registered tcp transport module.
[ 0.038773] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.040825] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.049838] NFS: Registering the id_resolver key type
[ 0.049888] Key type id_resolver registered
[ 0.049895] Key type id_legacy registered
[ 0.049940] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.051450] random: fast init done
[ 0.054226] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.054247] io scheduler noop registered
[ 0.054255] io scheduler deadline registered
[ 0.054478] io scheduler cfq registered (default)
[ 0.054490] io scheduler mq-deadline registered
[ 0.054498] io scheduler kyber registered
[ 0.058892] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.128295] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.151716] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[ 0.173273] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 37, base_baud = 1500000) is a U6_16550A
[ 0.767298] console [ttyS2] enabled
[ 0.775255] m25p80 spi32766.0: mx25l12805d (16384 Kbytes)
[ 0.780773] spi32766.0: parser cmdlinepart: 4
[ 0.785129] 4 cmdlinepart partitions found on MTD device spi32766.0
[ 0.791416] Creating 4 MTD partitions on "spi32766.0":
[ 0.796576] 0x000000000000-0x000000100000 : "uboot"
[ 0.802051] 0x000000100000-0x000000110000 : "dtb"
[ 0.807252] 0x000000110000-0x000000510000 : "kernel"
[ 0.812623] 0x000000510000-0x000001000000 : "rootfs"
[ 0.818480] libphy: Fixed MDIO Bus: probed
[ 0.823087] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.828973] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.834682] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[ 0.840893] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 0.846598] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 0.853813] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 0.859484] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 0.866710] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 0.871667] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 0.878635] libphy: stmmac: probed
[ 0.883936] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.890597] ehci-platform: EHCI generic platform driver
[ 0.896150] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.901845] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 0.909789] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 0.936216] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.943484] hub 1-0:1.0: USB hub found
[ 0.947428] hub 1-0:1.0: 1 port detected
[ 0.951974] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.958273] ohci-platform: OHCI generic platform driver
[ 0.963839] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 0.970570] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 0.978540] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 1.051363] hub 2-0:1.0: USB hub found
[ 1.055185] hub 2-0:1.0: 1 port detected
[ 1.062814] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 1.072363] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.081307] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 1.088217] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.092759] i2c /dev entries driver
[ 1.097614] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[ 1.107118] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.176246] sunxi-mmc 1c0f000.mmc: base:0xc407d000 irq:23
[ 1.236225] sunxi-mmc 1c10000.mmc: base:0xc423d000 irq:24
[ 1.242628] usbcore: registered new interface driver usbhid
[ 1.248277] usbhid: USB HID core driver
[ 1.253757] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[ 1.261802] sun4i-codec 1c22c00.codec: Failed to register our card
[ 1.269299] NET: Registered protocol family 17
[ 1.273874] Key type dns_resolver registered
[ 1.278410] Registering SWP/SWPB emulation handler
[ 1.290913] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4400000
[ 1.301626] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[ 1.317959] Console: switching to colour frame buffer device 100x30
[ 1.330380] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[ 1.338974] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.350356] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.356123] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.365379] hub 3-0:1.0: USB hub found
[ 1.369366] hub 3-0:1.0: 1 port detected
[ 1.374491] using random self ethernet address
[ 1.379067] using random host ethernet address
[ 1.384614] usb0: HOST MAC 6a:80:a8:63:43:bf
[ 1.389081] usb0: MAC ca:5e:57:4b:3f:da
[ 1.392965] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.400485] g_cdc gadget: g_cdc ready
[ 1.406917] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.416410] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:06:47 UTC (407)
[ 1.424747] vcc3v3: disabling
[ 1.427788] vcc5v0: disabling
[ 1.430757] ALSA device list:
[ 1.433721] #0: V3s Audio Codec
[ 1.481663] random: crng init done
[ 3.840645] jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
[ 3.849120] jffs2: empty_blocks 0, bad_blocks 0, c->nr_blocks 175
[ 3.855382] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -5
[ 3.862915] Please append a correct "root=" boot option; here are the available partitions:
[ 3.871285] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[ 3.879629] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero #2
[ 3.886839] Hardware name: Allwinner sun8i Family
[ 3.891579] [<c010e5cc>] (unwind_backtrace) from [<c010b2b0>] (show_stack+0x10/0x14)
[ 3.899325] [<c010b2b0>] (show_stack) from [<c06787dc>] (dump_stack+0x84/0x98)
[ 3.906549] [<c06787dc>] (dump_stack) from [<c011b788>] (panic+0xdc/0x248)
[ 3.913427] [<c011b788>] (panic) from [<c09011d0>] (mount_block_root+0x188/0x25c)
[ 3.920906] [<c09011d0>] (mount_block_root) from [<c09013c4>] (mount_root+0x120/0x128)
[ 3.928816] [<c09013c4>] (mount_root) from [<c090151c>] (prepare_namespace+0x150/0x194)
[ 3.936814] [<c090151c>] (prepare_namespace) from [<c0900e20>] (kernel_init_freeable+0x1bc/0x1cc)
[ 3.945679] [<c0900e20>] (kernel_init_freeable) from [<c068b6b4>] (kernel_init+0x8/0x108)
[ 3.953852] [<c068b6b4>] (kernel_init) from [<c0107638>] (ret_from_fork+0x14/0x3c)
[ 3.961424] Rebooting in 5 seconds..
我的是Zero 16M spinor启动,会一直重启,有大神知道是为什么呀
焊上 GD5F1GQ4UAYIG 到荔枝派zero板子, 一切正常:
晕哥, sun8i-v3s-licheepi-zero.dts 里应该怎么改呀