Commit Graph

584 Commits

Author SHA1 Message Date
Tim Gover
3702e706af pieeprom-2020-11-24: Enable booting from BCM2711 XHCI controller - BETA 2020-11-24 15:31:05 +00:00
Tim Gover
1443b30f52 Merge pull request #256 from timg236/tim/master
rpi-eeprom-config: Change --edit to use the current EEPROM config
2020-11-16 16:05:49 +00:00
Tim Gover
d5c564d47c rpi-eeprom-config: Change --edit to use the current EEPROM config
Always use the current EEPROM configuration unless there is an
update pending in which case use that to support incremental edits.

Update help and update message to indicate that
'sudo rpi-eeprom-update -r'
may be used to cancel a pending update.

Fix a few comments
2020-11-15 21:36:09 +00:00
Tim Gover
b3e45cb7b0 Merge pull request #254 from MishterKirby/patch-1
Update release-notes.md
2020-11-15 18:47:14 +00:00
Sebastian Rivera
398534b04e Update release-notes.md 2020-11-11 10:48:47 -06:00
Sebastian Rivera
2f2910472f Update release-notes.md 2020-11-11 10:15:31 -06:00
Tim Gover
13b0bb602e Merge pull request #252 from MishterKirby/patch-1
Update release-notes.md
2020-11-10 18:19:44 +00:00
Sebastian Rivera
2fb94103ae Update release-notes.md 2020-11-10 12:17:03 -06:00
Sebastian Rivera
64b747495e Update release-notes.md
Fixed typo
2020-11-07 14:45:47 -06:00
Tim Gover
27ba1c582a Merge pull request #248 from andrum99/patch-1
Release notes: mark 2020-10-28 as beta
2020-11-06 17:51:12 +00:00
andrum99
499ea81f9e Update release-notes.md 2020-11-02 17:52:11 +00:00
Tim Gover
16bb29427f Merge pull request #246 from timg236/tim/pieeprom-2020-10-28
pieeprom-2020-10-28: Defer HDMI diagnostics display, update-timestamp…
2020-10-28 19:12:14 +00:00
Tim Gover
ee2e650332 pieeprom-2020-10-28: Defer HDMI diagnostics display, update-timestamps, tryboot support 2020-10-28 19:00:24 +00:00
Tim Gover
0125155f9d Merge pull request #245 from lurch/patch-1
typos
2020-10-28 09:50:56 +00:00
Andrew Scheller
435da0f3cb typos 2020-10-28 09:47:50 +00:00
Tim Gover
7f054d6700 Merge pull request #244 from timg236/update_timestamp
Add the timestamp of the update to the pieeprom.sig file.
2020-10-28 07:47:38 +00:00
Tim Gover
7612907337 Add the timestamp of the update to the pieeprom.sig file.
Add the timestamp to pieeprom.sig for use with a future bootloader
update.

This is not relevant for the VL805 firmware because it is not
configurable.
2020-10-28 07:40:59 +00:00
Tim Gover
f24abcd305 Merge pull request #238 from timg236/tim/pkg_info
Only check package checksums on systems with package checksums
2020-10-20 17:18:39 +01:00
Tim Gover
b1ed98c779 rpi-eeprom-update: Skip checksums if there is no dpkg info directory 2020-10-20 16:49:36 +01:00
Tim Gover
2730572da2 rpi-eeprom-update: Fix shellcheck warnings 2020-10-20 16:49:36 +01:00
Tim Gover
718820bceb rpi-eeprom-config: Use decode('utf-8') to convert subprocess txt
This matters on Python3 but not on Python2
2020-10-05 19:35:12 +01:00
Tim Gover
84e4615814 rpi-eeprom-config: Update help for --edit
Add -E to sudo in the example to preserve the environment.

Remove the redundant escaping of single quotes now that the help is
enclosed in triple quotes.
2020-10-04 09:55:16 +01:00
Tim Gover
b0066b091e Merge pull request #229 from timg236/rpi_eeprom_config_apply
Update rpi-eeprom-config to provide wrap simple interactive and non-interactive update opertions
2020-10-02 09:21:46 +01:00
Tim Gover
d34f62ee3d rpi-eeprom-update: Move .bin filter for checksums into subshell
Move all package checksum related operations to the subshell and check
the old rpi-eeprom-images packages if rpi-eeprom contains no .bin
files.
The rpi-eeprom-config --edit and --apply option passes the -i flag so
checksums should have been skipped anyway.
2020-10-01 20:07:53 +01:00
Tim Gover
e63f3dcfc3 Require 'sudo' for --edit or --apply instead of spawing sudo command 2020-09-30 11:44:10 +01:00
Tim Gover
6ab4179bae rpi-eeprom-config: Trap errors when deleting previous update files 2020-09-29 10:35:34 +01:00
Tim Gover
5ab94e88f2 rpi-eeprom-config: Update --edit to read config from pending updates
Use the config from the pending update if there is one so that it's
possible to make multiple edits before rebooting.
2020-09-28 10:41:20 +01:00
Tim Gover
b6c6b03add rpi-eeprom-update: Add -b flag to output BOOTFS path
Add an API for external scripts to safely determine which the directory
the EEPROM image update files will be written to.
2020-09-28 10:41:20 +01:00
Tim Gover
ca647a6b90 Fix doc comments and ignore package checksums 2020-09-28 10:41:20 +01:00
Tim Gover
ccd8444501 Implement review comments
Update --apply --edit to allow the eeprom image to be specified.
Add some error checking around chmod in rpi-eeprom-update

TODO: Test this on NFS
2020-09-28 10:41:20 +01:00
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
Tim Gover
a554034c1d rpi-eeprom-update: Add -l option to resolve the latest bootloader image
Add the -l option to return the latest bootloader EEPROM image. This
will be used by rpi-eeprom-config to provide a more convenient mechanism
for quick config changes.
2020-09-28 10:41:20 +01:00
Tim Gover
29fe479af9 rpi-eeprom-update: Restrict package checksums to EEPROM images.
Only check EEPROM image binaries because it's annoying if
rpi-eeprom-update errors due to the release notes or the script
changing.
2020-09-28 10:41:20 +01:00
Tim Gover
8d4af8db97 rpi-eeprom-update: Use multiple sources for BOARD_INFO
Try device-tree, then cpuinfo and failing that raw OTP.
2020-09-28 10:37:15 +01:00
Tim Gover
1a099a5a9d Archive 2020-08-31 and 2020-09-02 beta releases.
Move these out of the directories selected by APT now that 2020-09-03
is the default release.
Preserve the releases which were promoted to stable in-case these are
referenced via scripts.
2020-09-14 08:58:35 +01:00
Tim Gover
d246201eb5 Update README.md
Indicate that we mean the USB XHCI controller when we say VLI
2020-09-14 08:51:48 +01:00
Tim Gover
a0302ef004 Update releases.md 2020-09-14 08:49:43 +01:00
Tim Gover
fae9021057 Merge pull request #224 from timg236/tim/pieeprom-2020-09-03-default
pieeprom-2020-09-03: Promote latest stable to default/critical
2020-09-14 08:38:01 +01:00
Tim Gover
9cff16af0c pieeprom-2020-09-03: Promote latest stable to default/critical
Promote the latest stable release of the bootloader, VLI EEPROMs
and recovery.bin to the default (critical update) release.
2020-09-11 09:44:06 +01:00
Tim Gover
0512377e94 Update releases.md 2020-09-07 11:36:29 +01:00
Tim Gover
09f77ad9fa Promote pieeprom-2020-09-03 to STABLE v2020.09.03-138a1 2020-09-07 09:12:16 +01:00
Tim Gover
b887a0bfa9 pieeprom-2020-09-03.bin - Fix filename 2020-09-04 11:40:09 +01:00
Tim Gover
3ef8633f03 Merge pull request #219 from lurch/patch-1
Add BETA label to release notes
2020-09-03 22:19:26 +01:00
Andrew Scheller
a1da3ac15c Add BETA label to release notes
...for consistency.
2020-09-03 21:56:24 +01:00
Tim Gover
65037b76bf Merge pull request #218 from mackyle/master
rpi-eeprom-update: avoid any possible od accidents
2020-09-03 20:20:01 +01:00
Kyle J. McKay
28153db403 rpi-eeprom-update: avoid any possible od accidents
This command pipeline:

  printf '00000000000000000000000000000000' | od -An -t x1 | tr -d ' '

produces this output:

  30303030303030303030303030303030
  *

Add a `-v` to od and a `\n` to the tr arg like so:

  printf '00000000000000000000000000000000' | od -v -An -t x1 | tr -d ' \n'

to instead produce this output:

  3030303030303030303030303030303030303030303030303030303030303030

Although it's unlikely that the revision value would generate multiple
lines or contain duplicate lines, it's better to be safe than sorry
especially since the changes to do so do not introduce any extra overhead
and use only POSIX-specified options/arguments.

It's also possible this code fragment could be copied and pasted elsewhere
to provide a "hexdump" of something that might be expected to generate
multiple lines and which may potentially contain duplicates.  By fixing
the code here any breakage caused by such copying and pasting is avoided.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
2020-09-03 11:37:28 -07:00
Tim Gover
e9445dfa44 pieeprom-2020-09-02: Simplify green activity LED behavior
Disable flashing due to LED activity to make flashing error
patterns clearer.
2020-09-03 13:16:13 +01:00
Tim Gover
73e845de28 Use od instead of hexdump to simplify package dependencies 2020-09-03 13:08:12 +01:00
Tim Gover
c697a4aace Merge pull request #212 from brookst/fix-211
Fix #211 - hexdump error on older Pi models
2020-09-02 07:08:25 +01:00