From: Detlev Zundel Date: Tue, 22 Dec 2009 12:43:01 +0100 Subject: [U-Boot] [PATCH 1/2] cmd_bootm.c: Do not load a ramdisk when not booting a kernel. Message-ID: <1261482182-4219-1-git-send-email-dzu@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In case we boot an image marked as 'standalone' and 'linux', the current code erroneously tried to load a ramdisk. Signed-off-by: Detlev Zundel --- common/cmd_bootm.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 94ddac3..26cae97 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -297,7 +297,8 @@ static int bootm_start(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) return 1; } - if (images.os.os == IH_OS_LINUX) { + if ((images.os.type == IH_TYPE_KERNEL) && + (images.os.os == IH_OS_LINUX)) { /* find ramdisk */ ret = boot_get_ramdisk (argc, argv, &images, IH_INITRD_ARCH, &images.rd_start, &images.rd_end); -- 1.6.2.5