How to pass information from the bootloader to the kernel ?

Kumar Gala galak at kernel.crashing.org
Fri Apr 11 03:41:29 EST 2008


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



More information about the Linuxppc-dev mailing list