mirror of
https://github.com/raspberrypi/rpi-eeprom.git
synced 2026-01-20 21:13:36 +08:00
eeb4a19c7f9d108660728310f602bdaf784fee07
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>
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
Languages
Shell
63.8%
Python
35.6%
Standard ML
0.6%