Implement a new feature to allow users to update the EEPROM via the dashboard, including the generation of necessary update files. Enhance the device action handling to support the 'eeprom_update' action for USB-connected devices, ensuring proper validation of boot order presets. Update the dashboard UI to include an EEPROM update option alongside existing actions, improving user experience. Modify related scripts to handle EEPROM updates effectively, including file management and error handling during the update process.
Host-side provisioning scripts
These files run on the provisioning host (e.g. the Proxmox host where the reTerminal is connected via USB).
| File | Purpose |
|---|---|
| flash-emmc-on-connect.sh | Runs rpiboot, detects eMMC, waits for dashboard choice (Backup/Deploy), then runs dd. Install to /opt/cm4-provisioning/. |
| cm4-flash-trigger.sh | Started by udev when USB device 2b8e is added. Launches the flash script via systemd-run. Install to /usr/local/bin/. |
| 90-cm4-boot-mode.rules | udev rule: on USB add (vendor 2b8e), run the trigger. Install to /etc/udev/rules.d/. |
See ../docs/EMMC-PROVISIONING-GUIDE.md for full setup. The deploy script copies these into place on the Proxmox host and LXC.