Nicolas Saenz Julienne
eeb4a19c7f
rpi-eeprom-config: Properly decode sysfs binary files
...
The previous implementation was reading the sysfs files as plain text
and encoding them as 'ascii' to remove all the trailing zeros. This is
wrong twofold. To start with, the sysfs file we're querying are binary
files[1], and we're reading it as a string. On top of that we're
benefiting that *some* python implementations of string.encode() will
deal with trailing zeros.
Fix this by marking the files as binary and decoding them as strings
before consuming them.
[1] sysfs files are generally text based, but there is also the option
to output binary data. Our configuration file does the later.
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de >
2021-01-26 13:05:43 +01:00
timg236
3ae6694fbb
Merge pull request #284 from vianpl/blconfig_nvmem
...
rpi-eeprom-update: Get bootloader configuration from DT
2021-01-24 16:19:41 +00:00
Nicolas Saenz Julienne
2aa97029fd
rpi-eeprom-update: Get bootloader configuration from DT
...
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de >
2021-01-22 19:20:22 +01:00
timg236
7cb9d4162f
Merge pull request #280 from timg236/tim/sd_1v8
...
pieeprom-2021-01-16: Fix SD 1V8 reset - LATEST + BETA
2021-01-16 14:45:41 +00:00
Tim Gover
9b74ec49a1
pieeprom-2021-01-16: Fix SD 1V8 reset - LATEST + BETA
2021-01-16 14:32:30 +00:00
Tim Gover
54cadc816b
Promote pieeprom-2021-01-11 to STABLE (LATEST)
2021-01-14 11:00:33 +00:00
Tim Gover
a95ecf9355
rpi-eeprom-update: Update docs and default ENV for release names
...
Change default FIRMWARE_RELEASE_STATUS variable to 'default' rather
than 'critical'.
Update the built in help for new release names which align the
rpi-eeprom release names with raspi-config documentation.
2021-01-13 09:52:56 +00:00
Tim Gover
690872a3ca
rpi-eeprom-update: Add trailing / so find follows the FW symlink
2021-01-12 16:44:31 +00:00
Tim Gover
4b17575e83
pieeprom-2021-01-11: Timeout stalled USB MSD devices - BETA
2021-01-11 17:17:35 +00:00
Tim Gover
92c048b90c
rpi-eeprom-update: Add default/latest symlinks to reflect raspi-config naming
2021-01-11 17:08:01 +00:00
timg236
2318f44baa
Merge pull request #273 from timg236/tim/dt-version
...
rpi-eeprom-update: Get bootloader build-timestamp from device-tree
2021-01-09 09:40:59 +00:00
Tim Gover
289befb382
rpi-eeprom-update: Get bootloader build-timestamp from device-tree
2021-01-09 09:38:31 +00:00
Tim Gover
b481076132
Merge pull request #271 from lurch/patch-1
...
typo
2021-01-07 17:35:37 +00:00
Andrew Scheller
0d3ac86cc3
typo
2021-01-07 00:50:30 +00:00
Tim Gover
e9ec8adfd8
Merge pull request #270 from andrum99/patch-1
...
release-notes.md: label 2020-01-05 release as BETA
2021-01-06 19:10:45 +00:00
andrum99
868efb3ad1
release-notes.md: label 2020-01-05 release as BETA
2021-01-06 18:15:26 +00:00
Tim Gover
ab3bcf0dae
pieeprom-2021-01-05: USB MSD interoperability improvements for Pi 4B < R1.4
2021-01-05 16:54:43 +00:00
Tim Gover
54a9796abb
Promote pieeprom-2020-12-11 release from beta to stable
2020-12-14 11:42:52 +00:00
Tim Gover
80fd3016d0
pieeprom-2020-12-11: CM4/PI400 conditional filters - BETA
2020-12-11 11:21:45 +00:00
Tim Gover
361f4703fd
Update bug_report.md
2020-12-11 10:04:37 +00:00
Tim Gover
008b0962f5
Update bug_report.md
2020-12-11 10:01:07 +00:00
Tim Gover
f6d2fd7312
Update bug_report.md
2020-12-11 09:58:38 +00:00
Tim Gover
7982134b18
Update bug_report.md
2020-12-11 09:55:19 +00:00
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