Hi3516A开发-- 板卡串口烧写
生活随笔
收集整理的這篇文章主要介紹了
Hi3516A开发-- 板卡串口烧写
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
uboot使用loady命令進(jìn)行串口傳輸
新改版的板卡,網(wǎng)絡(luò)無法使用,uboot可以起來,但是內(nèi)核和文件系統(tǒng)鏡像,沒法燒寫。
在無網(wǎng)絡(luò)的情況下,SecureCRT使用loady命令進(jìn)行串口傳輸,燒寫內(nèi)核和文件系統(tǒng)。(nand 模式下燒寫):指令參看:Hi3516A開發(fā)--板卡燒寫
mw.b 82000000 ff 400000loady 0x82000000 115200?
傳輸-> 發(fā)送Ymodem->選擇需要燒入的文件 uImage_hi3516a
nand erase 800000 400000
nand write 82000000 800000 400000
mw.b 82000000 ff 2200000
loady 0x82000000 115200?
傳輸-> 發(fā)送Ymodem->選擇需要燒入的文件 rootfs_hi3516a_uclib_8k_40bit.yaffs2
nand erase c00000 2200000
nand write.yaffs 82000000 c00000 ?F80D98
如果在SPI模式下燒寫,請(qǐng)使用SPI的燒寫指令。
擴(kuò)展:查看所有命令:
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的時(shí)候loady 0x20008000 115200
傳輸-> 發(fā)送Ymodem ?填寫 要燒寫的程序如 led.bin
然后 go ?0x20008000
燒寫成功
總結(jié)
以上是生活随笔為你收集整理的Hi3516A开发-- 板卡串口烧写的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: BIO与NIO、AIO的区别
- 下一篇: 2022年中国CRM行业研究报告