uboot使用loady命令进行串口传输
新改版的板卡,网络无法使用,uboot可以起来,但是内核和文件系统镜像,没法烧写。
在无网络的情况下,SecureCRT使用loady命令进行串口传输,烧写内核和文件系统。(nand 模式下烧写):指令参看:Hi3516A开发--板卡烧写
mw.b 82000000 ff 400000loady 0x82000000 115200
传输-> 发送Ymodem->选择需要烧入的文件 uImage_hi3516a
nand erase 800000 400000
nand write 82000000 800000 400000
mw.b 82000000 ff 2200000
loady 0x82000000 115200
传输-> 发送Ymodem->选择需要烧入的文件 rootfs_hi3516a_uclib_8k_40bit.yaffs2
nand erase c00000 2200000
nand write.yaffs 82000000 c00000 F80D98
如果在SPI模式下烧写,请使用SPI的烧写指令。
扩展:查看所有命令:
TI8168_EVM#help
? - alias for 'help'
askenv - get environment variables from stdin
base - print or set address offset
bdinfo - print Board Info structure
bmp - manipulate BMP image data
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootm - boot application image from memory
bootp - boot image via network using BOOTP/TFTP protocol
chpart - change active partition
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
dhcp - boot image via network using DHCP/TFTP protocol
echo - echo args to console
editenv - edit environment variable
exit - exit script
false - do nothing, unsuccessfully
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls - list files in a directory (default /)
go - start application at address 'addr'
help - print command description/usage
i2c - I2C sub-system
iminfo - print header information for application image
imxtract- extract a part of a multi-image
itest - return true/false on integer compare
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
md - memory display
mm - memory modify (auto-incrementing address)
mmc - MMC sub system
mmcinfo - mmcinfo <dev num>-- display MMC info
mtdparts- define flash/nand partitions
mtest - simple RAM read/write test
mw - memory write (fill)
nand - NAND sub-system
nandecc - Switch NAND ECC calculation algorithm b/w hardware and software
nboot - boot from NAND device
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
rarpboot- boot image via network using RARP/TFTP protocol
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
sf - SPI flash sub-system
showvar - print local hushshell variables
sleep - delay execution for some time
source - run script from memory
test - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
true - do nothing, successfully
version - print monitor version
TI8168_EVM#TI8168_EVM#help
可以使用 go指令:
烧写程序过程
SecureCRT_CN的时候loady 0x20008000 115200
传输-> 发送Ymodem 填写 要烧写的程序如 led.bin
然后 go 0x20008000
烧写成功