Rpi4 < $(community_build)

Fantastic build! Everything works great, except wifi. I can't even get 40 MHz reliably, while 80 is right out. And it's stuck on 802.11n speeds. This despite running Raspberry Pi OS with the proper country code a bunch prior and everything.

I'm not here just to complain, though. I dug into the issue of the wifi country code that's been giving this build so much trouble. I found a kernel patch and another patch and discussion around our wifi chip which might give an insight - that being, the kernel may be the culprit, or for whatever reason we're not able to write the country code to the NVRAM. There's some related threads on this forum, though I figure they've already been looked over.

Based on that second patch discussion, I tried to manually add ccode=XX (substitute as appropriate and regrev=0 to the NVRAM file brcmfmac43455-sdio.txt, but the first reboot came back with a lot of scary errors (maybe because I rebooted on the command line?) and the second came back with wifi still not working, so I'm unclear if the driver/kernel is even loading the NVRAM files onto the Broadcom chip in the first place. Or if it is, maybe it isn't reading it back?

Might it be worth asking the nexmon team about this, since we're now using their firmware? I found a related issue and a suggested patch that might help re: firmware, though integration into the settings for OpenWrt is another matter. I might test in a bit.

1 Like

nexmon was a test (runs ok on my setup except for crashing hard on sysupgrade), will likely switch to linux-firmware ( Apr 15 2021 ) for next build (notes above on how to switch back to that)

there is probably scope for a;

brcm0 = rpiDISTRO
brcm3 = rpiDISTRO (high client count)

but i've burn't way too many hours in recent months on their bug pages... if someone wanted to bundle/tar those dirs up, happy to add them...

Edit this file
/boot/config.txt

add these 2 lines in the file

over_voltage=5
arm_freq=2000

over voltage 5 is working fine for me, you might need 6.

1 Like

After updating to "5.0.77-5" my pi is idling at 1400mhz. before updating it was idling at 700ish. don't remember correctly.
my pi is overclocked at 2000mhz and I'm using
rpi-perftweaks.sh_userfileB script.
is this how its supposed to be?

that sounds around about correct but thats for rpi-perftweaks.sh

I updated it to jump to a higher 'mid frequency' as lowest if overclocking is applied... previously it was hardcoded to 1100000

great stuff!


so I don't think your ini settings are correct or i've a bug when another script is selected

wow, can't remember if i've ever explained how to use that properly... (and parts of it may not be polished)...

just in case...

  • it can be run manually ( /bin/rpi-perftweaks.sh_userfileB start)...
  • settings are changed in the file /etc/perftweaks.txt (need to check if i've added that to sysupgrade.conf)

to autorun it (i.e. on boot + hotplug), set (actually i'll need to check if start is passed to it);

PERFTWEAKS_SCRIPT="/bin/rpi-perftweaks.sh_userfileB"

please post;

rpi-support.sh
grep PERFTWEAK /root/wrt.ini
dmesg | grep perftweak
grep -Ev '(^#|^$)' /etc/perftweaks.txt
1 Like
rpi-support.sh
################################# root-dev: /dev/mmcblk0p2:01301242-02 boot-dev: /dev/mmcblk0p1
################################# root-partinfo: root@boot: PARTUUID=01301242-02 root@cmdline: PARTUUID=01301242-02
################################## 4B 1.2 2GB Sony_UK b03112
############ buildid:r18711-4367d4f869 localversion:5.0.77-5 files:6e4e53825 variant:fullest
############ fwV:Jul6 vlV:000138a1
############ fwWIFI: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Oct  3 2021 18:14:30 version 7.45.206 (nexmon.org: 2.2.2-343-ge3c8-dirty-5) FWID 01-88ee44ea
############ fwGPU: 2021-08-19T12:27:01, ef2c018dccdeb94b0376db62a2ea4c882f9b500d
################################# wrt.ini brief
ENABLEDSERVICES="simple-adblock https-dns-proxy" #[fboot/upgrade] enable+start
LUCIQRCODES=1
COLORASH="random"
COLORBASH="random"
WIFIAUTOSETUP=1
POWERPROFILE="quick"
ROOTFSEXPAND=1
RPI_EEPROM_CONFIG_HOOK_FILE_RECOMMENDED="/etc/custom/4-model-b/eeprom.config.recommended"
RPI4CMDLINEOPTS="fsckparts"
ENABLEDSERVICES="https-dns-proxy simple-adblock"
#################################
  UPTIME: 18:38:5330 min,  0.07, 0.01, 0.00
   DISKS: 1%:/ 2%:/tmp 5%:/boot
################################# hardware info
Revision        : b03112
Serial          : 10000000c942642d
Model           : Raspberry Pi 4 Model B Rev 1.2
################################# cmdline.txt
console=serial0,115200 console=tty1 root=PARTUUID=01301242-02 rootfstype=squashfs,ext4 rootwait fsckparts
################################# config.txt
dtparam=sd_poll_once
over_voltage=5
arm_freq=2000
#################################
BOOTORDER:  mmc usb
### uptime:  18:38:53 up 30 min,  load average: 0.07, 0.01, 0.00
### network conntrack:82 lportsT:13 lportsU:10
### Mem: 207892K used, 1693748K free, 20392K shrd, 4304K buff, 68664K cached
### CPU:   0% usr   2% sys   0% nic  97% idle   0% io   0% irq   0% sirq
### Time       Temp     CPU     Core         Health           Vcore    PMIC
### 18:38:53  35.5'C  2000MHz  500MHz  00000000000000000000  0.9813V  32.6'C
SCALING:ondemand thresh:21 min:1400000 max:2000000 cur:2000000 TIME:1400000:148658 1500000:169 1600000:210 1700000:125 1800000:74 1900000:48 2000000:28519
### SCALING:  overclock_config.txt ini:
################ vcgencmd get_config int | grep freq
arm_freq=2000
core_freq=500
core_freq_min=200
gpu_freq=500
gpu_freq_min=250
################################# opkg-repos
/etc/opkg/customfeeds.conf:src/gz git_core https://github.com/wulfy23/rpi4-opkg/raw/master/r18711-4367d4f869/core
/etc/opkg/customfeeds.conf:src/gz git_base https://github.com/wulfy23/rpi4-opkg/raw/master/r18711-4367d4f869/base
/etc/opkg/customfeeds.conf:src/gz git_luci https://github.com/wulfy23/rpi4-opkg/raw/master/r18711-4367d4f869/luci
/etc/opkg/distfeeds.conf:src/gz openwrt_kmods http://downloads.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.10.96-1-a2f581ac6c55f59ba4582b7b721298c0
/etc/opkg/distfeeds.conf:src/gz openwrt_packages http://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a72/packages
/etc/opkg/distfeeds.conf:src/gz openwrt_routing http://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a72/routing
/etc/opkg/distfeeds.conf:src/gz openwrt_telephony http://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a72/telephony
########################################## GPIO
 gpio-42  (STATUS_LED_G_CLK    |led0                ) out lo
 gpio-506 (PWR_LED_OFF         |led1                ) out hi ACTIVE LOW
 gpio-508 (VDD_SD_IO_SEL       |vdd-sd-io           ) out hi
 gpio-510 (SD_PWR_ON           |sd_vcc_reg          ) out hi
################################# interface-report
############### lo [ok]  yes
############### eth0 [ok] bcmgenet yes 1000Mb/s
############### eth1 [ok] r8152 yes 1000Mb/s
############### br-lan [ok] bridge yes 1000Mb/s
############### pppoe-wan [ok]
################################# upghist_count: 4
################################# upghist_list: 5.0.67-11 5.0.67-17 5.0.67-27 5.0.77-5
################################# packages-restore-actions
################################# packages-restored-RAWDIRECT
################################################ firstboot  pkgpending 202202031450
################################### Added... 4
gawk
grep
sed
vsftpd-tls
################################### Removed... 69
acme
acme-dnsapi
adblock
atop
banip
bind-check
bind-dig
bind-dnssec
bind-host
bind-libs
bind-nslookup
bind-rndc
bind-tools
comgt-ncm
ddns-scripts
ddns-scripts-cloudflare
ddns-scripts-freedns
ddns-scripts-godaddy
ddns-scripts-noip
ddns-scripts-services
eoip
etherwake
irqbalance
luci-app-acme
luci-app-adblock
luci-app-banip
luci-app-ddns
luci-app-eoip
luci-app-mosquitto
luci-app-mwan3
luci-app-nft-qos
luci-app-nlbwmon
luci-app-openvpn
luci-app-snmpd
luci-app-sqm
luci-app-statistics
luci-app-travelmate
luci-app-vpn-policy-routing
luci-app-watchcat
luci-app-wifischedule
luci-app-wireguard
luci-app-wol
luci-app-xinetd
luci-proto-ncm
luci-proto-qmi
mosquitto-client-ssl
mosquitto-ssl
mwan3
nft-qos
nlbwmon
openvpn-easy-rsa
openvpn-openssl
qosify
quagga-libospf
quagga-libzebra
quagga-ospf6d
quagga-ospfd
quagga-vtysh
quagga-watchquagga
quagga-zebra
snmpd
umbim
uqmi
vim-fuller
vpn-policy-routing
wifischedule
wwan
xinetd
youtube-dl
################################################ firstboot  pkgpending 202202031450
################################### Added... 4
gawk
grep
sed
vsftpd-tls
################################### Removed... 1
quagga
################################# autorestore-running-RAWDIRECT
#opkg install --force-checksum gawk #[ok-firstboot]#opK-R
#opkg install --force-checksum grep #[ok-firstboot]#opK-R
opkg install --force-checksum luci-app-temp-status #[unknown-firstboot]#[unknown-firstboot]#opK-R
#opkg install --force-checksum sed #[ok-firstboot]#opK-R
#opkg install --force-checksum vsftpd-tls #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages acme #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages acme-dnsapi #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages adblock #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages atop #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages banip #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages bind-check #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages bind-dig #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages bind-dnssec #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages bind-host #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages bind-libs #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages bind-nslookup #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages bind-rndc #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages bind-tools #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages comgt-ncm #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages ddns-scripts #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages ddns-scripts-cloudflare #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages ddns-scripts-freedns #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages ddns-scripts-godaddy #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages ddns-scripts-noip #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages ddns-scripts-services #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages eoip #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages etherwake #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages irqbalance #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-acme #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-adblock #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-banip #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-ddns #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-eoip #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-mosquitto #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-mwan3 #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-nft-qos #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-nlbwmon #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-openvpn #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-snmpd #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-sqm #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-statistics #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-travelmate #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-vpn-policy-routing #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-watchcat #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-wifischedule #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-wireguard #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-wol #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-app-xinetd #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-proto-ncm #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages luci-proto-qmi #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages mosquitto-client-ssl #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages mosquitto-ssl #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages mwan3 #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages nft-qos #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages nlbwmon #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages openvpn-easy-rsa #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages openvpn-openssl #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages qosify #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages quagga #[ok-firstboot]#[fail-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages quagga-libospf #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages quagga-libzebra #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages quagga-ospf6d #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages quagga-ospfd #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages quagga-vtysh #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages quagga-watchquagga #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages quagga-zebra #[ok-notremonsys-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages snmpd #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages umbim #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages uqmi #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages vim-fuller #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages vpn-policy-routing #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages wifischedule #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages wwan #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages xinetd #[ok-firstboot]#opK-R
#opkg remove --force-removal-of-dependent-packages youtube-dl #[ok-firstboot]#opK-R
grep PERFTWEAK /root/wrt.ini
PERFTWEAKS=1
PERFTWEAKS="default"
####################### PERFTWEAKS="default" ??? >>> RESET to OFF ^1 and hardcode quick again?
PERFTWEAKS_Gbs=1
PERFTWEAKS_SCRIPT="/bin/rpi-perftweaks.sh_userfileB"
dmesg | grep perftweak
[   57.744508] rc.custom> raspberrypi,4-model-b perftweaks /bin/rpi-perftweaks.sh [run]
[   86.710940] /bin/rpi-perftweaks.sh_userfileB: init-user>  DEFAULTOPTS TASKSET RENICE POWERPROFILE[quick] AFFINITY[32:c 33:c]
[   86.810272] /bin/rpi-perftweaks.sh_userfileB: IRQ_AFF:  1=f 10=f 11=f 12=f 13=f 18=f 2=f 21=f 24=f 3=f 31=f 32=f 39=f 4=f 40=f 46=f 47=f 5=f 6=f 7=f 8=f 9=f default_smp_affinity=f
grep -Ev '(^#|^$)' /etc/perftweaks.txt
govenor ondemand up_threshold 13
govenor ondemand sampling_down_factor 7
govenor ondemand scaling_min_freq 900000
govenor ondemand scaling_max_freq 1500000
renice rngd -2
renice dnsmasq -5
renice httpd 2
irqaffinity eth0 7
irqaffinity mmc 7
taskset rngd 1,2
taskset dnsmasq 1,2
taskset uhttpd 3
rps eth0 rx-0 7
xps eth0 tx-0 7
xps eth0 tx-1 7
xps eth0 tx-2 7
xps eth0 tx-3 7
xps eth0 tx-4 7
rps eth1 rx-0 7
xps eth1 rx-0 7
rps ifb4eth1 rx-0 7
xps ifb4eth1 rx-0 7
ethtool ifb4eth1 offload on
sysctl net.core.netdev_budget 600
sysctl net.netfilter.nf_conntrack_tcp_timeout_established 2480
1 Like

that's how I'm running it atm

##### Removed... 69 #Nice cleanup action!
SCALING:ondemand thresh:21 min:1400000 max:2000000 cur:2000000 TIME:1400000:148658 1500000:169 1600000:210 1700000:125 1800000:74 1900000:48 2000000:28519
govenor ondemand scaling_min_freq 900000
govenor ondemand scaling_max_freq 1500000

yeah its not getting started see above 9000000 did not get applied

not sure where/why normal perftweaks.sh is running (and not logging) probably out of hotplug

as /etc/perftweaks.txt is defaults anyway... just comment out PERFTWEAKS_SCRIPT

# PERFTWEAKS_SCRIPT="..."

and stick with the normal script... userfileB is more for once off testing for now

but I will fix whatever issue you've had as you did set your INI properly :+1: (thanks for the report!)


did you want a lower/higher base frequency?

at 1400000 or whatever you still have 5-ish (edit: counted it's 7!) steppings...

afaik, that seems a pretty good balance for most people who might want 'beefier' performance... but not 24/7 20000000

1 Like

yes, I think a lower frequency would be better. Like 1100 or 900mhz.

really appreciated!

1 Like

ok so at 900000 you'll get;

600000 700000 800000
900000 1000000 1100000 1200000 1300000 1400000 1500000 1700000 1800000 1900000 2000000

11 steppings ... but most time will be at high or low... hmmmmm... yeah... given its setup to quickly hop to highest most of the time... I can see how having it lower say overnight might be beneficial...

I will add a new variable called PERFTWEAKS_FREQ_MIN you can set to whatever you want...

i.e.;

PERFTWEAKS_FREQ_MIN="900000"

cheers....

1 Like

to save you having to upgrade...


curl -sSL https://github.com/wulfy23/rpi4/raw/master/ib/files-community_rpi4/bin/rpi-perftweaks.sh > /bin/rpi-perftweaks.sh
1 Like

good question... that should not happen (does not happen for me) thanks for another report!

(early guess would be your not using default network settings? i.e. different wan or lan interfaces or no bridge or something?)

either way it shouldn't happen so i'll sort it out...

cheers!

edit: actually going to need you to PM me your /etc/config/network and /etc/config/dhcp to fix...


small note... good to re-install this package;

#opkg remove --force-removal-of-dependent-packages bind-host #[ok-firstboot]#opK-R

it's one of the utilities some of the build scripts use for internet detection and stuff afaik... all the other ones are ok to remove...

1 Like

alright.

sent. please check.

1 Like

After a succesful instalation of OpenWrt on a TP-Link Archer C7 router where the wireless worked as expected, I am now trying to install OpenWrt in a RPi 4 using this wulfy23 build. Buts this time the wireless keeps saying that ".. is not Associated" as the image shows:

I already tried to setup the wifi using the web interface, editing the /etc/config/wireless file from the CLI with several different configurations that I found here, enabling the wifi in the raspi-config in a Raspberry Pi OS different microSD, but the result is always the same: "Wireless is not associated"! :frowning:

The use of the wireless in the RPi4 will be mainly for remote maintenance (I already know that the range is not great) but it would be nice if I could make it work!

Note that the wifi hardware seems to work since if I preform a Scan I get all the SSID around me.

Can someone please help me giving me an hint?
Thanks

uci show wireless
/etc/init.d/wpad enabled && echo YUP
logread -e hostapd
1 Like

It worked!
It seems that brcm1 is still more reliable that the new brcm2.
Thank you very much for your hint!

1 Like

glad you got it sorted...

you can thank yourself for stating the 3 relevant keywords in your initial report;

  1. you'd previously set the country in rasp(ian|OS)
  2. you'd found and tried some sample configs from this thread and elsewhere
  3. you mentioned you are able to use the CLI

are you saying that you believe that switching to brcm1 (linux-firmware) was all you did to get it working?

what did logread -e hostapd show you... (when it was failing)?

need more information to be of use to others cause can't really draw any conclusions from information provided :frowning:

1 Like

You are right!
Let me try then to help in finding where is the issue.
For that a flashed a the new image I downloaded from GitHub: rpi4.64-snapshot-27663-5.0.77-5-r18711-ext4-fac.img.gz

Notice that after the first boot the "logread -e hostapd" returned nothing!
After a couple of reboots (and only when the "/etc/init.d/wpad enabled && echo YUP" echoed YUP, since the first try I got nothing) I was able to have the WiFi working.

Here is the full sequence of commands from the CLI:

SSH AFTER FIRST BOOT
******************************************************************************
...
#FriFeb413:25:162022 61.618363] rpi-perftweaks.sh[bg]> sysval: eth0/queues/rx-0/rps_cpus[0>7]
FriFeb413:25:162022 61.643619] rpi-perftweaks.sh[bg]> sysval: eth1/queues/rx-0/rps_cpus[0>7]
FriFeb413:25:162022 61.669295] rpi-perftweaks.sh[bg]> disable packet steering [tmp-wip-ini-toggle-restore-etc]
   online:5.0.77-5 = onsys:5.0.77-5 https://rpi4.wulfy23.info/builds/rpi-4_snapshot_5.0.77-5_r18711_extra
root@rpi4-dca632da63 /39# logread -e hostapd
root@rpi4-dca632da63 /39# uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.path='platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
wireless.radio0.channel='36'
wireless.radio0.band='5g'
wireless.radio0.hwmode='11a'
wireless.radio0.htmode='HT20'
wireless.radio0.country='PT'
wireless.radio0.cell_density='0'
wireless.default_radio0=wifi-iface
wireless.default_radio0.device='radio0'
wireless.default_radio0.network='lan'
wireless.default_radio0.mode='ap'
wireless.default_radio0.key='somerandomhardtoguesspassword'
wireless.default_radio0.ssid='ap101'
wireless.default_radio0.encryption='psk2+ccmp'
root@rpi4-dca632da63 /39# /etc/init.d/wpad enabled && echo YUP
root@rpi4-dca632da63 /39# cp -a /lib/firmware/brcm1/* /lib/firmware/brcm/
root@rpi4-dca632da63 /39# reboot
INTERACTIVE shutdown_57-checkbeforereboot> checking for new boot dependent ini changes
INTERACTIVE shutdown_57-checkbeforereboot> checking for new boot dependent ini changes
INTERACTIVE dca632da63d7.sh> /etc/custom/dca632da63d7.sh shutdown
root@rpi4-dca632da63 /39#

SSH AFTER REBOOT
******************************************************************************
...
#FriFeb413:24:522022 22.514092] everyboot_751-bootnotices> update luci boot banner msgs
FriFeb413:27:302022 25.241848] 27-ntp> BOOTSTATE:TIMESET:step> Fri Feb 4 13:27:30 UTC 2022
FriFeb413:27:562022 device 'radio0' setup failed, retry=0
   online:5.0.77-5 = onsys:5.0.77-5 https://rpi4.wulfy23.info/builds/rpi-4_snapshot_5.0.77-5_r18711_extra
root@rpi4-dca632da63 /39# logread -e hostapd
root@rpi4-dca632da63 /39# reboot
INTERACTIVE shutdown_57-checkbeforereboot> checking for new boot dependent ini changes
INTERACTIVE shutdown_57-checkbeforereboot> checking for new boot dependent ini changes
INTERACTIVE dca632da63d7.sh> /etc/custom/dca632da63d7.sh shutdown
root@rpi4-dca632da63 /40#

SSH AFTER REBOOT
******************************************************************************
...
#FriFeb413:24:522022 servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
FriFeb413:24:522022 22.660791] dca632da63d7.sh[bg]> /etc/custom/dca632da63d7.sh everyboot
FriFeb413:24:522022 22.733187] everyboot_751-bootnotices> update luci boot banner msgs
   online:5.0.77-5 = onsys:5.0.77-5 https://rpi4.wulfy23.info/builds/rpi-4_snapshot_5.0.77-5_r18711_extra
root@rpi4-dca632da63 /41# logread -e hostapd
root@rpi4-dca632da63 /40# /etc/init.d/wpad status
inactive
root@rpi4-dca632da63 /40# /etc/init.d/wpad enabled && echo YUP
root@rpi4-dca632da63 /40# /etc/init.d/wpad status
inactive
root@rpi4-dca632da63 /39# cp -a /lib/firmware/brcm1/* /lib/firmware/brcm/
root@rpi4-dca632da63 /40# reboot
INTERACTIVE shutdown_57-checkbeforereboot> checking for new boot dependent ini changes
INTERACTIVE shutdown_57-checkbeforereboot> checking for new boot dependent ini changes
INTERACTIVE dca632da63d7.sh> /etc/custom/dca632da63d7.sh shutdown
root@rpi4-dca632da63 /39#

SSH AFTER REBOOT
******************************************************************************
...
#FriFeb413:24:522022 23.238860] everyboot_751-bootnotices> update luci boot banner msgs
FriFeb413:24:522022 servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
FriFeb413:31:482022 27.399320] 27-ntp> BOOTSTATE:TIMESET:step> Fri Feb 4 13:31:48 UTC 2022
   online:5.0.77-5 = onsys:5.0.77-5 https://rpi4.wulfy23.info/builds/rpi-4_snapshot_5.0.77-5_r18711_extra
root@rpi4-dca6000003  /40# logread -e hostapd
root@rpi4-dca6000003  /40# /etc/init.d/wpad status
inactive
root@rpi4-dca6000003  /40# /etc/init.d/wpad enable
root@rpi4-dca6000003  /39# /etc/init.d/wpad status
inactive
root@rpi4-dca6000003  /40# /etc/init.d/wpad status
inactive
root@rpi4-dca6000003  /41# /etc/init.d/wpad enabled
root@rpi4-dca6000003  /40# /etc/init.d/wpad status
inactive
root@rpi4-dca6000003  /40# /etc/init.d/wpad status
inactive
root@rpi4-dca6000003  /39# /etc/init.d/wpad enabled && echo YUP
YUP
root@rpi4-dca6000003  /41# /etc/init.d/wpad status
inactive
root@rpi4-dca6000003  /41# cp -a /lib/firmware/brcm1/* /lib/firmware/brcm/
root@rpi4-dca6000003  /41# reboot
INTERACTIVE shutdown_57-checkbeforereboot> checking for new boot dependent ini changes
INTERACTIVE shutdown_57-checkbeforereboot> checking for new boot dependent ini changes
INTERACTIVE dca6000003 d7.sh> /etc/custom/dca6000003 d7.sh shutdown
root@rpi4-dca6000003  /40#

SSH AFTER REBOOT
******************************************************************************
...
#FriFeb413:24:522022 22.946434] dca6000003 d7.sh[bg]> /etc/custom/dca6000003 d7.sh everyboot
FriFeb413:24:522022 23.019045] everyboot_751-bootnotices> update luci boot banner msgs
FriFeb413:35:052022 24.687420] 27-ntp> BOOTSTATE:TIMESET:step> Fri Feb 4 13:35:05 UTC 2022
   online:5.0.77-5 = onsys:5.0.77-5 https://rpi4.wulfy23.info/builds/rpi-4_snapshot_5.0.77-5_r18711_extra
root@rpi4-dca6000003  /40# logread -e hostapd
Fri Feb  4 13:24:50 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Fri Feb  4 13:24:50 2022 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Fri Feb  4 13:24:50 2022 daemon.notice hostapd: wlan0: interface state COUNTRY_UPDATE->ENABLED
Fri Feb  4 13:24:50 2022 daemon.notice hostapd: wlan0: AP-ENABLED
root@rpi4-dca6000003  /41#

By the way if I do a restore the backup of a working system, in a fresh installation, the settings are restored but the "Wireless is not associated" again.

Regards

PS - The wpad is important in all this? The argument of it should be "enable" or "enabled"? Why sometimes the echo (of the YUP) is not performed and sometimes is?

1 Like

ok, looks like it was disabled was pretty sure i'd set it to enabled again ages ago... but I will need to triple check this...

(odd thing is it's not in my ENABLEDSERVICES yet when I upgrade it starts fine)

thankyou for the further information


there is some historical significance / quirks / stale code probably laying around...

basically most people don't use the onboard wifi... so;

  • once upon a time I thought I should include it in the list of services which are default disabled within the build
  • time passed and there turned out to be too many complexities. and an 'opt-in' DISABLEDSERVICES or WIFIREMOVE=1 were introduced for that capability

moral of the story... always check if a service is enabled when troubleshooting... and yes... wpad runs all your wireless ( hostapd and whatnot )


restoring a backup gets you back your config settings but not your service state, so you have to add it to ENABLEDSERVICES for upgrades (just in case, i dont need that for wpad as mentioned above) and manually enable it again if you re-install and it ends up disabled (as discussed above)


in addition to all the above... messing-with/changing the wifi settings can render the wifi in a stale state, this always trips up first time configurers...

1 Like

Did that:

cp -a /lib/firmware/brcm1/* /lib/firmware/brcm/
reboot

Its completely broken for me as well. Like it can be gotten to work for like a couple hours then wifi is gone.

Only thing im observing is the choice of channels - 5g seems to ALWAYS choose channel 36 and 24g too until I manually make it select a different channel and after switch back to auto.

Fri Feb  4 12:00:05 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Fri Feb  4 12:00:05 2022 daemon.notice hostapd: ACS: Automatic channel selection started, this may take a bit
Fri Feb  4 12:00:05 2022 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->ACS
Fri Feb  4 12:00:05 2022 daemon.notice hostapd: wlan0: ACS-STARTED
Fri Feb  4 12:00:06 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy1.conf (phy wlan1) --> new PHY
Fri Feb  4 12:00:06 2022 daemon.notice hostapd: ACS: Automatic channel selection started, this may take a bit
Fri Feb  4 12:00:06 2022 daemon.notice hostapd: wlan1: interface state UNINITIALIZED->ACS
Fri Feb  4 12:00:06 2022 daemon.notice hostapd: wlan1: ACS-STARTED
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: ACS: Survey is missing noise floor
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: wlan0: ACS-COMPLETED freq=5180 channel=36
Fri Feb  4 15:58:59 2022 daemon.notice hostapd: wlan0: interface state ACS->HT_SCAN
Fri Feb  4 15:59:00 2022 daemon.err hostapd: ACS: Unable to collect survey data
Fri Feb  4 15:59:00 2022 daemon.err hostapd: ACS: All study options have failed
Fri Feb  4 15:59:00 2022 daemon.err hostapd: Interface initialization failed
Fri Feb  4 15:59:00 2022 daemon.notice hostapd: wlan1: interface state ACS->DISABLED
Fri Feb  4 15:59:00 2022 daemon.notice hostapd: wlan1: AP-DISABLED
Fri Feb  4 15:59:00 2022 daemon.err hostapd: ACS: Possibly channel configuration is invalid, please report this along with your config file.
Fri Feb  4 15:59:00 2022 daemon.err hostapd: ACS: Failed to start
Fri Feb  4 15:59:00 2022 daemon.notice hostapd: wlan1: AP-DISABLED
Fri Feb  4 15:59:00 2022 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan1 wasn't started
Fri Feb  4 15:59:00 2022 daemon.notice hostapd: nl80211: deinit ifname=wlan1 disabled_11b_rates=0
Fri Feb  4 15:59:00 2022 daemon.notice hostapd: wlan1: interface state DISABLED->DISABLED
Fri Feb  4 15:59:02 2022 daemon.notice hostapd: wlan0: interface state HT_SCAN->ENABLED
Fri Feb  4 15:59:02 2022 daemon.notice hostapd: wlan0: AP-ENABLED

1 Like