U-Boot Download Details
Find out where to download to (memory map)
-
RAM: 0x00000000 ...
-
Flash: 0xFF000000 ...
- Begin of U-Boot image: Begin of Flash
- Size of U-Boot image: approx. 120 kb, reserved: 256 kB
Find out how flash memory is structured (erase blocks)
- ATC board uses AMD 29LV641D flash chips (64 Mbit, uniform sectors)
- all erase blocks (sectors) = 64 kB
Use BDI2000 to erase flash and program the image
- Erase first 256 kB (= first 4 sectors)
ATC>era 0
Erasing flash at 0x00000000
Erasing flash passed
ATC>era 0x10000
Erasing flash at 0x00010000
Erasing flash passed
ATC>era 0x20000
Erasing flash at 0x00020000
Erasing flash passed
ATC>era 0x30000
Erasing flash at 0x00030000
Erasing flash passed
- Program U-Boot binary image starting at address
0x00000000
ATC>prog 0x00000000 /tftpboot/ATC/u-boot.bin-wd bin
Programming /tftpboot/ATC/u-boot.bin-wd , please wait ....
Programming flash passed
- Start U-Boot image
ATC>reset
- TARGET: processing user reset request
- BDI asserts HRESET
- Reset JTAG controller passed
- Bypass check: 0x55 => 0xAA
- Bypass check: 0x55 => 0xAA
- JTAG exists check passed
- Target PVR is 0x80911014
- COP status is 0x01
- Check running state passed
- BDI scans COP freeze command
- BDI removes HRESET
- COP status is 0x05
- Check stopped state passed
- Check LSRL length passed
- BDI sets breakpoint at 0x00000100
- BDI resumes program execution
- Waiting for target stop passed
- TARGET: Target PVR is 0x80911014
- TARGET: resetting target passed
- TARGET: processing target startup ....
- TARGET: processing target startup passed
ATC>go
Fine tuning the BDI2000 config file
- Set defaults for flash sectors to erase and image to program
[FLASH]
...
FILE /tftpboot/ATC/u-boot.bin
FORMAT BIN 0x00000000
ERASE 0x00000000 BLOCK
ERASE 0x00010000 BLOCK
ERASE 0x00020000 BLOCK
ERASE 0x00030000 BLOCK
- Now use simple commands
ATC>era
Erasing flash at 0x00000000
Erasing flash at 0x00010000
Erasing flash at 0x00020000
Erasing flash at 0x00030000
Erasing flash passed
ATC>prog
Programming /tftpboot/ATC/u-boot.bin , please wait ....
Programming flash passed
-- Main.Wolfgang Denk - 14 May 2003