linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Grant Likely" <grant.likely@secretlab.ca>
To: "Laurent Pinchart" <laurentp@cse-semaphore.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: How to pass information from the bootloader to the kernel ?
Date: Thu, 10 Apr 2008 10:36:09 -0600	[thread overview]
Message-ID: <fa686aa40804100936r3ef0a69en5fb092e1129f867f@mail.gmail.com> (raw)
In-Reply-To: <200804101751.00618.laurentp@cse-semaphore.com>

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.

  reply	other threads:[~2008-04-10 16:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-10 15:50 How to pass information from the bootloader to the kernel ? Laurent Pinchart
2008-04-10 16:36 ` Grant Likely [this message]
2008-04-10 17:41 ` Kumar Gala

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fa686aa40804100936r3ef0a69en5fb092e1129f867f@mail.gmail.com \
    --to=grant.likely@secretlab.ca \
    --cc=laurentp@cse-semaphore.com \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).