Re: Get machine type in user-space

David Lanzendörfer <[email protected]> Thu, 20 Jun 2013 21:04 +0200
Newsgroups gmane.linux.ports.arm.general
Organization OpenSourceSupport GmbH
Message-ID <[email protected]>
Hi

> If the kernel supports more than one "machine type", the the one that
> are specified by the bootloader will be choosen.
> If the kernel only supports one "machine type" that will *always* be choosen.
I wouldn't work with machine type ids anymore, but rather would use
the device tree scripts... It's much easier to update a DTB and you
don't have to build custom kernels anymore for your hardware.

> Question:
> Is it possible from user-space to find out the "machine type" that was
> passed from the bootloader?
> I know that in /proc/cpuinfo it is possible to see that "name" of the
> choosen "machine type", but not if it was the correct one.
You will have to export a sysfs node in your board file which
exposes the revision information of your board if you have the need
for such data.

-David

_______________________________________________
linux-arm mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iEYEABECAAYFAlHDUiQACgkQAeZw77btGjrJ1gCcCwmAw0S90QwhW4gQhGqzKGBR
NTkAn1yXkUQNDfy668Pz7BLBTad+Z1JT
=2QUQ
-----END PGP SIGNATURE-----