summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2013-03-14 05:55:20 +0000
committerTom Rini <trini@ti.com>2013-03-22 10:58:04 -0400
commit73a27a84e58cb99b4e64ed6a35eab5bc61f44f29 (patch)
treee559f81c2c641cb0732ee4851c0c6beb2b3c54a2 /include
parent2077590644fdbd0d42c2b448bd5e5531c1639cef (diff)
downloadu-boot-imx-73a27a84e58cb99b4e64ed6a35eab5bc61f44f29.zip
u-boot-imx-73a27a84e58cb99b4e64ed6a35eab5bc61f44f29.tar.gz
u-boot-imx-73a27a84e58cb99b4e64ed6a35eab5bc61f44f29.tar.bz2
am335x_evm: Enable CMD_EXT4 and CMD_FS_GENERIC, add bootpart to env
The kernel is loaded from some form of ext[234] or FAT, depending on the distribution used. We add a bootpart variable to the environment so that we can load from the correct mmc partition as well. We leave CONFIG_CMD_EXT2 for existing scripts that use ext2load. Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Tom Rini <trini@ti.com> Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'include')
-rw-r--r--include/configs/am335x_evm.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index f3541d4..fc14c90 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -63,6 +63,7 @@
"mmcdev=0\0" \
"mmcroot=/dev/mmcblk0p2 ro\0" \
"mmcrootfstype=ext4 rootwait\0" \
+ "bootpart=0:2\0" \
"nandroot=ubi0:rootfs rw ubi.mtd=7,2048\0" \
"nandrootfstype=ubifs rootwait=1\0" \
"nandsrcaddr=0x280000\0" \
@@ -96,16 +97,15 @@
"nfsroot=${serverip}:${rootpath},${nfsopts} rw " \
"ip=dhcp\0" \
"bootenv=uEnv.txt\0" \
- "loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
+ "loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
"importbootenv=echo Importing environment from mmc ...; " \
"env import -t $loadaddr $filesize\0" \
"ramargs=setenv bootargs console=${console} " \
"${optargs} " \
"root=${ramroot} " \
"rootfstype=${ramrootfstype}\0" \
- "loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \
- "loaduimagefat=fatload mmc ${mmcdev} ${loadaddr} ${bootfile}\0" \
- "loaduimage=ext2load mmc ${mmcdev}:2 ${loadaddr} ${bootfile}\0" \
+ "loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \
+ "loaduimage=load mmc ${bootpart} ${loadaddr} ${bootfile}\0" \
"mmcboot=echo Booting from mmc ...; " \
"run mmcargs; " \
"bootm ${loadaddr}\0" \
@@ -194,6 +194,8 @@
#define CONFIG_DOS_PARTITION
#define CONFIG_CMD_FAT
#define CONFIG_CMD_EXT2
+#define CONFIG_CMD_EXT4
+#define CONFIG_CMD_FS_GENERIC
#define CONFIG_SPI
#define CONFIG_OMAP3_SPI