[U-Boot] FSL PowerPC platform: Not able to boot Linux with ramdisk size > 100MB
Scott Wood
scott.wood at nxp.com
Fri Oct 28 07:11:28 CEST 2016
On 10/27/2016 04:27 AM, Prabhakar Kushwaha wrote:
> Hi Masahiro,
>
> I am not able to boot Linux onF PowerPC platform with ramdisk size > 100MB.
> I tried u-boot master with top commit as " 5ac5861c4ba851b473e6a24940b412b397627d8d ".
>
> I tried git-bisect and figured out below patch causing this problem. If I revert this patch, Linux boots properly.
>
> commit 20e072f37402c17741f67d9693eaabdd835b80f2
> Author: Masahiro Yamada <yamada.masahiro at socionext.com>
> Date: Thu Dec 17 17:19:35 2015 +0900
>
> image: check "bootm_low" and "bootm_size" if "initrd_high" is missing
>
> To boot Linux, we should prevent Initramdisk and FDT from going too
> high.
>
> Currently, boot_relocate_fdt() checks "fdt_high" environment first,
> and then falls back to getenv_bootm_mapsize() + getenv_bootm_low()
> if "fdt_high" is missing.
>
> On the other hand, boot_ramdisk_high() only checks "initrd_high" to
> get the address limit for the Initramdisk. We also want to let this
> case fall back to getenv_bootm_mapsize() + getenv_bootm_low().
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
>
> Please advise!!
On PPC the initrd does not need to be loaded within the boot mapping.
This assumption of what the absence of initrd_high means is not
universally appropriate. Why not just set initrd_high on the platforms
that need it?
-Scott
More information about the U-Boot
mailing list