Commit Graph

493 Commits

Author SHA1 Message Date
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
timg
a6e6f88848 Update raspberry_pi4_network_boot_beta.md 2019-09-23 15:27:02 +01:00
timg
2bba067706 Merge pull request #19 from timg236/pieeprom-2019-09-23.bin
2019-09-23 - Beta test for network boot
2019-09-23 12:33:52 +01:00
Tim Gover
510f194c95 2019-09-23 - Beta test for network boot
Fixed duplicated net-retries in bootconf.txt from 2019-09-22 and added
padding back.
2019-09-23 11:50:15 +01:00
timg
1923a55d0e Merge pull request #15 from timg236/pieeprom-2019-09-10
Pieeprom 2019 09 10
2019-09-18 09:51:26 +01:00
Tim Gover
8d79efad38 Bump pieeprom-2019-09-10 to stable
These new SDRAM settings reduce power consumption and are the latest
supported configuration from Broadcom.
2019-09-18 09:21:00 +01:00
Tim Gover
e958347679 recovery.bin: Update to fix rename bug with FAT16
Fix a bug which could cause the rename of recovery.bin to fail if
RECOVERY.000 (or higher number) existed and was the last root
directory entry in a FAT16 partition. This is unlikely be a problem
for most updates because the rpi-eeprom-update package removes the
renamed recovery.bin files when it runs.
2019-09-18 09:17:13 +01:00
timg
b9f6209f99 Merge pull request #14 from timg236/rpi-eeprom-config-test
Add unit test for rpi-eeprom-config
2019-09-17 15:23:58 +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
timg
48a2302bcd Merge pull request #12 from timg236/rpi-eeprom-config-magic
Rpi eeprom config magic
2019-09-13 09:54:58 +01:00
Tim Gover
311cc79c6f Add .gitignore 2019-09-12 11:52:04 +01:00
Tim Gover
f9a4a6f1ab Fix magic number check 2019-09-12 11:52:04 +01:00
timg
391573d900 Merge pull request #10 from andrum99/patch-1
rpi-eeprom-update: minor fixes to usage, rename version check function
2019-09-11 10:42: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
timg
ccd464ed2c Merge pull request #8 from timg236/vcgencmd_help2man
rpi-eeprom-update: -h should not require vcgencmd
2019-09-10 14:58:48 +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
timg
f93cf12cd2 Merge pull request #7 from timg236/pieeprom-2019-09-10.bin
Add pieeprom-2019-09-10.bin
2019-09-10 13:56:51 +01:00
Tim Gover
982aad5ac5 Add pieeprom-2019-09-10.bin
Minor update to always configure RGMII pins to a good state at power on.
Previously the pins would have been left in the default reset state
(input).
2019-09-10 12:21:33 +01:00
timg
48aacdc433 Merge pull request #6 from timg236/board_rev
Board rev
2019-09-09 13:50:39 +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
Tim Gover
956c401701 Move release notes to rpi-eeprom repository
Store the release notes here instead of github/raspberrypi/documentation
2019-09-09 09:50:08 +01:00
Tim Gover
ffec4bd48f rename 019-09-06-pieeprom.bin -> pieeprom-2019-09-06.bin 2019-09-06 19:11:27 +01:00
timg
6aa69f1f67 Merge pull request #2 from andrum99/patch-1
rpi-eeprom-update: fix typos in usage
2019-09-06 17:00:17 +01:00
timg
478bf079de Merge pull request #3 from timg236/2019-09-06-pieeprom.bin
firmware: Add 2019-09-06-pieeprom.bin to beta releases
2019-09-06 16:59:56 +01:00
Tim Gover
92f118e1e5 firmware: Add 2019-09-06-pieeprom.bin to beta releases
Add the new EEPROM with SDRAM changes for power saving.
2019-09-06 16:57:05 +01:00
Tim Gover
2e5e705cd0 Move recovery.bin to the correct path 2019-09-03 15:00:40 +01:00
andrum99
41831ec319 rpi-eeprom-update: fix typos in usage 2019-09-03 10:23:31 +01:00
timg
ac6e56fb73 Merge pull request #1 from timg236/initial_revision
Initial revision
2019-09-03 09:59:49 +01:00
Tim Gover
8bf77cece1 Initial revision
Import the files used for the first beta release.
2019-09-02 11:46:15 +01:00
timg
95da8d8163 Initial commit 2019-08-31 10:20:32 +01:00