Merge pull request #208 from hvenev/board-revision-from-dt

rpi-eeprom-update: Upstream kernel fix
This commit is contained in:
Tim Gover
2020-08-31 12:22:52 +01:00
committed by GitHub

View File

@@ -268,7 +268,7 @@ getBootloaderUpdateVersion() {
}
checkDependencies() {
BOARD_INFO="$(sed -n '/^Revision/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo)"
BOARD_INFO="$(hexdump -e '1/1 "%02x"' /sys/firmware/devicetree/base/system/linux,revision)"
if [ $(((0x$BOARD_INFO >> 23) & 1)) -ne 0 ] && [ $(((0x$BOARD_INFO >> 12) & 15)) -eq 3 ]; then
echo "BCM2711 detected"
else