Arcadyan AW1000 NSS Builds

this is "some" of my kernel logs

[   12.197915] qmi_wwan_q 4-1:1.4: cdc-wdm0: USB WDM device
[   12.198127] qmi_wwan_q 4-1:1.4: Quectel RG500Q-EA work on RawIP mode
[   12.204029] qmi_wwan_q 4-1:1.4: rx_urb_size = 31744
[   12.209184] qmi_wwan_q 4-1:1.4 wwan0: register 'qmi_wwan_q' at usb-xhci-hcd.2.auto-1, RMNET/USB device, 6a:1d:05:96:8e:cf
[   12.213937] net wwan0: qmap_register_device wwan0_1
[   12.224545] usbcore: registered new interface driver qmi_wwan_q
[   12.240743] usbcore: registered new interface driver qmi_wwan_f
[   12.247992] usbcore: registered new interface driver cdc_ether
[   12.249236] usbcore: registered new interface driver cdc_ncm
[   12.253470] Loading modules backported from Linux version v6.11.2-0-g7aa21fec187b
[   12.258550] Backport generated by backports.git v6.1.110-1-32-gc61f71fe0942
[   12.275020] usbcore: registered new interface driver qmi_wwan

I do not see "NSS context created" on wwan0

software / hw offloading as well as packet steering is disabled

this is what I am getting when doing speedtest

I think you have compiled the qmi_wwan_q drivers from ImmortalWrt and not from Qosmio's nss-packages repo.

Not sure if you are using ImmortalWrt as the base but try using Qosmio's openwrt-ipq repo as well.

This is right. I am using this as a workaround because im not able to have quectel run from qosmios.

Qosmios repo
Immortal wwan packages

Are you using arcadyan 1000 with quectel protocol from qosmio?

Nice gui, now i want it now! @xHikari are You building image for other devices like x86 or dynalink wrx36?

When compiling wwan from qosmio, my modem continously restarts when quectel-cm starts....

As mentioned by @xHikari here:

You will need to enable all NSS DRV capabilities.
You can do this by manually editing the .config file and ensure that the following configs are set.

CONFIG_NSS_DRV_BRIDGE_ENABLE=y
CONFIG_NSS_DRV_CAPWAP_ENABLE=y
CONFIG_NSS_DRV_C2C_ENABLE=y
CONFIG_NSS_DRV_CLMAP_ENABLE=y
CONFIG_NSS_DRV_CRYPTO_ENABLE=y
CONFIG_NSS_DRV_DTLS_ENABLE=y
CONFIG_NSS_DRV_GRE_ENABLE=y
CONFIG_NSS_DRV_IGS_ENABLE=y
CONFIG_NSS_DRV_IPSEC_ENABLE=y
CONFIG_NSS_DRV_IPV4_REASM_ENABLE=y
CONFIG_NSS_DRV_IPV6_ENABLE=y
CONFIG_NSS_DRV_IPV6_REASM_ENABLE=y
CONFIG_NSS_DRV_L2TP_ENABLE=y
CONFIG_NSS_DRV_LAG_ENABLE=y
CONFIG_NSS_DRV_MAPT_ENABLE=y
CONFIG_NSS_DRV_MATCH_ENABLE=y
CONFIG_NSS_DRV_MIRROR_ENABLE=y
CONFIG_NSS_DRV_OAM_ENABLE=y
CONFIG_NSS_DRV_PORTID_ENABLE=y
CONFIG_NSS_DRV_LSO_RX_ENABLE=y
CONFIG_NSS_DRV_PPPOE_ENABLE=y
CONFIG_NSS_DRV_PPTP_ENABLE=y
CONFIG_NSS_DRV_PVXLAN_ENABLE=y
CONFIG_NSS_DRV_QRFS_ENABLE=y
CONFIG_NSS_DRV_QVPN_ENABLE=y
CONFIG_NSS_DRV_RMNET_ENABLE=y
CONFIG_NSS_DRV_SHAPER_ENABLE=y
CONFIG_NSS_DRV_SJACK_ENABLE=y
CONFIG_NSS_DRV_TLS_ENABLE=y
CONFIG_NSS_DRV_TRUSTSEC_ENABLE=y
CONFIG_NSS_DRV_UDP_ST_ENABLE=y
CONFIG_NSS_DRV_TSTAMP_ENABLE=y
CONFIG_NSS_DRV_TUN6RD_ENABLE=y
CONFIG_NSS_DRV_TUNIPIP6_ENABLE=y
CONFIG_NSS_DRV_VIRT_IF_ENABLE=y
CONFIG_NSS_DRV_VLAN_ENABLE=y
CONFIG_NSS_DRV_VXLAN_ENABLE=y
CONFIG_NSS_DRV_WIFIOFFLOAD_ENABLE=y
CONFIG_NSS_DRV_WIFI_EXT_VDEV_ENABLE=y
CONFIG_NSS_DRV_WIFI_MESH_ENABLE=y
CONFIG_NSS_DRV_WIFI_LEGACY_ENABLE=y

Also, we have merged the IP multiplexing features for quectel-cm to Qosmio's NSS packages repo so you need to add this line in /etc/modules.conf

options qmi_wwan_q qmap_mode=2
1 Like

Thanks for this

I have rebuild from scratch with this guide enabling all nss drv and the module.conf

The modem does not restsrt anymore and connects using quectel. It is now showing the operator and signal but I am stucked with "waiting for connection data"

Can you post the system and kernel logs?

I have uploaded it since its too big please see below
https://github.com/chanrio13/AW1000_TEST/blob/main/kernel.txt
https://github.com/chanrio13/AW1000_TEST/blob/main/SYSLOG.txt

What ive done so far is AT+CFUN=1 on start up
And usbnet to 0 for qmi/rmnet
Same result

I am having the same issue. I was able to obtain an IP by changing the protocol to QMI or Modemmanager then back to Quectel. After a restart, my aw1000 obtains an IP.

Running AT+CFUN=1,1 gives me an error OK2024/10/26 00:51:07 socat[12381] W cannot restore terminal settings on fd 5: I/O error

Sadly, I don't have 5G in my area.

Just sharing

Im able to fix mine using the following method

  1. Clone from qosmio (must be wwan nss branch)
  2. Enable all nss_drv config from .config
  3. Search for rmnet and enable all with regards to rmnet in .config
  4. Create a dhcp client interface @5g_4 (not the actual quectel interface @5G

If you test this and it works for you, kindly provide feedback

I'm actually building using the wwan branch as I can see that @XT-Martinez and @xHikari was committing there.

I am no in the process how to succesfully setup the wwan in the build instead of manually configuring it after flash.

Will let you know of this setup.

Just an update for everyone.

I was able to successfully build a working fw OOB after flash.

What I did is scrape all the commits in nss-packages and found out this Commit 0c05fe6
Update quectel.sh (#36) ยท qosmio/nss-packages@0c05fe6.

I reverted the commit back in my buildroot and quectel protocol now works flawlessly.

[   12.668179] qca-nss 39000000.nss: NSS FW Version: NSS.HK.11.4.0.5-6-R
[   12.668230] qca-nss 39000000.nss: fw of size 835960 bytes copied to addr: 40000000, nss_id: 0
[   12.675519] 
[   12.717486] qca-nss 39000000.nss: NSS core 0 booted successfully
[   12.839362] qca-nss 39400000.nss: fw of size 292296 bytes copied to addr: 40800000, nss_id: 1
[   12.840278] 
[   12.852065] qca-nss 39400000.nss: NSS core 1 booted successfully
[   12.853984] gre: GRE over IPv4 demultiplexor driver
[   12.858427] ip_gre: GRE over IPv4 tunneling driver
[   12.865416] QCA multicast snooping installed successfully
[   12.868161] usbcore: registered new interface driver cdc_wdm
[   12.873187] rmnet_nss_init(): initializing rmnet_nss
[   12.906505] qmi_wwan_q 4-1:1.4: cdc-wdm0: USB WDM device
[   12.906749] qmi_wwan_q 4-1:1.4: Quectel RG500Q-EA work on RawIP mode
[   12.912625] qmi_wwan_q 4-1:1.4: rx_urb_size = 31744
[   12.917848] qmi_wwan_q 4-1:1.4 wwan0: register 'qmi_wwan_q' at usb-xhci-hcd.2.auto-1, RMNET/USB device, ca:d1:c6:4b:5d:7c
[   13.098586] net wwan0 wwan0_1: NSS context created
[   13.098638] net wwan0: qmap_register_device wwan0_1
[   13.103663] net wwan0 wwan0_2: NSS context created
[   13.107100] net wwan0: qmap_register_device wwan0_2
[   13.112097] usbcore: registered new interface driver qmi_wwan_q

Here's the kernel log as well. There are still cpu spikes when doing speedtest but not as much without NSS.

Are you using the main or wwan branch

I am using the main branch. I just reverted the mentioned commit.

@XT-Martinez @xHikari what is the commandline? utility for quectel or rmnet?

I just want to create a script that involves pulling out the current network type(5GSA,5GNSA and 4GLTE).

You can use AT+QCAINFO AT command for that

Yeah, I was able to figure that out. I am using picocom to send AT commands from my sh script. So far it works great.

Hi sir, I need help on how you're able to detect the AW1000 using the uart method. Because I have an Aw1000, it is bricked. I did not do anything; I just turned it on, and then the led light stayed only in white color.