From: Miao Yan Date: Wed, 30 Dec 2015 18:55:24 -0800 Subject: [U-Boot] [PATCH v4 7/8] x86: qemu: adjust ramdisk load address In-Reply-To: <1451530525-30913-1-git-send-email-yanmiaobest@gmail.com> References: <1451530525-30913-1-git-send-email-yanmiaobest@gmail.com> Message-ID: <1451530525-30913-8-git-send-email-yanmiaobest@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de By default, ramdisk load address is defined to 02000000 in env string. When loading bzImage to 100000 (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. Signed-off-by: Miao Yan --- include/configs/qemu-x86.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/configs/qemu-x86.h b/include/configs/qemu-x86.h index 4258dcb..657b8af 100644 --- a/include/configs/qemu-x86.h +++ b/include/configs/qemu-x86.h @@ -57,4 +57,17 @@ #undef CONFIG_ENV_IS_IN_SPI_FLASH #define CONFIG_ENV_IS_NOWHERE +/* default ramdisk load address */ +#define CONFIG_RAMDISK_ADDR 0x04000000 + +#undef CONFIG_EXTRA_ENV_SETTINGS +#define CONFIG_EXTRA_ENV_SETTINGS \ + CONFIG_STD_DEVICES_SETTINGS \ + "pciconfighost=1\0" \ + "netdev=eth0\0" \ + "consoledev=ttyS0\0" \ + "othbootargs=acpi=off\0" \ + "ramdiskaddr=0x4000000\0" \ + "ramdiskfile=initramfs.gz\0" + #endif /* __CONFIG_H */ -- 1.9.1