mirror of
https://github.com/raspberrypi/rpi-eeprom.git
synced 2026-01-20 21:13:36 +08:00
imager-release: Update for Pi5
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Raspberry Pi 4 EEPROM bootloader rescue image
|
||||
Raspberry Pi 4 EEPROM bootloader recovery image
|
||||
*********************************************
|
||||
|
||||
The Raspberry Pi 4 contains a small EEPROM used to store the bootloader.
|
||||
33
imager/README-2712.txt
Normal file
33
imager/README-2712.txt
Normal file
@@ -0,0 +1,33 @@
|
||||
Raspberry Pi 5 EEPROM bootloader recovery image
|
||||
***********************************************
|
||||
|
||||
The Raspberry Pi 5 contains a small EEPROM used to store the bootloader.
|
||||
|
||||
This rescue image reverts the bootloader EEPROM to factory default settings.
|
||||
|
||||
The easiest method for creating EEPROM rescue images, and formatting SD
|
||||
cards, is to use Raspberry Pi Imager from https://raspberrypi.com/software.
|
||||
Raspberry Pi Imager provides a GUI for downloading the latest version of
|
||||
this rescue image and flashing it to a spare SD card.
|
||||
|
||||
Alternatively, copy the contents of this zip file to a blank
|
||||
FAT formatted SD card. The FAT partition must be < 32 GB.
|
||||
|
||||
To update the EEPROM:
|
||||
|
||||
1. Power off the Raspberry Pi
|
||||
2. Insert the bootloader update SD card
|
||||
3. Power on the Raspberry Pi
|
||||
4. Wait at least 10 seconds
|
||||
|
||||
If successful, the green LED on the Raspberry Pi will blink rapidly forever.
|
||||
An unsuccessful update of the EEPROM is indicated by a different blinking
|
||||
pattern corresponding to the specific error.
|
||||
|
||||
If an HDMI display is attached, then the screen will display green for
|
||||
success or red if a failure occurs.
|
||||
|
||||
Once the EEPROM is updated, the SD card can be removed. In order to make
|
||||
the entire capacity of the SD card available again, you must then reformat
|
||||
the SD card using Raspberry Pi Imager by selecting the 'format card as
|
||||
FAT32' option.
|
||||
@@ -8,4 +8,4 @@ script_dir=$(cd "$(dirname "$0")" && pwd)
|
||||
${script_dir}/make-release critical 2023-01-11 000138c0 "${script_dir}/2711-config" release-2711 rpi-boot-eeprom-recovery 2711
|
||||
|
||||
# Pi5
|
||||
${script_dir}/make-release critical 2023-09-21 "" "${script_dir}/2712-config" release-2712 rpi-boot-eeprom-recovery 2712
|
||||
${script_dir}/make-release critical 2023-10-18 "" "${script_dir}/2712-config" release-2712 rpi-boot-eeprom-recovery 2712
|
||||
|
||||
@@ -19,12 +19,15 @@ trap cleanup EXIT
|
||||
[ -n "${SUDO_UID}" ] || die "SUDO_UID not defined"
|
||||
[ -n "${SUDO_GID}" ] || die "SUDO_GID not defined"
|
||||
|
||||
for src in release/*.zip; do
|
||||
build_images()
|
||||
{
|
||||
chip="$1"
|
||||
for src in release-${chip}/*.zip; do
|
||||
src=$(basename "${src}")
|
||||
img=$(echo "${src}" | sed 's/\.zip/.img/')
|
||||
TMP_DIR=$(mktemp -d)
|
||||
(
|
||||
cp "release/${src}" "${TMP_DIR}"
|
||||
cp "release-${chip}/${src}" "${TMP_DIR}"
|
||||
mkdir "${TMP_DIR}/files"
|
||||
cd "${TMP_DIR}/files"
|
||||
unzip "../${src}"
|
||||
@@ -53,14 +56,20 @@ EOF
|
||||
sleep 5
|
||||
kpartx -dv temp.img
|
||||
)
|
||||
mkdir -p images
|
||||
chown "${SUDO_UID}:${SUDO_GID}" images
|
||||
mv "${TMP_DIR}/temp.img" "images/${img}"
|
||||
file "images/${img}"
|
||||
cd images
|
||||
image_dir="images-${chip}"
|
||||
mkdir -p "${image_dir}"
|
||||
chown "${SUDO_UID}:${SUDO_GID}" "${image_dir}"
|
||||
mv "${TMP_DIR}/temp.img" "${image_dir}/${img}"
|
||||
file "${image_dir}/${img}"
|
||||
cd "${image_dir}"
|
||||
zip "${src}" "${img}"
|
||||
cd ..
|
||||
rm "images/${img}"
|
||||
chown "${SUDO_UID}:${SUDO_GID}" "images/${src}"
|
||||
rm "${image_dir}/${img}"
|
||||
chown "${SUDO_UID}:${SUDO_GID}" "${image_dir}/${src}"
|
||||
done
|
||||
echo "Wrote images for rpi-imager to $(pwd)/images/${src}"
|
||||
echo "Wrote images for rpi-imager to $(pwd)/${image_dir}/${src}"
|
||||
}
|
||||
|
||||
build_images 2711
|
||||
build_images 2712
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ gen_release() {
|
||||
(
|
||||
tmp_dir="$(mktemp -d --tmpdir tmp.rpi-eeprom.XXXXXXXXXX)"
|
||||
cd "${tmp_dir}"
|
||||
cp "${script_dir}/README.txt" .
|
||||
cp "${script_dir}/README-${bcm_chip}.txt" README.txt
|
||||
cp "${firmware_dir}/recovery.bin" .
|
||||
if [ ${bcm_chip} = 2711 ]; then
|
||||
cp "${firmware_dir}/vl805-${vl805_version}.bin" vl805.bin
|
||||
@@ -79,9 +79,9 @@ firmware_dir=${script_dir}/../firmware-${bcm_chip}/${firmware_status}
|
||||
if [ "${bcm_chip}" = 2711 ]; then
|
||||
[ -f "${firmware_dir}/vl805-${vl805_version}.bin" ] || (echo "${firmware_status}/vl805-${vl805_version}.bin doesn't exist" && exit 1)
|
||||
[ -d "${config_dir}" ] || (echo "${config_dir} doesn't exist" && exit 1)
|
||||
tag="${pieeprom_version}-vl805-${vl805_version}"
|
||||
tag="${pieeprom_version}-${bcm_chip}-vl805-${vl805_version}"
|
||||
else
|
||||
tag="${pieeprom_version}"
|
||||
tag="${pieeprom_version}-${bcm_chip}"
|
||||
fi
|
||||
# use realpath to ensure paths are absolute
|
||||
config_dir=$(realpath "${config_dir}")
|
||||
|
||||
Reference in New Issue
Block a user