在使用myd-am3358开发板过程中把bootloader里面的bootdelay参数设置为0后,不能进入到uboot的命令里面,不能烧写内核镜像到开发板上了……这怎么办呢?
先来看该启动日志:
u-boot 2016.05 (oct 23 2018 - 11:36:24 0800)
watchdog enabled
i2c: ready
dram: 512 mib
nand: 512 mib
mmc: omap sd/mmc: 0, omap sd/mmc: 1
net: could not get phy for cpsw: addr 0
cpsw
hit any key to stop autoboot: 0
switch to partitions #0, ok
mmc0 is current device
sd/mmc found on device 0
reading boot.scr
** unable to read file boot.scr **
** bad device specification 0x82000000 uenv **
usb is stopped. please issue 'usb start' first.
starting usb...
usb0: scanning bus 0 for devices... 1 usb device(s) found
scanning usb for storage devices... 0 storage device(s) found
usb device 0: unknown device
switch to partitions #0, ok
mmc0 is current device
switch to partitions #0, ok
mmc0 is current device
sd/mmc found on device 0
switch to partitions #0, ok
mmc0 is current device
sd/mmc found on device 0
reading boot.scr
** unable to read file boot.scr **
reading uenv.txt
708 bytes read in 4 ms (172.9 kib/s)
loaded env from uenv.txt
importing environment from mmc ...
3471064 bytes read in 230 ms (14.4 mib/s)
39405 bytes read in 26 ms (1.4 mib/s)
kernel image @ 0x82000000 [ 0x000000 - 0x34f6d8 ]
## flattened device tree blob at 88000000
booting using the fdt blob at 0x88000000
loading device tree to 8fff3000, end 8ffff9ec ... ok
fixing up eth0 & eth1 to cpsw ethernet
starting kernel ...
看了完整的启动日志,我们可以使用下面的方法制作一个boot.scr文件,然后放到tf卡里面,再从tf卡启动。
1. 编写一个boot.cmd文本文件,内容如下
setenv bootdelay 2
saveenv
2. 制作一个boot.scr文件
mkimage -c none -a arm -t script -d boot.cmd boot.scr
本文来自金沙js1005线路-js555888金沙老品牌科技,原文地址:
http://www.myir-tech.com/resource/532.asp,转载请注明出处。