您尚未登录。

楼主 # 2025-07-15 07:13:39

yjkimmy
会员
注册时间: 2024-01-03
已发帖子: 2
积分: 17

V3S "Trying to boot from MMC1"

早上好。我有一个关于 Licheepi Zero (V3S) 开发板启动的问题。我正在使用谷歌翻译,所以我的句子可能听起来有点别扭。感谢您的理解。

我已经按照 Sipeed 的官方说明编译了主线 uboot、Linux 内核和 buildroot。当我将其刷入 SD 卡并在 Licheepi Zero Dock(黑色 PCB 板)上测试时,一切正常。我测试了 Wi-Fi、以太网、音频和 GPIO 切换。

然而,当我在 Licheepi Zero(蓝色 PCB 板)上使用同一张 SD 卡时,它卡在了下面的日志信息处。大概 100 次中有 1 次,它不知怎么地启动成功了,并且像 Dock 版一样完美运行,但我仍然不知道是什么触发了成功启动。

U-Boot SPL 2017.01-rc2-00057-g32ab1804cd-dirty (Jul 12 2025 - 15:01:00)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2-00057-g32ab1804cd-dirty (Jul 12 2025 - 15:01:00 +0900) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB

我有两个 Licheepi Zero Dock 板和三个普通的 Licheepi Zero。我用多张 SD 卡和不同的数据线在所有开发板上进行了测试,但结果都一样。

我还刷入了 Sipeed 的官方 dd 镜像,测试过可以在 Dock 上运行,但它仍然无法在普通的 Licheepi Zero 上运行。

有人能解释一下为什么会发生这种情况吗?



English: Good morning. I have a question regarding booting Licheepi Zero (V3S) development board.

I've compiled the mainline uboot, linux kernel and buildroot following the official instruction from Sipeed. When I flashed it into a SD card and tested it on the Licheepi Zero Dock (the black PCB), everything works perfectly. I tested Wifi, Ethernet, audio and GPIO toggling.

However when I used the same SD card on the Licheepi Zero (the blue PCB), it stucks at the below log message. Like 1 out of 100 times, it somehow booted up and worked perfectly just like the dock version, however I still have no idea what triggers successful bootup.

U-Boot SPL 2017.01-rc2-00057-g32ab1804cd-dirty (Jul 12 2025 - 15:01:00)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2-00057-g32ab1804cd-dirty (Jul 12 2025 - 15:01:00 +0900) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB

I have two Licheepi Zero Dock and three normal Licheepi Zero. I tested on all boards with several SD cards and different data cables, but the result is the same. 

I also flashed the official dd images from Sipeed, which was tested to be run on Dock, but again it didn't run on the normal Licheepi Zero.

Can someone explain me why this is happening?

离线

#1 2025-07-15 09:54:10

memory
会员
注册时间: 2021-08-11
已发帖子: 635
积分: 607

Re: V3S "Trying to boot from MMC1"

可能是TF座子上的电压差异,TF卡启动瞬时比较耗电,拉低了VCC-3V3,VCC-1V8等,导致不能正常启动,你到蓝色板子上加大电容试一试?

离线

楼主 #2 昨天 07:33:53

yjkimmy
会员
注册时间: 2024-01-03
已发帖子: 2
积分: 17

Re: V3S "Trying to boot from MMC1"

memory 说:

可能是TF座子上的电压差异,TF卡启动瞬时比较耗电,拉低了VCC-3V3,VCC-1V8等,导致不能正常启动,你到蓝色板子上加大电容试一试?

感谢您的解释。在更换蓝板上的电容之前,我尝试通过 5V 接口供电,而不是 Micro USB 接口。现在它启动正常了。我之前没有意识到电压不足会导致启动过程卡住。

如果您不介意的话,能否告诉我在哪里可以检查 V3S 基座和蓝板之间的电源问题?从 Sipeed 提供的原理图来看,两者的供电方式似乎相同。我还附上了我正在参考的原理图文档,以确保我没有下载错误/旧的文档。

lichee_zero-new.pdf

lichee_zero(Schematic)(1).pdf

U-Boot SPL 2017.01-rc2-00057-g32ab1804cd-dirty (Jul 12 2025 - 15:01:00)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2-00057-g32ab1804cd-dirty (Jul 12 2025 - 15:01:00 +0900) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2-00057-g32ab1804cd-dirty (Jul 12 2025 - 15:01:00 +0900) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
265 bytes read in 14 ms (17.6 KiB/s)
## Executing script at 41900000
reading zImage
4324136 bytes read in 220 ms (18.7 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
12100 bytes read in 25 ms (472.7 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfff43 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-zero+ (yjkim@yjkim-asus) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05)) #18 SMP Sat Jul 12 16:05:38 KST 2025
[    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: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10
[    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: 55044K/65536K available (6144K kernel code, 307K rwdata, 1740K 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+0x304/0x490 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.000021] Switching to timer-based delay loop, resolution 41ns
[    0.000214] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000453] Console: colour dummy device 80x30
[    0.000509] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000527] pid_max: default: 32768 minimum: 301
[    0.000685] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000701] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001517] CPU: Testing write buffer coherency: ok
[    0.002047] /cpus/cpu@0 missing clock-frequency property
[    0.002073] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002890] Setting up static identity map for 0x40100000 - 0x40100060
[    0.003101] rcu: Hierarchical SRCU implementation.
[    0.003637] smp: Bringing up secondary CPUs ...
[    0.003657] smp: Brought up 1 node, 1 CPU
[    0.003667] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003674] CPU: All CPU(s) started in SVC mode.
[    0.004759] devtmpfs: initialized
[    0.008123] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.008445] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008473] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.008725] pinctrl core: initialized pinctrl subsystem
[    0.009802] NET: Registered protocol family 16
[    0.010353] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.011585] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.011601] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.036290] SCSI subsystem initialized
[    0.036564] usbcore: registered new interface driver usbfs
[    0.036638] usbcore: registered new interface driver hub
[    0.036752] usbcore: registered new device driver usb
[    0.036985] mc: Linux media interface: v0.10
[    0.037024] videodev: Linux video capture interface: v2.00
[    0.037246] Advanced Linux Sound Architecture Driver Initialized.
[    0.038516] clocksource: Switched to clocksource arch_sys_counter
[    0.051433] NET: Registered protocol family 2
[    0.052246] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.052282] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.052309] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.052331] TCP: Hash tables configured (established 1024 bind 1024)
[    0.052472] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.052522] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.052827] NET: Registered protocol family 1
[    0.054710] Initialise system trusted keyrings
[    0.055086] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.092302] Key type asymmetric registered
[    0.092326] Asymmetric key parser 'x509' registered
[    0.092437] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.092450] io scheduler mq-deadline registered
[    0.092459] io scheduler kyber registered
[    0.093530] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.097301] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.174587] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.177061] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.178187] printk: console [ttyS0] disabled
[    0.198517] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.705047] printk: console [ttyS0] enabled
[    0.734309] libphy: Fixed MDIO Bus: probed
[    0.739060] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.744884] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.751148] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 58000)
[    0.760631] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.767848] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.775082] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.780054] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.786834] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.792498] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.798395] libphy: stmmac: probed
[    0.802599] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[    0.808957] libphy: mdio_mux: probed
[    0.812561] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[    0.818957] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[    0.826126] libphy: mdio_mux: probed
[    0.830162] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.836690] ehci-platform: EHCI generic platform driver
[    0.842256] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.847865] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.855876] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.888523] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.895739] hub 1-0:1.0: USB hub found
[    0.899694] hub 1-0:1.0: 1 port detected
[    0.904305] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.910646] ohci-platform: OHCI generic platform driver
[    0.916198] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.922922] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.930879] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.003615] hub 2-0:1.0: USB hub found
[    1.007451] hub 2-0:1.0: 1 port detected
[    1.014820] usbcore: registered new interface driver usb-storage
[    1.022376] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.031717] sun6i-rtc 1c20400.rtc: registered as rtc0
[    1.036779] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.041496] i2c /dev entries driver
[    1.046488] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.056371] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.065044] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.101564] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.108883] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.143810] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    1.151945] usbcore: registered new interface driver usbhid
[    1.157520] usbhid: USB HID core driver
[    1.163617] sun4i-codec 1c22c00.codec: ASoC: codec-analog@01c23000 not registered
[    1.171253] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.178788] Initializing XFRM netlink socket
[    1.183098] NET: Registered protocol family 17
[    1.188176] Registering SWP/SWPB emulation handler
[    1.194288] Loading compiled-in X.509 certificates
[    1.205876] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.217416] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.223270] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.232732] hub 3-0:1.0: USB hub found
[    1.236645] hub 3-0:1.0: 1 port detected
[    1.243226] debugfs: Directory '1c22c00.codec' with parent 'V3s Audio Codec' already present!
[    1.251904] sun4i-codec 1c22c00.codec: ASoC: Failed to create component debugfs directory: -17
[    1.261966] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.270680] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:00:54 UTC (54)
[    1.279114] vcc5v0: disabling
[    1.282091] ALSA device list:
[    1.285057]   #0: V3s Audio Codec
[    1.289007] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.297473] Waiting for root device /dev/mmcblk0p2...
[    1.302975] mmc0: new high speed SDHC card at address aaaa
[    1.310514] mmcblk0: mmc0:aaaa SL32G 29.7 GiB 
[    1.320163]  mmcblk0: p1 p2
[    1.335427] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    1.342859] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    1.366877] random: fast init done
[    1.381482] EXT4-fs (mmcblk0p2): recovery complete
[    1.390611] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.398886] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.410998] devtmpfs: mounted
[    1.415180] Freeing unused kernel memory: 1024K
[    1.419964] Run /sbin/init as init process
[    1.539611] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting logging: OK
Initializing random number generator... [    1.666424] random: dd: uninitialized urandom read (512 bytes read)
done.
Starting network: OK
[    1.850157] random: ssh-keygen: uninitialized urandom read (32 bytes read)
Starting sshd: [    1.911135] random: sshd: uninitialized urandom read (32 bytes read)
OK

Welcome to Buildroot
licheepi login: 

离线

#3 昨天 08:37:56

memory
会员
注册时间: 2021-08-11
已发帖子: 635
积分: 607

Re: V3S "Trying to boot from MMC1"

就是根据经验,上电瞬间TF卡功耗比较大,会拉低电源电压,导致其他部分不稳定,我们在产品中都是给TF卡单独一组电源供电,而且附近放置大电容。

离线

页脚

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

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