tricorder: Add UBIFS
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.
Signed-off-by Bernhard Walle <[email protected]>
Squashed two commits (UBIFS enabled and malloc size increased) into one.
Signed-off-by Thomas Weber <[email protected]>
--- include/configs/tricorder.h | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
include/configs/tricorder.h +4 -2
@@ -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
PATCH 2/2 tricorder: Load kernel from ubifs
From: Bernhard Walle <[email protected]>
Signed-off-by Bernhard Walle <[email protected]>
--- include/configs/tricorder.h | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-)
include/configs/tricorder.h +7 -2
@@ -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
PATCH 1/2 tricorder: Add UBIFS
In reply to Thomas WeberQuoted 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.
Signed-off-by Bernhard Walle <[email protected]>Squashed two commits (UBIFS enabled and malloc size increased) into one.
Signed-off-by Thomas Weber <[email protected]>
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>