diff options
author | Koen Kooi <koen@openembedded.org> | 2007-12-28 16:37:02 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-12-28 16:37:02 +0000 |
commit | fb694ae0d0781bb1e40766c01b58160b77e52791 (patch) | |
tree | af496728c0aca8d2a289bc0427ec6c352151fe2d /packages/u-boot/u-boot-mkimage-openmoko-native/uboot-nand-markbad-reallybad.patch | |
parent | ad396ce905ce081454d1546a806e5cf851198b09 (diff) | |
parent | fd5705c7b2b033c340e2396d69e7af5c7d1f00a4 (diff) |
merge of '28f5b60141cb1b866dcc89f47a6599c6b64dfbc0'
and 'd322189b0c434dffdfdb6b22847f6660c0e95ac6'
Diffstat (limited to 'packages/u-boot/u-boot-mkimage-openmoko-native/uboot-nand-markbad-reallybad.patch')
-rw-r--r-- | packages/u-boot/u-boot-mkimage-openmoko-native/uboot-nand-markbad-reallybad.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/u-boot/u-boot-mkimage-openmoko-native/uboot-nand-markbad-reallybad.patch b/packages/u-boot/u-boot-mkimage-openmoko-native/uboot-nand-markbad-reallybad.patch new file mode 100644 index 0000000000..d630889e3c --- /dev/null +++ b/packages/u-boot/u-boot-mkimage-openmoko-native/uboot-nand-markbad-reallybad.patch @@ -0,0 +1,20 @@ +This patch makes sure that the 'nand markbad' command does not only mark a block +'bad' in the bad-block table, but _also_ marks it bad in the OOB area. + +we need this to preserve the bad block status when re-creating the bad block table +at some later point. + +Signed-off-by: Harald Welte <laforge@openmoko.org> +Index: u-boot/drivers/nand/nand_base.c +=================================================================== +--- u-boot.orig/drivers/nand/nand_base.c 2007-03-01 12:47:31.000000000 +0100 ++++ u-boot/drivers/nand/nand_base.c 2007-03-01 12:48:08.000000000 +0100 +@@ -481,7 +481,7 @@ + + /* Do we have a flash based bad block table ? */ + if (this->options & NAND_USE_FLASH_BBT) +- return nand_update_bbt (mtd, ofs); ++ nand_update_bbt (mtd, ofs); + + /* We write two bytes, so we dont have to mess with 16 bit access */ + ofs += mtd->oobsize + (this->badblockpos & ~0x01); |