]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: auto boot updated to reduce ramdisk size
authorJohn Linn <john.linn@xilinx.com>
Sat, 21 Aug 2010 17:37:43 +0000 (11:37 -0600)
committerJohn Linn <john.linn@xilinx.com>
Sat, 21 Aug 2010 17:37:43 +0000 (11:37 -0600)
This commit added env vars to make the ramdisk size adjustable
without rebuilding u-boot.

include/configs/xpele.h

index 3baed9836dd49a615a5f78eade58e4bc6ade8b08..b9070d35727c95174f991e8bd15bef6166bac2b8 100644 (file)
 #define CONFIG_IPADDR   10.10.70.102
 #define CONFIG_ETHADDR  00:0a:35:00:01:22
 #define CONFIG_SERVERIP 10.10.70.101
+
+#define CONFIG_EXTRA_ENV_SETTINGS      \
+       "kernel_size=0x140000\0"        \
+       "ramdisk_size=0x200000\0"       \
+
 #define CONFIG_BOOTCOMMAND "echo Copying Linux from flash to RAM...;           \
-                           cp 0xE4100000 0x8000 0x140000;                      \
-                           echo Copying ramdisk from flash to RAM...;          \                         
-                           cp 0xE5000000 0x800000 0x400000;                    \
+                           cp 0xE4100000 0x8000 ${kernel_size};                \
+                           echo Copying ramdisk from flash to RAM...;          \
+                           cp 0xE5000000 0x800000 ${ramdisk_size};             \
                            go 0x8000"
 
 #define CONFIG_BAUDRATE                9600