[U-Boot-Users] [PATCH] fdt: add fdtcmd env var to allow post processing of device tree before boot
Wolfgang Denk
wd at denx.de
Mon Aug 4 23:07:37 CEST 2008
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.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
To the systems programmer, users and applications serve only to
provide a test load.
More information about the U-Boot
mailing list