Commit Graph

13 Commits

Author SHA1 Message Date
Tim Gover
34b790407c rpi-eeprom-digest: Add to test/install and specify -o in rpi-eeprom-update 2021-11-22 14:29:59 +00:00
Tim Gover
77784b4b6a test: Add a simple loopback test for signed boot 2021-11-13 15:50:23 +00:00
Andrew Scheller
7c26d67583 Fix typos in test script 2021-03-29 19:06:46 +01:00
Tim Gover
587683e8e5 test: Extend loopback test to cover old beta releases.
Also copy the current beta releases into old for a bit more test coverage.
2021-03-24 09:37:21 +00:00
Tim Gover
3e03056215 vl805: Move to old following removal of USE_FLASHROM option
Move to to the old directory now that it's no longer referenced by rpi-eeprom-update.

Add a dependency check for 'lspci' which is normally provided by
pciutils or busybox and remove the failover to the vl805 helper.

Tweak the failure messages for missing dependencies to be slightly less
OS specific.
2021-02-15 20:57:48 +00:00
Tim Gover
5c7dfdf3b7 test: Fixup paths for config test 2020-05-25 11:32:51 +01:00
Tim Gover
ecd592008c install: Fix path to vl805 executable 2019-12-04 11:28:20 +00:00
Tim Gover
bf4849ce3b Remove deprecated EEPROM from test script
The test script was failing because the deprecated bootloader EEPROM
image was removed. Migrate the test to use a different EEPROM version.
2019-10-29 10:32:21 +00: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
802db3f96b test: Add utility script to install updates from this git repo 2019-10-10 10:52:32 +01:00
Tim Gover
57150a4104 test-rpi-eeprom-config: Add test cases for large config files 2019-10-08 15:15:21 +01:00
Tim Gover
1ba58068ea Set unused data to zero if size of config is reduced
If the size of bootconf.txt is reduced then set the unused data
to all ones instead of leaving garbage at the end. The EEPROM
header contains the actual file but this makes it easier to
verify the image and makes overreads more obvious.
2019-09-24 13:39:42 +01:00
Tim Gover
694d936c99 Add unit test for rpi-eeprom-config
Add a basic unit test to verify that rpi-eeprom-config updates the
EEPROM image as expected (only the config + header updated).
2019-09-17 15:21:09 +01:00