您尚未登录。

楼主 # 2023-02-21 09:19:58

744219909
会员
注册时间: 2022-07-29
已发帖子: 31
积分: 124

荔枝派nano内核加载完成无法显示文件系统登陆页面

U-Boot SPL 2018.01-05679-g013ca457fd-dirty (Feb 21 2023 - 08:54:47)
DRAM: 32 MiB
Trying to boot from MMC1


U-Boot 2018.01-05679-g013ca457fd-dirty (Feb 21 2023 - 08:54:47 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
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 
reading zImage
4395888 bytes read in 228 ms (18.4 MiB/s)
reading suniv-f1c100s-licheepi-nano.dtb
3607 bytes read in 25 ms (140.6 KiB/s)
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Loading Device Tree to 816fc000, end 816ffe16 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.7.1-Lite200 (aqi@aqi-Apir) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11), GNU ld (Linaro_Binutil3
[    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] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 console=tty0 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 21684K/32768K available (7168K kernel code, 226K rwdata, 1688K rodata, 1024K init, 246K bss, 11084K reserved, 0)
[    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.000000] random: get_random_bytes called from start_kernel+0x2a0/0x498 with crng_init=0
[    0.000047] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000134] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000624] Console: colour dummy device 80x30
[    0.001284] printk: console [tty0] enabled
[    0.001379] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070313] pid_max: default: 32768 minimum: 301
[    0.070885] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.071004] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072926] CPU: Testing write buffer coherency: ok
[    0.074806] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076128] devtmpfs: initialized
[    0.080887] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.081060] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.081414] pinctrl core: initialized pinctrl subsystem
[    0.082864] thermal_sys: Registered thermal governor 'step_wise'
[    0.084226] NET: Registered protocol family 16
[    0.085862] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.088143] cpuidle: using governor menu
[    0.136401] SCSI subsystem initialized
[    0.136856] usbcore: registered new interface driver usbfs
[    0.137086] usbcore: registered new interface driver hub
[    0.137361] usbcore: registered new device driver usb
[    0.137838] pps_core: LinuxPPS API ver. 1 registered
[    0.137920] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.138077] PTP clock support registered
[    0.138611] Advanced Linux Sound Architecture Driver Initialized.
[    0.140773] clocksource: Switched to clocksource timer
[    0.172742] NET: Registered protocol family 2
[    0.174433] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.174621] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.174745] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.174835] TCP: Hash tables configured (established 1024 bind 1024)
[    0.175164] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.175289] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.175879] NET: Registered protocol family 1
[    0.177485] RPC: Registered named UNIX socket transport module.
[    0.177601] RPC: Registered udp transport module.
[    0.177649] RPC: Registered tcp transport module.
[    0.177694] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.180149] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.182071] Initialise system trusted keyrings
[    0.182770] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.206511] NFS: Registering the id_resolver key type
[    0.206678] Key type id_resolver registered
[    0.206739] Key type id_legacy registered
[    0.316063] Key type asymmetric registered
[    0.316179] Asymmetric key parser 'x509' registered
[    0.316404] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.316499] io scheduler mq-deadline registered
[    0.316552] io scheduler kyber registered
[    0.328072] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.525484] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.531615] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
[    0.533399] printk: console [ttyS0] disabled
[    0.533651] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 21, base_baud = 6250000) is a 16550A
[    0.971282] printk: console [ttyS0] enabled
[    0.982201] SCSI Media Changer driver v0.25 
[    0.987937] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.994678] ehci-platform: EHCI generic platform driver
[    1.000212] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.006640] ohci-platform: OHCI generic platform driver
[    1.012398] usbcore: registered new interface driver usb-storage
[    1.019054] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.028208] i2c /dev entries driver
[    1.033255] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.069916] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.079437] usbcore: registered new interface driver usbhid
[    1.085214] usbhid: USB HID core driver
[    1.105329] NET: Registered protocol family 17
[    1.110131] Key type dns_resolver registered
[    1.115812] Loading compiled-in X.509 certificates
[    1.132901] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.151433] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.158317] ALSA device list:
[    1.161478]   #0: Loopback 1
[    1.165110] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.173949] cfg80211: failed to load regulatory.db
[    1.179628] Waiting for root device /dev/mmcblk0p2...
[    1.218414] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.228950] mmc0: new high speed SDHC card at address b36b
[    1.236413] mmcblk0: mmc0:b36b CBADS 29.5 GiB 
[    1.245266]  mmcblk0: p1 p2 p3
[    1.328416] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.336858] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.352136] devtmpfs: mounted
[    1.359742] Freeing unused kernel memory: 1024K
[    1.364568] Run /sbin/init as init process
[    1.821611] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    1.940876] random: fast init done
[    2.450550] random: dd: uninitialized urandom read (512 bytes read)
[  210.383779] random: crng init done

到这里就停止了,没有buildroot文件系统
u-boot和内核,文件系统都是按照教程做的

离线

楼主 #1 2023-02-21 09:23:03

744219909
会员
注册时间: 2022-07-29
已发帖子: 31
积分: 124

Re: 荔枝派nano内核加载完成无法显示文件系统登陆页面

试过用以前的内核,显示屏是有输出而且进入文件系统,应该uboot,内核有问题,是不是进入文件系统后系统不输出到串口了?可是我没配置屏幕的spi

离线

楼主 #2 2023-02-21 11:30:31

744219909
会员
注册时间: 2022-07-29
已发帖子: 31
积分: 124

Re: 荔枝派nano内核加载完成无法显示文件系统登陆页面

破案了,我隐约还是觉得buildrot登陆界面没有输出到串口,所以在这个方向找,找到这个帖子的评论
荔枝派开发板控制台输出到LCD屏和PC串口,在进入内核时,电脑上xshell不再有输出,也不响应键盘输入
https://whycan.com/t_4930.html#p49896

U-Boot SPL 2018.01-05679-g013ca457fd-dirty (Feb 21 2023 - 10:56:28)
DRAM: 32 MiB
Trying to boot from MMC1


U-Boot 2018.01-05679-g013ca457fd-dirty (Feb 21 2023 - 10:56:28 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
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 
reading zImage
4395888 bytes read in 228 ms (18.4 MiB/s)
reading suniv-f1c100s-licheepi-nano.dtb
3607 bytes read in 25 ms (140.6 KiB/s)
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Loading Device Tree to 816fc000, end 816ffe16 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.7.1-Lite200 (aqi@aqi-Apir) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11), GNU ld (Linaro_Binutil3
[    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] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 console=tty0 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 21684K/32768K available (7168K kernel code, 226K rwdata, 1688K rodata, 1024K init, 246K bss, 11084K reserved, 0)
[    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.000000] random: get_random_bytes called from start_kernel+0x2a0/0x498 with crng_init=0
[    0.000047] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000134] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000625] Console: colour dummy device 80x30
[    0.001285] printk: console [tty0] enabled
[    0.001379] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070314] pid_max: default: 32768 minimum: 301
[    0.070886] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.071005] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072930] CPU: Testing write buffer coherency: ok
[    0.074807] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076131] devtmpfs: initialized
[    0.080892] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.081062] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.081421] pinctrl core: initialized pinctrl subsystem
[    0.082872] thermal_sys: Registered thermal governor 'step_wise'
[    0.084241] NET: Registered protocol family 16
[    0.085875] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.088152] cpuidle: using governor menu
[    0.136401] SCSI subsystem initialized
[    0.136848] usbcore: registered new interface driver usbfs
[    0.137092] usbcore: registered new interface driver hub
[    0.137366] usbcore: registered new device driver usb
[    0.137836] pps_core: LinuxPPS API ver. 1 registered
[    0.137920] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.138072] PTP clock support registered
[    0.138623] Advanced Linux Sound Architecture Driver Initialized.
[    0.140808] clocksource: Switched to clocksource timer
[    0.172843] NET: Registered protocol family 2
[    0.174522] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.174715] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.174845] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.174935] TCP: Hash tables configured (established 1024 bind 1024)
[    0.175258] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.175383] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.175972] NET: Registered protocol family 1
[    0.177581] RPC: Registered named UNIX socket transport module.
[    0.177696] RPC: Registered udp transport module.
[    0.177748] RPC: Registered tcp transport module.
[    0.177792] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.180239] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.182175] Initialise system trusted keyrings
[    0.182863] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.206657] NFS: Registering the id_resolver key type
[    0.206817] Key type id_resolver registered
[    0.206872] Key type id_legacy registered
[    0.323768] Key type asymmetric registered
[    0.323885] Asymmetric key parser 'x509' registered
[    0.324109] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.324200] io scheduler mq-deadline registered
[    0.324252] io scheduler kyber registered
[    0.335775] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.533097] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.539094] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
[    0.541013] printk: console [ttyS0] disabled
[    0.541269] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 21, base_baud = 6250000) is a 16550A
[    0.978840] printk: console [ttyS0] enabled
[    0.989589] SCSI Media Changer driver v0.25 
[    0.995496] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.002234] ehci-platform: EHCI generic platform driver
[    1.007765] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.014190] ohci-platform: OHCI generic platform driver
[    1.019856] usbcore: registered new interface driver usb-storage
[    1.026641] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.035784] i2c /dev entries driver
[    1.040705] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.077483] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.087017] usbcore: registered new interface driver usbhid
[    1.092795] usbhid: USB HID core driver
[    1.113045] NET: Registered protocol family 17
[    1.117793] Key type dns_resolver registered
[    1.123475] Loading compiled-in X.509 certificates
[    1.140477] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.158879] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.165831] ALSA device list:
[    1.168878]   #0: Loopback 1
[    1.172387] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.181196] cfg80211: failed to load regulatory.db
[    1.186966] Waiting for root device /dev/mmcblk0p2...
[    1.228428] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.238974] mmc0: new high speed SDHC card at address b36b
[    1.246444] mmcblk0: mmc0:b36b CBADS 29.5 GiB 
[    1.255301]  mmcblk0: p1 p2 p3
[    1.346613] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.355050] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.370299] devtmpfs: mounted
[    1.378029] Freeing unused kernel memory: 1024K
[    1.382839] Run /sbin/init as init process
[    1.884762] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    2.003050] random: fast init done
[    2.503966] random: dd: uninitialized urandom read (512 bytes read)

Welcome to Buildroot
buildroot login: root
# ls
# cd /
# ls
bin      lib      media    proc     sbin     usr
dev      lib32    mnt      root     sys      var
etc      linuxrc  opt      run      tmp
# 

离线

楼主 #3 2023-02-21 11:34:20

744219909
会员
注册时间: 2022-07-29
已发帖子: 31
积分: 124

Re: 荔枝派nano内核加载完成无法显示文件系统登陆页面

也就是说如果大家还没有屏幕,需要串口输出的时候,你的buildroot需要修改这里,我的buildroot版本是2018.0211的

离线

页脚

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

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