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

Kumar Gala galak at kernel.crashing.org
Tue Aug 5 00:23:30 CEST 2008


On Aug 4, 2008, at 4:07 PM, Wolfgang Denk wrote:

> In message <F388F9D5-B685-4DD8- 
> ACAC-146A46A1F04E at kernel.crashing.org> you wrote:
>>
>>> So just run the needed commands before you run "bootm" as part of  
>>> your
>>> boot command sequence.
>>
>> This doesnt work.  Lets say I want to remove a node or property that
>> ft_board_setup() adds.  If I do what you are suggesting the node or
>> prop will get added back:
>>
>> fdt addr <FOO>
>> fdt boardsetup (we assume this adds /bar/prop)
>> fdt rm /bar/prop
>> bootm (will call ft_board_setup and add /bar/prop back)
>
> And exactly this has to be considered a bug in the current bootm
> implementation.
>
> Throwing out this design error would make more sense to me than adding
> another quirk.

Ok.  What do we think 'bootm' at its lowest level should do?

- k 




More information about the U-Boot mailing list