вторник, 2 октября 2012 г.

Загрузка BeagleBone по UART


Boot Over UART

NOTE

*The release package does not contain the binary for UART boot. Please follow the steps mentioned here for compiling u-boot and use the spl/u-boot-spl.bin file that is produced.
  1. Switch ON EVM with switch settings for UART boot. When “CCCC” characters appear on TeraTerm window, from the File Menu select Transfer --> XMODEM --> Send (1K mode)
  2. Select “u-boot-spl.bin” for the transfer
  3. After image is successfully downloaded, the ROM code will boot it.
  4. When “CCCC” characters appear on TeraTerm window, from the File Menu select Transfer --> YMODEM --> Send (1K mode)
  5. Select “u-boot.img” for the transfer
  6. After image is successfully downloaded, U-Boot will boot it.
  7. Hit enter and get to u-boot prompt “U-Boot# ”

Flashing images to NAND in UART boot mode

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 persistent storage. 

Flashing SPL to NAND in UART boot mode

Flash SPL (MLO) to NAND by executing the following commands:
U-Boot# loadb 0x82000000
  • From TeraTerm Menu click “File -> Transfer -> Kermit -> Send”.
  • Select the 1st stage u-boot image “MLO” and click “OPEN” button
  • Wait for download to complete and then run following 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 SPL of NAND boot has been successfully transferred to NAND. 

Flashing U-Boot to NAND in UART boot mode

Flash the 2nd stage U-Boot (u-boot.img) to NAND by executing the following commands:
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 run following commands in U-Boot prompt
U-Boot# nand erase 0x80000 0x40000
U-Boot# nandecc hw 2
U-Boot# nand write.i 0x82000000 0x80000 0x40000
If no error messages are displayed the U-boot of NAND boot has been successfully transferred to NAND.

Сначала загружаем по X-modem (Cntr-A S) u-boot-spl.bin, далее по Y-modem u-boot.img,
потом setenv ipaddr <>, далее устанавливаем ip адресс сервера setenv serverip <>
после чего оттуда загружается файл uImage.
Все достаточно хорошо описано в файле AM335x U-boot User guide там же описан способ первоначальной прошивки

Комментариев нет:

Отправить комментарий