diff --git a/Rocky8_Rpi4.ks b/Rocky8_Rpi4.ks index 3e96535..2f8e2ee 100644 --- a/Rocky8_Rpi4.ks +++ b/Rocky8_Rpi4.ks @@ -103,6 +103,21 @@ It should fill your main rootfs partition to the end of the disk. EOF + +# Next, script to fix the wifi firmware setting: +cat >/home/rocky/fix-wifi-rpi4.sh << 'EOF' +#!/bin/bash + +# Simple hacky fix to correct wifi settings on the Rpi4 so it loads properly: + +sed -i 's/boardflags3=0x48200100/boardflags3=0x44200100/g' /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt + +echo "Patched /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt . You can reboot and wifi should work, or do: rmmod brcmfmac; modprobe brcmfmac; " + +EOF + +chmod 755 /home/rocky/fix-wifi-rpi4.sh + chown -R rocky:rocky /home/rocky