參考文章: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.