mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
powerpc: Fix bootm to boot up again with a Ramdisk
Commit 2a1a2cb6
didnt remove the dummy mem reservation in fdt_chosen,
and this stopped Linux from booting with a Ramdisk. This patch fixes
this, by deleting the useless dummy mem reservation.
When booting with a Ramdisk, a fix offset FDT_RAMDISK_OVERHEAD is now
added to of_size, so we dont need anymore a dummy mem reservation.
I measured the value of FDT_RAMDISK_OVERHEAD on a MPC8270 based
system (=0x44 bytes) and rounded it up to 0x80).
Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
committed by
Wolfgang Denk
parent
fc9c1727b5
commit
56844a22b7
@@ -165,7 +165,7 @@ int fdt_initrd(void *fdt, ulong initrd_start, ulong initrd_end, int force)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int fdt_chosen(void *fdt, ulong initrd_start, ulong initrd_end, int force)
|
||||
int fdt_chosen(void *fdt, int force)
|
||||
{
|
||||
int nodeoffset;
|
||||
int err;
|
||||
@@ -215,8 +215,6 @@ int fdt_chosen(void *fdt, ulong initrd_start, ulong initrd_end, int force)
|
||||
}
|
||||
}
|
||||
|
||||
fdt_initrd(fdt, initrd_start, initrd_end, force);
|
||||
|
||||
#ifdef CONFIG_OF_STDOUT_VIA_ALIAS
|
||||
path = fdt_getprop(fdt, nodeoffset, "linux,stdout-path", NULL);
|
||||
if ((path == NULL) || force)
|
||||
|
Reference in New Issue
Block a user