[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 23:46:10 CEST 2008


On Aug 5, 2008, at 4:40 PM, Wolfgang Denk wrote:

> In message <Pine.LNX.4.64.0808051149250.6651 at blarg.am.freescale.net>  
> you 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.
>
> The current state of the bootm implementation is bad enough, but
> adding such a callback opens just another few cans of worms. Sorry,
> but I do not want to see that in mainline.

I dont see how this is different than the proposal of moving to a  
script based mechanism for doing a large portion of what bootm does  
today.

I get not wanting to add the the complexity that is bootm.  But I dont  
think the script mechanism is the right answer either.

- k




More information about the U-Boot mailing list