Skip to contentSkip to conversation

uboot-1.1.1 on at91rm9200dk problem

DISCUSSION Aras Vaichas 1 participant 1 message Jul 29, 2004 1 message not in the archive Memory technology devices (MTD)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 017e01c473f4$580789c0$6400a8c0@BDENSONLAPTOP

#1 lore raw

I use these scripts to reflash my uboot on my AT91RM9200DK:

Uboot> printenv
...
prooff=protect off 10000000 10007fff; protect off 10010000 1002ffff proon=protect on 10000000 10007fff; protect on 10010000 1002ffff ubootgz2flash=loadb 20000000; cp.b 20000000 10010000 ffff bootbin2flash=loadb 20000000; cp.b 20000000 10000000 5fff
eraseuboot=erase 10000000 10007fff; erase 10010000 1002ffff upgradeuboot=run prooff; run eraseuboot; run bootbin2flash; run ubootgz2flash; run proon

* prooff - PROtect OFF - unprotects the section of flash that holds uboot.

* eraseuboot - erases ONLY the uboot sections of the flash. it leaves the environment stuff alone. this saves much typing!

* ubootgz2flash - loads the uboot.gz file over the serial port and copies it to flash

* bootbin2flash - loads the boot.bin file over the serial port and copies it to flash

* proon - PROtect ON - protects the section of flash that holds uboot

* upgradeuboot - runs all the scripts in the correct order!

to reflash:

Uboot> run upgradeuboot
... send boot.bin by KERMIT
... send u-boot.gz by KERMIT
Uboot> saveenv (just in case!)
... press reset and hope it works.

If it doesn't work, then you have to get those files in there another way. On the AT91RM9200DK, I used the CPU's built in bootloader to load an image of u-boot into RAM and execute it.

Aras

Quoted 8 lines · Brock Denson
Quoted 1 line

I've had to reflash my old version of u-boot (0.3.2) on a few occasions,

Can you explain the steps you used to reflash uboot?

Thanks,
Brock Denson