Skip to contentSkip to conversation

tricorder: Add UBIFS

PATCH New Thomas Weber 2 participants 3 messages Apr 3, 2012 – Apr 4, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 tricorder: Add UBIFS

From: Bernhard Walle <[email protected]>

Since kernel should be in a ubifs partition, we need UBIFS. The greater malloc size is needed for UBIFS.

Squashed two commits (UBIFS enabled and malloc size increased) into one.

---
 include/configs/tricorder.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
include/configs/tricorder.h +4 -2
index ba8847b..d826e19 100644
@@ -71,7 +71,7 @@
 /* Size of malloc() pool */
 #define CONFIG_ENV_SIZE			(128 << 10)	/* 128 KiB */
 						/* Sector */
-#define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + (512 << 10))
+#define CONFIG_SYS_MALLOC_LEN		(1024*1024)
 
 /* Hardware drivers */
 
@@ -139,7 +139,9 @@
 #define CONFIG_CMD_MTDPARTS		/* Enable MTD parts commands */
 #define CONFIG_CMD_NAND			/* NAND support */
 #define CONFIG_CMD_NAND_LOCK_UNLOCK	/* nand (un)lock commands */
-#define CONFIG_CMD_UBI			/* UBIFS commands */
+#define CONFIG_CMD_UBI			/* UBI commands */
+#define CONFIG_CMD_UBIFS		/* UBIFS commands */
+#define CONFIG_LZO			/* LZO is needed for UBIFS */
 
 #undef CONFIG_CMD_NET
 #undef CONFIG_CMD_NFS
Signature · 1 line
1.7.8.5
#1 lore raw

PATCH 2/2 tricorder: Load kernel from ubifs

From: Bernhard Walle <[email protected]>

---
 include/configs/tricorder.h |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
include/configs/tricorder.h +7 -2
index d826e19..801a24f 100644
@@ -182,7 +182,8 @@
 		"setenv bootargs ${bootargs} " \
 		"omapfb.mode=lcd:${lcdmode} " \
 		"omapdss.def_disp=${defaultdisplay} " \
-		"root=ubi0:rootfs " \
+		"root=ubi0:root " \
+		"ubi.mtd=4 " \
 		"rootfstype=ubifs " \
 		"${kernelopts}\0" \
 	"loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
@@ -193,9 +194,13 @@
 	"mmcboot=echo Booting from mmc ...; " \
 		"run mmcargs; " \
 		"bootm ${loadaddr}\0" \
+	"loaduimage_ubi=mtd default; " \
+		"ubi part fs; " \
+		"ubifsmount root; " \
+		"ubifsload ${loadaddr} /boot/uImage\0" \
 	"nandboot=echo Booting from nand ...; " \
 		"run nandargs; " \
-		"nand read ${loadaddr} 280000 400000; " \
+		"run loaduimage_ubi; " \
 		"bootm ${loadaddr}\0" \
 	"autoboot=if mmc rescan ${mmcdev}; then " \
 			"if run loadbootscript; then " \
Signature · 1 line
1.7.8.5
#2 lore raw

PATCH 1/2 tricorder: Add UBIFS

In reply to Thomas Weber
Quoted 9 lines · Thomas Weber

From: Bernhard Walle <[email protected]>

Since kernel should be in a ubifs partition, we need UBIFS. The greater malloc size is needed for UBIFS.

Squashed two commits (UBIFS enabled and malloc size increased) into one.

This and 2/2 are now queued for u-boot-ti/master which I intend to PR on Friday. Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120404/942a5f9a/attachment.pgp>