Skip to content

Commit 72a6d65

Browse files
committed
tools: rpi-get-latest-fw: Updates the Pi4 / Pi5 firmware release
Internal helper script to update the rpi-eeprom submodule and the symlinks to the latest firmware release.
1 parent 4b2c79b commit 72a6d65

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tools/rpi-get-latest-fw

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
3+
# Updates the rpi-eeprom submodule and updates the symlinks to get the
4+
# latest firmware version
5+
6+
set -e
7+
set -u
8+
9+
script_dir="$(cd "$(dirname "$0")" && pwd)"
10+
base="${script_dir}/.."
11+
12+
cd "${base}"
13+
git submodule update
14+
cd rpi-eeprom
15+
git fetch -ap
16+
git reset --hard origin/master
17+
18+
for chip in 2711 2712; do
19+
cd "${base}"
20+
image=$(ls "rpi-eeprom/firmware-${chip}/latest/" | grep pieeprom | sort -r | head -n1)
21+
cd "${base}/firmware/${chip}"
22+
ln -sf "../../rpi-eeprom/firmware-${chip}/latest/${image}" pieeprom.bin
23+
done

0 commit comments

Comments
 (0)