diff --git a/arch/powerpc/lib/bootm.c b/arch/powerpc/lib/bootm.c index e01787dcb77f6eac861295ac59aa34645020d830..4e0cb8f3bf5e20854d04786a4e18be4f94eb5ac1 100644 --- a/arch/powerpc/lib/bootm.c +++ b/arch/powerpc/lib/bootm.c @@ -288,8 +288,10 @@ static int boot_body_linux(bootm_headers_t *images) return ret; of_size = ret; - if (*initrd_start && *initrd_end) + if (*initrd_start && *initrd_end) { of_size += FDT_RAMDISK_OVERHEAD; + fdt_set_totalsize(*of_flat_tree, of_size); + } /* Create a new LMB reservation */ lmb_reserve(lmb, (ulong)*of_flat_tree, of_size);