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
2020-05-25 11:32:51 +01:00
2019-09-12 11:52:04 +01:00
2019-09-02 11:46:15 +01:00
2020-09-14 08:51:48 +01:00
2020-09-14 08:49:43 +01:00

rpi-eeprom

This repository contains the scripts and pre-compiled binaries used to create the rpi-eeprom package which is used to update the Raspberry Pi 4 bootloader and VLI USB xHCI controller EEPROMs.

Support

Please check the Raspberry Pi general discussion forum if you have a support question.

Reset to factory defaults

The Raspberry Pi Imager provides an EEPROM recovery image which may be used to reset the bootloader and USB xHCI EEPROMs to factory defaults.

Bootloader documentation

Description
No description provided
Readme Multiple Licenses 44 MiB
Languages
Shell 63.8%
Python 35.6%
Standard ML 0.6%