TI AM3517 (Cortex A8) 烧写方法

Procedure for preparing SD card for card based image booting

All the files needed for flashing the OS image to onboard NAND or running from an SD card are included with this release. This includes the OS image, XLoader, NAND and SD based eboot as well as all the tools necessary to perform the procedure.

There are several methods to boot a CE image on the Overo COM board. The preferred method is to overwrite the factory Linux image, stored in NAND flash, with the native Windows CE boot loader and image. This has several advantages such as fast boot up and support for persistent registry etc.

As an alternative, it is possible to boot an image directly from the microSD card if the SD card is properly prepared.

Note: There are two separate images, one for flashing into onboard NAND and one that will run from a uSD card only. The uSD based version does not have flash support and the NAND driver is not loaded by default.
Each image is avaialabe as a separate download.


There are two versions of eboot included with the distribution. Ebootsd is the version of boot loader and is used to boot a uSD card based image. Ebootsd does not contain any flash programming capabilities. This is for obvious safety reasons as many people wish to evaluate a CE image (SD card based) without the risk of overwriting their flashed Linux image stored in NAND flash.

You will need standard Windows PC with a standard USB host ports.

  • A terminal emulation program installed (HyperTerminal, Teraterm etc.).
  • One USB cable (mini-B to A).
  • Micro SD card (256MB, 512MB, 1GB etc.).
  • Micro SD reader (USB or other).

Preinstall procedure:

Be sure you have working USB “debug” port connectivity to the Gumstix Overo’s auxiliary’s board console port. This may require installing the FTDI USB to serial driver if not already available on the host PC. This driver can be acquired from the FTDI web site at http://www.ftdichip.com/FTDrivers.htm if needed.

The terminal settings need to be 115200 baud, 8 data bits, No parity and one stop bit.

The following is a screen capture of an example terminal setup using Hyperterminal:

clip_image002

 

Power up the Overo setup and verify the Linux startup messages are dumped to the terminal. Something like the following should appear:

clip_image004

Prepare bootable SD card:

  • You can use TI’s SDCard_boot_utility.
  • Alternately, use  the HP Card Format Utility for USB drive key.

Using TI’s SD Card Boot Utility

Use USB reader, SD card and TI utility to prepare card:

image

Select MLO file and for the OS files select ebootsd.nbo and nk,bin (uSD only based image).

Insert SD card in Overo COM and reboot.

Using the HP format utility:

Use USB reader, SD card and HP format utility to prepare card with a clean, bootable, FAT32 partition:

clip_image006

 

After the card is formatted, copy the MLO file from the built directory to the root of the SD card. Note: It is important this file be copied first and by itself!

Copy the following files to the boot SD card:

  • ebootsd.nb0 (card based boot loader)
  • nk.bin (uSD only based image)

Insert SD card in Overo COM and reboot.

 

 

Procedure for Flashing Windows CE image to NAND

Caution: This procedure will erase all remnants of the factory installed version of Linux!

 

There are several methods to initially load the necessary image files to NAND Flash. These include:

· Download files over a USB RNDIS or Ethernet connection from Platform Builder.

· Download files over a USB RNDIS connection from ESHELL utility.

· Download files over USB serial connection using the TI flash programming utility.

· Copy files from microSD storage card to flash.

The first three methods require some setup, which can be complicated. This procedure explains the last method which only requires the ability to copy files to a bootable microSD card from a PC (USB microSD card reader/writer) and one USB console connection to the host PC running a terminal emulation program.

Note: Platform Builder and/or Visual Studio are not required to perform this procedure.

There are two versions of eboot included with the distribution. Ebootsd is the standard version of boot loader and is used to boot a SD card based image. Ebootsd does not contain any flash programming capabilities. This is for obvious safety reasons as many people wish to evaluate a CE image (SD card based) without the risk of overwriting their flashed Linux image stored in NAND flash. Ebootnd is another version of eboot, which has the NAND flash programming utilities enabled and can be run from ether an SD card or from NAND flash.

Prepare bootable SD card as outlined above “Procedure for preparing SD card for card based image booting”.

After completion, add these additional files to the files already on the SD card:

  • ebootND.nb0 (NAND based version of eboot with flash capability)
  • xldrnand.bin (.bin loadable version of NAND based xloader)
  • ebootND.bin (.bin loadable version of NAND based eboot)
  • NK.bin (flash based image)

Note: The boot up procedure will search for ebootND.nb0 on the SD card first, if not found it will search and load ebootSD.nb0.

Place card in Overo board and boot. After initial time out you should be presented with a boot loader menu similar to the following:

clip_image002[9]

  • You should see ebootND loaded and the flash menu items are available.
  • Select “f” Flash Management
  • Select “1” and note the flash geometry
  • Erase the entire flash by selecting “4” (Erase block range) and entering 0 for the first block and to one less than the number of blocks shown in the geometry dump for the last block number. (For example 0 to 2047).
  • Answer yes (y) to confirm erasure of reserved blocks.
  • Select 0 to return to the Main Menu.

Load NAND based XLOADER and EBOOT:

  • Select 5 “SDCard settings”.
  • Select 2 “Enter Filename”.
  • Type “xldrnand.bin” for the xloader file.
  • Type 0 and return to main menu.
  • Type 2 to “Select Boot Device”.
  • Choose 3 for “SDCard FILE”.
  • Select 0 and 0 again to initiate loading of the file.

You should get a response similar to the following:

clip_image004[7]

  • Reboot and reenter the boot loader.
  • Repeat the above step this time setting “ebootnd.bin” as the load file name.

Load image file to NAND:

Reboot and reenter the boot loader. This time the flash may be recognized and automatically formatted. See “Formatting flash…” message.

clip_image006[7]

  • Return to the Flash Management screen and select “Format Flash” (7)
  • Confirm format of all unreserved blocks. (formatting flash again just to be sure)
  • Now select “8” “Enable flashing NK.bin”
  • Select 0 to return to main menu.
  • Select 2 and verify “SD card FILE” is still selected as boot device.
  • Select 0 again to load the default nk.bin file from the SD card.

You should get a response similar to the following after completion of the NAND programming:

clip_image008

  • The image will automatically launch after programming. Turn power off.
  • Remove SD card (important!).
  • Power unit on and enter boot loader one last time.
  • Select Boot Device and this time select “4” “NK from NAND”.
  • Return to main menu and select desired display resolution
  • Return to main menu and select “s” “Save Settings” and confirm.
  • Select 0 or power cycle the unit.

Unit should now start from image stored in NAND flash automatically after brief delay.


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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值