[U-Boot-Users] Patch to allow CFG_NO_FLASH & CFG_LOADS.
Christophe.LINDHEIMER at fr.thalesgroup.com
Christophe.LINDHEIMER at fr.thalesgroup.com
Tue May 20 11:17:01 CEST 2003
Hi.
A little patch to allow the use of CFG_NO_FLASH & CFG_LOADS.
Chris.
--- u-boot-0.3.0/common/cmd_boot.c 2003-04-07 10:39:32.000000000 +0200
+++ u-boot-0.3.1/common/cmd_boot.c 2003-05-20 10:27:48.000000000 +0200
@@ -332,6 +332,7 @@ load_serial (ulong offset)
case SREC_DATA3:
case SREC_DATA4:
store_addr = addr + offset;
+#ifndef CFG_NO_FLASH
if (addr2info(store_addr)) {
int rc;
@@ -340,9 +341,14 @@ load_serial (ulong offset)
flash_perror (rc);
return (~0);
}
- } else {
+ } else
+
+ {
+#endif
memcpy ((char *)(store_addr), binbuf, binlen);
- }
+#ifndef CFG_NO_FLASH
+ }
+#endif
if ((store_addr) < start_addr)
start_addr = store_addr;
if ((store_addr + binlen - 1) > end_addr)
More information about the U-Boot
mailing list