linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* How to pass information from the bootloader to the kernel ?
@ 2008-04-10 15:50 Laurent Pinchart
  2008-04-10 16:36 ` Grant Likely
  2008-04-10 17:41 ` Kumar Gala
  0 siblings, 2 replies; 3+ messages in thread
From: Laurent Pinchart @ 2008-04-10 15:50 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 720 bytes --]

Hi everybody,

I need to pass a limited amount of information from the boot loader to the 
Linux kernel, such as the boot mode chosen by the user or the last boot 
reason (power up, reset, watchdog, ...).

What is the best way to pass that kind of information from the boot loader to 
the kernel ? Should I use the device tree ?

I thought about populating the chosen node with the data I need. This could 
make sense for the boot mode, but I feel like I would abuse the chosen node 
if I used it to pass other "non user chosen" information.

Best regards,

-- 
Laurent Pinchart
CSE Semaphore Belgium

Chaussee de Bruxelles, 732A
B-1410 Waterloo
Belgium

T +32 (2) 387 42 59
F +32 (2) 387 42 75

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to pass information from the bootloader to the kernel ?
  2008-04-10 15:50 How to pass information from the bootloader to the kernel ? Laurent Pinchart
@ 2008-04-10 16:36 ` Grant Likely
  2008-04-10 17:41 ` Kumar Gala
  1 sibling, 0 replies; 3+ messages in thread
From: Grant Likely @ 2008-04-10 16:36 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: linuxppc-dev

On Thu, Apr 10, 2008 at 9:50 AM, Laurent Pinchart
<laurentp@cse-semaphore.com> wrote:
> Hi everybody,
>
>  I need to pass a limited amount of information from the boot loader to the
>  Linux kernel, such as the boot mode chosen by the user or the last boot
>  reason (power up, reset, watchdog, ...).
>
>  What is the best way to pass that kind of information from the boot loader to
>  the kernel ? Should I use the device tree ?
>
>  I thought about populating the chosen node with the data I need. This could
>  make sense for the boot mode, but I feel like I would abuse the chosen node
>  if I used it to pass other "non user chosen" information.

Using the chosen node should be fine.  Just prefix your new properties
with your company name or something so that you don't get namespace
collisions.  However, whatever you do; document it first and post your
documentation to the mailing list for review.

Cheers,
g.


>
>  Best regards,
>
>  --
>  Laurent Pinchart
>  CSE Semaphore Belgium
>
>  Chaussee de Bruxelles, 732A
>  B-1410 Waterloo
>  Belgium
>
>  T +32 (2) 387 42 59
>  F +32 (2) 387 42 75
>
> _______________________________________________
>  Linuxppc-dev mailing list
>  Linuxppc-dev@ozlabs.org
>  https://ozlabs.org/mailman/listinfo/linuxppc-dev
>



-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to pass information from the bootloader to the kernel ?
  2008-04-10 15:50 How to pass information from the bootloader to the kernel ? Laurent Pinchart
  2008-04-10 16:36 ` Grant Likely
@ 2008-04-10 17:41 ` Kumar Gala
  1 sibling, 0 replies; 3+ messages in thread
From: Kumar Gala @ 2008-04-10 17:41 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: linuxppc-dev


On Apr 10, 2008, at 10:50 AM, Laurent Pinchart wrote:
> Hi everybody,
>
> I need to pass a limited amount of information from the boot loader  
> to the
> Linux kernel, such as the boot mode chosen by the user or the last  
> boot
> reason (power up, reset, watchdog, ...).
>
> What is the best way to pass that kind of information from the boot  
> loader to
> the kernel ? Should I use the device tree ?
>
> I thought about populating the chosen node with the data I need.  
> This could
> make sense for the boot mode, but I feel like I would abuse the  
> chosen node
> if I used it to pass other "non user chosen" information.

using chosen is fine, just remember to prefix properties with some  
vendor prefix.

- k

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-10 17:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-10 15:50 How to pass information from the bootloader to the kernel ? Laurent Pinchart
2008-04-10 16:36 ` Grant Likely
2008-04-10 17:41 ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).