您尚未登录。

楼主 # 2022-06-29 23:09:35

linux-xc
会员
注册时间: 2022-06-28
已发帖子: 29
积分: 51

荔枝派zero烧录u-boot后打印错误如何解决?

根据官方办法编译成功得到:u-boot-sunxi-with-spl.bin
并烧录:if=u-boot-sunxi-with-spl.bin of=/dev/sdb1 bs=1024 seek=8

方法来源:http://zero.lichee.pro/%E7%B3%BB%E7%BB%9F%E5%BC%80%E5%8F%91/uboot_build.html



最后启动荔枝派,但是串口打印各种错误信息,是否正常?如何解决?我还没烧录Linux

U-Boot SPL 2017.01-rc2-00055-gc41fbfe7b5 (Jan 20 2017 - 00:39:08)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2-00055-gc41fbfe7b5 (Jan 20 2017 - 00:39:08 +0800) Allwinner Technology

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

Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2-00055-gc41fbfe7b5 (Jan 20 2017 - 00:39:08 +0800) Allwinner Technology

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

Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 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
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
starting USB...
No controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No controllers found
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-sunxi
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
starting USB...
No controllers found
No ethernet found.
No ethernet found.
=>

挑出错误打印:
*** Warning - bad CRC, using default environment
xxxxx
No controllers found

最近编辑记录 linux-xc (2022-06-29 23:15:50)

离线

楼主 #1 2022-06-29 23:21:21

linux-xc
会员
注册时间: 2022-06-28
已发帖子: 29
积分: 51

Re: 荔枝派zero烧录u-boot后打印错误如何解决?

找到了部分解决办法,来自网上:
https://blog.csdn.net/loveshipting/article/details/106005875

最后打印信息如下:

=> env default -a
## Resetting to default environment
himport_r: can't insert "stdin=serial,usbkbd" into hash table
himport_r: can't insert "stdout=serial,vga" into hash table
himport_r: can't insert "stderr=serial,vga" into hash table
=> saveenv
Saving Environment to MMC...
Writing to MMC(0)... done
=>

小白虽然不知道为何,但看打印信息vga,应该是关于屏幕的问题,没有接入屏幕导致的?
但是后面的驱动依然没有解决

最近编辑记录 linux-xc (2022-06-29 23:24:08)

离线

页脚

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

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