diff options
Diffstat (limited to 'meta/packages/uboot/u-boot-mkimage-openmoko-native/uboot-bbt-quiet.patch')
-rw-r--r-- | meta/packages/uboot/u-boot-mkimage-openmoko-native/uboot-bbt-quiet.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/packages/uboot/u-boot-mkimage-openmoko-native/uboot-bbt-quiet.patch b/meta/packages/uboot/u-boot-mkimage-openmoko-native/uboot-bbt-quiet.patch new file mode 100644 index 0000000000..9b1febe956 --- /dev/null +++ b/meta/packages/uboot/u-boot-mkimage-openmoko-native/uboot-bbt-quiet.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | This patch makes the u-boot NAND BBT code a bit more quiet | ||
2 | |||
3 | Signed-off-by: Harald Welte <laforge@openmoko.org> | ||
4 | |||
5 | Index: u-boot/drivers/nand/nand_bbt.c | ||
6 | =================================================================== | ||
7 | --- u-boot.orig/drivers/nand/nand_bbt.c 2007-02-16 23:54:02.000000000 +0100 | ||
8 | +++ u-boot/drivers/nand/nand_bbt.c 2007-02-16 23:54:05.000000000 +0100 | ||
9 | @@ -157,10 +157,6 @@ | ||
10 | this->bbt[offs + (act >> 3)] |= 0x2 << (act & 0x06); | ||
11 | continue; | ||
12 | } | ||
13 | - /* Leave it for now, if its matured we can move this | ||
14 | - * message to MTD_DEBUG_LEVEL0 */ | ||
15 | - printk (KERN_DEBUG "nand_read_bbt: Bad block at 0x%08x\n", | ||
16 | - ((offs << 2) + (act >> 1)) << this->bbt_erase_shift); | ||
17 | /* Factory marked bad or worn out ? */ | ||
18 | if (tmp == 0) | ||
19 | this->bbt[offs + (act >> 3)] |= 0x3 << (act & 0x06); | ||
20 | @@ -229,14 +225,12 @@ | ||
21 | if (td->options & NAND_BBT_VERSION) { | ||
22 | nand_read_raw (mtd, buf, td->pages[0] << this->page_shift, mtd->oobblock, mtd->oobsize); | ||
23 | td->version[0] = buf[mtd->oobblock + td->veroffs]; | ||
24 | - printk (KERN_DEBUG "Bad block table at page %d, version 0x%02X\n", td->pages[0], td->version[0]); | ||
25 | } | ||
26 | |||
27 | /* Read the mirror version, if available */ | ||
28 | if (md && (md->options & NAND_BBT_VERSION)) { | ||
29 | nand_read_raw (mtd, buf, md->pages[0] << this->page_shift, mtd->oobblock, mtd->oobsize); | ||
30 | md->version[0] = buf[mtd->oobblock + md->veroffs]; | ||
31 | - printk (KERN_DEBUG "Bad block table at page %d, version 0x%02X\n", md->pages[0], md->version[0]); | ||
32 | } | ||
33 | |||
34 | return 1; | ||
35 | @@ -374,8 +368,6 @@ | ||
36 | for (i = 0; i < chips; i++) { | ||
37 | if (td->pages[i] == -1) | ||
38 | printk (KERN_WARNING "Bad block table not found for chip %d\n", i); | ||
39 | - else | ||
40 | - printk (KERN_DEBUG "Bad block table found at page %d, version 0x%02X\n", td->pages[i], td->version[i]); | ||
41 | } | ||
42 | return 0; | ||
43 | } | ||