User manual

Linux Guide taskit GmbH
4.6. Updating U-Boot
To load a new version of U-Boot, you just need to interrupt the boot process of U-Boot and
use the U-Boot running in SDRAM to re-load the U-Boot flash memory area.
Since the U-Boot flash range is write-protected, you must first remove the write protection.
Then load the new image from the network via TFTP and copy it to flash.
The original U-Boot images can be found on the starterkit-CD in the directory /tftpboot:
u-boot.bin contains the bootloader
u-boot.img contains the bootloader inclusive all environment variables excepting
the MAC address, this address is worldwide unique and should be
written down before updating U-Boot
U-Boot> tftpboot 21000000 u-boot.bin
TFTP from server 192.168.2.238; our IP address is 192.168.2.171
Filename 'u-boot.bin'.
Load address: 0x21000000
Loading: ###################
done
Bytes transferred = 94632 (171a8 hex)
U-Boot> protect off 10000000 1005FFFF
Un-Protected 3 sectors
U-Boot> erase 10000000 1005FFFF
flash_erase: first: 0 last: 2
Erased 3 sectors
U-Boot> cp.b 21000000 10000000 171a8
Copy to Flash... done
U-Boot> protect on 10000000 1005FFFF
Protected 9 sectors
U-Boot> reset
Page 14 of 65 Version 1.26 (2008-04-30)