identifying a 1.75
Paul Fox
pgf at laptop.org
Tue Aug 9 18:31:45 EDT 2011
on XO-1 and XO-1.5, we were able to discover the model of the laptop
from the information under /sys/class/dmi/id. the DMI schema comes
from the PC world, and we can't expect it to exist on ARM.
there was also information to be found in /ofw on those machines, like
serial number, and uuid. the hex model designator found there was
used as a fallback if the dmi tree wasn't there (on older XO-1
firmware).
on 1.75, there's no dmi tree, and /ofw has moved to /proc/device-tree,
so we need to modify a lot of places that try and dig up platform
info. (see #11116)
so i'm floating the attached script, tentatively named olpc-hwinfo,
as a strawman. i think it gives access to the most often needed info,
and can obviously be expanded if needed. it would go in olpc-utils,
which would put it in /usr/sbin (since some clients live in /usr/sbin).
thoughts/comments? better approaches? obvious additions?
paul
=---------------------
paul fox, pgf at laptop.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: olpc-hwinfo
Type: application/octet-stream
Size: 2318 bytes
Desc: -
URL: <http://lists.laptop.org/pipermail/devel/attachments/20110809/5a819b30/attachment.obj>
More information about the Devel
mailing list