OpenWrt Travel Router #145
Replies: 19 comments
-
@morrownr Nick, this is so far the setup I have, let me know if you want me to add anything. If you have any idea what is causing the disabled WiFi radio, please let me know. This is a major issue, if the ComFast radio is disabled, I cannot access the router to configure the public WiFi through a wireless connection, which I will always do from my laptop. |
Beta Was this translation helpful? Give feedback.
-
I'm using a 951AX, same chipset as yours, on my main router via a USB3 port. Here is my /etc/config/wireless entry for the 951AX:
This is a WiFi 6 setup so adjust accordingly. I don't see anything obvious but maybe someone will see something as the week goes by. |
Beta Was this translation helpful? Give feedback.
-
@morrownr I have a WiFi6 setup also. I already see an issue, I have:
and you have:
The system does not see the WiFi adapter as part of the |
Beta Was this translation helpful? Give feedback.
-
I missed that. Review: You are running OpenWRT 22.03.2 on a RasPi4B and a CN-953AX. Correct? It is easy for me to get lost. Look at all the repos.
I've done it both ways. Let me check. Here is a size check on: WIFI_RAM_CODE_MT7961_1.bin 695624 - OpenWRT - this means the current install is the firmware from 7921e. I guess I need to fire up scp and upgrade. I blow things out a lot around here to make sure I am testing with clean platforms.
I am beat for today so I'll to get that for you tomorrow. Nick |
Beta Was this translation helpful? Give feedback.
-
Yes, the drivers from kernel site do nothing different upon reboot: # ls -l /lib/firmware/mediatek/
-rw-r--r-- 1 root root 92192 Nov 7 03:23 WIFI_MT7961_patch_mcu_1_2_hdr.bin
-rw-r--r-- 1 root root 92192 Sep 6 20:45 WIFI_MT7961_patch_mcu_1_2_hdr.bin.old
-rw-r--r-- 1 root root 716404 Nov 7 03:24 WIFI_RAM_CODE_MT7961_1.bin
-rw-r--r-- 1 root root 695624 Sep 6 20:45 WIFI_RAM_CODE_MT7961_1.bin.old |
Beta Was this translation helpful? Give feedback.
-
@morrownr when you have a chance, post the output of: uci show firewall.@zone[0]
uci show firewall.@zone[1]
uci show network
uci show wireless Thank you. |
Beta Was this translation helpful? Give feedback.
-
I added instructions for a temporary fix related to the ComFast interface being disabled on reboot. This needs to be improved, as if you change the USB port location, a new radio configuration is added. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Looks good, I have the same settings, more exactly I was looking how you use the wireless |
Beta Was this translation helpful? Give feedback.
-
Hey @fmunteanu A couple of things to throw your way: I have extensive experience using a RasPi4B as an AP. Very little experience using it with OpenWRT. I use OpenWRT on my main router while the Pi is an AP on the same network. In fact I have a guide on the Main Menu. It is item 9. I just perfer the RasPiOS with hostapd for the Pi as it allows me to more easily test wifi adapters (cause that is what I do a lot). With that said, the USB3 chipset in the Pi4B is not the greatest. I have filed a bug or two and I noticed a few attempts to overcome some hardware bugs with it. I have no idea if the patches were upstreamed to mainline. Just be aware. Have your tried the adapter in a USB2 port? USB2 is far more stable on the Pi4B. |
Beta Was this translation helpful? Give feedback.
-
@morrownr I can go this direction also, while this guide can remain in place as reference. I'm going to start a new discussion (See #146), so we don't pollute this one. |
Beta Was this translation helpful? Give feedback.
-
Well, in reading what I wrote again, I guess I should have been more clear. I was not trying to get you to go the direction of RasPiOS per se but rather warning that:
|
Beta Was this translation helpful? Give feedback.
-
I just tried now and I get the same results, without my |
Beta Was this translation helpful? Give feedback.
-
id use two 935 if i were you, I have one and will add this wifi usb adapter as the internal radios on the raspi4 dont have the wifi reach distance that I need. but then.. will you not have any cellular modems attached? I have two usb 4G modems and two 5G ethernet/usb modems all load balanced in openwrt. problem now is I use a powered usb hub and hoped to not need one. |
Beta Was this translation helpful? Give feedback.
-
Hi @fmunteanu and @morrownr - Thanks for all this info. I have been trying to set up something similar on openwrt but have been running into similar issues with the comfast devices. I have been using a CF-926AC but as its a multi-state device its been creating issues, I have gotten it to switch modes when unplugging the device and re-plugging it but it does not seem to want to auto switch on boot. I found this Issue on the Openwrt Github but seems like there is no advice on what to do. Some questions for you if you dont mind.
Thanks any help and info appreciated. I am happy to write a review for any of these devices, Ill most likely buy them all to try. |
Beta Was this translation helpful? Give feedback.
-
Hi @dieskim
I think going forward we should have plenty of adapters available that are single-state. I hope so. I try to do the best I can to warn Linux users to avoid multi-state adapters but it has been a challenge to do so at time... but I think things will be better going forward. I'd say there is an issue with the usb_modeswitch on openwrt. You do realize that the mino version of usb_modeswitch on openwrt is such that it does not come with the database so as to save room so you have to add your adapter to the appropriate file.
Depending on what you are trying to do, we should see some higher quality adapters running the mt7921au chipsets very soon. If you are only trying to setup a bridged AP, I recommend you take a look at my bridged guide as it gives a lot of info for setting up a RasPi4B as an AP and it uses the RasPiOS which is likely far more reliable running a multi-state adapter. Tell me what you are trying to do. Nick |
Beta Was this translation helpful? Give feedback.
-
Update, I now have all 3 of these adapters. Have been trying them out on a RPi 4. Here are some things I figured out: I ended up doing the hardware hack on the CF-926AC and that seems to work best as it just works like normal now. |
Beta Was this translation helpful? Give feedback.
-
I am a little behind on your adventure. What hardware hack are we talking about? If I recall correctly, the CF-926AC is a multi-state 7612u based adapter?
That could be an indication of power issues as the USB2 port will limit output to 500 mA as per spec. Using mt7921au chipset based adapters is a challenge on Pi's right now. When the RasPiOS is upgraded to kernel 6.1, that should make things easier. Hopefully the firmware is also upgraded when the new 6.1 kernel based RasPiOS is released. If so, that should ensure driver and firmware support is stable but that still leaves USB subsystem issues. The USB subsystem in Pi's, especially the Pi4B, leads to a lot of issues as it is very limited in how much power it can supply... so people then run out and get a powered hub to discover that many powered hubs do not play well with Pi's. This is kind of a one step at a time with a lot of research and questions to be asked before you finally learn what is stable for you. The single biggest issue you have to deal with is the USB subsystem in Pi's. |
Beta Was this translation helpful? Give feedback.
-
@morrownr I guess I forgot to mention but its most likely important to note, this is all on OpenWRT on the RPi 4. I did try RasPiOS and initially and that seemed better but OpenWRT is what I am trying to get working now. With that being said I am not sure when OpenWRT will include new kernels updates and fix some of these issues. Anyway thanks for the help so far. |
Beta Was this translation helpful? Give feedback.
-
Synopsis
I need a travel router to use in coffee shops or hotels and after looking at GL.iNet GL-AXT1800, I decided to build first a travel router with a Raspberry Pi 4B and ComFast CF-953AX WiFi adapter.
Objectives
Issues
OpenWrt Setup
I used the
openwrt-22.03.2-bcm27xx-bcm2711-rpi-4-squashfs-factory.img.gz
image for Raspberry Pi 4B.Operating System
Setup
hostname
androot
password:Network
Setup network configuration:
Firewall
Setup firewall configuration:
Wireless
Setup
radio0
internal wireless configuration:Check Internet connectivity:
Setup ComFast CF-953AX drivers:
Plugin the ComFast adapter into a USB3 port and setup
radio1
ComFast wireless configuration:Temporary fix for disabled interface on reboot:
Wireless Overview
UniFi VPN
strongSwan
documentationxl2tpd
documentationOpenWrt
strongSwan
documentation is currently missing a L2TP/IPsec page, use the link above as a reference forxl2tpd
setup.VPN Setup
Performance
The internal WiFi card limits the performance to max. 100Mbps. With
wlan0
set to internal WiFi andwlan1
set to CF-953AX WiFi, I reach almost the max speed limit when I'm next to the router:At 30 feet distance, with 2 walls between iPhone and Pi router:
Beta Was this translation helpful? Give feedback.
All reactions