sunxi-fel.exe -p spiflash-write 0 u-boot-sunxi-with-spl.bin
sunxi-fel.exe -p spiflash-write 0x100000 zImage.bin
sunxi-fel.exe -p spiflash-write 0x350000 dtb.bin
sunxi-fel.exe -p spiflash-write 0x400000 rootfs_jffs2.bin
是这样吗? 有没有通过的文件,我测试下,是我编译错误还是什么问题
BOOT启动后无反应
starting USB...
No controllers found
Hit any key to stop autoboot: 2 1 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
=>
在线
Hit any key to stop autoboot: 0
=> printenv bootcmd
bootcmd=sf probe 0; sf read 0x41800000 0x100000 0x10000; sf read 0x41000000 0x110000 0x400000; bootz 0x41000000 - 0x41800000
=> printenv bootargs
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
=>
在线
=> bootz 0x41000000 - 0x41800000
=> bootz 0x41000000 - 0x41800000
=>
=>
=>
=>
=>
=> bootz 0x41000000 - 0x41800000
=>
没有反应
在线
zImage 弄错了,这个文件是arch/arm/boot下的?这个文件有3.9MB
"sunxi-fel.exe -p spiflash-write 0x100000 zImage.bin
sunxi-fel.exe -p spiflash-write 0x350000 dtb.bin"
这个范围不够存放?
在线
可能会不够, 但是又有点不像,至少会出现zImage内核的自解压信息:
Starting kernel ...
还是觉得你没烧进去,或者没读出来有问题。
执行: sudo sunxi-fel -p spiflash-info
看能否获取 spi flash 信息。
因为即使没有flash, 执行 sudo sunxi-fel -p spiflash-write 也不会提示任何错误.
离线
写进去了,读出来了 。但是zImage是3.9MB。
读出来的数据0x250000后面就是dtb的文件内容。前面的数据还不够zImage存放的
在线
这个没有弄懂
#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"
在线
CONFIG_BOOTCOMMAND
CONFIG_BOOTARGS
这两个相当于 u-boot 的环境变量 bootcmd, bootargs, 效果等同于在u-boot命令行下面输入这个:
setenv bootcmd "sf probe 0;sf read 0x41800000 0x100000 0x10000; sf read 0x41000000 0x110000 0x400000; bootz 0x41000000 - 0x41800000"
setenv 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"
saveenv
离线
sf probe 0; //检测 spi flash, 并拉低 spi_cs
sf read 0x41800000 0x100000 0x10000; //把设备树dtb读到 内存 0x41800000
sf read 0x41000000 0x110000 0x400000; //把压缩的zImage读到内存 0x41000000
bootz 0x41000000 - 0x41800000 //PC指针指向0x41000000 , 启动 zImage
离线
sunxi-fel.exe -p spiflash-write 0 u-boot-sunxi-with-spl.bin
sunxi-fel.exe -p spiflash-write 0x100000 zImage.bin
sunxi-fel.exe -p spiflash-write 0x350000 dtb.bin
sunxi-fel.exe -p spiflash-write 0x400000 rootfs_jffs2.bin是这样吗? 有没有通过的文件,我测试下,是我编译错误还是什么问题
BOOT启动后无反应starting USB...
No controllers found
Hit any key to stop autoboot: 2 1 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
=>
你好,你的这个rootfs_jffs2.bin是有效的吗。能不能借我测试一下?我的总是报错,不知道是什么原因。加个QQ交流一下。2113627805
离线
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.13.16-licheepi-zero+ (root@ubuntu) (gcc version 4.8. 4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #1 SMP Thu Sep 13 08:58:50 +08 2018
[ 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 c ache
[ 0.000000] OF: fdt: Machine model: Lichee Pi Zero
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33920 r8192 d23424 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 15883
[ 0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwa it 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, 143 6K rodata, 1024K init, 262K 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 : 0xc0a3d874 - 0xc0a7f1fc ( 263 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: 0x 588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 43980465 11097ns
[ 0.000018] Switching to timer-based delay loop, resolution 41ns
[ 0.000178] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idl e_ns: 79635851949 ns
[ 0.000411] Console: colour dummy device 80x30
[ 0.000449] Calibrating delay loop (skipped), value calculated using timer frequ ency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000466] pid_max: default: 32768 minimum: 301
[ 0.000587] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000603] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001208] CPU: Testing write buffer coherency: ok
[ 0.001588] /cpus/cpu@0 missing clock-frequency property
[ 0.001612] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002064] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002247] Hierarchical SRCU implementation.
[ 0.002734] smp: Bringing up secondary CPUs ...
[ 0.002750] smp: Brought up 1 node, 1 CPU
[ 0.002759] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002766] CPU: All CPU(s) started in SVC mode.
[ 0.003529] devtmpfs: initialized
[ 0.006657] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 re v 5
[ 0.006953] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_i dle_ns: 19112604462750000 ns
[ 0.006981] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007144] pinctrl core: initialized pinctrl subsystem
[ 0.008016] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 wit h crng_init=0
[ 0.008160] NET: Registered protocol family 16
[ 0.008646] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009767] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint reg isters.
[ 0.009785] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.022979] SCSI subsystem initialized
[ 0.023282] usbcore: registered new interface driver usbfs
[ 0.023352] usbcore: registered new interface driver hub
[ 0.023446] usbcore: registered new device driver usb
[ 0.023719] pps_core: LinuxPPS API ver. 1 registered
[ 0.023730] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.023753] PTP clock support registered
[ 0.023970] Advanced Linux Sound Architecture Driver Initialized.
[ 0.025856] clocksource: Switched to clocksource arch_sys_counter
[ 0.036844] NET: Registered protocol family 2
[ 0.037454] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.037492] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.037516] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.037646] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037697] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037904] NET: Registered protocol family 1
[ 0.038501] RPC: Registered named UNIX socket transport module.
[ 0.038523] RPC: Registered udp transport module.
[ 0.038530] RPC: Registered tcp transport module.
[ 0.038536] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.040660] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.049692] NFS: Registering the id_resolver key type
[ 0.049751] Key type id_resolver registered
[ 0.049759] Key type id_legacy registered
[ 0.050689] random: fast init done
[ 0.053483] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.053503] io scheduler noop registered
[ 0.053511] io scheduler deadline registered
[ 0.053747] io scheduler cfq registered (default)
[ 0.053759] io scheduler mq-deadline registered
[ 0.053766] io scheduler kyber registered
[ 0.058262] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.058767] pwm-backlight backlight: backlight supply power not found, using dum my regulator
[ 0.129113] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.132531] console [ttyS0] disabled
[ 0.152807] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 15000 00) is a U6_16550A
[ 0.743666] console [ttyS0] enabled
[ 0.748421] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE0
[ 0.756171] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE1
[ 0.763825] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE2
[ 0.771495] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE3
[ 0.779159] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE4
[ 0.786820] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE5
[ 0.794469] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE6
[ 0.802128] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE7
[ 0.809787] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE8
[ 0.817445] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE9
[ 0.825092] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE10
[ 0.832838] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE11
[ 0.840584] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE12
[ 0.848330] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE13
[ 0.856075] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE14
[ 0.863811] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE15
[ 0.871557] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE16
[ 0.879302] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE17
[ 0.887048] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE18
[ 0.894784] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE19
[ 0.902530] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE23
[ 0.910276] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE24
[ 0.919538] panel-simple panel: panel supply power not found, using dummy regula tor
[ 0.928724] libphy: Fixed MDIO Bus: probed
[ 0.933200] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.939815] ehci-platform: EHCI generic platform driver
[ 0.945311] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.950981] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus numb er 1
[ 0.958910] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 0.985904] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.993086] hub 1-0:1.0: USB hub found
[ 0.997047] hub 1-0:1.0: 1 port detected
[ 1.001533] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.007845] ohci-platform: OHCI generic platform driver
[ 1.013421] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 1.020153] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus numb er 2
[ 1.028081] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 1.100935] hub 2-0:1.0: USB hub found
[ 1.104761] hub 2-0:1.0: 1 port detected
[ 1.112361] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 1.122116] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 1.129021] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.133572] i2c /dev entries driver
[ 1.138581] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/i nput/input0
[ 1.148153] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayo ut=0)
[ 1.216095] sunxi-mmc 1c0f000.mmc: base:0xc4069000 irq:24
[ 1.223216] usbcore: registered new interface driver usbhid
[ 1.228890] usbhid: USB HID core driver
[ 1.234669] NET: Registered protocol family 17
[ 1.239357] Key type dns_resolver registered
[ 1.243780] Registering SWP/SWPB emulation handler
[ 1.254382] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[ 1.265034] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x4 80x32, linelength=3200
[ 1.283365] Console: switching to colour frame buffer device 100x30
[ 1.295908] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[ 1.303984] pwm-backlight backlight: backlight supply power not found, using dum my regulator
[ 1.313578] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE0
[ 1.321349] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE1
[ 1.329032] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE2
[ 1.336700] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE3
[ 1.344350] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE4
[ 1.352012] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE5
[ 1.359674] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE6
[ 1.367334] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE7
[ 1.374983] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE8
[ 1.382643] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE9
[ 1.390304] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE10
[ 1.398051] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE11
[ 1.405786] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE12
[ 1.413533] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE13
[ 1.421279] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE14
[ 1.429025] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE15
[ 1.436771] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE16
[ 1.444506] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE17
[ 1.452252] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE18
[ 1.459999] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE19
[ 1.467746] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE23
[ 1.475482] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE24
[ 1.483616] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.490361] [drm] No driver support for vblank timestamp query.
[ 1.505707] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc073eff4)
[ 1.513114] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc073de 74)
[ 1.520858] fb: switching to sun4i-drm-fb from simple
[ 1.526055] Console: switching to colour dummy device 80x30
我也还有坑,调好传给你
在线
一起交流一下,共同学习嘛。加个Q先。
离线
要不,你把你的rootfs.jffs2给我用一下试试?
离线
在公司电脑中,明天有事,等去公司后再发你
在线
1.404856] vcc3v3: disabling
[ 1.407890] vcc5v0: disabling
[ 1.410859] ALSA device list:
[ 1.413822] #0: V3s Audio Codec
[ 1.418373] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -19
[ 1.425944] Please append a correct "root=" boot option; here are the available partitions:
[ 1.434392] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[ 1.442740] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero-with-800x480-lcd+ #2
///我也没有搞定,这个jffs2也有问题
在线
晕哥大神国庆好哈,能否这对V3S 帮忙给大家出个step by step的SPI 镜像编译教程,小弟按照大家的帖子搞了块2周了还是无法完整的从uboot 跑到rootfs,还请晕哥普度众生哈。
小弟是按照 https://whycan.cn/t_682.html ,这个帖子来编译的。
目前遇到的困惑:
1. Uboot/Kernel/buildroot 的Menu config 具体要怎么配置?
现有的帖子好像config部分介绍的都比较简单。
2. buildroot 要如何生成jffs2 格式。
该帖子中的rootf_jffs2 百度链接也已经失效。
离线
我找个空闲时间再写一篇 step by setep for spi flash的版本.
1. u-boot, kernel, buildroot 的配置和文档上面一模一样, 与tf卡/spi flash没有关系, 你能跑起来之后再细看每个配置选项
2. buildroot 生成jffs2 用 mkfs.jffs2 命令手动生成, 或者在 make menuconfig 里面配置一下就可以自动生成了。本站搜一下 mkfs.jffs2
离线
晕哥, 及其期待您step by setep for spi flash的帖子 ,
今天有摸索了一天还是没成功,遗憾哈。
一直遇到以下错误, Kernel 里面也有打开jffs2的选项了, 请教晕哥是我Kernel 没生成好呢?还是rootfs or jffs2有问题?
[ 1.107018] #0: V3s Audio Codec
[ 1.111404] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -19
[ 1.119122] Please append a correct "root=" boot option; here are the available partitions:
[ 1.127512] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[ 1.135862] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.10.15-licheepi-zero #1
[ 1.143072] Hardware name: Allwinner sun8i Family
[ 1.147810] [<c010e254>] (unwind_backtrace) from [<c010b000>] (show_stack+0x10/0x14)
[ 1.155553] [<c010b000>] (show_stack) from [<c0345fe8>] (dump_stack+0x84/0x98)
[ 1.162775] [<c0345fe8>] (dump_stack) from [<c01a6eac>] (panic+0xdc/0x248)
[ 1.169653] [<c01a6eac>] (panic) from [<c090120c>] (mount_block_root+0x198/0x270)
[ 1.177133] [<c090120c>] (mount_block_root) from [<c0901408>] (mount_root+0x124/0x12c)
离线
晕哥,请帮忙看下, MTDpart 看起来也有
=> printenv bootcmd
bootcmd=sf probe 0; sf read 0x41800000 0x100000 0x10000; sf read 0x41000000 0x110000 0x400000; bootz 0x41000000 - 0x41800000
=> printenv bootargs
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
=> bootz 0x41000000 - 0x41800000
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dff42d ... OK
Starting kernel ...
undefined instruction
pc : [<4256a968>] lr : [<43d55930>]
reloc pc : [<41615968>] lr : [<42e00930>]
sp : 43b4a070 ip : 00000002 fp : 43d55b34
r10: 00000000 r9 : 43b4cee8 r8 : 43b5658c
r7 : 00000000 r6 : 41000000 r5 : 43db5284 r4 : 00000000
r3 : 0000242e r2 : 43d00000 r1 : 00000000 r0 : 00000000
Flags: nZCv IRQs off FIQs off Mode SVC_32
Resetting CPU ...
resetting ...
完整的开机log:
U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Sep 29 2018 - 11:46:15 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
Setting up a 480x272 lcd console (overscan 0x0)
dotclock: 10000kHz = 10000kHz: (1 * 3MHz * 20) / 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: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dff42d ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.10.15-licheepi-zero (dophin-pi@dophinpi-virtual-machine) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) ) #1 SMP Sat Sep 29 17:08:32 CST 2018
[ 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 14 pages/cpu @c3ee3000 s24716 r8192 d24436 u57344
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16129
[ 0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 54632K/65024K available (6144K kernel code, 199K rwdata, 1408K rodata, 1024K init, 262K bss, 10392K 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 - 0xc3f80000 ( 63 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a31f00 ( 200 kB)
[ 0.000000] .bss : 0xc0a33000 - 0xc0a7484c ( 263 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000019] Switching to timer-based delay loop, resolution 41ns
[ 0.000152] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000365] Console: colour dummy device 80x30
[ 0.000402] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000418] pid_max: default: 32768 minimum: 301
[ 0.000556] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000568] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001276] CPU: Testing write buffer coherency: ok
[ 0.001680] /cpus/cpu@0 missing clock-frequency property
[ 0.001704] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002089] Setting up static identity map for 0x40100000 - 0x40100058
[ 0.002844] smp: Bringing up secondary CPUs ...
[ 0.002864] smp: Brought up 1 node, 1 CPU
[ 0.002874] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002881] CPU: All CPU(s) started in SVC mode.
[ 0.003678] devtmpfs: initialized
[ 0.006622] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.006898] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.006931] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007081] pinctrl core: initialized pinctrl subsystem
[ 0.008102] NET: Registered protocol family 16
[ 0.008577] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009825] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.009842] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.021901] SCSI subsystem initialized
[ 0.022169] usbcore: registered new interface driver usbfs
[ 0.022250] usbcore: registered new interface driver hub
[ 0.022360] usbcore: registered new device driver usb
[ 0.022580] pps_core: LinuxPPS API ver. 1 registered
[ 0.022591] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.022613] PTP clock support registered
[ 0.022830] Advanced Linux Sound Architecture Driver Initialized.
[ 0.024652] clocksource: Switched to clocksource arch_sys_counter
[ 0.025494] simple-framebuffer 43f80000.framebuffer: framebuffer at 0x43f80000, 0x7f800 bytes, mapped to 0xc4080000
[ 0.025516] simple-framebuffer 43f80000.framebuffer: format=x8r8g8b8, mode=480x272x32, linelength=1920
[ 0.028332] Console: switching to colour frame buffer device 60x34
[ 0.030653] simple-framebuffer 43f80000.framebuffer: fb0: simplefb registered!
[ 0.040399] NET: Registered protocol family 2
[ 0.040997] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.041031] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.041055] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.041140] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.041188] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.041392] NET: Registered protocol family 1
[ 0.042026] RPC: Registered named UNIX socket transport module.
[ 0.042046] RPC: Registered udp transport module.
[ 0.042053] RPC: Registered tcp transport module.
[ 0.042058] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.044302] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.053403] NFS: Registering the id_resolver key type
[ 0.053451] Key type id_resolver registered
[ 0.053458] Key type id_legacy registered
[ 0.053508] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.058298] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.058319] io scheduler noop registered
[ 0.058326] io scheduler deadline registered
[ 0.058550] io scheduler cfq registered (default)
[ 0.062732] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.131220] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.134375] console [ttyS0] disabled
[ 0.154693] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 1500000) is a U6_16550A
[ 0.755781] console [ttyS0] enabled
[ 0.759970] [drm] Initialized
[ 0.764987] libphy: Fixed MDIO Bus: probed
[ 0.769319] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.775910] ehci-platform: EHCI generic platform driver
[ 0.781232] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.787458] ohci-platform: OHCI generic platform driver
[ 0.793149] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 0.802650] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 0.811627] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 0.818532] sun6i-rtc 1c20400.rtc: RTC enabled
[ 0.823081] i2c /dev entries driver
[ 0.827978] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[ 0.837540] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 0.904688] sunxi-mmc 1c0f000.mmc: base:0xc406b000 irq:23
[ 0.964677] sunxi-mmc 1c10000.mmc: base:0xc406f000 irq:24
[ 0.971064] usbcore: registered new interface driver usbhid
[ 0.976718] usbhid: USB HID core driver
[ 0.982117] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[ 0.990175] sun4i-codec 1c22c00.codec: Failed to register our card
[ 0.997356] NET: Registered protocol family 17
[ 1.001935] Key type dns_resolver registered
[ 1.006480] Registering SWP/SWPB emulation handler
[ 1.019896] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.027906] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.033673] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[ 1.042844] hub 1-0:1.0: USB hub found
[ 1.046840] hub 1-0:1.0: 1 port detected
[ 1.051507] using random self ethernet address
[ 1.056084] using random host ethernet address
[ 1.061491] usb0: HOST MAC da:9c:0e:97:50:cd
[ 1.065973] usb0: MAC 16:cb:f1:4a:12:65
[ 1.069858] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.077396] g_cdc gadget: g_cdc ready
[ 1.083578] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.092568] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 03:03:25 UTC (11005)
[ 1.101154] vcc5v0: disabling
[ 1.104132] ALSA device list:
[ 1.107157] #0: V3s Audio Codec
[ 1.111547] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -19
[ 1.119266] Please append a correct "root=" boot option; here are the available partitions:
[ 1.127659] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[ 1.136006] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.10.15-licheepi-zero #1
[ 1.143215] Hardware name: Allwinner sun8i Family
[ 1.147955] [<c010e254>] (unwind_backtrace) from [<c010b000>] (show_stack+0x10/0x14)
[ 1.155698] [<c010b000>] (show_stack) from [<c0345fe8>] (dump_stack+0x84/0x98)
[ 1.162918] [<c0345fe8>] (dump_stack) from [<c01a6eac>] (panic+0xdc/0x248)
[ 1.169796] [<c01a6eac>] (panic) from [<c090120c>] (mount_block_root+0x198/0x270)
[ 1.177277] [<c090120c>] (mount_block_root) from [<c0901408>] (mount_root+0x124/0x12c)
[ 1.185187] [<c0901408>] (mount_root) from [<c0901560>] (prepare_namespace+0x150/0x198)
[ 1.193185] [<c0901560>] (prepare_namespace) from [<c0900e44>] (kernel_init_freeable+0x1d4/0x1e4)
[ 1.202050] [<c0900e44>] (kernel_init_freeable) from [<c065bd6c>] (kernel_init+0x8/0x114)
[ 1.210222] [<c065bd6c>] (kernel_init) from [<c0107578>] (ret_from_fork+0x14/0x3c)
[ 1.217791] Rebooting in 5 seconds
离线
谢谢晕哥,是这个选项吗?
Memory Technology Devec(MTD) Support --> Command line partition table parsing
刚确认是有打开的。
离线
dts 文件要启用 spi 总线,并且加入 mx25/w25 设备。
离线
感谢路人甲, dts 文件要启用 spi 总线,并且加入 mx25/w25 设备
能否帮忙说的详细点吗,或者可以参考那个帖子呢?
离线
晕哥, 参考这个帖子还是没搞定哈,期待您的详细帖子哈 ^^.
我搜了下大家的帖子,看起来大部分网友都是卡在这里了。
VFS: Cannot open root device "31:03" or unknown-block(31,3): error -19
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
我按照帖子中在dts中增加以下选项,不过MTD分区信息还是没打印出来,还有其他地方要改吗?
&spi0 {
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins>;
status = "okay";
spi-max-frequency = <50000000>;
flash: w25q128@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "winbond,w25q128", "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x000000 0x100000>;
read-only;
};
partition@100000 {
label = "dtb";
reg = <0x100000 0x10000>;
read-only;
};
partition@110000 {
label = "kernel";
reg = <0x110000 0x400000>;
read-only;
};
partition@510000 {
label = "rootfs";
reg = <0x510000 0xAF0000>;
};
};
};
};
另外我试着把sun8.h 中的root描述按照帖子改成 root=/dev/mtdblock3 rw rootfstype=jffs2
则会卡在以下:
[ 1.111513] Waiting for root device /dev/mtdblock3...
[ 5.123884] random: fast init done
[ 5.132458] g_cdc gadget: high-speed config #1: CDC Composite (ECM + ACM)
感觉问题就出在Kernel 如何识别rootfs 分区这块了,但对这块的机理不是太了解,求助哈。
离线
谢谢晕哥,看了下这个config是有打开的。
晕哥sun8i-v3s-licheepi-zero.dts 文件在uboot 和 Kernel 下都有,两者的关系是什么呢? 我感觉应该一样才对,我的现在是不一样的,要保持一样吗? dts不是应该有u-boot传给kernel吗?
u-boot\arch\arm\dts\sun8i-v3s-licheepi-zero.dts
linux-zero-4.13.y\arch\arm\boot\dts\sun8i-v3s-licheepi-zero.dts
另外:Kernel下有
linux-zero-4.13.y\arch\arm\boot\dts\sun8i-v3s-licheepi-zero-dock.dts
linux-zero-4.13.y\arch\arm\boot\dts\sun8i-v3s-licheepi-zero.dts
这两者的关系又是什么呢?
请晕哥帮忙解答下困惑哈
Thanks
离线
离线
晕哥晚上好哈:
请教个问题和现在MTD table看起来是有了,不过又遇到jffs2: jffs2_scan_dirent_node(): Node CRC failed 的错误, 用我自己编译的rootfs 和v3s-rtl8723bs(flash烧录镜像,wifi自动获取ip,可以上互联网)里面的都有这个问题,可能会是什么原因呢?
vcc5v0: disabling
ALSA device list:
#0: V3s Audio Codec
jffs2: jffs2_scan_dirent_node(): Node CRC failed on node at 0x000000ec: Read 0x0a4b1fdb, calculated 0x83142e05
jffs2: Node at 0x00000fc4 with length 0x000000cd would run over the end of the erase block
jffs2: Perhaps the file system was created with the wrong erase size?
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000fc8: 0x00cd instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000fcc: 0x02ac instead
离线
如果是 W25Q 系列spi flash, 在驱动有一处要修改一下:
修改源码下的 ./drivers/mtd/spi-nor.c
修改对应spi-flash;如 w25q128 :
{ "w25q128", INFO(0xef4018, 0, 64 * 1024, 256, SECT_4K) },
// 修改为 (不使用sector,使用块擦除):
{ "w25q128", INFO(0xef4018, 0, 64 * 1024, 256, 0) },
离线
Dear 晕哥:
最近有空帮大家准备step by step for spi flash的教程哈,小弟目前还卡在jffs2 错误,期待您的教程哈。
要是荔枝派能像海豚派一样提供一个完整的编译包就好了。
==========================================================
#0: V3s Audio Codec
jffs2: jffs2_scan_dirent_node(): Node CRC failed on node at 0x000000ec: Read 0x702d3e20, cal
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001138: 0x19ff instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000113c: 0x00ba instead
=========================================================
一直打印这个错误log, 最后出现以下错误, 晕哥帮忙看下可能是什么原因呢。
=========================================================
[ 27.447985] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x00ae62ac: Read 0x04a3000f, calculated 0xebb740cc
[ 27.460020] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x00ae830c: Read 0x6df702a3, calculated 0x82e34260
[ 27.490598] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[ 27.497916] Freeing unused kernel memory: 1024K
[ 27.502699] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[ 27.516861] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero #7
[ 27.524071] Hardware name: Allwinner sun8i Family
[ 27.528811] [<c010e4c4>] (unwind_backtrace) from [<c010b218>] (show_stack+0x10/0x14)
[ 27.536558] [<c010b218>] (show_stack) from [<c0673c5c>] (dump_stack+0x84/0x98)
[ 27.543784] [<c0673c5c>] (dump_stack) from [<c011b544>] (panic+0xdc/0x248)
[ 27.550663] [<c011b544>] (panic) from [<c0686670>] (kernel_init+0x100/0x110)
[ 27.557709] [<c0686670>] (kernel_init) from [<c0107578>] (ret_from_fork+0x14/0x3c)
[ 27.565281] Rebooting in 5 seconds..
==========================================================
离线
晕哥好,我用的是w25q128的,uboot识别出来的是w25q128bv
离线
同一个rootfs 我用sd卡编译的教程看起来是ok的,就是flash的搞不定
离线
晕哥, 38楼的改法之前已经改过了,刚刚有确认了下似乎也没错,还要可能是其他原因吗?
{ "w25q80bl", INFO(0xef4014, 0, 64 * 1024, 16, SECT_4K) },
{ "w25q128bv", INFO(0xef4018, 0, 64 * 1024, 256, 0) },
离线
spi flash都太小了,我使用了一款mx25L256 只有32M。 有没有v3s 适配 NAND FLASH或者SD NAND 之类的帖子,我想要个大容量的,最起码128m
离线
如果我不想使用TF卡,有什么其他的芯片可以代替TF卡么? 大容量的128M 以上 。
离线
晕哥小弟 说:如果我不想使用TF卡,有什么其他的芯片可以代替TF卡么? 大容量的128M 以上 。
https://whycan.cn/t_2013.html
SD NAND记得说挖坑网晕哥推荐的, 斜眼笑.gif
晕哥说的没毛病,晕哥介绍的来的,一律全方位接待。
CS品牌SD NAND , ATO 小容量SLC/SPI NAND/MCP. T:13691982107,Q:2852826868
离线
@晕哥 @雷龙发展
我想问下,采用SD NAND 之后,如何把程序刷到SD NAND中呢? 目前程序是BSP 。难道每个都需要使用转接板,先把SD NAND 焊接到转接板上,然后再取下来,再焊接到产品中。有没有更好的办法呢?
离线
离线
晕哥,你在B站有部分的教学视频,你有个通过USB烧写SP-FLASH的脚本,能提供下么? 脚本名称大致是: Run_V3S_Licheepi0.bat
离线
晕哥给力
离线
我也遇到同样的问题,求大神指导
U-Boot 2017.01-rc2-00073-gdd6e8740dc-dirty (Dec 12 2021 - 03:52:27 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
Setting up a 480x272 lcd console (overscan 0x0)
dotclock: 10000kHz = 10000kHz: (1 * 3MHz * 20) / 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: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dffec2 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.13.16-licheepi-zero+ (yehao@ubuntu) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05)) #1 SMP Sun Dec 12 03:32:34 CST 2021
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Lichee Pi Zero
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu @c3edf000 s33868 r8192 d23476 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16129
[ 0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 54564K/65024K available (6144K kernel code, 217K rwdata, 1456K 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 - 0xc3f80000 ( 63 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.000019] Switching to timer-based delay loop, resolution 41ns
[ 0.000183] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000413] Console: colour dummy device 80x30
[ 0.000446] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000460] pid_max: default: 32768 minimum: 301
[ 0.000588] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000601] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001196] CPU: Testing write buffer coherency: ok
[ 0.001560] /cpus/cpu@0 missing clock-frequency property
[ 0.001584] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002024] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002212] Hierarchical SRCU implementation.
[ 0.002716] smp: Bringing up secondary CPUs ...
[ 0.002730] smp: Brought up 1 node, 1 CPU
[ 0.002739] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002746] CPU: All CPU(s) started in SVC mode.
[ 0.003498] devtmpfs: initialized
[ 0.006620] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.006918] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.006942] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007103] pinctrl core: initialized pinctrl subsystem
[ 0.007952] random: get_random_u32 called from bucket_table_alloc+0xf4/0x244 with crng_init=0
[ 0.008089] NET: Registered protocol family 16
[ 0.008559] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009675] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.009693] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.022751] SCSI subsystem initialized
[ 0.023049] usbcore: registered new interface driver usbfs
[ 0.023115] usbcore: registered new interface driver hub
[ 0.023204] usbcore: registered new device driver usb
[ 0.023460] pps_core: LinuxPPS API ver. 1 registered
[ 0.023469] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.023490] PTP clock support registered
[ 0.023712] Advanced Linux Sound Architecture Driver Initialized.
[ 0.025536] clocksource: Switched to clocksource arch_sys_counter
[ 0.036261] NET: Registered protocol family 2
[ 0.036847] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.036881] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.036905] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.037034] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037083] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037304] NET: Registered protocol family 1
[ 0.037880] RPC: Registered named UNIX socket transport module.
[ 0.037899] RPC: Registered udp transport module.
[ 0.037905] RPC: Registered tcp transport module.
[ 0.037911] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.039993] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.048857] NFS: Registering the id_resolver key type
[ 0.048908] Key type id_resolver registered
[ 0.048916] Key type id_legacy registered
[ 0.048962] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.050467] random: fast init done
[ 0.053344] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.053363] io scheduler noop registered
[ 0.053371] io scheduler deadline registered
[ 0.053646] io scheduler cfq registered (default)
[ 0.053658] io scheduler mq-deadline registered
[ 0.053665] io scheduler kyber registered
[ 0.057889] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.058386] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[ 0.126536] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.129702] console [ttyS0] disabled
[ 0.149974] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 1500000) is a U6_16550A
[ 0.746522] console [ttyS0] enabled
[ 0.751201] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE0
[ 0.758950] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE1
[ 0.766628] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE2
[ 0.774276] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE3
[ 0.781938] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE4
[ 0.789600] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE5
[ 0.797260] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE6
[ 0.804908] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE7
[ 0.812567] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE8
[ 0.820225] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE9
[ 0.827885] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE10
[ 0.835632] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE11
[ 0.843367] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE12
[ 0.851114] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE13
[ 0.858860] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE14
[ 0.866606] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE15
[ 0.874342] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE16
[ 0.882088] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE17
[ 0.889834] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE18
[ 0.897580] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE19
[ 0.905316] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE23
[ 0.913062] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE24
[ 0.922308] panel-simple panel: panel supply power not found, using dummy regulator
[ 0.932411] m25p80 spi32766.0: unrecognized JEDEC id bytes: 0b, 40, 18
[ 0.939061] m25p80: probe of spi32766.0 failed with error -2
[ 0.945131] libphy: Fixed MDIO Bus: probed
[ 0.949743] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.956326] ehci-platform: EHCI generic platform driver
[ 0.961821] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.967488] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 0.975398] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 1.005575] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 1.012760] hub 1-0:1.0: USB hub found
[ 1.016697] hub 1-0:1.0: 1 port detected
[ 1.021196] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.027494] ohci-platform: OHCI generic platform driver
[ 1.033056] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 1.039788] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 1.047717] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 1.120650] hub 2-0:1.0: USB hub found
[ 1.124494] hub 2-0:1.0: 1 port detected
[ 1.132096] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 1.141827] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 1.148725] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.153268] i2c /dev entries driver
[ 1.158232] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[ 1.167780] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.235770] sunxi-mmc 1c0f000.mmc: base:0xc4077000 irq:24
[ 1.242813] usbcore: registered new interface driver usbhid
[ 1.248488] usbhid: USB HID core driver
[ 1.254135] NET: Registered protocol family 17
[ 1.258823] Key type dns_resolver registered
[ 1.263245] Registering SWP/SWPB emulation handler
[ 1.273690] simple-framebuffer 43f80000.framebuffer: framebuffer at 0x43f80000, 0x7f800 bytes, mapped to 0xc4300000
[ 1.284251] simple-framebuffer 43f80000.framebuffer: format=x8r8g8b8, mode=480x272x32, linelength=1920
[ 1.298588] Console: switching to colour frame buffer device 60x34
[ 1.307062] simple-framebuffer 43f80000.framebuffer: fb0: simplefb registered!
[ 1.315151] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[ 1.324692] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE0
[ 1.332501] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE1
[ 1.340181] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE2
[ 1.347847] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE3
[ 1.355509] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE4
[ 1.363159] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE5
[ 1.370818] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE6
[ 1.378479] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE7
[ 1.386139] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE8
[ 1.393786] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE9
[ 1.401446] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE10
[ 1.409192] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE11
[ 1.416939] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE12
[ 1.424674] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE13
[ 1.432421] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE14
[ 1.440168] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE15
[ 1.447915] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE16
[ 1.455662] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE17
[ 1.463397] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE18
[ 1.471143] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE19
[ 1.478890] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE23
[ 1.486636] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE24
[ 1.494745] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.501470] [drm] No driver support for vblank timestamp query.
[ 1.516797] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc073f638)
[ 1.524142] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc073e4b8)
[ 1.531884] fb: switching to sun4i-drm-fb from simple
[ 1.537081] Console: switching to colour dummy device 80x30
离线