r991 - trunk/src/target/u-boot/patches
laforge at sita.openmoko.org
laforge at sita.openmoko.org
Thu Feb 15 02:37:04 CET 2007
Author: laforge
Date: 2007-02-15 02:37:03 +0100 (Thu, 15 Feb 2007)
New Revision: 991
Added:
trunk/src/target/u-boot/patches/uboot-bbt-quiet.patch
Modified:
trunk/src/target/u-boot/patches/series
Log:
make bbt code more quiet
Modified: trunk/src/target/u-boot/patches/series
===================================================================
--- trunk/src/target/u-boot/patches/series 2007-02-15 01:36:15 UTC (rev 990)
+++ trunk/src/target/u-boot/patches/series 2007-02-15 01:37:03 UTC (rev 991)
@@ -28,3 +28,4 @@
uboot-neo1973-jbt6k74.patch
uboot-s3c2410-warnings-fix.patch
dynpart-absorb-bad.patch
+uboot-bbt-quiet.patch
Added: trunk/src/target/u-boot/patches/uboot-bbt-quiet.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-bbt-quiet.patch 2007-02-15 01:36:15 UTC (rev 990)
+++ trunk/src/target/u-boot/patches/uboot-bbt-quiet.patch 2007-02-15 01:37:03 UTC (rev 991)
@@ -0,0 +1,43 @@
+This patch makes the u-boot NAND BBT code a bit more quiet
+
+Signed-off-by: Harald Welte <laforge at openmoko.org>
+
+Index: u-boot/drivers/nand/nand_bbt.c
+===================================================================
+--- u-boot.orig/drivers/nand/nand_bbt.c 2007-02-15 02:28:42.000000000 +0100
++++ u-boot/drivers/nand/nand_bbt.c 2007-02-15 02:29:45.000000000 +0100
+@@ -157,10 +157,6 @@
+ this->bbt[offs + (act >> 3)] |= 0x2 << (act & 0x06);
+ continue;
+ }
+- /* Leave it for now, if its matured we can move this
+- * message to MTD_DEBUG_LEVEL0 */
+- printk (KERN_DEBUG "nand_read_bbt: Bad block at 0x%08x\n",
+- ((offs << 2) + (act >> 1)) << this->bbt_erase_shift);
+ /* Factory marked bad or worn out ? */
+ if (tmp == 0)
+ this->bbt[offs + (act >> 3)] |= 0x3 << (act & 0x06);
+@@ -229,14 +225,12 @@
+ if (td->options & NAND_BBT_VERSION) {
+ nand_read_raw (mtd, buf, td->pages[0] << this->page_shift, mtd->oobblock, mtd->oobsize);
+ td->version[0] = buf[mtd->oobblock + td->veroffs];
+- printk (KERN_DEBUG "Bad block table at page %d, version 0x%02X\n", td->pages[0], td->version[0]);
+ }
+
+ /* Read the mirror version, if available */
+ if (md && (md->options & NAND_BBT_VERSION)) {
+ nand_read_raw (mtd, buf, md->pages[0] << this->page_shift, mtd->oobblock, mtd->oobsize);
+ md->version[0] = buf[mtd->oobblock + md->veroffs];
+- printk (KERN_DEBUG "Bad block table at page %d, version 0x%02X\n", md->pages[0], md->version[0]);
+ }
+
+ return 1;
+@@ -376,8 +370,6 @@
+ for (i = 0; i < chips; i++) {
+ if (td->pages[i] == -1)
+ printk (KERN_WARNING "Bad block table not found for chip %d\n", i);
+- else
+- printk (KERN_DEBUG "Bad block table found at page %d, version 0x%02X\n", td->pages[i], td->version[i]);
+ }
+ return 0;
+ }
More information about the commitlog
mailing list