在linux环境下,使用perl工具,perl ./serial-boot.pl -p /dev/ttyUSB0 -s u-boot-spl.bin -d1 -t40,执行完后可以看到PASS
sudo perl ./spl/serial-boot.pl -p /dev/ttyUSB0 -s MLO -d1 -t40
BYTES=120854 file_bytes=16d80100 prefix_bytes=020003f0 string bytes=020003f016d80100
----Please reset the Board NOW (timeout=40 sec)----
00 00 f8 04 01 05 05 53 ad da b0 c0 62 81 01 00 24 55 16 0c 20 40 00 00 00 01 04 08 20 40 00 00 00 01 04 08 20 40 00 00 00 01 44 28 a2 60 00 00 00 01 04 08 20 40 00 00 00 01 04 08 20 40 00 00 00 00 01 04 08
Board Detected
.
waiting for draining 40
waiting for draining 39
-->22 22 1 0
MLO file download completed
u-boot-spl.bin里确定编译Ymode协议;
此时串口不会打出“CCC”字符,且使用Ymode协议发送u-boot.img会超时,如下;
sudo sx -kb --ymodem ./u-boot.img < /dev/ttyUSB0 > /dev/ttyUSB0
Retry 0: Timeout on pathname
Transfer incomplete
这是因为u-boot-spl.bin固件的问题吗?是需要配置什么吗?