* Re: [U-Boot] dtb vs. kernel command line arguments
[not found] ` <20130304180323.80ef2597c60455f3a358bd79-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
@ 2013-04-15 13:37 ` Grant Likely
0 siblings, 0 replies; only message in thread
From: Grant Likely @ 2013-04-15 13:37 UTC (permalink / raw)
To: Kim Phillips, Curt Brune
Cc: u-boot-0aAXYlwwYIKGBzrmiIFOJg,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
On Mon, 4 Mar 2013 18:03:23 -0600, Kim Phillips <kim.phillips-KZfg59tc24xl57MIdRCFDg@public.gmane.org> wrote:
> On Mon, 4 Mar 2013 10:30:45 -0800
> Curt Brune <curt-qUQiAmfTcIp+XZJcv9eMoEEOCMrvLtNR@public.gmane.org> wrote:
>
> > Hello -
> >
> > I want to pass a number of arguments from u-boot to the booted kernel.
> > The arguments are needed by user space applications, not the kernel.
> >
> > I can think of two ways:
> >
> > 1. append args by setting "bootargs".
> > 2. add nodes to the dtb before booting.
> >
> > Is there a preferred way to pass information like this?
> >
> > Like I said the arguments are not needed by the kernel device drivers,
> > but by user space applications.
> >
> > I like the structure of nodes in the dtb.
>
> please don't dual-purpose device trees as a mechanism of getting
> arguments through the kernel into userspace - device trees strictly
> describe the hardware.
Why not? The chosen node in particular is for software configuration. I
don't have any problem with passing U-Boot extra data through the chosen
node. Just don't go crazy and please document it.
g.
^ permalink raw reply [flat|nested] only message in thread