Refactor first-boot script and documentation to remove rpi-eeprom handling
Eliminate the rpi-eeprom configuration steps from the first-boot script, simplifying the installation process. Update the documentation to clarify that the EEPROM boot order is now set via the dashboard or manually, rather than during first boot. Adjust package installation logs to reflect the removal of rpi-eeprom and ensure clarity in the installation process. Enhance overall documentation to guide users on the new EEPROM update methods.
This commit is contained in:
13
emmc-provisioning/scripts/install-eeprom-tools-on-lxc.sh
Executable file → Normal file
13
emmc-provisioning/scripts/install-eeprom-tools-on-lxc.sh
Executable file → Normal file
@@ -27,25 +27,19 @@ else
|
||||
fi
|
||||
|
||||
mkdir -p "$EEPROM_DIR"
|
||||
cd "$EEPROM_DIR"
|
||||
|
||||
echo "Downloading rpi-eeprom-config..."
|
||||
$GET_O "$EEPROM_DIR/rpi-eeprom-config" "$RPI_EEPROM_RAW/rpi-eeprom-config"
|
||||
$GET_O "$EEPROM_DIR/rpi-eeprom-digest" "$RPI_EEPROM_RAW/rpi-eeprom-digest"
|
||||
chmod +x "$EEPROM_DIR/rpi-eeprom-config" "$EEPROM_DIR/rpi-eeprom-digest"
|
||||
|
||||
echo "Finding latest BCM2711 EEPROM firmware..."
|
||||
LATEST_FW=$($GET "https://api.github.com/repos/raspberrypi/rpi-eeprom/contents/firmware-2711/default" \
|
||||
| grep -o '"name" *: *"pieeprom-[^"]*\.bin"' | sed 's/"name" *: *"//;s/"//' | sort | tail -1)
|
||||
|
||||
if [ -z "$LATEST_FW" ]; then
|
||||
echo "WARNING: Could not determine latest firmware from GitHub API. Try again or download pieeprom.bin manually."
|
||||
exit 1
|
||||
else
|
||||
$GET_O "$EEPROM_DIR/pieeprom.bin" "$RPI_EEPROM_RAW/firmware-2711/default/$LATEST_FW"
|
||||
fi
|
||||
|
||||
echo "Downloading $LATEST_FW..."
|
||||
$GET_O "$EEPROM_DIR/pieeprom.bin" "$RPI_EEPROM_RAW/firmware-2711/default/$LATEST_FW"
|
||||
|
||||
if [ ! -s "$EEPROM_DIR/pieeprom.bin" ]; then
|
||||
echo "ERROR: pieeprom.bin is missing or empty"
|
||||
exit 1
|
||||
@@ -56,5 +50,4 @@ if ! python3 "$EEPROM_DIR/rpi-eeprom-config" "$EEPROM_DIR/pieeprom.bin" >/dev/nu
|
||||
echo "WARNING: rpi-eeprom-config could not read pieeprom.bin (non-fatal)"
|
||||
fi
|
||||
|
||||
echo "Done. EEPROM tools installed:"
|
||||
ls -la "$EEPROM_DIR"
|
||||
echo "Done. EEPROM tools installed to $EEPROM_DIR"
|
||||
|
||||
Reference in New Issue
Block a user