From d1d378f46e95f8826f86a159e82dd9b48f55b3a8 Mon Sep 17 00:00:00 2001 From: doktornotor <1075960+doktornotor@users.noreply.github.com> Date: Sat, 9 Dec 2023 10:33:07 +0100 Subject: [PATCH 1/2] Fix download URL (#323) --- scripts/apu_fw_updater_opnsense.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/apu_fw_updater_opnsense.sh b/scripts/apu_fw_updater_opnsense.sh index b63b7a30..96c4dc14 100755 --- a/scripts/apu_fw_updater_opnsense.sh +++ b/scripts/apu_fw_updater_opnsense.sh @@ -20,7 +20,7 @@ TYPE="apu2" VERSION="4.15.0.3" # Do not edit after this line -SRC="https://3mdeb.com/open-source-firmware/pcengines/${TYPE}/" +SRC="https://dl.3mdeb.com/open-source-firmware/pcengines/${TYPE}/" PREFIX="${TYPE}_v${VERSION}" FILE="${PREFIX}.rom" CHECKSUM="${PREFIX}.SHA256" From 00363ca569ec69b35a6a8c18db6cd787f89a1c69 Mon Sep 17 00:00:00 2001 From: doktornotor <1075960+doktornotor@users.noreply.github.com> Date: Sat, 9 Dec 2023 10:45:28 +0100 Subject: [PATCH 2/2] Fix "Multiple flash chip definitions match the detected chip" error on APU2 and higher Recent flashrom versions require specifying the chipname for APU2 and higher as well, see e.g. https://teklager.se/en/knowledge-base/apu-bios-upgrade/ Tested on APU.4D4. --- scripts/apu_fw_updater_opnsense.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/apu_fw_updater_opnsense.sh b/scripts/apu_fw_updater_opnsense.sh index 96c4dc14..35140345 100755 --- a/scripts/apu_fw_updater_opnsense.sh +++ b/scripts/apu_fw_updater_opnsense.sh @@ -86,7 +86,7 @@ flash () { if [ "${NUMBER}" -gt 1 ]; then # APU2/3/4/5/6 - flashrom -w "${FILE}" -p internal + flashrom -w "${FILE}" -p internal -c "W25Q64BV/W25Q64CV/W25Q64FV" else # APU1 flashrom -w "${FILE}" -p internal -c "MX25L1605A/MX25L1606E/MX25L1608E"