Welcome to AVR32 Linux... Users Groups

FlashUpgradeUsage

This page describe different scenarios for how to use the FlashUpgrade tool. All scenarios assume you have a working serial console to your U-Boot bootloader.

MMC/SD-card

Put the flash-upgrade.uimg file in the root directory of a MMC or SD-card, insert this card into your board.

Power up your board and halt the bootloader (U-Boot) by pressing SPACE.

Initialize the MMC/SD-card by running the following command in U-Boot:

mmcinit

EXT2 filesystem on MMC/SD-card

Load the flash-upgrade.uimg file from the MMC/SD-card by typing:

ext2load mmc 0:1 0x10400000 /flash-upgrade.uimg

Run the FlashUpgrade tool by typing:

bootm 0x10400000

Follow the instructions on the console.

FAT filesystem on MMC/SD-card

Note: If you have an old version (before 1.3.0) of u-boot on your board, it most likely doesn't support the FAT filesystem, so you'll need to use a different method.

Load the flash-upgrade.uimg file from the MMC/SD-card by typing:

fatload mmc 0:1 0x10400000 /flash-upgrade.uimg

Run the FlashUpgrade tool by typing:

bootm 0x10400000

Follow the instructions on the console.

Network

Put the flash-upgrade.uimg file in your /tftpboot directory (or the directory shared by your tftp server).

Power up your board and halt the bootloader (U-Boot) by pressing SPACE.

Set the serverip variable in U-Boot to the tftp server address, this is done by typing:

set serverip <server.ip.ad.dr>

Load the flash-upgrade.uimg by typing:

dhcp 0x10400000 flash-upgrade.uimg

If you use a static IP you should use the commands:

set ipaddr <my.ip.ad.dr>

set tftpip <server.ip.ad.dr>

tftpboot 0x10400000 flash-upgrade.uimg

Run the FlashUpgrade tool by typing:

bootm 0x10400000

Follow the instructions on the console.

Serial (ymodem transfer)

Load the flash-upgrade.uimg by typing:

loady 0x10400000

Start sending the file from you host afterwards.

Run the FlashUpgrade tool by typing:

bootm 0x10400000

Follow the instructions on the console.

r3 - 2010-03-23 - 11:36:50 - NickLeverton
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Atmel®, AVR® and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries.
All other trademarks are the property of their respective owners.
Syndicate this site RSSATOM