您尚未登录。

#1 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2018-09-26 17:55:22

晕哥 说:

看了你的启动log, 没有显示bootargs ?是不是没有按照一楼的要求改?

我是通过写入boot.src来写入的。仔细对比了下,百度网盘中的zero_imager.zip的boot.cmd有问题,多了个console=tty0,去掉就好了。多谢晕哥指导。

setenv bootargs console=ttyS0,115200 panic=5 console=tty0 rootwait root=/dev/mmcblk0p2 earlyprintk rw
load mmc 0:1 0x41000000 zImage
load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-ctc.dtb
bootz 0x41000000 - 0x41800000

#2 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2018-09-25 15:57:15

晕哥 说:
fypp 说:
晕哥 说:

你的根文件系统有问题,请重新格式化第二个分区并把根文件系统拷进去, 或者换一张TF卡试一试.

重新制作试过了,还是卡在这里。我用网盘共享的文件启动发现是正常的,不知道我自己制作的时候哪里出了问题。我看了下/dev/ 下没有console和log,这个有影响吗? 在哪个阶段会生成这个两个文件。

有影响,一定要有 /dev/console 文件.

创建 console 设备文件的方法:

mkdir dev -p
cd dev/
sudo mknod console c 5 1

U-Boot SPL 2017.01-rc2-00057-g32ab180 (Sep 24 2018 - 03:47:58)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2-00057-g32ab180 (Sep 24 2018 - 03:47:58 -0700) Allwinner Techn                                                                                                                                                             ology

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

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


U-Boot 2017.01-rc2-00057-g32ab180 (Sep 24 2018 - 03:47:58 -0700) Allwinner Techn                                                                                                                                                             ology

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

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
292 bytes read in 20 ms (13.7 KiB/s)
## Executing script at 41900000
reading zImage
3949696 bytes read in 201 ms (18.7 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11856 bytes read in 26 ms (445.3 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffe4f ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (codixu@ubuntu) (gcc version                                                                                                                                                              7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f919                                                                                                                                                             77701] (Linaro GCC 7.3-2018.05)) #1 SMP Mon Sep 24 08:04:54 PDT 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 instructio                                                                                                                                                             n cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3f5f000 s33868 r8192 d23476 u6553                                                                                                                                                             6
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag                                                                                                                                                             es: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 console=tty0 ro                                                                                                                                                             otwait root=/dev/mmcblk0p2 earlyprintk rw
[    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: 55096K/65536K available (6144K kernel code, 217K rwdata,                                                                                                                                                              1436K rodata, 1024K init, 261K bss, 10440K reserved, 0K cma-reserved, 0K highmem                                                                                                                                                             )
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a366c0   ( 218 kB)
[    0.000000]        .bss : 0xc0a3d7f0 - 0xc0a7efec   ( 262 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 43980                                                                                                                                                             46511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000178] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_                                                                                                                                                             idle_ns: 79635851949 ns
[    0.000413] Console: colour dummy device 80x30
[    0.000851] console [tty0] enabled
[    0.000892] Calibrating delay loop (skipped), value calculated using timer fr                                                                                                                                                             equency.. 48.00 BogoMIPS (lpj=240000)
[    0.000931] pid_max: default: 32768 minimum: 301
[    0.001069] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001100] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001720] CPU: Testing write buffer coherency: ok
[    0.002112] /cpus/cpu@0 missing clock-frequency property
[    0.002153] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002618] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002820] Hierarchical SRCU implementation.
[    0.003351] smp: Bringing up secondary CPUs ...
[    0.003383] smp: Brought up 1 node, 1 CPU
[    0.003403] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003422] CPU: All CPU(s) started in SVC mode.
[    0.004213] devtmpfs: initialized
[    0.007273] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7                                                                                                                                                              rev 5
[    0.007601] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma                                                                                                                                                             x_idle_ns: 19112604462750000 ns
[    0.007653] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007830] pinctrl core: initialized pinctrl subsystem
[    0.008689] random: get_random_u32 called from bucket_table_alloc+0xfc/0x224                                                                                                                                                              with crng_init=0
[    0.008858] NET: Registered protocol family 16
[    0.009314] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.010537] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint                                                                                                                                                              registers.
[    0.010587] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023462] SCSI subsystem initialized
[    0.023801] usbcore: registered new interface driver usbfs
[    0.023890] usbcore: registered new interface driver hub
[    0.023996] usbcore: registered new device driver usb
[    0.024277] pps_core: LinuxPPS API ver. 1 registered
[    0.024305] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giome                                                                                                                                                             tti <giometti@linux.it>
[    0.024354] PTP clock support registered
[    0.024578] Advanced Linux Sound Architecture Driver Initialized.
[    0.026399] clocksource: Switched to clocksource arch_sys_counter
[    0.036684] NET: Registered protocol family 2
[    0.037289] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.037348] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.037384] TCP: Hash tables configured (established 1024 bind 1024)
[    0.037531] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.037593] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.037823] NET: Registered protocol family 1
[    0.038430] RPC: Registered named UNIX socket transport module.
[    0.038473] RPC: Registered udp transport module.
[    0.038490] RPC: Registered tcp transport module.
[    0.038507] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.040554] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.049540] NFS: Registering the id_resolver key type
[    0.049622] Key type id_resolver registered
[    0.049640] Key type id_legacy registered
[    0.050658] random: fast init done
[    0.053463] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2                                                                                                                                                             49)
[    0.053517] io scheduler noop registered
[    0.053535] io scheduler deadline registered
[    0.053808] io scheduler cfq registered (default)
[    0.053836] io scheduler mq-deadline registered
[    0.053854] io scheduler kyber registered
[    0.058258] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.126731] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.130057] console [ttyS0] disabled
[    0.150356] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 15                                                                                                                                                             00000) is a U6_16550A
[    0.737619] console [ttyS0] enabled
[    0.744357] libphy: Fixed MDIO Bus: probed
[    0.749058] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.754873] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.760664] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.766885] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.772566] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supporte                                                                                                                                                             d
[    0.779838] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.785504] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supporte                                                                                                                                                             d
[    0.792754] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.797737] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.804707] libphy: stmmac: probed
[    0.809962] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.816634] ehci-platform: EHCI generic platform driver
[    0.822152] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.827858] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus n                                                                                                                                                             umber 1
[    0.835804] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.866421] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.873594] hub 1-0:1.0: USB hub found
[    0.877583] hub 1-0:1.0: 1 port detected
[    0.882092] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.888412] ohci-platform: OHCI generic platform driver
[    0.893962] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.900706] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus n                                                                                                                                                             umber 2
[    0.908693] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    0.981497] hub 2-0:1.0: USB hub found
[    0.985340] hub 2-0:1.0: 1 port detected
[    0.992907] udc-core: couldn't find an available UDC - added [g_cdc] to list                                                                                                                                                              of pending drivers
[    1.002529] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input                                                                                                                                                             /input0
[    1.011509] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.018446] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.022994] i2c /dev entries driver
[    1.027996] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-004                                                                                                                                                             8/input/input1
[    1.037520] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, now                                                                                                                                                             ayout=0)
[    1.106448] sunxi-mmc 1c0f000.mmc: base:0xc4981000 irq:23
[    1.153631] mmc0: host does not support reading read-only switch, assuming wr                                                                                                                                                             ite-enable
[    1.163914] mmc0: new high speed SDHC card at address aaaa
[    1.169992] sunxi-mmc 1c10000.mmc: base:0xc4985000 irq:24
[    1.176587] usbcore: registered new interface driver usbhid
[    1.182187] usbhid: USB HID core driver
[    1.186794] mmcblk0: mmc0:aaaa SU16G 14.8 GiB
[    1.193258] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not r                                                                                                                                                             egistered
[    1.201349] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.208916]  mmcblk0: p1 p2
[    1.215873] NET: Registered protocol family 17
[    1.220568] Key type dns_resolver registered
[    1.224987] Registering SWP/SWPB emulation handler
[    1.235277] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto su                                                                                                                                                             pply vcc not found, using dummy regulator
[    1.246796] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.252584] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus                                                                                                                                                              number 3
[    1.261741] hub 3-0:1.0: USB hub found
[    1.265634] hub 3-0:1.0: 1 port detected
[    1.270956] using random self ethernet address
[    1.275471] using random host ethernet address
[    1.281101] usb0: HOST MAC be:50:aa:2c:22:94
[    1.285439] usb0: MAC a2:1e:00:16:82:90
[    1.289405] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day                                                                                                                                                              2008
[    1.296933] g_cdc gadget: g_cdc ready
[    1.303068] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.312557] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:0                                                                                                                                                             5 UTC (5)
[    1.320792] vcc5v0: disabling
[    1.323786] ALSA device list:
[    1.326817]   #0: V3s Audio Codec
[    1.331910] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incomp                                                                                                                                                             atibilities
[    1.341365] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incomp                                                                                                                                                             atibilities
[    1.398757] EXT4-fs (mmcblk0p2): recovery complete
[    1.405563] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. O                                                                                                                                                             pts: (null)
[    1.413814] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.421855] devtmpfs: mounted
[    1.426036] Freeing unused kernel memory: 1024K
[    1.539973] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[    1.624663] Adding 131068k swap on /swap.  Priority:-1 extents:1 across:13106                                                                                                                                                             8k SS

创建了console, 启动到这里还是卡住了。另外我用网盘的镜像时,板上的哪个绿灯没有亮;自己制作的就亮在那里了...
晕哥,还有其他可能吗?

#3 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2018-09-25 15:16:56

晕哥 说:

你的根文件系统有问题,请重新格式化第二个分区并把根文件系统拷进去, 或者换一张TF卡试一试.

重新制作试过了,还是卡在这里。我用网盘共享的文件启动发现是正常的,不知道我自己制作的时候哪里出了问题。我看了下/dev/ 下没有console和log,这个有影响吗? 在哪个阶段会生成这个两个文件。

#4 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2018-09-25 14:49:12

晕哥 说:
fypp 说:
1066950103 说:

坑哥说我这个正常 我认为我是那里没有做的好。我从0开始在来了一遍。发现之前其实可以了的只是,lcd的分辨率不对导致登陆那里没有显示出来。系统正常运行后uart0 串口不能交互了。但是lcd上出现了用户登陆提示 以及光标说明系统正常运行了。我现在需要让uart0 具有交互 ,以及想登陆系统 请问用户名和密码是好多呢? 在buildroo里面可以配置么?

我这里用4.13的内核,也遇到启动到这里卡住的问题。楼主最后是怎么解决的?

什么提示信息?

[    1.002502] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input                          /input0
[    1.011495] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.018426] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.022979] i2c /dev entries driver
[    1.027967] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-004                          8/input/input1
[    1.037505] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, now                          ayout=0)
[    1.106434] sunxi-mmc 1c0f000.mmc: base:0xc4981000 irq:23
[    1.153643] mmc0: host does not support reading read-only switch, assuming wr                          ite-enable
[    1.163923] mmc0: new high speed SDHC card at address aaaa
[    1.169997] sunxi-mmc 1c10000.mmc: base:0xc4985000 irq:24
[    1.176598] usbcore: registered new interface driver usbhid
[    1.182197] usbhid: USB HID core driver
[    1.186803] mmcblk0: mmc0:aaaa SU16G 14.8 GiB
[    1.193275] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not r                          egistered
[    1.201367] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.208930]  mmcblk0: p1 p2
[    1.215895] NET: Registered protocol family 17
[    1.220584] Key type dns_resolver registered
[    1.225001] Registering SWP/SWPB emulation handler
[    1.235307] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto su                          pply vcc not found, using dummy regulator
[    1.246817] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.252607] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus                           number 3
[    1.261754] hub 3-0:1.0: USB hub found
[    1.265643] hub 3-0:1.0: 1 port detected
[    1.270970] using random self ethernet address
[    1.275485] using random host ethernet address
[    1.281121] usb0: HOST MAC 8e:cf:26:d6:b1:83
[    1.285461] usb0: MAC 02:a6:8d:82:9b:23
[    1.289429] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day                           2008
[    1.296952] g_cdc gadget: g_cdc ready
[    1.303090] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.312606] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:0                          5 UTC (5)
[    1.320838] vcc5v0: disabling
[    1.323830] ALSA device list:
[    1.326862]   #0: V3s Audio Codec
[    1.331737] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incomp                          atibilities
[    1.341187] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incomp                          atibilities
[    1.548366] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. O                          pts: (null)
[    1.556634] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.564782] devtmpfs: mounted
[    1.569033] Freeing unused kernel memory: 1024K
[    1.698646] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[    1.784013] Adding 131068k swap on /swap.  Priority:-1 extents:1 across:13106                          8k SS
[   10.886447] random: crng init done

启动卡在这里,没有出现登录界面。

#5 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2018-09-25 13:49:41

1066950103 说:

坑哥说我这个正常 我认为我是那里没有做的好。我从0开始在来了一遍。发现之前其实可以了的只是,lcd的分辨率不对导致登陆那里没有显示出来。系统正常运行后uart0 串口不能交互了。但是lcd上出现了用户登陆提示 以及光标说明系统正常运行了。我现在需要让uart0 具有交互 ,以及想登陆系统 请问用户名和密码是好多呢? 在buildroo里面可以配置么?

我这里用4.13的内核,也遇到启动到这里卡住的问题。楼主最后是怎么解决的?

页脚

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

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