Detecting XO-1.5 in kernel boot
Richard A. Smith
richard at laptop.org
Tue Sep 21 13:11:26 EDT 2010
On 09/21/2010 12:35 PM, Mitch Bradley wrote:
> On 9/21/2010 6:15 AM, Daniel Drake wrote:
>> One idea: check the DMI info, look for the OLPC XO-1.5
>> manufacturer/product codes.
> You could get all the information from the device tree, after having first checked for the presence of the device tree
> by looking for the relevant "files". "/ofw/architecture", for example, contains "OLPC\0". The "/ofw" may turn into
> "/proc/something" or something else once Andres finishes, so it's probably a good idea to bury that prefix in a
> subroutine somewhere.
The device tree is the Right Way to do this. Thats what its designed
for and we should encourage its use.
Another possible way would be for OFW to pass the model in on the
kernel command line. That involves a /boot/olpc.fth change but OLPC
shipped kernels could include a fall back check for older setups.
Richard A. Smith <richard at laptop.org>
One Laptop per Child
More information about the Devel