r931 - trunk/src/target/u-boot/patches

werner at sita.openmoko.org werner at sita.openmoko.org
Fri Feb 9 13:47:35 CET 2007


Author: werner
Date: 2007-02-09 13:47:32 +0100 (Fri, 09 Feb 2007)
New Revision: 931

Added:
   trunk/src/target/u-boot/patches/shrink-initrd.patch
Modified:
   trunk/src/target/u-boot/patches/series
Log:
drivers/nand/nand_bbt.c (part_size): shrink initrd from 4'194'304 bytes to
  1'245'184 bytes and grow rootfs from 60'604'416 to 63'553'536 bytes.



Modified: trunk/src/target/u-boot/patches/series
===================================================================
--- trunk/src/target/u-boot/patches/series	2007-02-09 12:20:59 UTC (rev 930)
+++ trunk/src/target/u-boot/patches/series	2007-02-09 12:47:32 UTC (rev 931)
@@ -24,3 +24,4 @@
 uboot-mokoversion.patch
 uboot-strtoul.patch
 nand-badisbad.patch
+shrink-initrd.patch

Added: trunk/src/target/u-boot/patches/shrink-initrd.patch
===================================================================
--- trunk/src/target/u-boot/patches/shrink-initrd.patch	2007-02-09 12:20:59 UTC (rev 930)
+++ trunk/src/target/u-boot/patches/shrink-initrd.patch	2007-02-09 12:47:32 UTC (rev 931)
@@ -0,0 +1,19 @@
+Index: u-boot/drivers/nand/nand_bbt.c
+===================================================================
+--- u-boot.orig/drivers/nand/nand_bbt.c
++++ u-boot/drivers/nand/nand_bbt.c
+@@ -1054,7 +1054,13 @@ int nand_isbad_bbt (struct mtd_info *mtd
+ }
+ 
+ #define ARRAY_SIZE(x)           (sizeof(x) / sizeof((x)[0]))
+-static unsigned int part_size[] = { 0x30000, 0x4000, 0x200000, 0x400000, 0x39cc000 };
++
++/* NOTE: this is extremely device-dependent, so it shouldn't really be here.
++   The sum of all part_size[]s must equal to the NAND size, i.e., 0x4000000.
++   "initrd" is sized such that it can hold two uncompressed 16 bit 640*480
++   images: 640*480*2*2 = 1228800 < 1245184. */
++
++static unsigned int part_size[] = { 0x30000, 0x4000, 0x200000, 0x130000, 0x3c9c000 };
+ static char *part_names[] = { "u-boot", "u-boot env", "kernel", "initrd", "rootfs" };
+ 
+ int nand_create_mtd_dynpart(struct mtd_info *mtd)





More information about the commitlog mailing list