Page 1 of 1

Read out hardware information

Posted: 04 Jan 2018, 18:54
by hobbit
Hi

Is there a possibility to read out some hardware information (like serial number / hardware version / os version / production date / etc) of the core module by python?

Thanks and best regards

Re: Read out hardware information

Posted: 08 Jan 2018, 06:56
by lukas
Well there is a *lot* that can be read out, what do you need exactly? (For what purpose?)

Calling /usr/bin/piSerial -s will give you the serial number stored in the crypto chip, this is unique across all RevPi base boards. (See man piSerial.)

The file /sys/firmware/devicetree/base/serial-number contains the serial number of the Compute Module.

The file /sys/firmware/devicetree/base/model contains the type of the Compute Module.

The file /etc/os-release contains the operating system version.

Calling /bin/uname -a will give you the kernel version, chip architecture, etc.

The file /etc/revpi/image-release contains the image that was originally flashed on the Compute Module.

Obviously, all of these commands and files are accessible from Python as well.

Re: Read out hardware information

Posted: 01 Mar 2018, 16:42
by hobbit
Ok thanks for your reply.

Our goal is to get an unique identification of the currently used RevolutioPI.
Therefore we would like to read out an info about the Core Module (RevPI Core 1 or Core 3), a serial number and a production date / year.

So I can use
  • "file /sys/firmware/devicetree/base/model" for Core type
  • "/usr/bin/piSerial -s" for serial number

Then only an info about production year (date) is missing.

Re: Read out hardware information

Posted: 02 Mar 2018, 15:38
by volker
What for? The serial number is unique.

Re: Read out hardware information

Posted: 16 Aug 2018, 16:13
by Eduard
We moved the rest of this thread to the German software forum because people started writing in German.