您尚未登录。

#1 Re: 全志 SOC » f1c100s入门+1 » 2023-01-02 16:38:12

wakulgz 说:

打造F1C100S  机交互串口屏 FreeRTOS系统 兼容40p屏幕 和50p屏幕 详情请看原理图.pdf

https://whycan.com/files/members/10840/06hmii-v1_00_00.pdf

楼主软件方面做好了吗,是否上位机组态编辑后将文件下载到主板读取并显示

#2 Re: 全志 SOC » uboot配置全志v3s的LCD显示 » 2022-12-31 15:51:01

@hd_xyz
顶贴,大佬们  主线uboot怎么支持lcd驱动呀,修改流程是怎么样的 新手不知道怎么入手修改

#3 Re: 全志 SOC » uboot配置全志v3s的LCD显示 » 2022-12-26 18:12:45

shaoxi2010 说:

没记错的话,v3s的lcd显示是lichee修改后的,主线框架没有支持这个型号的。

对的,用LicheePi修改的uboot2017.01版本可以lcd显示logo,主线没有现成支持lcd的 搞不了,有可以参考的方法或链接嘛 这种情况怎么整呀大佬,主线加上lcd难嘛,我水平很菜 哎

#4 全志 SOC » uboot配置全志v3s的LCD显示 » 2022-12-26 15:22:00

hd_xyz
回复: 6

目前尝试用uboot2018 --  uboot2022版本均无法使全志v3s点亮lcd ,使用旧版本uboot2017荔枝派的LicheePi_Zero_800x480LCD_defconfig可以显示lcd的logo

从https://github.com/u-boot/u-boot 下载的uboot2022.04版本,
执行make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LicheePi_Zero_defconfig
再执行make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
进入配置界面后进入> ARM architecture  找不到旧版本uboot2017.01的Enable graphical uboot console on HDMI, LCD or VGA
通过搜索得出
  │ Symbol: VIDEO_HDMI [=n]                                                                                                                        │ 
  │ Type  : bool                                                                                                                                   │ 
  │ Prompt: HDMI output support                                                                                                                    │ 
  │   Location:                                                                                                                                    │ 
  │ (3) -> ARM architecture                                                                                                                        │ 
  │       -> Enable graphical uboot console on HDMI, LCD or VGA (VIDEO_SUNXI [=n])                                                                 │ 
  │   Defined at arch/arm/mach-sunxi/Kconfig:824                                                                                                   │ 
  │   Depends on: ARM [=y] && ARCH_SUNXI [=y] && VIDEO_SUNXI [=n] && !MACH_SUN8I [=y] && !MACH_SUNIV [=n]   


-> Enable graphical uboot console on HDMI, LCD or VGA (VIDEO_SUNXI [=n]) 该项为n ,不像旧版本的uboot一样直接显示在配置界面可以选y
下方提示的  │   Depends on: ARM [=y] && ARCH_SUNXI [=y] && VIDEO_SUNXI [=n] && !MACH_SUN8I [=y] && !MACH_SUNIV [=n]   
尝试把配置界面的
[y] Sunxi SoC Variant (sun8i (Allwinner V3/V3s/S3/S3L))  --->       
取消选择v3s为:[ ] Sunxi SoC Variant 
则在配置界面下方会自动显示出  -> Enable graphical uboot console on HDMI, LCD or VGA 
可以配置为y  也就是打开lcd显示
执行编译
time make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- 2>&1 | tee build.log
报错如下
u-boot-2022.04# time make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- 2>&1 | tee build.log
scripts/kconfig/conf  --syncconfig Kconfig

WARNING: unmet direct dependencies detected for SPL_SYS_THUMB_BUILD
  Depends on [n]: ARM [=y] && !ARM64 [=n] && SPL [=n]
  Selected by [y]:
  - ARCH_SUNXI [=y] && <choice> && !ARM64 [=n]

WARNING: unmet direct dependencies detected for SPL_USE_TINY_PRINTF
  Depends on [n]: SPL [=n]
  Selected by [y]:
  - ARCH_SUNXI [=y] && <choice>

WARNING: unmet direct dependencies detected for SPL_SYS_THUMB_BUILD
  Depends on [n]: ARM [=y] && !ARM64 [=n] && SPL [=n]
  Selected by [y]:
  - ARCH_SUNXI [=y] && <choice> && !ARM64 [=n]

WARNING: unmet direct dependencies detected for SPL_USE_TINY_PRINTF
  Depends on [n]: SPL [=n]
  Selected by [y]:
  - ARCH_SUNXI [=y] && <choice>

WARNING: unmet direct dependencies detected for SPL_SYS_THUMB_BUILD
  Depends on [n]: ARM [=y] && !ARM64 [=n] && SPL [=n]
  Selected by [y]:
  - ARCH_SUNXI [=y] && <choice> && !ARM64 [=n]

WARNING: unmet direct dependencies detected for SPL_USE_TINY_PRINTF
  Depends on [n]: SPL [=n]
  Selected by [y]:
  - ARCH_SUNXI [=y] && <choice>
  UPD     include/config.h
  CFG     u-boot.cfg
In file included from ./include/common.h:16:0:
include/config.h:4:10: 致命错误: configs/.h:没有那个文件或目录
#include <configs/.h>
          ^~~~~~~~~~~~
编译中断。
make[1]: *** [scripts/Makefile.autoconf:78:u-boot.cfg] 错误 1
  CFGCHK  u-boot.cfg
  OFCHK   .config
make: *** 没有规则可制作目标“include/config/auto.conf”,由“include/config/uboot.release” 需求。 停止。

real    0m0.547s
user    0m0.301s
sys    0m0.266s


结论:此项选中时 [y] Sunxi SoC Variant (sun8i (Allwinner V3/V3s/S3/S3L))  ---> 
则无法打孔lcd配置Enable graphical uboot console on HDMI, LCD or VGA    ??
请各位大佬指点迷津,是哪一步配置错了,uboot2017是可以显示lcd的   uboot2018-uboot2022就一直配置失败

#5 Re: 全志 SOC » 请教新版本uboot2022-4如何配置v3s支持LCD » 2022-12-25 21:33:54

Enable graphical uboot console on HDMI, LCD or VGA
为什么在新版本uboot找不到这个项  导致的LCD无显示吗?

#6 Re: 全志 SOC » 请教新版本uboot2022-4如何配置v3s支持LCD » 2022-12-25 15:19:12

uboot2017-01版本直接make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LicheePi_Zero_800x480LCD_defconfig
然后编译即可显示lcd的logo,但2022-04版本只有LicheePi_Zero_defconfig,没有LicheePi_Zero_800x480LCD_defconfig了,尝试自行配置多次均无果

#7 全志 SOC » 请教新版本uboot2022-4如何配置v3s支持LCD » 2022-12-25 15:17:37

hd_xyz
回复: 4

请教各位新版本的uboot2022-04版本怎么配置v3s支持800*480的lcd显示,或者有类似的贴子烦请分享一下 非常感谢,版本要uboot2022以上的,旧版本uboot-2017-01已经配置成功lcd显示,但由于缺失部分功能只能使用uboot2022-04,但menuconfig里配置lcd的选型有一些差异,尝试多种配置方法lcd就是不显示logo,黑屏无反应,还请各位指点一下 非常感谢

#8 Re: 全志 SOC » 请教V3S显示LCD镜面相反了是什么原因 » 2022-12-25 13:52:03

哇酷小二 说:

看下显示屏的手册,可能有一个 L/R引脚,电阻切换高低电平,或许可以左右镜像。

非常感谢各位大佬解答,原因找到了,是硬件问题,PCB预留LCD的L/R  U/D两个引脚的外部上下拉电阻,SMT的时候四个电阻都贴上了,导致两个引脚电平大概在3.3V/2=1.65V   所以图像造成镜像相反,断开其中两个电阻即可

#9 全志 SOC » 请教V3S显示LCD镜面相反了是什么原因 » 2022-12-21 09:31:36

hd_xyz
回复: 4

如图,800*480的LCD显示uboot的logo,显示反了一般是什么原因导致的   LCD排除质量问题
1.jpg

#10 Re: 全志 SOC » 全志V3S主线uboot如何配置支持800*480 LCD » 2022-12-19 17:02:04

cube 说:

只能对比一下早期版本了,合并更新.

对比了LicheePi_Zero_800x480LCD_defconfig  这个移植过去lcd还是无反应,是不是底层驱动也缺失了  暂时找不到论文有修改这块的哎

#11 全志 SOC » 全志V3S主线uboot如何配置支持800*480 LCD » 2022-12-19 16:22:50

hd_xyz
回复: 4

大佬们,请问v3s如何配置uboot支持LCD,我在https://github.com/u-boot/u-boot下载的uboot2022.04版本,由于其他功能需要只能使用此较新版本,但此版本不再提供原生支持LCD的LicheePi_Zero_800x480LCD_defconfig了,自己多次尝试修改配置,lcd均未点亮,望大佬们指导一下 非常感谢

#12 Re: 全志 SOC » 全志V3S第一次启动可以进入系统,后面再次启动就提示Rebooting in 5 seconds.. » 2022-12-17 14:44:41

4610 说:

参考openwrt的升级
https://github.com/openwrt-mirror/openwrt/blob/master/package/system/procd/files/nand.sh
似乎是用ubiformat写镜像

具体操作已经记不清,只记得ubifs写入有坑…上次用ubifs还是在s3c6410上

尝试了还是不行,烧录到nand flash第一次上电可以进入,后面再次进入就ubifs崩溃,是否与linux内核配置有关

#13 Re: 全志 SOC » 全志V3S第一次启动可以进入系统,后面再次启动就提示Rebooting in 5 seconds.. » 2022-12-12 08:56:24

4610 说:

ubi烧录问题?记得是不能用dd写入,要保持有的sector是没写状态

感谢解答,打包的脚本文件文件如下方,确实是dd写入,这个应该怎么修改比较好呢,请赐教 感谢
#!/bin/sh
rm -f flashimg.bin
dd if=/dev/zero of=flashimg.bin bs=1M count=16
dd if=u-boot-sunxi-with-spl.bin_split_exp of=flashimg.bin bs=1K conv=notrunc
dd if=sun8i-v3s-licheepi-zero.dtb of=flashimg.bin bs=1K seek=1024 conv=notrunc
dd if=zImage of=flashimg.bin bs=1K seek=1152 conv=notrunc
dd if=ubi.img of=flashimg.bin  bs=1K seek=6272 conv=notrunc

#14 全志 SOC » 全志V3S第一次启动可以进入系统,后面再次启动就提示Rebooting in 5 seconds.. » 2022-12-11 11:00:04

hd_xyz
回复: 6

配置说明:全志V3S+SPI NAND FLASH W25N01GVZEIG   
配置好uboot  linux rootfs等打包成flashimg.bin ,烧录到nand flash,第一次上电启动正常进入系统,后面再启动就进不了系统了,这个是uboot配置问题还是linux内核的问题
提示[    4.371321] Rebooting in 5 seconds..   

下面贴出第一次启动的日志  可以进入系统

U-Boot SPL 2022.04 (Dec 08 2022 - 16:43:19 +0800)
DRAM: 64 MiB
Trying to boot from sunxi SPI-NAND
sunxi SPI-NAND: Found Winbond W25N01GVxxIG (efaa21)
sunxi SPI-NAND: Loading u-boot from 0x10000
sunxi SPI-NAND: u-boot hcrc OK!


U-Boot 2022.04 (Dec 08 2022 - 16:43:19 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
Core:  23 devices, 11 uclasses, devicetree: separate
WDT:   Not starting watchdog@1c20ca0
MMC:   mmc@1c0f000: 0
Loading Environment from FAT... 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 - 0x447038 ]
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffddf ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-zero (root@ymc-virtual-machine) (gcc version 7.5.0 (Linaro GCC 7.5-2019.12)) #1 SMP Wed Dec 7 15:54:41 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 16 pages/cpu s34508 r8192 d22836 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi0.0:1M(uboot)ro,128k(dtb)ro,5M(kernel)ro,-(rootfs) ubi.mtd=3 root=ubi0:rootfs rw rootfstype=ubifs
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 54004K/65536K available (7168K kernel code, 308K rwdata, 1752K rodata, 1024K init, 257K bss, 11532K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] random: get_random_bytes called from start_kernel+0x2f8/0x484 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000021] Switching to timer-based delay loop, resolution 41ns
[    0.000202] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000437] Console: colour dummy device 80x30
[    0.000492] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000507] pid_max: default: 32768 minimum: 301
[    0.000665] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000680] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001470] CPU: Testing write buffer coherency: ok
[    0.001982] /cpus/cpu@0 missing clock-frequency property
[    0.002010] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002781] Setting up static identity map for 0x40100000 - 0x40100060
[    0.003002] rcu: Hierarchical SRCU implementation.
[    0.003540] smp: Bringing up secondary CPUs ...
[    0.003561] smp: Brought up 1 node, 1 CPU
[    0.003570] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003577] CPU: All CPU(s) started in HYP mode.
[    0.003582] CPU: Virtualization extensions available.
[    0.004669] devtmpfs: initialized
[    0.008060] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.008348] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008381] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.008641] pinctrl core: initialized pinctrl subsystem
[    0.009664] NET: Registered protocol family 16
[    0.010316] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.011560] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.011577] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.039319] SCSI subsystem initialized
[    0.039496] usbcore: registered new interface driver usbfs
[    0.039549] usbcore: registered new interface driver hub
[    0.039651] usbcore: registered new device driver usb
[    0.039871] mc: Linux media interface: v0.10
[    0.039929] videodev: Linux video capture interface: v2.00
[    0.040289] Advanced Linux Sound Architecture Driver Initialized.
[    0.042132] clocksource: Switched to clocksource arch_sys_counter
[    0.053824] NET: Registered protocol family 2
[    0.054645] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.054689] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.054714] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.054736] TCP: Hash tables configured (established 1024 bind 1024)
[    0.054878] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.054931] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.055221] NET: Registered protocol family 1
[    0.057072] Initialise system trusted keyrings
[    0.057438] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.101976] Key type asymmetric registered
[    0.101997] Asymmetric key parser 'x509' registered
[    0.102226] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.102243] io scheduler mq-deadline registered
[    0.102250] io scheduler kyber registered
[    0.103281] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.106971] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.176995] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.179378] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.180482] printk: console [ttyS0] disabled
[    0.200785] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A
[    0.738352] printk: console [ttyS0] enabled
[    0.768235] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.779677] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.785081] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.793946] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.800303] Creating 4 MTD partitions on "spi0.0":
[    0.805185] 0x000000000000-0x000000100000 : "uboot"
[    0.813053] 0x000000100000-0x000000120000 : "dtb"
[    0.818812] 0x000000120000-0x000000620000 : "kernel"
[    0.825338] random: fast init done
[    0.838767] 0x000000620000-0x000008000000 : "rootfs"
[    1.013422] random: crng init done
[    1.099351] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.105958] ehci-platform: EHCI generic platform driver
[    1.111498] ehci-platform 1c1a000.usb: EHCI Host Controller
[    1.117195] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    1.125186] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[    1.152151] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.159336] hub 1-0:1.0: USB hub found
[    1.163283] hub 1-0:1.0: 1 port detected
[    1.167870] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.174183] ohci-platform: OHCI generic platform driver
[    1.179716] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.186431] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.194397] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[    1.267179] hub 2-0:1.0: USB hub found
[    1.271013] hub 2-0:1.0: 1 port detected
[    1.278347] usbcore: registered new interface driver usb-storage
[    1.285948] sun6i-rtc 1c20400.rtc: registered as rtc0
[    1.291013] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.295722] i2c /dev entries driver
[    1.300564] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[    1.310212] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.318886] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.354759] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.362318] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.373677] usbcore: registered new interface driver usbhid
[    1.379256] usbhid: USB HID core driver
[    1.385769] Initializing XFRM netlink socket
[    1.390080] NET: Registered protocol family 17
[    1.395213] Registering SWP/SWPB emulation handler
[    1.401153] Loading compiled-in X.509 certificates
[    1.415228] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.426742] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.432589] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.441950] hub 3-0:1.0: USB hub found
[    1.445948] hub 3-0:1.0: 1 port detected
[    1.451682] ubi0: attaching mtd3
[    2.069808] ubi0: scanning is finished
[    2.115618] ubi0: volume 0 ("rootfs") re-sized from 826 to 951 LEBs
[    2.122831] ubi0: attached mtd3 (name "rootfs", size 121 MiB)
[    2.128583] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.135516] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    2.142315] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    2.149267] ubi0: good PEBs: 975, bad PEBs: 0, corrupted PEBs: 0
[    2.155278] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    2.162503] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1320759356
[    2.171621] ubi0: available PEBs: 0, total reserved PEBs: 975, PEBs reserved for bad PEB handling: 20
[    2.180920] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:00:08 UTC (8)
[    2.189097] vcc3v0: disabling
[    2.192120] vcc3v3: disabling
[    2.195086] vcc5v0: disabling
[    2.198051] ALSA device list:
[    2.201015]   No soundcards found.
[    2.205050] ubi0: background thread "ubi_bgt0d" started, PID 94
[    2.220640] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    2.229282] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 95
[    2.427471] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    2.434954] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    2.444876] UBIFS (ubi0:0): FS size: 100184064 bytes (95 MiB, 789 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[    2.455396] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[    2.461226] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 84BB4D21-27AF-4A31-B517-8AE1551E1232, small LPT model
[    2.487579] VFS: Mounted root (ubifs filesystem) on device 0:12.
[    2.505150] devtmpfs: mounted
[    2.511044] Freeing unused kernel memory: 1024K
[    2.519939] Run /sbin/init as init process
[    3.552712] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 61 bytes from PEB 30:61440, read only 61 bytes, retry
[    3.567465] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 61 bytes from PEB 30:61440, read only 61 bytes, retry
[    3.582811] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 61 bytes from PEB 30:61440, read only 61 bytes, retry
[    3.598049] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 61 bytes from PEB 30:61440, read 61 bytes
[    3.608446] CPU: 0 PID: 1 Comm: init Not tainted 5.2.0-licheepi-zero #1
[    3.615050] Hardware name: Allwinner sun8i Family
[    3.619776] [<c010ede4>] (unwind_backtrace) from [<c010b774>] (show_stack+0x10/0x14)
[    3.627516] [<c010b774>] (show_stack) from [<c07193b8>] (dump_stack+0x88/0x9c)
[    3.634733] [<c07193b8>] (dump_stack) from [<c04e9c54>] (ubi_io_read+0x158/0x348)
[    3.642215] [<c04e9c54>] (ubi_io_read) from [<c04e7a70>] (ubi_eba_read_leb+0x9c/0x41c)
[    3.650127] [<c04e7a70>] (ubi_eba_read_leb) from [<c04e6790>] (ubi_leb_read+0x74/0xb4)
[    3.658043] [<c04e6790>] (ubi_leb_read) from [<c0304c10>] (ubifs_leb_read+0x2c/0x78)
[    3.665783] [<c0304c10>] (ubifs_leb_read) from [<c0306408>] (ubifs_read_node+0x94/0x248)
[    3.673870] [<c0306408>] (ubifs_read_node) from [<c0321718>] (ubifs_tnc_read_node+0x48/0xb4)
[    3.682300] [<c0321718>] (ubifs_tnc_read_node) from [<c0307e24>] (tnc_read_hashed_node+0x6c/0x1bc)
[    3.691249] [<c0307e24>] (tnc_read_hashed_node) from [<c0309688>] (ubifs_tnc_locate+0x1a0/0x1d8)
[    3.700024] [<c0309688>] (ubifs_tnc_locate) from [<c0309dd4>] (ubifs_tnc_lookup_nm+0x38/0x138)
[    3.708626] [<c0309dd4>] (ubifs_tnc_lookup_nm) from [<c02fdfd4>] (ubifs_lookup+0x128/0x30c)
[    3.716975] [<c02fdfd4>] (ubifs_lookup) from [<c0221348>] (__lookup_slow+0x8c/0x154)
[    3.724715] [<c0221348>] (__lookup_slow) from [<c0221440>] (lookup_slow+0x30/0x44)
[    3.732278] [<c0221440>] (lookup_slow) from [<c0223394>] (walk_component+0x1c8/0x300)
[    3.740100] [<c0223394>] (walk_component) from [<c0223a18>] (path_lookupat+0x70/0x1fc)
[    3.748008] [<c0223a18>] (path_lookupat) from [<c0225f74>] (filename_lookup+0x9c/0x10c)
[    3.756006] [<c0225f74>] (filename_lookup) from [<c0212d3c>] (do_faccessat+0xb0/0x220)
[    3.763917] [<c0212d3c>] (do_faccessat) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[    3.771735] Exception stack(0xc3833fa8 to 0xc3833ff0)
[    3.776783] 3fa0:                   00000061 00000008 000b1b72 00000006 00000000 00000000
[    3.784951] 3fc0: 00000061 00000008 00000000 00000021 00000000 00000061 b6f2e000 00000000
[    3.793116] 3fe0: 000c24a0 bea59ac4 0008e980 b6ea20c6
Starting logging: OK
Starting mdev...
/etc/init.d/S10mdev: line 21: can't create /proc/sys/kernel/hotplug: nonexistent directory
modprobe: can't change directory to '/lib/modules': No such file or directory
Initializing random number generator... done.
Starting network: OK

Welcome to Lichee Pi
Lichee login: root
# ls
#










第二次启动日志Rebooting in 5 seconds..

U-Boot SPL 2022.04 (Dec 08 2022 - 16:43:19 +0800)
DRAM: 64 MiB
Trying to boot from sunxi SPI-NAND
sunxi SPI-NAND: Found Winbond W25N01GVxxIG (efaa21)
sunxi SPI-NAND: Loading u-boot from 0x10000
sunxi SPI-NAND: u-boot hcrc OK!


U-Boot 2022.04 (Dec 08 2022 - 16:43:19 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
Core:  23 devices, 11 uclasses, devicetree: separate
WDT:   Not starting watchdog@1c20ca0
MMC:   mmc@1c0f000: 0
Loading Environment from FAT... 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 - 0x447038 ]
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffddf ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-zero (root@ymc-virtual-machine) (gcc version 7.5.0 (Linaro GCC 7.5-2019.12)) #1 SMP Wed Dec 7 15:54:41 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 16 pages/cpu s34508 r8192 d22836 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi0.0:1M(uboot)ro,128k(dtb)ro,5M(kernel)ro,-(rootfs) ubi.mtd=3 root=ubi0:rootfs rw rootfstype=ubifs
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 54004K/65536K available (7168K kernel code, 308K rwdata, 1752K rodata, 1024K init, 257K bss, 11532K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] random: get_random_bytes called from start_kernel+0x2f8/0x484 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000201] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000441] Console: colour dummy device 80x30
[    0.000499] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000516] pid_max: default: 32768 minimum: 301
[    0.000680] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000696] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001480] CPU: Testing write buffer coherency: ok
[    0.001991] /cpus/cpu@0 missing clock-frequency property
[    0.002017] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002806] Setting up static identity map for 0x40100000 - 0x40100060
[    0.003024] rcu: Hierarchical SRCU implementation.
[    0.003554] smp: Bringing up secondary CPUs ...
[    0.003576] smp: Brought up 1 node, 1 CPU
[    0.003585] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003592] CPU: All CPU(s) started in HYP mode.
[    0.003596] CPU: Virtualization extensions available.
[    0.004678] devtmpfs: initialized
[    0.008065] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.008361] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008393] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.008642] pinctrl core: initialized pinctrl subsystem
[    0.009653] NET: Registered protocol family 16
[    0.010301] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.011537] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.011554] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.039327] SCSI subsystem initialized
[    0.039511] usbcore: registered new interface driver usbfs
[    0.039563] usbcore: registered new interface driver hub
[    0.039665] usbcore: registered new device driver usb
[    0.039882] mc: Linux media interface: v0.10
[    0.039936] videodev: Linux video capture interface: v2.00
[    0.040312] Advanced Linux Sound Architecture Driver Initialized.
[    0.042155] clocksource: Switched to clocksource arch_sys_counter
[    0.053818] NET: Registered protocol family 2
[    0.054645] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.054687] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.054711] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.054733] TCP: Hash tables configured (established 1024 bind 1024)
[    0.054877] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.054928] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.055218] NET: Registered protocol family 1
[    0.057058] Initialise system trusted keyrings
[    0.057422] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.099929] Key type asymmetric registered
[    0.099951] Asymmetric key parser 'x509' registered
[    0.100054] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.100067] io scheduler mq-deadline registered
[    0.100073] io scheduler kyber registered
[    0.101057] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.104917] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.175013] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.177380] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.178481] printk: console [ttyS0] disabled
[    0.198785] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A
[    0.736338] printk: console [ttyS0] enabled
[    0.766260] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.777711] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.783116] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.791968] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.798412] Creating 4 MTD partitions on "spi0.0":
[    0.803245] 0x000000000000-0x000000100000 : "uboot"
[    0.811086] 0x000000100000-0x000000120000 : "dtb"
[    0.816992] 0x000000120000-0x000000620000 : "kernel"
[    0.823483] random: fast init done
[    0.836816] 0x000000620000-0x000008000000 : "rootfs"
[    1.011445] random: crng init done
[    1.096838] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.103445] ehci-platform: EHCI generic platform driver
[    1.108984] ehci-platform 1c1a000.usb: EHCI Host Controller
[    1.114680] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    1.122675] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[    1.152171] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.159381] hub 1-0:1.0: USB hub found
[    1.163337] hub 1-0:1.0: 1 port detected
[    1.167913] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.174228] ohci-platform: OHCI generic platform driver
[    1.179764] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.186478] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.194442] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[    1.267192] hub 2-0:1.0: USB hub found
[    1.271027] hub 2-0:1.0: 1 port detected
[    1.278364] usbcore: registered new interface driver usb-storage
[    1.285971] sun6i-rtc 1c20400.rtc: registered as rtc0
[    1.291035] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.295744] i2c /dev entries driver
[    1.300589] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[    1.310250] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.318913] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.354782] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.362344] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.373692] usbcore: registered new interface driver usbhid
[    1.379270] usbhid: USB HID core driver
[    1.385779] Initializing XFRM netlink socket
[    1.390093] NET: Registered protocol family 17
[    1.395224] Registering SWP/SWPB emulation handler
[    1.401164] Loading compiled-in X.509 certificates
[    1.415247] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.426762] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.432609] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.441966] hub 3-0:1.0: USB hub found
[    1.445969] hub 3-0:1.0: 1 port detected
[    1.451708] ubi0: attaching mtd3
[    2.596972] ubi0: scanning is finished
[    2.616268] ubi0: attached mtd3 (name "rootfs", size 121 MiB)
[    2.622024] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.628971] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    2.635768] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    2.642731] ubi0: good PEBs: 975, bad PEBs: 0, corrupted PEBs: 0
[    2.648729] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    2.655952] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1320759356
[    2.665082] ubi0: available PEBs: 0, total reserved PEBs: 975, PEBs reserved for bad PEB handling: 20
[    2.674368] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:00:08 UTC (8)
[    2.682550] vcc3v0: disabling
[    2.685526] vcc3v3: disabling
[    2.688490] vcc5v0: disabling
[    2.691453] ALSA device list:
[    2.694488]   No soundcards found.
[    2.698462] ubi0: background thread "ubi_bgt0d" started, PID 94
[    2.706678] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    2.714959] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 95
[    2.756044] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read only 126976 bytes, retry
[    2.804476] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read only 126976 bytes, retry
[    2.852835] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read only 126976 bytes, retry
[    2.901163] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read 126976 bytes
[    2.912083] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.2.0-licheepi-zero #1
[    2.919121] Hardware name: Allwinner sun8i Family
[    2.923846] [<c010ede4>] (unwind_backtrace) from [<c010b774>] (show_stack+0x10/0x14)
[    2.931586] [<c010b774>] (show_stack) from [<c07193b8>] (dump_stack+0x88/0x9c)
[    2.938803] [<c07193b8>] (dump_stack) from [<c04e9c54>] (ubi_io_read+0x158/0x348)
[    2.946284] [<c04e9c54>] (ubi_io_read) from [<c04e7a70>] (ubi_eba_read_leb+0x9c/0x41c)
[    2.954196] [<c04e7a70>] (ubi_eba_read_leb) from [<c04e6790>] (ubi_leb_read+0x74/0xb4)
[    2.962113] [<c04e6790>] (ubi_leb_read) from [<c0304c10>] (ubifs_leb_read+0x2c/0x78)
[    2.969853] [<c0304c10>] (ubifs_leb_read) from [<c030c180>] (ubifs_start_scan+0x74/0xcc)
[    2.977935] [<c030c180>] (ubifs_start_scan) from [<c030c400>] (ubifs_scan+0x28/0x2c4)
[    2.985756] [<c030c400>] (ubifs_scan) from [<c030b628>] (ubifs_read_master+0x40/0x870)
[    2.993666] [<c030b628>] (ubifs_read_master) from [<c0302dc0>] (ubifs_mount+0xd90/0x159c)
[    3.001839] [<c0302dc0>] (ubifs_mount) from [<c024949c>] (legacy_get_tree+0x24/0x4c)
[    3.009578] [<c024949c>] (legacy_get_tree) from [<c0218a3c>] (vfs_get_tree+0x24/0xf0)
[    3.017407] [<c0218a3c>] (vfs_get_tree) from [<c023a3bc>] (do_mount+0x6b8/0x8dc)
[    3.024798] [<c023a3bc>] (do_mount) from [<c023a9c0>] (ksys_mount+0x8c/0xb4)
[    3.031843] [<c023a9c0>] (ksys_mount) from [<c0a0124c>] (mount_block_root+0x118/0x2f4)
[    3.039753] [<c0a0124c>] (mount_block_root) from [<c0a0154c>] (prepare_namespace+0x9c/0x194)
[    3.048183] [<c0a0154c>] (prepare_namespace) from [<c072fae8>] (kernel_init+0x8/0x10c)
[    3.056095] [<c072fae8>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    3.063652] Exception stack(0xc3833fb0 to 0xc3833ff8)
[    3.068700] 3fa0:                                     00000000 00000000 00000000 00000000
[    3.076867] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.085033] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    3.091800] UBIFS error (ubi0:0 pid 1): ubifs_scan: bad node
[    3.133815] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read only 126976 bytes, retry
[    3.182096] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read only 126976 bytes, retry
[    3.230505] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read only 126976 bytes, retry
[    3.278820] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read 126976 bytes
[    3.289737] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.2.0-licheepi-zero #1
[    3.296775] Hardware name: Allwinner sun8i Family
[    3.301498] [<c010ede4>] (unwind_backtrace) from [<c010b774>] (show_stack+0x10/0x14)
[    3.309238] [<c010b774>] (show_stack) from [<c07193b8>] (dump_stack+0x88/0x9c)
[    3.316454] [<c07193b8>] (dump_stack) from [<c04e9c54>] (ubi_io_read+0x158/0x348)
[    3.323935] [<c04e9c54>] (ubi_io_read) from [<c04e7a70>] (ubi_eba_read_leb+0x9c/0x41c)
[    3.331847] [<c04e7a70>] (ubi_eba_read_leb) from [<c04e6790>] (ubi_leb_read+0x74/0xb4)
[    3.339764] [<c04e6790>] (ubi_leb_read) from [<c0304c10>] (ubifs_leb_read+0x2c/0x78)
[    3.347506] [<c0304c10>] (ubifs_leb_read) from [<c031bbe4>] (get_master_node+0x4c/0x26c)
[    3.355592] [<c031bbe4>] (get_master_node) from [<c031c100>] (ubifs_recover_master_node+0x54/0x2a0)
[    3.364630] [<c031c100>] (ubifs_recover_master_node) from [<c030bd38>] (ubifs_read_master+0x750/0x870)
[    3.373926] [<c030bd38>] (ubifs_read_master) from [<c0302dc0>] (ubifs_mount+0xd90/0x159c)
[    3.382099] [<c0302dc0>] (ubifs_mount) from [<c024949c>] (legacy_get_tree+0x24/0x4c)
[    3.389837] [<c024949c>] (legacy_get_tree) from [<c0218a3c>] (vfs_get_tree+0x24/0xf0)
[    3.397667] [<c0218a3c>] (vfs_get_tree) from [<c023a3bc>] (do_mount+0x6b8/0x8dc)
[    3.405057] [<c023a3bc>] (do_mount) from [<c023a9c0>] (ksys_mount+0x8c/0xb4)
[    3.412102] [<c023a9c0>] (ksys_mount) from [<c0a0124c>] (mount_block_root+0x118/0x2f4)
[    3.420013] [<c0a0124c>] (mount_block_root) from [<c0a0154c>] (prepare_namespace+0x9c/0x194)
[    3.428444] [<c0a0154c>] (prepare_namespace) from [<c072fae8>] (kernel_init+0x8/0x10c)
[    3.436355] [<c072fae8>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    3.443913] Exception stack(0xc3833fb0 to 0xc3833ff8)
[    3.448961] 3fa0:                                     00000000 00000000 00000000 00000000
[    3.457129] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.465294] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    3.472060] UBIFS error (ubi0:0 pid 1): ubifs_recover_master_node: failed to recover master node
[    3.480946] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops
[    3.489453] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    3.531679] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read only 126976 bytes, retry
[    3.580225] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read only 126976 bytes, retry
[    3.628738] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read only 126976 bytes, retry
[    3.677533] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read 126976 bytes
[    3.688453] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.2.0-licheepi-zero #1
[    3.695492] Hardware name: Allwinner sun8i Family
[    3.700208] [<c010ede4>] (unwind_backtrace) from [<c010b774>] (show_stack+0x10/0x14)
[    3.707947] [<c010b774>] (show_stack) from [<c07193b8>] (dump_stack+0x88/0x9c)
[    3.715164] [<c07193b8>] (dump_stack) from [<c04e9c54>] (ubi_io_read+0x158/0x348)
[    3.722647] [<c04e9c54>] (ubi_io_read) from [<c04e7a70>] (ubi_eba_read_leb+0x9c/0x41c)
[    3.730559] [<c04e7a70>] (ubi_eba_read_leb) from [<c04e6790>] (ubi_leb_read+0x74/0xb4)
[    3.738475] [<c04e6790>] (ubi_leb_read) from [<c0304c10>] (ubifs_leb_read+0x2c/0x78)
[    3.746214] [<c0304c10>] (ubifs_leb_read) from [<c030c180>] (ubifs_start_scan+0x74/0xcc)
[    3.754289] [<c030c180>] (ubifs_start_scan) from [<c030c400>] (ubifs_scan+0x28/0x2c4)
[    3.762110] [<c030c400>] (ubifs_scan) from [<c030b628>] (ubifs_read_master+0x40/0x870)
[    3.770020] [<c030b628>] (ubifs_read_master) from [<c0302dc0>] (ubifs_mount+0xd90/0x159c)
[    3.778192] [<c0302dc0>] (ubifs_mount) from [<c024949c>] (legacy_get_tree+0x24/0x4c)
[    3.785931] [<c024949c>] (legacy_get_tree) from [<c0218a3c>] (vfs_get_tree+0x24/0xf0)
[    3.793758] [<c0218a3c>] (vfs_get_tree) from [<c023a3bc>] (do_mount+0x6b8/0x8dc)
[    3.801150] [<c023a3bc>] (do_mount) from [<c023a9c0>] (ksys_mount+0x8c/0xb4)
[    3.808195] [<c023a9c0>] (ksys_mount) from [<c0a0124c>] (mount_block_root+0x118/0x2f4)
[    3.816105] [<c0a0124c>] (mount_block_root) from [<c0a0154c>] (prepare_namespace+0x9c/0x194)
[    3.824535] [<c0a0154c>] (prepare_namespace) from [<c072fae8>] (kernel_init+0x8/0x10c)
[    3.832446] [<c072fae8>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    3.840003] Exception stack(0xc3833fb0 to 0xc3833ff8)
[    3.845050] 3fa0:                                     00000000 00000000 00000000 00000000
[    3.853218] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.861384] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    3.868202] UBIFS error (ubi0:0 pid 1): ubifs_scan: bad node
[    3.910301] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read only 126976 bytes, retry
[    3.958758] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read only 126976 bytes, retry
[    4.007266] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read only 126976 bytes, retry
[    4.055599] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read 126976 bytes
[    4.066512] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.2.0-licheepi-zero #1
[    4.073550] Hardware name: Allwinner sun8i Family
[    4.078273] [<c010ede4>] (unwind_backtrace) from [<c010b774>] (show_stack+0x10/0x14)
[    4.086013] [<c010b774>] (show_stack) from [<c07193b8>] (dump_stack+0x88/0x9c)
[    4.093231] [<c07193b8>] (dump_stack) from [<c04e9c54>] (ubi_io_read+0x158/0x348)
[    4.100712] [<c04e9c54>] (ubi_io_read) from [<c04e7a70>] (ubi_eba_read_leb+0x9c/0x41c)
[    4.108624] [<c04e7a70>] (ubi_eba_read_leb) from [<c04e6790>] (ubi_leb_read+0x74/0xb4)
[    4.116540] [<c04e6790>] (ubi_leb_read) from [<c0304c10>] (ubifs_leb_read+0x2c/0x78)
[    4.124281] [<c0304c10>] (ubifs_leb_read) from [<c031bbe4>] (get_master_node+0x4c/0x26c)
[    4.132366] [<c031bbe4>] (get_master_node) from [<c031c100>] (ubifs_recover_master_node+0x54/0x2a0)
[    4.141403] [<c031c100>] (ubifs_recover_master_node) from [<c030bd38>] (ubifs_read_master+0x750/0x870)
[    4.150700] [<c030bd38>] (ubifs_read_master) from [<c0302dc0>] (ubifs_mount+0xd90/0x159c)
[    4.158873] [<c0302dc0>] (ubifs_mount) from [<c024949c>] (legacy_get_tree+0x24/0x4c)
[    4.166612] [<c024949c>] (legacy_get_tree) from [<c0218a3c>] (vfs_get_tree+0x24/0xf0)
[    4.174440] [<c0218a3c>] (vfs_get_tree) from [<c023a3bc>] (do_mount+0x6b8/0x8dc)
[    4.181831] [<c023a3bc>] (do_mount) from [<c023a9c0>] (ksys_mount+0x8c/0xb4)
[    4.188876] [<c023a9c0>] (ksys_mount) from [<c0a0124c>] (mount_block_root+0x118/0x2f4)
[    4.196786] [<c0a0124c>] (mount_block_root) from [<c0a0154c>] (prepare_namespace+0x9c/0x194)
[    4.205216] [<c0a0154c>] (prepare_namespace) from [<c072fae8>] (kernel_init+0x8/0x10c)
[    4.213127] [<c072fae8>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    4.220684] Exception stack(0xc3833fb0 to 0xc3833ff8)
[    4.225731] 3fa0:                                     00000000 00000000 00000000 00000000
[    4.233898] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.242064] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    4.248833] UBIFS error (ubi0:0 pid 1): ubifs_recover_master_node: failed to recover master node
[    4.258059] List of all partitions:
[    4.261555] No filesystem could mount root, tried:
[    4.261559]  ubifs
[    4.266514]
[    4.270018] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    4.278274] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.2.0-licheepi-zero #1
[    4.285310] Hardware name: Allwinner sun8i Family
[    4.290034] [<c010ede4>] (unwind_backtrace) from [<c010b774>] (show_stack+0x10/0x14)
[    4.297773] [<c010b774>] (show_stack) from [<c07193b8>] (dump_stack+0x88/0x9c)
[    4.304991] [<c07193b8>] (dump_stack) from [<c011dd64>] (panic+0x110/0x2fc)
[    4.311949] [<c011dd64>] (panic) from [<c0a013d8>] (mount_block_root+0x2a4/0x2f4)
[    4.319426] [<c0a013d8>] (mount_block_root) from [<c0a0154c>] (prepare_namespace+0x9c/0x194)
[    4.327855] [<c0a0154c>] (prepare_namespace) from [<c072fae8>] (kernel_init+0x8/0x10c)
[    4.335766] [<c072fae8>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    4.343323] Exception stack(0xc3833fb0 to 0xc3833ff8)
[    4.348369] 3fa0:                                     00000000 00000000 00000000 00000000
[    4.356537] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.364703] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    4.371321] Rebooting in 5 seconds..

#15 Re: 全志 SOC » 全志v3s spi nand启动失败日志 » 2022-12-08 14:09:09

MTD是否在uboot-》make menuconfig配置   
目前是如下配置
> Device Drivers > MTD Support
  │ │     [y] Enable MTD layer                         
  │ │     [y] Enable Driver Model for MTD drivers



配置步骤是按照https://whycan.com/t_8184_2.html 配置的,其中因为找不到此选项
SPI NAND device Support Command line interface->Device access commands勾选mtd
而没有配置此项,uboot版本与链接里是一致的,步骤也没有做错,但是找不到这个选项,是否因为此处造成MTD编译失败

#16 全志 SOC » 全志v3s spi nand启动失败日志 » 2022-12-08 11:01:58

hd_xyz
回复: 2

按照此篇配置https://whycan.com/t_8184_2.html启动失败 日志如下  请教此报错一般是什么原因造成的

U-Boot SPL 2022.04 (Dec 07 2022 - 11:18:47 +0800)
DRAM: 64 MiB
Trying to boot from sunxi SPI-NAND
sunxi SPI-NAND: Found Winbond W25N01GVxxIG (efaa21)
sunxi SPI-NAND: Loading u-boot from 0x10000
sunxi SPI-NAND: u-boot hcrc OK!


U-Boot 2022.04 (Dec 07 2022 - 11:18:47 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
Core:  21 devices, 9 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
Unknown command 'mtd' - try 'help'
Unknown command 'mtd' - try 'help'
zimage: Bad magic!
=>

#17 Re: 全志 SOC » V3S SPINAND移植使用主线U-Boot和主线Linux » 2022-12-08 09:23:36

@jack599766257
按照大佬的方法一步步配置uboot时,进入make menuconfig,但是找不到“SPI NAND device Support Command line interface->Device access commands勾选mtd”这个选项,是我眼花了嘛,其他选项都可以找到,uboot版本也跟大佬是一致的

下面是大佬配置方法原文:
执行make ARCH=arm LicheePi_Zero_defconfig,再执行make ARCH=arm menuconfig,修改
ARM architecture勾选Support for SPI Nand Flash on Allwinner SoCs in SPL
Boot options取消掉Enable boot arguments
Device Drivers->MTD Support勾选Enable MTD layer   Enable Driver Model for MTD drivers   SPI NAND device Support
Command line interface->Device access commands勾选mtd
Environment取消勾选Environment is in SPI flash
保存,make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j8编译生成u-boot-sunxi-with-spl.bin,但是这个镜像不能直接使用。

#18 Re: 全志 SOC » 全志v3s无法从SPI NAND FLASH启动 » 2022-12-06 10:57:58

哇酷小二 说:

@hd_xyz

buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *,支持SPI NAND
https://whycan.com/t_5221.html

这里面有处理 boot0 的脚本,你参考一下。

好的好的,非常感谢 我研究一下

#19 Re: 全志 SOC » 全志v3s无法从SPI NAND FLASH启动 » 2022-12-06 10:20:40

非常感谢解答,大佬能否再详细一点点呢,确实新手不太懂哎(V3V+spi nand flash  W25N01GVZEIG)
刚刚看到一篇有大佬说
“spl 不能运行的问题是, 4k(或2k) page 当 1k 来读,所以你的 boot0无法启动,所以你写spi nand注意这个问题就可以了。”
我尝试以下方法把u-boot-sunxi-with-spl.bin用1k打包到flashimg.bin   下载进nand falsh上电依然进入fel
dd if=/dev/zero of=flashimg.bin bs=1M count=16
dd if=u-boot-sunxi-with-spl.bin of=flashimg.bin bs=1K conv=notrunc
xfel spinand erase 0 16777216
xfel spinand write 0 flashimg.bin


具体是哪一步还需要配置呢,大佬能否明示  感激不尽  抱拳!

#20 全志 SOC » 全志v3s最新版uboot获取方式是什么 » 2022-12-06 09:44:11

hd_xyz
回复: 2

各位大佬,全志v3s 荔枝派zero     请问 https://github.com/Lichee-Pi/u-boot/tree/v3s-spi-experimental  在荔枝派git上下载的2017 .12版本的uboot是否支持spi nand flash,全志最新版本的uboot如何获取呢,官网找不到uboot下载入口呀

#21 Re: 全志 SOC » 全志v3s无法从SPI NAND FLASH启动 » 2022-12-06 09:24:03

大佬们麻烦解答下纳  没招了:( sad

#22 Re: 全志 SOC » 全志v3s无法从SPI NAND FLASH启动 » 2022-12-05 10:26:19

哇酷小二 说:

buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *,支持SPI NAND
https://whycan.com/t_5221.html



uboot 需要处理一下, 参考这个帖子.

非常感谢指教,看了帖子配置dts如下方(dts配置过多个方案均无果),makemenuconfig配置如下方  编译完成,用xfel将u-boot-sunxi-with-spl.bin 烧录到spi nand flash  (W25N01GVZEIG),
主板上电依旧没有日志输出,直接进入fel模式,有更换过两个主板,基本排除硬件问题,而且用w25q128也能正常启动打印出日志

方案1 dts修改以下内容,测试结果上电无反应,进入fel模式

&spi0 {
	status = "okay";

	spi-nand@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "spi-nand";
		reg = <0>;
		spi-max-frequency = <50000000>;
		//status = "disabled";

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "u-boot";
				reg = <0x000000 0x80000>;
				read-only;
			};

			partition@1 {
				label = "dtb";
				reg = <0x80000 0x20000>;
				read-only;
			};

			partition@2 {
				label = "kernel";
				reg = <0x100000 0x700000>;
				read-only;
			};

			partition@3 {
				label = "rom";
				reg = <0x800000 0x4000000>;
				read-only;
			};

			partition@4 {
				label = "overlay";
				reg = <0x4800000 0x3000000>;
			};
		};
	};
};

方案2 dts修改以下内容,测试结果上电无反应,进入fel模式

// &spi0 {
//     pinctrl-0 = <&spi0_pins>;
//     pinctrl-names = "default";
//     status = "okay";
//     flash@0 {
//         #address-cells = <1>;
//         #size-cells = <1>;
//         compatible = "spi-nand";
//         reg = <0>;
//         spi-max-frequency = <24000000>;
// 	};
// };


make menuconfig配置如下

 → Device Drivers → SPI Support ─
  │ │           -y- Enable Driver Model for SPI drivers                                               
  │ │             [ ]   Altera SPI driver (NEW)                                                         
  │ │             [ ]   Cadence QSPI driver (NEW)                                                       
  │ │             [ ]   Designware SPI driver (NEW)                                                    
  │ │             [ ]   Samsung Exynos SPI driver (NEW)                                                
  │ │             [ ]   Freescale DSPI driver (NEW)                                                    
  │ │             [ ]   Intel ICH SPI driver (NEW)                                                     
  │ │             [ ]   Marvell Armada 3700 SPI driver (NEW)                                          
  │ │             [ ]   Rockchip SPI driver (NEW)                                                      
  │ │             [ ]   Sandbox SPI driver (NEW)                                                      
  │ │             [y]   Allwinner SPI driver                                                          
  │ │             [ ]   nVidia Tegra114 SPI driver (NEW)                                               
  │ │             [ ]   nVidia Tegra20 Serial Flash controller driver (NEW)                        
  │ │             [ ]   nVidia Tegra20/Tegra30 SLINK driver (NEW)  



→ Device Drivers → SPI Flash Support ─
  │ │             -y- Enable Driver Model for SPI flash                                              
  │ │             [ ]   Support sandbox SPI flash device (NEW)       
  │ │             [y] Legacy SPI Flash Interface support                                         
  │ │             [ ]   SPI flash Bank/Extended address register support (NEW)                        
  │ │             [ ]   Atmel SPI flash support (NEW)                                                 
  │ │             [ ]   EON SPI flash support (NEW)                                                  
  │ │             [ ]   GigaDevice SPI flash support (NEW)                                           
  │ │             [ ]   Macronix SPI flash support (NEW)                                              
  │ │             [ ]   Spansion SPI flash support (NEW)                                             
  │ │             [ ]   STMicro SPI flash support (NEW)                                              
  │ │             [ ]   SST SPI flash support (NEW)                                                  
  │ │             [y]   Winbond SPI flash support                                                   
  │ │             [y]   Use small 4096 B erase sectors (NEW)                                          
  │ │             [ ]   AT45xxx DataFlash support (NEW)  
                    [y]   SPI Flash MTD support 



→ Device Drivers → MTD Support ──
  │ │             [y] Enable Driver Model for MTD drivers                                               
  │ │             [ ]   Enable Driver Model for CFI Flash driver                                        
  │ │             [ ]   Altera Generic Quad SPI Controller (NEW)   

执行编译指令:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LicheePi_Zero_800x480LCD_defconfig
time make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- 2>&1 | tee build.log
编译完成执行读取spi nand可以正常反馈信息
xfel spinand
Found spi nand flash 'W25N01GV' with 134217728 bytes
执行写入指令 xfel spinand write 0 u-boot-sunxi-with-spl.bin
主板断电后重新上电依然进入fel模式,并没有日志打印输出 也就是uboot启动失败?配置过程具体是哪一步有问题,烦请指教 感谢感谢

#23 Re: 全志 SOC » V3s支持SPI NAND吗?感觉spi nor的速度太慢了 » 2022-12-04 15:54:41

大佬们 v3s + spi nand flash的uboot如何配置呀 有链接教程嘛

#24 Re: 全志 SOC » 全志v3s无法从SPI NAND FLASH启动 » 2022-12-04 15:41:09

下方为配置的环境变量

vi include/configs/sun8i.h
#define CONFIG_BOOTCOMMAND   "sf probe 0; "                           \
                             "sf read 0x41800000 0x100000 0x10000; "  \
                             "sf read 0x41000000 0x110000 0x400000; " \
                             "bootz 0x41000000 - 0x41800000"

#define CONFIG_BOOTARGS      "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"

#25 全志 SOC » 全志v3s无法从SPI NAND FLASH启动 » 2022-12-04 15:39:34

hd_xyz
回复: 14

请教V3S如何从W25N01GVZEIG启动,网上例程较多为spi nor flash ,如果使用nand flash需要如何配置?目前烧录到nand flash启动无反应,上电依然进入fel模式  请各位大佬赐教

页脚

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

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