mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
cmd_bootm.c: Do not load a ramdisk when not booting a kernel.
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 <dzu@denx.de>
This commit is contained in:
parent
16035bcd8c
commit
8b828a8f44
@ -293,7 +293,8 @@ static int bootm_start(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (images.os.os == IH_OS_LINUX) {
|
if ((images.os.type == IH_TYPE_KERNEL) &&
|
||||||
|
(images.os.os == IH_OS_LINUX)) {
|
||||||
/* find ramdisk */
|
/* find ramdisk */
|
||||||
ret = boot_get_ramdisk (argc, argv, &images, IH_INITRD_ARCH,
|
ret = boot_get_ramdisk (argc, argv, &images, IH_INITRD_ARCH,
|
||||||
&images.rd_start, &images.rd_end);
|
&images.rd_start, &images.rd_end);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user