ironsheep / RPi-Reporter-MQTT2HA-Daemon

Linux service to collect and transfer Raspberry Pi data via MQTT to Home Assistant (for RPi Monitoring)
GNU General Public License v3.0
442 stars 62 forks source link

Add EEPROM version for Pi4/CM4 (and any future ones that use it) #91

Open bsimmo opened 1 year ago

bsimmo commented 1 year ago

Describe the solution you'd like It might be useful for some to know the EEPROM version their Pi4/CM4 is using (an VL805 for v1.1 Pi4)

Describe alternatives you've considered Go look at it myself on the Pi console.

Additional context You can collect the information with vcgencmd bootloader_version gives

2023/01/11 17:40:52
version 8ba17717fbcedd4c3b6d4bce7e50c7af4155cba9 (release)
timestamp 1673458852
update-time 1675769444
capabilities 0x0000007f

and could use the timestamp i.e. 1673458852 gives date-time 11/01/2023, 17:40:52 or just grab the text version of it.

or if available it provides if it is the latest. rpi-eeprom-update gives

BOOTLOADER: up to date
   CURRENT: Wed 11 Jan 17:40:52 UTC 2023 (1673458852)
    LATEST: Wed 11 Jan 17:40:52 UTC 2023 (1673458852)
   RELEASE: stable (/lib/firmware/raspberrypi/bootloader/stable)
            Use raspi-config to change the release.

  VL805_FW: Dedicated VL805 EEPROM
     VL805: version unknown. Try sudo rpi-eeprom-update
   CURRENT:
    LATEST: 000138c0

or with sudo you get the VL805 if not a dedicated one.

ironsheep commented 1 year ago

Interesting. Shouldn't be too hard to add.

I'll try to get this in when I do the next release.