How to pass information from the bootloader to the kernel ?

Laurent Pinchart laurentp at cse-semaphore.com
Fri Apr 11 01:50:58 EST 2008


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080410/422495d0/attachment.pgp>


More information about the Linuxppc-dev mailing list