diff options
author | Wu, Josh <Josh.wu@atmel.com> | 2013-03-28 20:28:42 +0000 |
---|---|---|
committer | Andreas Bießmann <andreas.devel@googlemail.com> | 2013-05-12 16:44:02 +0200 |
commit | 248020734b83d4bd6f329095b7186dea16552909 (patch) | |
tree | 4b5b7896b2b6714a63c4daabaf89b979e83858e3 /include/configs | |
parent | a73267a7ce8adea9d062a58db896ca4275333c68 (diff) | |
download | u-boot-imx-248020734b83d4bd6f329095b7186dea16552909.zip u-boot-imx-248020734b83d4bd6f329095b7186dea16552909.tar.gz u-boot-imx-248020734b83d4bd6f329095b7186dea16552909.tar.bz2 |
arm: at91: add at91sam9g20ek_mmc_config, which can save environment in mmc card
Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/at91sam9260ek.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/configs/at91sam9260ek.h b/include/configs/at91sam9260ek.h index f6193bb..7846d0b 100644 --- a/include/configs/at91sam9260ek.h +++ b/include/configs/at91sam9260ek.h @@ -223,7 +223,7 @@ "mtdparts=atmel_nand:-(root) " \ "rw rootfstype=jffs2" -#else /* CONFIG_SYS_USE_NANDFLASH */ +#elif defined(CONFIG_SYS_USE_NANDFLASH) /* bootstrap + u-boot + env + linux in nandflash */ #define CONFIG_ENV_IS_IN_NAND 1 @@ -238,6 +238,22 @@ "512k(dtb),6M(kernel)ro,-(rootfs) " \ "root=/dev/mtdblock7 rw rootfstype=jffs2" +#else /* CONFIG_SYS_USE_MMC */ +/* bootstrap + u-boot + env + linux in mmc */ +#define CONFIG_ENV_IS_IN_MMC +/* For FAT system, most cases it should be in the reserved sector */ +#define CONFIG_ENV_OFFSET 0x2000 +#define CONFIG_ENV_SIZE 0x1000 +#define CONFIG_SYS_MMC_ENV_DEV 0 + +#define CONFIG_BOOTCOMMAND \ + "fatload mmc 0:1 0x22000000 uImage; bootm" +#define CONFIG_BOOTARGS \ + "console=ttyS0,115200 earlyprintk " \ + "mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot)ro," \ + "256k(env),256k(env_redundant),256k(spare)," \ + "512k(dtb),6M(kernel)ro,-(rootfs) " \ + "root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait" #endif #define CONFIG_SYS_PROMPT "U-Boot> " |