5. Updating the HAT - mr-rooney/moitessier GitHub Wiki

Updating the HAT

Updating the microcontroller

Updating the firmware of the HAT's microcontroller is quite simple. Just install the latest Moitessier debian package. The firmware update will be done in the post installation process automatically.

To perform the update manually, you could run the flasher tool:

pi> cd ~/moitessier/flasher/ && sudo ./fw_update_moitessier

Updating the ID EEPROM

The ID EEPROM of the HAT holds the relevant device tree information, that is required for driver loading and initialization. In general it is not necessary to update the ID EEPROM (at least not very often), the HAT is delivered pre-programmed. However there might be changes on the device tree necessary in the future that will require an update.

If the Moitessier debian package is installed, the latest EEPROM image and the required tools/scripts are installed in the file system as well. To write this image to the EEPROM, you need to execute the following command:

pi> cd ~/moitessier/device_tree && sudo ./eeprom_update_moitessier

Note: Be aware, that this command might be called twice, depending on the boot configuration found in /boot/config.txt. Follow the instructions shown in the terminal.