[U-Boot] libfdt: make fdt_increase_size() available to everyone

Timur Tabi timur at freescale.com
Thu May 20 14:58:23 CEST 2010


Kumar Gala wrote:

> int boot_relocate_fdt (struct lmb *lmb, ulong bootmap_base,
>                 char **of_flat_tree, ulong *of_size)
> {
> ...
> 
>         if ((fdt_blob + *of_size + fdt_board_size()) >=
>                         ((char *)CONFIG_SYS_BOOTMAPSZ + bootmap_base))
>                 relocate = 1;

Kumar, what do you think about having boot_relocate_fdt() always relocate
the fdt, even if it is already in the bootmap?  That would ensure that it
gets resized and put into an lmb region.

-- 
Timur Tabi
Linux kernel developer at Freescale


More information about the U-Boot mailing list