summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMiao Yan <yanmiaobest@gmail.com>2016-01-07 01:31:59 -0800
committerBin Meng <bmeng.cn@gmail.com>2016-01-13 12:20:15 +0800
commitece5c37f0cae1277a147e1c17f9d1bfabc3d2e95 (patch)
tree2dea1a5db7773aa00ad1361f99e019ba40b7d225 /include
parent87968de31d4771947fb7e88d451b0e516178ebf1 (diff)
downloadu-boot-ece5c37f0cae1277a147e1c17f9d1bfabc3d2e95.tar.gz
u-boot-ece5c37f0cae1277a147e1c17f9d1bfabc3d2e95.tar.xz
u-boot-ece5c37f0cae1277a147e1c17f9d1bfabc3d2e95.zip
x86: adjust ramdisk load address
By default, ramdisk load address is defined to 02000000 in env string. When loading bzImage to 01000000 (default address), there's a chance that the ramdisk header would be overwritten by the kernel. Thus increase the gap and make ramdisk load at 04000000 by default and also this patch introduces a new configuration item CONFIG_RAMDISK_ADDR for this purpose Signed-off-by: Miao Yan <yanmiaobest@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/configs/x86-common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/x86-common.h b/include/configs/x86-common.h
index 70ec1032fd..4182a3bf63 100644
--- a/include/configs/x86-common.h
+++ b/include/configs/x86-common.h
@@ -208,6 +208,7 @@
#define CONFIG_HOSTNAME x86
#define CONFIG_BOOTFILE "bzImage"
#define CONFIG_LOADADDR 0x1000000
+#define CONFIG_RAMDISK_ADDR 0x4000000
#define CONFIG_EXTRA_ENV_SETTINGS \
CONFIG_STD_DEVICES_SETTINGS \
@@ -215,7 +216,7 @@
"netdev=eth0\0" \
"consoledev=ttyS0\0" \
"othbootargs=acpi=off\0" \
- "ramdiskaddr=0x2000000\0" \
+ "ramdiskaddr=0x4000000\0" \
"ramdiskfile=initramfs.gz\0"
#define CONFIG_RAMBOOTCOMMAND \