From 7821ece9b27bb0cda9676eaf430c55f451833a34 Mon Sep 17 00:00:00 2001 From: Skip Grube Date: Fri, 30 Jul 2021 20:58:21 +0000 Subject: [PATCH] Re-adding the fix-wifi script. It may be necessary if linux-firmware gets updated, and the firmware txt file gets over-written again. -Skip G. --- Rocky8_Rpi4.ks | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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