From 017e1f3f9fc8745cc12bbd924b0cbc4d6ee5dbf8 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Sun, 18 Mar 2012 11:47:58 +0000 Subject: BOOT: Add RAW ramdisk support to bootz This patch allows loading RAW ramdisk via bootz command. The raw ramdisk is loaded only in case it's size is specified: bootz : For example: bootz 0x42000000 0x43000000:0x12345 0x44000000 Signed-off-by: Marek Vasut Signed-off-by: Rob Herring Cc: Tom Warren Cc: albert.u.boot@aribaud.net Cc: afleming@gmail.com Cc: Simon Glass Cc: Stephen Warren Cc: Nicolas Pitre Cc: Wolfgang Denk Cc: Detlev Zundel --- common/cmd_bootm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'common/cmd_bootm.c') diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 5e5d572..9ad2535 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -1629,9 +1629,11 @@ static int do_bootz(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) U_BOOT_CMD( bootz, CONFIG_SYS_MAXARGS, 1, do_bootz, "boot Linux zImage image from memory", - "[addr [initrd] [fdt]]\n - boot Linux zImage stored in memory\n" + "[addr [initrd[:size]] [fdt]]\n" + " - boot Linux zImage stored in memory\n" "\tThe argument 'initrd' is optional and specifies the address\n" - "\tof the initrd in memory.\n" + "\tof the initrd in memory. The optional argument ':size' allows\n" + "\tspecifying the size of RAW initrd.\n" #if defined(CONFIG_OF_LIBFDT) "\tWhen booting a Linux kernel which requires a flat device-tree\n" "\ta third argument is required which is the address of the\n" -- cgit v1.1