Mochabin - Wifi device not found and Kernel of Snapshot outdated

Hello,

I am still experiencing a lot of issues with my Mochabin Router:

Kernel outdated:
The device is running OpenWrt SNAPSHOT (r21826-26c095cb4d), which is the latest version for the device as stated on the snapshot page for the CortexaA72 base. Sysupgrade is delivering no new entry.
When I want to update single package via LuCI, most of the refer to a newer Kernel:
The installed version of package kernel is not compatible, require 5.15.88-1-dc5abb30… while 5.15.71-1-48ff1bb3… is installed.

Wifi6 and SIM missing:
The device is having a Wifi6 2x2 and Bluetooth card inside. But I do not see them listet in LuCi. Even when connected via SSH, ifconfig returns no clue to any Wifi device.
Same for the integrated 5G SIM card adapter. Nothing, that points to this one.

Is anybody facing similar issues?
I was so fascinated, when the device was mentioned 1st time...SFP support, M2/SSD support, 5G SIM, Wifi6 and the features of OpenWRT like running AdGuard directly, VPN-Client for VPN services like NordVPN...even thought of getting my Deconz ZigBee stuff directly on it...but at the moment, I am lucky, to be connected to the LuCi Web Interface.

The latest snapshots are from yesterday
https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa72/

Latest stable is in
https://downloads.openwrt.org/releases/22.03.3/targets/mvebu/cortexa72/

The kernel error is due to the age of the installed snapshot.

So, would it be wise to go for the latest stable version and is there anything to watch on?
I am still at the beginning of my OpenWRT experience...

If you run on Snapshots you get the latest 5.15 kernel and all the new features, but I'd advise to use the stable build as you won't need to update the system everytime you need to install a new kernel module whenever a new snapshot is available. You won't miss out on much. Also you don't update with opkg, you do it by flashing the new build. Be sure to take a look in the Wiki and learn about how it works.

That you won't be able to use the WiFi card OOTB is tbx as OpenWRT doesn't ship all the kernel modules by default. What model is it?

If this is one of those NXP AX cards, forget about it, there is no upstream driver at all

2 Likes

In the meanwhile I have updated (or downgraded) the device to the latest stable version. Unfortunately, no additional devices for networking are available...no 5G, no Wifi. Honestly, this is quite disappointing, as the device was promoted OpenWRT compatible.

Am I the only user of this one?

I do have the device, but not the WiFi card as I already thought that it might be problematic. I am also not using OpenWRT on it, but RHEL and it works pretty well so far. I haven't done extensive testing though

If the vendor has sold it as fully supported by openwrt then they should be assisting you with details of how to set up all the hardware.

Edit: their website only lists the NXP wifi and they only provide kmods for kernel 4.1 so you're looking at replacing the wifi at the very least. There's no detail on what 5g modem they're shipping.

I have no idea what is the 5G modem, but that NXP 9098 will not be supported as long as NXP is just providing the drivers out of tree with bare minimum cfg80211/nl80211 compatibility.

What I see is that they were shipping Quectel EG25-G or RM520N-GL, both of which should be supportable at least with ModemManager, they should just appear on the USB bus and obviously require appropriate kmods.

1 Like

The OS RHEL was mentioned as alternative, has anybody more information about this OS? Eventhough, OpenWRT was for me the reason to contribute.

I have contacted yesterday evening the Croatian company Satura, which seems to do the modification on software for GlobalScaleTechnologies.

If I can provide any information from the device…information from a SSH session…just give me an idea what to post.

RHEL is Red Hat Enterprise Linux, OS has nothing to do with what you want.

I am from Sartura and did the Mochabin upstreaming a while ago based of v1.1 board.
Can you just run lsbusb, modem is 99% just USB based and requires appropriate packages.
WLAN card is not supportable as I explained multiple times

1 Like

This is what I got presented on lsusb:

Bus 003 Device 002: ID 0424:2134 SMSC USB2134B
Bus 002 Device 001: ID 1d6b:0003 Linux 5.10.161 xhci-hcd xHCI Host Controller
Bus 004 Device 002: ID 0424:5534 SMSC USB5534B
Bus 004 Device 001: ID 1d6b:0003 Linux 5.10.161 xhci-hcd xHCI Host Controller
Bus 001 Device 002: ID 067b:23f3 Prolific Technology Inc.  USB-Serial Controller 
Bus 001 Device 001: ID 1d6b:0002 Linux 5.10.161 xhci-hcd xHCI Host Controller
Bus 003 Device 001: ID 1d6b:0002 Linux 5.10.161 xhci-hcd xHCI Host Controller

What is the modem you have?

I was looking for the internal 5G modem. Nothing extra plugged in.

There isn't anything internal, 5G modem is an option that you plug into M.2 slot.

my lspci output is:

root@Mochabin:~# lspci
00:00.0 PCI bridge: Marvell Technology Group Ltd. 88F60x0/88F70x0/88F80x0/CN913x ARM SoC
01:00.0 Unassigned class [ff00]: Qualcomm QCA6390 Wireless Network Adapter

what driver do I need to use for WiFi? OpenWRT 22.03 does not support the WiFi adapter out of the box, but I guess QCA6390 could be supported?

I remember it worked with the installed snapshot version of OpenWRT which I have replaced with 22.03. Unfortunately after this "upgrade" all WiFi functionality was lost :cry:

You need to use snapshots and ath11k-pci driver.

22.03 has no support for ath11k

PCI memory space also needs tweaking, its on my todo list to make a PR.

I have used the OpenWrt firmware selector to create a snapshot image with ath11k. It still does not work:

[    9.440477] ath11k_pci 0000:01:00.0: BAR 0: can't assign [??? 0x00000000 flags 0x20000000] (bogus alignment)
[    9.450372] ath11k_pci 0000:01:00.0: failed to assign pci resource: -22
[    9.457037] ath11k_pci 0000:01:00.0: failed to claim device: -22
[    9.463329] ath11k_pci: probe of 0000:01:00.0 failed with error -22

Probably because of the missing PCI memory space tweaking you mentioned. Likely most or all OpenWRT Mochabins are affected by that. Please help to fix this issue - it is odd to have an OpenWRT router which cannot handle its hardware correctly after being updated. This fix would not only help me but every supporter of Mochabin who ordered the OpenWRT version. Thanks!

Yes, it's happening as the default for memory space is 15MB but ath11k requires at least 16MB.

Well, you can thank GlobalScale for this situation as the port and upstreaming was done before the final HW since they were quite late shipping the final boards.
I am happy that I got them to at least switch to QCA6390-s for the OpenWrt versions with WLAN as they planned on shipping those stupid NXP cards and wanted support in OpenWrt for those which is not possible.

Il make a PR and send the memory patch upstream to the kernel as well.

Here is the PR that fixes it:

1 Like