* [U-Boot-Users] [PATCH 3/4] mpc8349emitx: Add chosen node for default stdout path
[not found] ` <46A0DF76.90409@freescale.com>
@ 2007-07-20 16:46 ` Jerry Van Baren
0 siblings, 0 replies; only message in thread
From: Jerry Van Baren @ 2007-07-20 16:46 UTC (permalink / raw)
To: u-boot
Scott Wood wrote:
> Jerry Van Baren wrote:
>> Scott Wood wrote:
>>> Kim Phillips wrote:
>>>> The LIBFDT implementation replaces any existing /chosen with its fixed
>>>> up version.
>>
>> Sort of. If /chosen doesn't exist, it creates it.
>>
>> If /chosen exists and "force" parameter is false, it doesn't touch it.
>> If "force" is true, it creates or fixes up properties. The "bootm"
>> command passes in force == false. The "fdt" command passes in force ==
>> true.
>>
>> The "force" parameter was added to sort of emulate the previous bootm
>> command behavior (but behave better in the case where /chosen already
>> existed).
>
> The problem is that "force" is node-granular, rather than
> property-granular -- If I add a /chosen/linux,stdout-path in the
> original dts (or via an fdt command), then bootm will decline to add
> bootargs and initrd information to the /chosen node.
>
> -Scott
Hi Scott,
Yes, making "force" property-granular makes more sense. I'll add that
to my u-boot-fdt repo.
FWIIW, my original proposal (and code) was to *REMOVE* the automagic
modifications of the fdt blob from the bootm command. My original
proposal was to replace "bootm" in scripts (or in the user's fingers)
with "fdt chosen && fdt env && fdt bd_t && bootm" (or an appropriate
combination thereof). I was shouted down. ;-)
IMHO, having bootm modify the fdt blob is a poor practice. Bootm's
mandate is to boot an image from memory, it *shouldn't* be to rewrite
the fdt blob. Unfortunately, we had an existing practice (poor, IMHO)
of having bootm rewrite the fdt blob and so the current implementation
was done to meet the "user expectation" of bootm "just working" without
needing to add "fdt xyz" before the bootm command.
gvb
(wipes the foamy spit off his face)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-20 16:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20070719183415.7458.42622.stgit@trillian>
[not found] ` <20070719183734.7458.83695.stgit@trillian>
[not found] ` <469FB47D.4030009@freescale.com>
[not found] ` <fa686aa40707191243wb4ce9c1n86002405c5d01bab@mail.gmail.com>
[not found] ` <20070719164036.f3d4c86d.kim.phillips@freescale.com>
[not found] ` <469FDB3B.5000901@freescale.com>
[not found] ` <46A01733.6080609@gmail.com>
[not found] ` <46A0DF76.90409@freescale.com>
2007-07-20 16:46 ` [U-Boot-Users] [PATCH 3/4] mpc8349emitx: Add chosen node for default stdout path Jerry Van Baren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox