AM335x串口烧写uboot

参考文章:https://processors.wiki.ti.com/index.php/AM335x_U-Boot_User%27s_Guide#UART_2

The release package does not contain thebinary for UART boot. Please follow the steps mentioned here for compiling u-bootand use the spl/u-boot-spl.bin file that

is produced.(已有文件u-boot-spl.bin,u-boot.img,MLO)

Switch ON EVM with switch settings for UARTboot. 

When “CCCC” characters appear on TeraTerm window, from the File Menu select Transfer --> XMODEM --> Send (1Kmode)

Select “u-boot-spl.bin” for the transfer

After image is successfully downloaded, theROM code will boot it.

When “CCCC” characters appear on TeraTermwindow, from the File Menu select Transfer --> YMODEM --> Send (1Kmode)

Select “u-boot.img” for the transfer

After image is successfully downloaded,U-Boot will boot it.

(一开始使用超级终端SecureCRT 7.2,在传输u-boot-spl.bin和u-boot.img的时候都出现错误,后经指导需要在5个C之前传输才能成功,事实确实如此)

Hit enter and get to u-boot prompt “U-Boot#”

Flashing images to NAND in UART boot mode

Before proceeding with any of the commandsgiven in this section please make sure that profile is selected to enable NAND onthe EVM. The switch for selecting

profile for NAND is described here. Boot using UART boot mode as here.

After the U-Boot prompt U-Boot# comes up,the images for the 1st stage and 2nd

stage can be flashed to NAND for persistentstorage.

Flashing SPL to NAND from U-Boot in UARTboot mode

Flash SPL (MLO) to NAND by executing thefollowing commands:

U-Boot# mw.b 0x82000000 0xFF 0x20000

U-Boot# loadb 0x82000000

 

From TeraTerm Menu click “File ->Transfer -> Kermit -> Send”.

Select the 1st stage u-boot image “MLO” andclick “OPEN” button.

(在传输MLO的时候SecureaCRT7.2又抽风了,出错,最后被迫无奈放弃,下载了TeraTerm,用起来畅通无阻,根本没有5个C的烦恼)

Wait for download to complete and then runfollowing commands in u-boot prompt

U-Boot# nand erase 0x0 0x20000

U-Boot# nandecc hw 2

U-Boot# nand write.i 0x82000000 0x0 0x20000

 

If no error messages are displayed the SPLof NAND boot has been successfully transferred to NAND.

Flashing U-Boot to NAND from U-Boot in UARTboot mode

Flash the 2nd stage U-Boot (u-boot.img) toNAND by executing the following commands:

U-Boot# mw.b 0x82000000 0xFF 0x40000

U-Boot# loadb 0x82000000

 

From TeraTerm Menu click “File ->Transfer -> Kermit -> Send”.

Select the 2nd stage u-boot image“u-boot.img” and click “OPEN” button

Wait for download to complete and then runfollowing commands in U-Boot prompt

U-Boot# nand erase 0x80000 0x40000

U-Boot# nandecc hw 2

U-Boot# nand write.i 0x82000000 0x800000x40000

 

If no error messages are displayed theU-boot of NAND boot has been successfully transferred to NAND.
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值