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
Read out hardware information
Re: Read out hardware information
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.
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
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
Then only an info about production year (date) is missing.
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
What for? The serial number is unique.
Unser RevPi Motto: Don't just claim it - make it!
Re: Read out hardware information
We moved the rest of this thread to the German software forum because people started writing in German.