The HAT EEPROM is a non-volatile memory chip located on a Raspberry Pi HAT and is read via the I²C bus during boot.

  • HAT = Hardware Attached on Top

  • EEPROM = Electrically Erasable Programmable Read-Only Memory

RevPi devices with HAT EEPROM:

  • RevPi Core S/SE from revision 1.1 onwards

  • RevPi Connect 4

  • RevPi Connect 5

Reading Device Data from the HAT EEPROM

You can read the device data directly from the device tree or as processed JSON output with descriptive field names.

▷ Log in to the RevPi via a terminal.

Reading Device Data from the Device Tree #

▷ Display the available fields with:

ls /proc/device-tree/hat/

▷ Read a field, for example product:

tr -d '\0' < /proc/device-tree/hat/product

Reading Device Data with revpi-device-info

▷ Display the JSON output with:

revpi-device-info --json -a

▷ Read a field, for example product:

revpi-device-info --json -a product

Field Names of the Device Data #

Device Data /proc/device-tree/hat/ … revpi-device-info --json -a

Manufacturer KUNBUS GmbH

vendor

vendor

Product Name

product

product

Item Number

product_id

product_id

Product Version

product_ver
Decimal value: Major × 100 + Minor

product_version

Product Version Major

See product_ver

product_version_major

Product Version Minor

See product_ver

product_version_minor

Format Version

custom_0

format_version

Serial Number

custom_1

serial

Hardware Revision

custom_2

product_revision

EOL Date

custom_3

eol_date

Batch/Lot Number

custom_4

batch_number

Base MAC Address

custom_5

first_mac_address

EEPROM Data Version

custom_6

eeprom_data_version

Starting Device Setup without HAT EEPROM via Cockpit #

For devices without HAT EEPROM, the device data is not stored. The initial device setup must then be started manually.

✓ The RevPi boots for the first time after a reinstallation.

✓ The RevPi has no HAT EEPROM.

✓ The RevPi is connected to a network.

▷ Open revpi.local in a web browser.

❯ A security warning may appear in the browser.

▷ Accept the security exception to continue with the login.

❯ The Cockpit login screen appears.

▷ Log in initially with:

  • Default user: pi

  • Default password as of RevPi Trixie: revolutionpi
    Default password until RevPi Bookworm: raspberry

❯ The device setup window opens in Cockpit.

▷ Select the RevPi model.

▷ Enter the MAC address and the serial number.
You will find both printed on the front of your RevPi.

▷ Select Run initial setup.

❯ Device setup starts and the RevPi reboots.

▷ Now log in with the username pi and the device password.
The device password can be found on the sticker on the side of the housing.

Caution

▷ Change the device password after the first login to prevent unauthorized access.

▷ Use a strong password.

▷ Install all updates promptly to resolve security issues, see Installing Software Updates via Cockpit.

Starting Device Setup without HAT EEPROM via Terminal #

✓ The RevPi boots for the first time after the reinstallation.

✓ The RevPi has no HAT EEPROM.

Via SSH:

✓ The RevPi is connected to a network.

✓ The SSH daemon must be enabled.

▷ Open a terminal on your PC.

▷ Establish an SSH connection with the command ssh pi@[IP address].

▷ Log in initially with:

  • Default user: pi

  • Default password as of RevPi Trixie: revolutionpi
    Default password until RevPi Bookworm: raspberry

Note

If the English keyboard layout is active, y and z are swapped when entering the default password.

▷ Load the configuration for the device setup with:

sudo bash /etc/profile.d/revpi-factory-reset.sh

▷ Restart the RevPi with:

sudo reboot

▷ Now log in with the username pi and the device password.

Caution

▷ Change the device password after the first login to prevent unauthorized access.

▷ Use a strong password.

▷ Install all updates promptly to resolve security issues, see Installing Software Updates via Terminal.

Further Resources #