Commit Graph

485 Commits

Author SHA1 Message Date
Andrew Pattison
040f4cf507 Fix up help text per @lurch's comments in #57
Operating mode 3 failed to mention that the output file should be specified using the --out parameter.
2019-11-22 21:07:59 +00:00
Tim Gover
9a447aefc4 Merge pull request #57 from andrum99/patch-1
rpi-eeprom-config - fix up help text (and therefore also man page)
2019-11-22 10:50:34 +00:00
Andrew Pattison
7d77dc224e Revert mistaken change to parser config 2019-11-22 10:30:08 +00:00
Andrew Pattison
fc6405cfab Correct help text per timg236's comments 2019-11-21 21:49:52 +00:00
andrum99
179d7d7558 rpi-eeprom-config - fix up help text (and therefore also man page)
The current help text for rpi-eeprom-config are unclear. This PR changes them so that the help text matches what the tool does and what each parameter specifies. The man page, automatically derived from the help text, is also fixed.
2019-11-21 18:19:53 +00:00
Tim Gover
82b6b1c324 Merge pull request #53 from timg236/pieeprom-2019-11-18
2019-11-18 - Beta update for network boot fixes
2019-11-18 14:44:31 +00:00
Tim Gover
92c7e35a3e 2019-11-18 - Beta update for network boot fixes
Fixes for TFTP_PREFIX handling plus option to force MAC_ADDRESS
Enable HS_TIMING for EMMC cards
2019-11-18 11:43:17 +00:00
Tim Gover
99e88912af Merge pull request #50 from MilhouseVH/single_vl805
use lspci if available instead of vl805. Avoid calling vl805 twice.
2019-11-11 13:21:35 +00:00
MilhouseVH
e204b1f4eb use lspci if available instead of vl805. Avoid calling vl805 twice. 2019-11-09 03:46:23 +00:00
Tim Gover
9202943804 vl805: Make 13701 available in the critical directory
Make it easier for end users to pin the VL805 firmware to the old
version by just editing the .latest file in the critical directory.
2019-11-08 13:51:29 +00:00
Tim Gover
e35f0c7d41 license: Move vl805 to firmware to match license document 2019-11-08 13:50:27 +00:00
timg
3916889699 Merge pull request #46 from cheese1/master
fix typo
2019-10-29 14:27:21 +00:00
josef radinger
6895418ffe fix typo 2019-10-29 15:16:43 +01:00
timg
b360b29ab6 Merge pull request #45 from MilhouseVH/fix_py2_py3
Add Python3 support
2019-10-29 10:37:31 +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
MilhouseVH
dcdb6e9448 Add Python3 support 2019-10-28 18:56:47 +00:00
Tim Gover
5c9a0cf40d rpi-eeprom-update: Check for vcmailbox, vcgencmd, dtparam, dtoverlay
Check for these commands and issue an error indicating how to fix this
on Debian. These are all installed by default on Raspbian but this
script might be re-used in other-systems e.g. custom busybox builds.
2019-10-24 15:08:12 +01:00
timg
4c287da760 Merge pull request #42 from timg236/printVersions
Tweak update status for BOOTLOADER, VL805
2019-10-24 14:08:56 +01:00
Tim Gover
95ba7b50eb Tweak update status for BOOTLOADER, VL805
Make up-to-date message specific to bootloader or vl805 and indicate if
the tool was not run as root.
2019-10-24 12:57:01 +01:00
timg
fcb39c3735 Merge pull request #39 from timg236/dpkg_checksums
rpi-eeprom-update: Verify DPKG checksums if available
2019-10-23 15:06:39 +01:00
Tim Gover
e559d075ff rpi-eeprom-update: Verify DPKG checksums if available
If the rpi-eeprom-images checksums file is available then validate
the checksums before applying the update.

Add a -i option to ignore checksums, this should only be required for
developers or people who have cloned the rpi-eeprom Github and installed
new files which are not available in the apt package.
2019-10-23 13:49:12 +01:00
timg
4c98826629 Merge pull request #38 from timg236/critical_vli
critical update: Update VLI to 000137ab revision
2019-10-23 13:22:14 +01:00
Tim Gover
d94585e89a critical update: Update VLI to 000137ab revision
recovery.bin is also updated from the beta revision in order to apply
the VL805 EEPROM image.
2019-10-23 13:14:23 +01:00
timg
08da16716a Merge pull request #37 from timg236/removePreviousUpdate
rpi-eeprom-update: Don't remove update files if run with no arguments
2019-10-23 12:21:29 +01:00
Tim Gover
e024ab5373 rpi-eeprom-update: Don't remove update files if run with no arguments
Running 'sudo rpi-eeprom-update' will remove update files from the
boot partition. Since the user may run this command to check if
an update is required it will have the surprising side effect of
removing the pending update applied by the systemd service which
runs 'rpi-eeprom-update -a' at startup.

Move the cleanup code so that it only runs if a manual or automatic
update was requested.

Add an explicit option (-r) to just remove the previous update files.
2019-10-23 11:59:07 +01:00
timg
63c6c210c0 Merge pull request #36 from MilhouseVH/fix_exit_code
Restore machine output exit code as string
2019-10-23 11:39:17 +01:00
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
timg
608098e912 Merge pull request #34 from timg236/vli_update
Vli update
2019-10-22 12:29:29 +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
3357c297b9 2019-10-16 - Fix parsing of PXE boot menu option 2019-10-17 10:41:12 +01:00
timg
bb7bc14290 Merge pull request #32 from timg236/remove_pieeprom-2019-05-10
Remove pieeprom-2019-05-10.bin release
2019-10-11 15:54:27 +01:00
Tim Gover
841f3c04b2 Remove pieeprom-2019-05-10.bin release
This bootloader firmware is deprecated and should no longer be
included in the rpi-eeprom package. It's still available in the
Git history if anyone *really* wants this.
2019-10-11 15:50:48 +01:00
timg
741bf84e32 Merge pull request #31 from timg236/recovery_beta
Recovery beta
2019-10-10 11:08:21 +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
802db3f96b test: Add utility script to install updates from this git repo 2019-10-10 10:52:32 +01:00
timg
3a46970051 Merge pull request #30 from timg236/pieeprom-2019-10-08
2019-10-08 - TFTP prefix strings, block size, various netboot fixes
2019-10-10 09:45:50 +01:00
Tim Gover
2ab61cc370 2019-10-08 - TFTP prefix strings, block size, various netboot fixes 2019-10-08 16:45:14 +01:00
timg
3c9c58c6b4 Merge pull request #29 from timg236/rpi_eeprom_config_2K
Rpi eeprom config 2 k
2019-10-08 16:05:45 +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
937f722198 rpi-eeprom-config: Increase the configuration size limit to 2024
Update the rpi-eeprom-config tool to accept config files of up to
2024 byte. The config section has a 24byte header so the section is
always <= 2KiB.
This allows a reasonably large user-data section in the config file
accessible via 'vcgencmd bootloader_config' as an alternative to
customer OTP data.

N.B. The vcgencmd uses a single VCHIQ message which is limited to
4092 bytes. Setting a 2KiB limit here gives room for user-data plus
some spare space for future config expansion before an VCHIQ bulk
message or an extra EEPROM 4KiB page is required.
2019-10-07 08:49:24 +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
timg
b959175b44 Update release-notes.md 2019-09-25 13:13:48 +01:00
timg
e3f5a9b6c5 Merge pull request #22 from timg236/pieeprom-2019-09-25
2019-09-25 - Beta test update for network boot
2019-09-25 13:12:09 +01:00
Tim Gover
777706fe2e 2019-09-25 - Beta test update for network boot 2019-09-25 11:55:22 +01:00
timg
18de77bfa7 Merge pull request #20 from timg236/config_reduce_size
Set unused data to zero if size of config is reduced
2019-09-24 14:45:40 +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
timg
33974463a1 Update raspberry_pi4_network_boot_beta.md 2019-09-23 16:50:31 +01:00