Commit Graph

118 Commits

Author SHA1 Message Date
MilhouseVH
b8b7082abf handle undefined machine output consistently 2019-10-22 20:56:28 +01:00
MilhouseVH
269f5605f1 revert machine output exit code to string 2019-10-22 20:55:27 +01:00
Tim Gover
431e70e891 Standarize on UPDATE_VERSION - use command -v
bootloader versions and exit codes are integers so default to
zero in the JSON output

Fix missing $ prefix in arguments to write_status_info causing
EXIT_SUCCESS to be passes as a string instead of the value of
${EXIT_SUCCESS}

Fix missing commas in JSON output
2019-10-22 12:28:03 +01:00
Tim Gover
ac70cb24fa Add rpi-eeprom-update -A option
* Option to restrict automatic updates to bootloader and/or vl805
* Change the machine mode output variables
* recovery.bin: Rebuild from Gitlab
* Rename CURRENT_TS and LATEST_TS in machine output
2019-10-22 12:28:03 +01:00
Tim Gover
d354bbe700 Add support for updating the USB (VL805) EEPROM
* New beta recovery.bin which can update the VLI EEPROM before
  start.elf is loaded. This is the recommended and default method
  because no USB devices will be in use at this stage.
* Extend the USE_FLASHROM configuration to use the vl805 tool
  to program the VL805 directly.
* Generate SHA256 checksums in .sig files for the bootloader and
  and VL805 images. This is required by the new recovery.bin to
  guard against corrupted files being flashed to the EEPROM(s).
* Various variable renames to distinguish between the bootloader
  and the VL805 images.
2019-10-22 12:27:58 +01:00
Tim Gover
d8f713c20d recovery: Make recovery.bin specific to the release status
Select the recovery.bin to use according to FIRMWARE_RELEASE_STATUS
in order to allow a beta test version of recovery.bin to be provided
without risking breaking the stable version of recovery.bin
2019-10-10 10:52:38 +01:00
Tim Gover
f8a8cf11bf rpi-eeprom-update: Remove comments about safe mode
The concept of a safe mode recovery.bin bootloader was dropped in favour
of a recovery.bin which renames itself after updating the EEPROM. Remove
the old comments.
2019-10-07 08:49:24 +01:00
andrum99
f70b6745d1 usage: critical -> applicable 2019-09-10 21:41:00 +01:00
andrum99
06ff41d5af add colons to usage 2019-09-10 18:46:13 +01:00
andrum99
016c50258b fix call to getUpdateVersion 2019-09-10 18:44:15 +01:00
andrum99
bf0c89afa1 fix comment 2019-09-10 18:42:44 +01:00
andrum99
79a58d7469 getLatestCriticalUpdate -> getUpdateVersion
Function does not necessarily check for latest version. Also, it does not actually get the update, just the version, so rename function to 'getUpdateVersion' to match 'getCurrentVersion'. Similarly with 2 variable names.
2019-09-10 18:41:15 +01:00
andrum99
fadab8e830 fix quotation mark 2019-09-10 18:28:17 +01:00
andrum99
8af3f6fd68 rpi-eeprom-update: minor fixes to usage 2019-09-10 18:22:08 +01:00
Tim Gover
b19d7b379d rpi-eeprom-update: -h should not require vcgencmd
More the checkDependencies call to after the options parsing so that
-h can be run for help2man.
2019-09-10 14:14:24 +01:00
Tim Gover
47f985542d rpi-eeprom-update: Fix CPU detection and improve documentation
* Use vcgencmd otp_dump to get the board-revision because the format
  is predictable.
* Change the -f completion message to indicate that the update is
  scheduled rather than complete.
* Add some notes to help about the update mechanism.
2019-09-09 10:12:32 +01:00
andrum99
41831ec319 rpi-eeprom-update: fix typos in usage 2019-09-03 10:23:31 +01:00
Tim Gover
8bf77cece1 Initial revision
Import the files used for the first beta release.
2019-09-02 11:46:15 +01:00