diff options
Diffstat (limited to 'common/cmd_boot.c')
-rw-r--r-- | common/cmd_boot.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/cmd_boot.c b/common/cmd_boot.c index 2fc0729..c2897a2 100644 --- a/common/cmd_boot.c +++ b/common/cmd_boot.c @@ -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,7 +341,9 @@ load_serial (ulong offset) flash_perror (rc); return (~0); } - } else { + } else +#endif + { memcpy ((char *)(store_addr), binbuf, binlen); } if ((store_addr) < start_addr) |