From: Stefan Roese Date: Fri, 12 Aug 2005 14:46:35 +0000 (+0200) Subject: Fix problem in cmd_nand.c (only when defined CFG_NAND_SKIP_BAD_DOT_I) X-Git-Tag: LABEL_2006_03_12_0025~226^2~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9bcf2ab41ffdb7ab92f3eb24624853268c8dbadc;p=u-boot Fix problem in cmd_nand.c (only when defined CFG_NAND_SKIP_BAD_DOT_I) Patch by Matthias Fuchs, 4 May 2005 --- diff --git a/CHANGELOG b/CHANGELOG index b0ff46e583..2ac79ed814 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,9 @@ Changes for U-Boot 1.1.3: ====================================================================== +* Fix problem in cmd_nand.c (only when defined CFG_NAND_SKIP_BAD_DOT_I) + Patch by Matthias Fuchs, 4 May 2005 + * Update AMCC Yosemite to get a consistent setup for all AMCC eval boards (baudrate, environment...). Flash driver fixed. Patch by Stefan Roese, 11 Aug 2005 diff --git a/common/cmd_nand.c b/common/cmd_nand.c index 449991785c..5648ab2178 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -225,10 +225,11 @@ int do_nand (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) #ifdef CFG_NAND_SKIP_BAD_DOT_I /* need ".i" same as ".jffs2s" for compatibility with older units (esd) */ /* ".i" for image -> read skips bad block (no 0xff) */ - else if (cmdtail && !strcmp(cmdtail, ".i")) + else if (cmdtail && !strcmp(cmdtail, ".i")) { cmd |= NANDRW_JFFS2; /* skip bad blocks (on read too) */ if (cmd & NANDRW_READ) cmd |= NANDRW_JFFS2_SKIP; /* skip bad blocks (on read too) */ + } #endif /* CFG_NAND_SKIP_BAD_DOT_I */ else if (cmdtail) { printf ("Usage:\n%s\n", cmdtp->usage);