powerpc: Fix bootm to boot up again with a Ramdisk
authorHeiko Schocher <hs@denx.de>
Thu, 11 Sep 2008 06:11:23 +0000 (08:11 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 13 Sep 2008 00:03:38 +0000 (02:03 +0200)
commit56844a22b76c719e600047e23b80465a44d76abd
tree1a2776838726eee8f4f1ac1f389a0f25a30f162e
parentfc9c1727b5b3483ce49c3cb668e8332fb001b8a7
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>
common/cmd_fdt.c
common/fdt_support.c
include/fdt.h
include/fdt_support.h
lib_ppc/bootm.c