Omega 2S+: No WiFi Support with OpenWRT 21.02
-
@IBH Your configuration is using my dummy wifi ssid and key so that isn't going to work on your wifi. You need to update the configuration to utilise your wifi.
"ssid": "MYSSID", "encryption": "psk2", "key": "*********************************",
To search for available wifi, use this command iw dev apcli0 scan | grep -i ssid
To update the ssid and key you can either edit the file /etc/config/wireless or use these commands:
uci set wireless.sta.ssid='<ENTER YOUR SSID HERE>'
uci set wireless.sta.key='<ENTER YOUR WIFI PASSWORD HERE>'
uci commit wireless
service network restart
-
@crispyoz
I got this:
root@OpenWrt:/# iw dev apcli0 scan | grep -i ssid
command failed: No such device (-19)
Do I miss something?
I do not need it to connect to a network. I need it to provide one.
When I did wifi up the radio0 doesn't be up and I cannot see the ssid on my phone.
-
@crispyoz this is the output of lsmod:
root@OpenWrt:/# lsmod
cfg80211 286959 3 mt7603e,mt76,mac80211
compat 1346 2 mac80211,cfg80211
crc_ccitt 1774 0
gpio_button_hotplug 7058 0
ip_tables 10275 2 iptable_mangle,iptable_filter
ip6_tables 10087 2 ip6table_mangle,ip6table_filter
ip6t_REJECT 1298 0
ip6table_filter 754 0
ip6table_mangle 1234 0
ipt_REJECT 1234 0
iptable_filter 722 0
iptable_mangle 978 0
leds_gpio 3058 0
mac80211 534529 2 mt7603e,mt76
mmc_block 27130 0
mmc_core 91816 2 mmc_block,mtk_sd
mt76 40830 1 mt7603e
mt7603e 39804 0
mtk_sd 15170 0
nf_log_common 3000 2 nf_log_ipv4,nf_log_ipv6
nf_log_ipv4 3602 0
nf_log_ipv6 4274 0
nf_reject_ipv4 2313 1 ipt_REJECT
nf_reject_ipv6 2670 1 ip6t_REJECT
nls_base 5354 1 usbcore
ohci_hcd 24424 1 ohci_platform
ohci_platform 3442 0
usb_common 3134 2 ohci_hcd,usbcore
usbcore 144625 2 ohci_platform,ohci_hcd
x_tables 16295 17 ipt_REJECT,xt_time,xt_tcpudp,xt_multiport,xt_mark,xt_mac,xt_limit,xt_comment,xt_TCPMSS,xt_LOG,iptable_mangle,iptable_filter,ip_tables,ip6table_mangle,ip6table_filter,ip6_tables,ip6t_REJECT
xt_LOG 818 0
xt_TCPMSS 3218 0
xt_comment 562 0
xt_limit 1394 0
xt_mac 690 0
xt_mark 722 0
xt_multiport 1362 0
xt_tcpudp 1874 0
xt_time 1970 0
-
@crispyoz
root@OpenWrt:/# iw list
Wiphy phy0
wiphy index: 0
max # scan SSIDs: 4
max scan IEs length: 2257 bytes
max # sched scan SSIDs: 0
max # match sets: 0
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports AP-side u-APSD.
Device supports T-DLS.
Available Antennas: TX 0x1 RX 0x1
Configured Antennas: TX 0x1 RX 0x1
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor
* mesh point
* P2P-client
* P2P-GO
Band 1:
Capabilities: 0x17e
HT20/HT40
SM Power Save disabled
RX Greenfield
RX HT20 SGI
RX HT40 SGI
RX STBC 1-stream
Max AMSDU length: 3839 bytes
No DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: No restriction (0x00)
HT TX/RX MCS rate indexes supported: 0-7
Frequencies:
* 2412 MHz [1] (14.0 dBm)
* 2417 MHz [2] (14.0 dBm)
* 2422 MHz [3] (14.0 dBm)
* 2427 MHz [4] (14.0 dBm)
* 2432 MHz [5] (14.0 dBm)
* 2437 MHz [6] (14.0 dBm)
* 2442 MHz [7] (14.0 dBm)
* 2447 MHz [8] (14.0 dBm)
* 2452 MHz [9] (14.0 dBm)
* 2457 MHz [10] (14.0 dBm)
* 2462 MHz [11] (14.0 dBm)
* 2467 MHz [12] (14.0 dBm) (no IR)
* 2472 MHz [13] (14.0 dBm) (no IR)
* 2484 MHz [14] (14.0 dBm) (no IR)
valid interface combinations:
* #{ IBSS } <= 1, #{ managed, AP, mesh point, P2P-client, P2P-GO } <= 4,
total <= 4, #channels <= 1, STA/AP BI must match
HT Capability overrides:
* MCS: ff ff ff ff ff ff ff ff ff ff
* maximum A-MSDU length
* supported channel width
* short GI for 40 MHz
* max A-MPDU length exponent
* min MPDU start spacing
max # scan plans: 1
max scan plan interval: -1
max scan plan iterations: 0
Supported extended features:
* [ RRM ]: RRM
* [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
* [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
* [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
* [ AIRTIME_FAIRNESS ]: airtime fairness scheduling
* [ AQL ]: Airtime Queue Limits (AQL)
* [ SCAN_RANDOM_SN ]: use random sequence numbers in scans
* [ SCAN_MIN_PREQ_CONTENT ]: use probe request with only rate IEs in scans
* [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support
* [ DEL_IBSS_STA ]: deletion of IBSS station support
* [ SCAN_FREQ_KHZ ]: scan on kHz frequency support
* [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support
-
@crispyoz root@OpenWrt:/# iw dev
phy#0
Interface wlan0
ifindex 5
wdev 0x2
addr 40:a3:6b:c3:17:1f
type AP
txpower 14.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 0 0 0 0 0 0 0
-
@IBH Strange, everything looks correct to me, but iw status does not show the SSID. After you made changes to the wireless file, try rebootig and wait for a minute before running wifi status. Also try making these changes:
uci set wireless.radio0.channel='auto'
uci set wireless.sta.disabled='1'
uci commit wirelessThen reboot.
-
@crispyoz I've tried that too but still no luck
-
@IBH Maybe try using the 21.02 firmware released by OpenWRT: onion_omega2p-squashfs-sysupgrade.bin at https://downloads.openwrt.org/releases/21.02.5/targets/ramips/mt76x8/
If the wifi works using that firmware, then it points to an issue with the customized firmware you've built.
-
@IBH I put my firmware binary on my github, you just need to add the wifi configuration I posted earlier. If that works for you I can share my build config. If the Onin version works for you as provided by @Lazar-Demin go with that one as mine is based up on the standard OpenWrt build.
-
@crispyoz Thank you , we are using same as you an Openwrt build and we don't use onion-openwrt . Will check with your firmware binary and @Lazar-Demin's firmware too. In fact, it is strange that we have the wlan interface and everything looks good but we couldn't see the SSID and have the connection.
-
@IBH I wonder if you tried treating the AP WiFi SSID as hidden and connect manually. Your WiFi command shows he SSID is not configured as hidden but it's just a thought. Anyway we know my config works on my build so the answer is there somewhere.
Looking at the bigger picture, you probably should be using OpenWrt 22 anyway.
-
@crispyoz Do you know how we can verify if the AP WiFi SSID was treating as hidden ?
For OpenWrt 22, which tag you used for the upgrade from 21 to 22? does it openwrt-22.03 ?
-
@IBH Looking at the output of your "wifi status" command I can see the SSID is not configured to be hidden, I was just pondering if the issue was related to something on your build that caused it to be hidden.
For OpenWrt 22 I used "openwrt-22.03"
-
Hi @crispyoz, wifi works fine with your build image :
Could you please tell me if you have rebased the branch openwrt-22.03 into your branch ? Could you please share the steps you have done for upgrading your openwrt build ?THank you so much for your time and help.
-
@IBH I don't rebase. Just a git clone, then make menuconfig make kernel_menuconfig add my changes to uci defaults and files directories then make.
-
@crispyoz Do you have a GitHub repo where you've pushed your OpenWrt 22.03 clone with your config changes?
In fact, If I'm not wrong you git clone the base OpenWrt 22.03 (https://git.openwrt.org/openwrt/openwrt.git)then you've added your feeds and configs right?
-
@IBH My repo is currently private as I am working on something however here as the simple instructions to set up your build system:
Setup OpenWrt 22.03
cd
git clone https://git.openwrt.org/openwrt/openwrt.git openwrt22
cd openwrt22
scripts/feeds update -a
scripts/feeds install -a
git checkout openwrt-22.03
make menuconfig
Target System (MediaTek Ralink MIPS)
Subtarget (MT76x8 based boards)
Target Profile (Onion Omega2+)Then remove the /etc/config/network and /etc/config/wireless with the settings I gave you earlier in this thread.
-
@crispyoz one suggestion:
dogit checkout openwrt-22.03
beforescripts/feeds update -a
andscripts/feeds install -a
If you update and install the feeds before changing the branch, you might be using packages meant for the default branch of the openwrt/openwrt repo.
Thefeeds.conf.default
file points to different branches of the package repositories depending on the branch of openwrt/openwrt.See
feeds.conf.default
in the master branch vsfeeds.conf.default
in the openwrt-22.03 branch:
-
@Lazar-Demin @crispyoz thanks both. I got this after doings your steps:
scripts/config/conf: /lib/x86_64-linux-gnu/libc.so.6: versionGLIBC_2.33' not found (required by scripts/config/conf) scripts/config/conf: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.34' not found (required by scripts/config/conf)
/home/ibh/projects/onion-22-03/sources/openwrt-22/include/toplevel.mk:118: recipe for target 'defconfig' failed
make: *** [defconfig] Error 1
FYI: I'm using docker for building.
-
@IBH Which docker image are you using?
If it's the
onion/omega2-source
docker image mentioned in https://github.com/OnionIoT/source#options-for-using-the-build-system, I would recommend against compiling OpenWRT 21 and 22 with this image since it's based on Ubuntu 18.I suggest spinning up a new ubuntu 22.04 container and following OpenWRT's build system setup instructions: https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem