We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b2c79b commit 72a6d65Copy full SHA for 72a6d65
tools/rpi-get-latest-fw
@@ -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