您尚未登录。

楼主 #1 2019-02-25 17:55:16

刘少来了
会员
注册时间: 2019-01-24
已发帖子: 25
积分: 20

licheepi nano spi_flash启动时卡在 random: crng init done

按照官方文档一步步制作从 spi flash(16M)启动,最后卡在了random: crng init done,系统启动log如下,希望大神们帮帮忙

U-Boot 2018.01-05679-g013ca45-dirty (Feb 25 2019 - 16:03:42 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
Setting up a 480x272 lcd console (overscan 0x0)
In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
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 0x4000
SF: 16384 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e5f000, end 80e640ee ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.15.0-rc8-licheepi-nano+ (gsk@gsk-machine) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #4 Mon Feb 25 17:07:26 CST 2019
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] random: fast init done
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 22672K/32768K available (6144K kernel code, 237K rwdata, 1408K rodata, 1024K init, 246K bss, 10096K 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 : 0xc2800000 - 0xff800000   ( 976 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (7136 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 238 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 247 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000047] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000114] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000658] Console: colour dummy device 80x30
[    0.000753] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070236] pid_max: default: 32768 minimum: 301
[    0.070554] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070600] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072037] CPU: Testing write buffer coherency: ok
[    0.073684] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076243] devtmpfs: initialized
[    0.083063] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.083133] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.083392] pinctrl core: initialized pinctrl subsystem
[    0.085432] NET: Registered protocol family 16
[    0.086900] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.088684] cpuidle: using governor menu
[    0.115045] SCSI subsystem initialized
[    0.115397] usbcore: registered new interface driver usbfs
[    0.115544] usbcore: registered new interface driver hub
[    0.115746] usbcore: registered new device driver usb
[    0.116167] pps_core: LinuxPPS API ver. 1 registered
[    0.116196] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.116256] PTP clock support registered
[    0.116749] Advanced Linux Sound Architecture Driver Initialized.
[    0.118266] clocksource: Switched to clocksource timer
[    0.144929] NET: Registered protocol family 2
[    0.146361] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.146442] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.146492] TCP: Hash tables configured (established 1024 bind 1024)
[    0.146780] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.146840] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.147322] NET: Registered protocol family 1
[    0.148635] RPC: Registered named UNIX socket transport module.
[    0.148678] RPC: Registered udp transport module.
[    0.148695] RPC: Registered tcp transport module.
[    0.148710] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.150905] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.152743] Initialise system trusted keyrings
[    0.153293] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.170893] NFS: Registering the id_resolver key type
[    0.170977] Key type id_resolver registered
[    0.170999] Key type id_legacy registered
[    0.171120] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.185626] Key type asymmetric registered
[    0.185671] Asymmetric key parser 'x509' registered
[    0.185883] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.185916] io scheduler noop registered
[    0.185934] io scheduler deadline registered
[    0.186705] io scheduler cfq registered (default)
[    0.186740] io scheduler mq-deadline registered
[    0.186758] io scheduler kyber registered
[    0.187901] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.197593] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.369865] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.376631] console [ttyS0] disabled
[    0.396891] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 24, base_baud = 6250000) is a 16550A
[    0.870769] console [ttyS0] enabled
[    0.881593] panel-simple panel: panel supply power not found, using dummy regulator
[    0.891030] SCSI Media Changer driver v0.25
[    0.896551] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.903208] ehci-platform: EHCI generic platform driver
[    0.908774] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.914990] ohci-platform: OHCI generic platform driver
[    0.920677] usbcore: registered new interface driver usb-storage
[    0.927651] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.936718] i2c /dev entries driver
[    0.998399] sunxi-mmc 1c0f000.mmc: base:0xcf63cb85 irq:20
[    1.005805] usbcore: registered new interface driver usbhid
[    1.011512] usbhid: USB HID core driver
[    1.033531] NET: Registered protocol family 17
[    1.038219] Key type dns_resolver registered
[    1.044780] Loading compiled-in X.509 certificates
[    1.060482] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0739c38)
[    1.069399] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0738f1c)
[    1.077068] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.083787] [drm] No driver support for vblank timestamp query.
[    1.099870] mmc0: queuing unknown CIS tuple 0x01 (3 bytes)
[    1.107179] mmc0: queuing unknown CIS tuple 0x1a (5 bytes)
[    1.110472] mmc0: queuing unknown CIS tuple 0x1b (8 bytes)
[    1.113049] mmc0: queuing unknown CIS tuple 0x80 (1 bytes)
[    1.113137] mmc0: queuing unknown CIS tuple 0x81 (1 bytes)
[    1.113215] mmc0: queuing unknown CIS tuple 0x82 (1 bytes)
[    1.113278] mmc0: new high speed SDIO card at address 0001
[    1.137828] Console: switching to colour frame buffer device 60x34
[    1.199632] sun4i-drm display-engine: fb0:  frame buffer device
[    1.206745] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.215971] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.227823] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.233793] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.243901] hub 1-0:1.0: USB hub found
[    1.247853] hub 1-0:1.0: 1 port detected
[    1.253535] using random self ethernet address
[    1.258004] using random host ethernet address
[    1.264335] usb0: HOST MAC 56:e3:00:0f:9a:57
[    1.268908] usb0: MAC c6:02:fe:a8:80:44
[    1.272877] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.280445] g_cdc gadget: g_cdc ready
[    1.285118] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.302695] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.309515] ALSA device list:
[    1.312498]   #0: Loopback 1
[    1.316253] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.325017] cfg80211: failed to load regulatory.db
[    1.330499] Waiting for root device /dev/mtdblock3...
[  203.198393] random: crng init done

离线

#2 2019-02-25 18:35:47

jiangming1399
会员
注册时间: 2018-06-14
已发帖子: 113
积分: 113

Re: licheepi nano spi_flash启动时卡在 random: crng init done

Waiting for root device /dev/mtdblock3...

https://whycan.cn/t_2179.html
看SPI-Flash支持的那一节

离线

#3 2019-02-25 19:12:54

smartcar
会员
注册时间: 2018-02-19
已发帖子: 735
积分: 735

Re: licheepi nano spi_flash启动时卡在 random: crng init done

https://whycan.cn/t_2002.html#p13479

改成 root=31:01 试一试

离线

楼主 #4 2019-02-26 09:12:19

刘少来了
会员
注册时间: 2019-01-24
已发帖子: 25
积分: 20

Re: licheepi nano spi_flash启动时卡在 random: crng init done

jiangming1399 说:

Waiting for root device /dev/mtdblock3...

https://whycan.cn/t_2179.html
看SPI-Flash支持的那一节

谢谢了

离线

楼主 #5 2019-02-26 09:14:18

刘少来了
会员
注册时间: 2019-01-24
已发帖子: 25
积分: 20

Re: licheepi nano spi_flash启动时卡在 random: crng init done

smartcar 说:

https://whycan.cn/t_2002.html#p13479

改成 root=31:01 试一试


这么改不行,我觉得应该是官网给的文件系统有问题,或者说内核哪里没有配置好,再去看看;)

离线

#6 2019-03-05 00:24:47

小菜
会员
注册时间: 2018-12-06
已发帖子: 45
积分: 45

Re: licheepi nano spi_flash启动时卡在 random: crng init done

我今天也遇到了,除了更改跟MMC相关的东西外还有一个比较容易忽视的是“Fixed voltage regulator support”要选中。
Device Drivers  ---> Voltage and Current Regulator Support  ---> Fixed voltage regulator support;
Device Drivers  ---> MMC/SD/SDIO card support  ---> <*>   HW reset support for eMMC                                                                   
                                                                               <*>   Simple HW reset support for MMC                                                             
                                                                               <*>   MMC block device driver                                                                       
                                                                                (8)     Number of minors per block device

刘少来了 说:
smartcar 说:

https://whycan.cn/t_2002.html#p13479

改成 root=31:01 试一试


这么改不行,我觉得应该是官网给的文件系统有问题,或者说内核哪里没有配置好,再去看看;)

离线

楼主 #7 2019-03-05 09:04:55

刘少来了
会员
注册时间: 2019-01-24
已发帖子: 25
积分: 20

Re: licheepi nano spi_flash启动时卡在 random: crng init done

小菜 说:

我今天也遇到了,除了更改跟MMC相关的东西外还有一个比较容易忽视的是“Fixed voltage regulator support”要选中。
Device Drivers  ---> Voltage and Current Regulator Support  ---> Fixed voltage regulator support;
Device Drivers  ---> MMC/SD/SDIO card support  ---> <*>   HW reset support for eMMC                                                                   
                                                                               <*>   Simple HW reset support for MMC                                                             
                                                                               <*>   MMC block device driver                                                                       
                                                                                (8)     Number of minors per block device

刘少来了 说:
smartcar 说:

https://whycan.cn/t_2002.html#p13479

改成 root=31:01 试一试


这么改不行,我觉得应该是官网给的文件系统有问题,或者说内核哪里没有配置好,再去看看;)


我之前出问题时这个已经配好了,我是参照 https://whycan.cn/t_2179.html 来改自己内核配置的,最后启动成功了

离线

页脚

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

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