Skip to content

Commit e14cae1

Browse files
committed
workaround brcmfmac issues with wpa_supplicant
1 parent 4b5f2b7 commit e14cae1

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Extra files may be added next to `headless.apkovl.tar.gz` to customise boostrapp
3030

3131
Main execution steps are logged: `cat /var/log/messages | grep headless`.
3232

33-
## Goody:
34-
Seamless USB-gadget mode on capable devices (*e.g. on PiZero*): serial console, ethernet and mass-storage
33+
## Goody for *OTG-peripheral* capable devices:
34+
Seamless USB-gadget mode on *OTG-peripheral* capable devices (*e.g. on PiZero*): serial console, ethernet and mass-storage
3535
- Make sure `dwc2` (or `dwc3`) driver is previously loaded on capable device, and configuration is set to **OTG peripheral** mode: this may be driven by hardware (including cable) and/or software.\
3636
(on supporting Pi devices, just add `dtoverlay=dwc2,dr_mode=peripheral` in `usercfg.txt` (or `config.txt`) to force both by software)
3737
- Plug USB cable into host Computer port before booting device.

headless.apkovl.tar.gz

93 Bytes
Binary file not shown.

headless.apkovl.tar.gz.sha512

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3eb47a6f01bfe6ef6a26cd7a7494a8b673b6c745cc62c39633e140642ae32d906713a72c894dbe5290e0fd4f045512dd22811eb041e6d830b54ea40103532454 headless.apkovl.tar.gz
1+
e4025e5ac1a07a31657ef37146d125d9293bfc069443434d46c5d6de4f47eaf629dc1b009d1823b6ea9e29c91f86412a22d55af65c381af26911162053544d1d headless.apkovl.tar.gz

overlay/tmp/.ALHB/headless_bootstrap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,13 @@ _setup_networking() {
263263
local has_wifi wlan_lst
264264
_has_wifi() { return "$has_wifi"; }
265265

266+
# workaround some brcmfmac issues with wpa_supplicant (not Pi only issue)
267+
# https://github.com/RPi-Distro/firmware-nonfree/commit/2788cb549a19bf2e77901c4071ef88c2ad683b7c
268+
if lsmod | grep -q brcmfmac; then
269+
rmmod brcmfmac && modprobe brcmfmac roamoff=1 feature_disable=0x282000
270+
_logger "Applied brcmfmac workaround for wpa_supplicant"
271+
fi
272+
266273
wlan_lst="$( find /sys/class/net/*/phy80211 -exec \
267274
sh -c 'printf %s\| "$( basename "$( dirname "$0" )" )"' {} \; 2>/dev/null )"
268275
wlan_lst="${wlan_lst%\|}"

0 commit comments

Comments
 (0)