From de5ea9f761c322c0ba007ced4b11c3f4e7bb0684 Mon Sep 17 00:00:00 2001 From: Tim Gover Date: Mon, 12 Oct 2026 12:35:44 +0100 Subject: [PATCH] rpi-eeprom-update: Skip VL805 updates if lspci is not available lspci is only required to read the current version of the VL805 firmware. Some distros do not install pciutils by default, so don't treat a missing lspci as fatal. Only Pi4B boards before rev 1.4 have a dedicated VL805 SPI EEPROM so only suggest installing pciutils on those boards. Fixes: #884 --- rpi-eeprom-update | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/rpi-eeprom-update b/rpi-eeprom-update index 647bbd22..1e988bdd 100755 --- a/rpi-eeprom-update +++ b/rpi-eeprom-update @@ -701,10 +701,6 @@ checkDependencies() { die "rpi-eeprom-digest not found. Try re-installing the rpi-eeprom package" fi - if ! command -v lspci > /dev/null; then - die "lspci not found. Try installing the pciutils package." - fi - if ! command -v strings > /dev/null; then die "strings not found. Try installing the binutils package." fi @@ -938,12 +934,16 @@ printVersions() fi if [ "${ACTION_UPDATE_VL805}" = 1 ]; then echo " VL805: update available" - else - if [ "$(id -u)" = "0" ]; then - echo " VL805: up to date" + elif ! command -v lspci > /dev/null; then + if [ "${HAVE_VL805_EEPROM}" = 1 ]; then + echo " VL805: version unknown. Try installing the pciutils package." else - echo " VL805: version unknown. Try sudo rpi-eeprom-update" + echo " VL805: version unknown (lspci not found)" fi + elif [ "$(id -u)" = "0" ]; then + echo " VL805: up to date" + else + echo " VL805: version unknown. Try sudo rpi-eeprom-update" fi echo " CURRENT: ${VL805_CURRENT_VERSION}" @@ -996,7 +996,7 @@ getVL805CurrentVersion() # root then treat the version as unknown and skip VLI updates. VL805_CURRENT_VERSION="" - if [ "${BCM_CHIP}" = 2711 ]; then + if [ "${BCM_CHIP}" = 2711 ] && command -v lspci > /dev/null; then if [ "$(id -u)" = "0" ]; then vlver="$(lspci -d 1106:3483 -xxx | awk '/^50:/ { print "VL805 FW version: " $5 $4 $3 $2 }')" if [ -n "${vlver}" ]; then