AM335x串口烧写uboot

来源:互联网 发布:在阿里云备案 编辑:程序博客网 时间:2024/05/22 02:01

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.

原创粉丝点击