2013-12-22 19:38:12 +01:00
|
|
|
--- include/configs/origen.h.orig 2013-10-16 19:08:12.000000000 +0200
|
|
|
|
+++ include/configs/origen.h 2013-11-21 15:57:25.724045492 +0100
|
|
|
|
@@ -74,8 +74,11 @@
|
2012-08-07 08:24:10 +02:00
|
|
|
#define CONFIG_CMD_DHCP
|
|
|
|
#define CONFIG_CMD_MMC
|
|
|
|
#define CONFIG_CMD_FAT
|
|
|
|
+#define CONFIG_CMD_EXT2 /* EXT2 Support */
|
|
|
|
#undef CONFIG_CMD_NET
|
|
|
|
#undef CONFIG_CMD_NFS
|
2013-04-17 09:25:52 +02:00
|
|
|
+#define CONFIG_CMD_BOOTZ /* bootz zImage support */
|
|
|
|
+#define CONFIG_SUPPORT_RAW_INITRD /* bootz raw initrd support */
|
2012-08-07 08:24:10 +02:00
|
|
|
|
2013-04-17 09:25:52 +02:00
|
|
|
#define CONFIG_BOOTDELAY 3
|
|
|
|
#define CONFIG_ZERO_BOOTDELAY_CHECK
|
2013-12-22 19:38:12 +01:00
|
|
|
@@ -85,7 +88,35 @@
|
|
|
|
|
|
|
|
#define CONFIG_SPL_TEXT_BASE 0x02021410
|
2012-08-07 08:24:10 +02:00
|
|
|
|
|
|
|
-#define CONFIG_BOOTCOMMAND "fatload mmc 0 40007000 uImage; bootm 40007000"
|
|
|
|
+#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
+ "loadaddr=0x40007000\0" \
|
2013-04-17 09:25:52 +02:00
|
|
|
+ "rdaddr=0x48000000\0" \
|
2012-08-07 08:24:10 +02:00
|
|
|
+ "kerneladdr=0x40007000\0" \
|
2013-04-17 09:25:52 +02:00
|
|
|
+ "ramdiskaddr=0x48000000\0" \
|
2012-08-07 08:24:10 +02:00
|
|
|
+ "console=ttySAC2,115200n8\0" \
|
|
|
|
+ "mmcdev=0\0" \
|
|
|
|
+ "bootenv=uEnv.txt\0" \
|
|
|
|
+ "loadbootenv=ext2load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
|
|
|
|
+ "importbootenv=echo Importing environment from mmc ...; " \
|
|
|
|
+ "env import -t $loadaddr $filesize\0" \
|
2013-09-14 20:31:35 +02:00
|
|
|
+ "loadbootscript=ext2load mmc ${mmcdev} ${loadaddr} boot/boot.scr\0" \
|
2012-08-07 08:24:10 +02:00
|
|
|
+ "bootscript=echo Running bootscript from mmc${mmcdev} ...; " \
|
|
|
|
+ "source ${loadaddr}\0"
|
|
|
|
+#define CONFIG_BOOTCOMMAND \
|
2013-04-17 09:25:52 +02:00
|
|
|
+ "if mmc rescan; then " \
|
2012-08-07 08:24:10 +02:00
|
|
|
+ "echo SD/MMC found on device ${mmcdev};" \
|
|
|
|
+ "if run loadbootenv; then " \
|
|
|
|
+ "echo Loaded environment from ${bootenv};" \
|
|
|
|
+ "run importbootenv;" \
|
|
|
|
+ "fi;" \
|
|
|
|
+ "if test -n $uenvcmd; then " \
|
|
|
|
+ "echo Running uenvcmd ...;" \
|
|
|
|
+ "run uenvcmd;" \
|
|
|
|
+ "fi;" \
|
|
|
|
+ "if run loadbootscript; then " \
|
|
|
|
+ "run bootscript; " \
|
|
|
|
+ "fi; " \
|
|
|
|
+ "fi;"
|
|
|
|
|
|
|
|
/* Miscellaneous configurable options */
|
|
|
|
#define CONFIG_SYS_LONGHELP /* undef to save memory */
|