Commit Graph

17 Commits

Author SHA1 Message Date
Tim Gover
55ece6bab5 rpi-eeprom-config: Add --edit for interactive editor style operation 2020-09-28 10:41:20 +01:00
Tim Gover
1fe54409b8 rpi-eeprom-config: Add new option to apply config and update in one operation
* Add -a/--apply parameter which provides a one shot image for applying
  a new configuration to the latest bootloader image and installs it
  via rpi-eeprom-update.
* Print the live configuration if no arguments are specified.
* Add short flags instead of requiring verbose names.
* Make the errors more human readable instead of Exceptions
2020-09-28 10:41:20 +01:00
Pyry Kontio
5ae98cbbac Use /usr/bin/env python to make rpi-eeprom-config more portable 2020-07-06 13:51:44 +09:00
andrum99
7e587b8092 rpi-eeprom-config: Pi 4B -> Pi 4 2020-05-12 14:37:52 +01:00
Tim Gover
a987322821 rpi-eeprom-config: Fix padding calculation 2020-01-14 15:29:20 +00:00
Andrew Pattison
95e86d7e59 Fix cap per @lurch 2019-11-22 22:56:28 +00:00
Andrew Pattison
9e8ea44c99 FIx up per @lurch's comments 2019-11-22 22:39:32 +00:00
Andrew Pattison
6bfe0c05c5 Some further corrections 2019-11-22 21:25:25 +00:00
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
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
MilhouseVH
dcdb6e9448 Add Python3 support 2019-10-28 18:56:47 +00: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
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
f9a4a6f1ab Fix magic number check 2019-09-12 11:52:04 +01:00
Tim Gover
8bf77cece1 Initial revision
Import the files used for the first beta release.
2019-09-02 11:46:15 +01:00