[U-Boot-Users] [PATCH v2] fdt: add fdtcmd env var to allow post processing of device tree before boot

Kumar Gala galak at kernel.crashing.org
Tue Aug 5 18:52:29 CEST 2008


On Aug 5, 2008, at 11:50 AM, Kumar Gala wrote:

> Added the 'fdtcmd' environment variable as a way to provide 'fdt'  
> commands
> that the user can supply to manipulate the device tree after
> ft_board_setup() and before the tree is handled to the kernel.
>
> The idea is that users may want to add or manipulate nodes w/ 
> changing the
> u-boot binary.  The current point in the code we do this we have yet  
> to
> determine the final size and have yet to do the final fixup of the  
> initrd
> information.
>
> If its desirable for the 'fdtcmd' support to have the proper initrd
> information a bit of code reorder will be in order.
>
> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
> ---
>
> Moved 'fdt boardsetup' into the 'fdtcmd' environment by default thus  
> removing the
> explicit ft_board_setup call and moving slightly towards the  
> direction of having
> things be a bit more script driven.

One of my intents was that this would be a stop gap until we have the  
"new script" method worked out.  Also the idea is that would be  
compatible with the usage we are talking about and we'd just expand  
the default settings of 'fdtcmd' as part of the "new script" bootm  
method.

- k




More information about the U-Boot mailing list