Fix booting from serial dataflash on AT91RM9200
Patch by Peter Menzebach, 29 Aug 2005
This commit is contained in:
@@ -2,6 +2,9 @@
|
|||||||
Changes for U-Boot 1.1.4:
|
Changes for U-Boot 1.1.4:
|
||||||
======================================================================
|
======================================================================
|
||||||
|
|
||||||
|
* Fix booting from serial dataflash on AT91RM9200
|
||||||
|
Patch by Peter Menzebach, 29 Aug 2005
|
||||||
|
|
||||||
* Add JFFS2 support for TRAB board
|
* Add JFFS2 support for TRAB board
|
||||||
Patch by Martin Krause, 25 Aug 2005
|
Patch by Martin Krause, 25 Aug 2005
|
||||||
|
|
||||||
|
@@ -204,19 +204,21 @@ int do_bootm (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
SHOW_BOOT_PROGRESS (3);
|
SHOW_BOOT_PROGRESS (3);
|
||||||
|
|
||||||
|
#ifdef CONFIG_HAS_DATAFLASH
|
||||||
|
if (addr_dataflash(addr)){
|
||||||
|
len = ntohl(hdr->ih_size) + sizeof(image_header_t);
|
||||||
|
read_dataflash(addr, len, (char *)CFG_LOAD_ADDR);
|
||||||
|
addr = CFG_LOAD_ADDR;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* for multi-file images we need the data part, too */
|
/* for multi-file images we need the data part, too */
|
||||||
print_image_hdr ((image_header_t *)addr);
|
print_image_hdr ((image_header_t *)addr);
|
||||||
|
|
||||||
data = addr + sizeof(image_header_t);
|
data = addr + sizeof(image_header_t);
|
||||||
len = ntohl(hdr->ih_size);
|
len = ntohl(hdr->ih_size);
|
||||||
|
|
||||||
#ifdef CONFIG_HAS_DATAFLASH
|
|
||||||
if (addr_dataflash(addr)){
|
|
||||||
read_dataflash(data, len, (char *)CFG_LOAD_ADDR);
|
|
||||||
data = CFG_LOAD_ADDR;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (verify) {
|
if (verify) {
|
||||||
puts (" Verifying Checksum ... ");
|
puts (" Verifying Checksum ... ");
|
||||||
if (crc32 (0, (char *)data, len) != ntohl(hdr->ih_dcrc)) {
|
if (crc32 (0, (char *)data, len) != ntohl(hdr->ih_dcrc)) {
|
||||||
|
Reference in New Issue
Block a user