Read out hardware information

Topics about the Software of Revolution Pi
Post Reply
hobbit
Posts: 11
Joined: 04 Jan 2018, 18:50

Read out hardware information

Post 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
User avatar
lukas
Expert
Posts: 186
Joined: 13 Feb 2017, 10:29

Re: Read out hardware information

Post 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.
hobbit
Posts: 11
Joined: 04 Jan 2018, 18:50

Re: Read out hardware information

Post 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.
User avatar
volker
Posts: 1046
Joined: 09 Nov 2016, 15:41

Re: Read out hardware information

Post by volker »

What for? The serial number is unique.
Unser RevPi Motto: Don't just claim it - make it!
Eduard
KUNBUS
Posts: 209
Joined: 18 Jun 2018, 16:16

Re: Read out hardware information

Post by Eduard »

We moved the rest of this thread to the German software forum because people started writing in German.
Post Reply