Skip to main content.
Navigation:
DENX
>
Training
>
U-BootDownloadDetails
Translations:
Edit
|
Attach
|
Raw
|
Ref-By
|
Printable
|
More
Training
Sections of this site:
DENX Home
|
DULG
|
ELDK-5
|
Know
|
Training
|
U-Boot
|
U-Bootdoc
Topics
Training Home
Changes
Index
Search
Go
List of pages in Training
Search
---+ 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 * Check where flash (=boot device) is mapped after reset <verbatim> ATC>rd br0 br0: 0x00001001 4097 </verbatim> ==> =BR0[BA] = 0x00000000= * Erase first 256 kB (= first 4 sectors) <verbatim> 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 </verbatim> * Program U-Boot binary image starting at address =0x00000000= <verbatim> ATC>prog 0x00000000 /tftpboot/ATC/u-boot.bin-wd bin Programming /tftpboot/ATC/u-boot.bin-wd , please wait .... Programming flash passed </verbatim> * Start U-Boot image <verbatim> 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 </verbatim> ---++ Fine tuning the BDI2000 config file * Set defaults for flash sectors to erase and image to program <verbatim> [FLASH] ... FILE /tftpboot/ATC/u-boot.bin FORMAT BIN 0x00000000 ERASE 0x00000000 BLOCK ERASE 0x00010000 BLOCK ERASE 0x00020000 BLOCK ERASE 0x00030000 BLOCK </verbatim> * Now use simple commands <verbatim> 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 </verbatim> -- Main.Wolfgang Denk - 14 May 2003