Can't get wifi working on x86

Hey @lifo,
RE: Chuwi Larkbox X 2023

Did you ever get the wifi working? I'm on OpenWRT 23.05.3, installed the iwlwifi drivers but still cant see the wifi adapter using hwinfo or lspci. wifi config does nothing.

any advice would be appreciated

I'm hoping to use this and Docker to process images from a POE camera and need to connect to a WiFi AP

Cheers

You will need to explicitly install the required kmod- and firmware- packages for your included WLAN card, as well as wpad-basic-mbedtls (or better). Be aware, the card will be dual-band, but not concurrent dual-band - and Intel WLAN cards are useless in AP mode (2.4 GHz only, with some more quirks).

1 Like

I can try but I only see iwlwifi-firmware-ax200 and iwlwifi-firmware-ax210 packages available.
So which driver did you installed?

Cheers for the replies.

This is the first time I've messed with OpenWRT so I am a bit clueless :slight_smile:

I installed PopOS on a live CD to expand the root partition and to get info about the WiFi card details. I can confirm that I could connect to WiFi this way and the PopOS driver works. Below is the output with the WiFi card lshw.

I've installed wpad-basic-mbedtls as mentioned above (cheers) and then tried both the ax200 and ax210 drivers seperately

when I type hwinfo in opwnWRT terminal I have these few lines re wifi

  <6>[    4.752188] Intel(R) Wireless WiFi driver for Linux
  <6>[    4.754562] iwlwifi 0000:00:14.3: enabling device (0000 -> 0002)
  <3>[    4.758568] iwlwifi: No config found for PCI dev 54f0/0244, rev=0x370, rfid=0x10c000
  <4>[    4.761654] iwlwifi: probe of 0000:00:14.3 failed with error -22

Not sure what to try next

Cheers again

I see it only in the master branch https://pkgs.staging.openwrt.org/packages?name=iwlwifi-firmware-ax101&branch=master&repo=&arch=x86_64&origin=&maintainer=

My guess is you will need to wait the next minor release (?)

should be available in the snapshots.

Your're all legends. Will give the snapshot version a go and let ye know how I go. Cheers

UPDATE:

It looks like its detecting the card now. Will try to set it up again properly in the coming days. Cheers again

I can confirm that using the snapshot got everything as expected. I had to install the following to:

  • edit partitions and move installation to ssd
  • get docker working
  • get wifi working
opkg install nas wpa-supplicant fuse-overlayfs iwlwifi-firmware-ax101 luci luci-ssl dockerd docker-compose luci-app-dockerman kmod-macvlan pciutils hwinfo resize2fs fdisk kmod-iwlwifi parted lsblk wipefs nano block-mount e2fsprogs

Cheers again for the advice.

1 Like

How's the wifi performance ?

Can't get it to work. I thought it was the settings but I managed to find an old wifi-n dongle with supported drivers and that worked straight away. I'm getting the following errors in iwlwifi through DMESG

[  496.268435] iwlwifi 0000:00:14.3: WRT: Collecting data: ini trigger 4 fired (delay=0ms).
[  496.272053] ieee80211 phy1: Hardware restart was requested
[  496.274908] iwlwifi 0000:00:14.3: FW error in SYNC CMD STA_CONFIG_CMD
[  496.278032] CPU: 0 PID: 167 Comm: kworker/u8:3 Tainted: G S      W          6.1.82 #0
[  496.281569] Hardware name: CHUWI Innovation And Technology(ShenZhen)co.,Ltd LarkBox X/LarkBox X, BIOS DNB19B V0.02 09/21/2023
[  496.286173] Workqueue: events_unbound wiphy_delayed_work_queue [cfg80211]
[  496.289409] Call Trace:
[  496.291315]  <TASK>
[  496.293196]  dump_stack_lvl+0x4a/0x65
[  496.295550]  dump_stack+0x10/0x16
[  496.297724]  iwl_trans_txq_send_hcmd+0x33c/0x350 [iwlwifi]
[  496.300555]  ? destroy_sched_domains_rcu+0x30/0x30
[  496.303173]  iwl_trans_send_cmd+0x61/0xf0 [iwlwifi]
[  496.305823]  iwl_mvm_send_cmd_pdu+0x41/0x70 [iwlmvm]
[  496.308512]  iwl_mvm_disable_link+0x6d5/0x780 [iwlmvm]
[  496.311245]  iwl_mvm_mld_update_sta+0x74/0xc0 [iwlmvm]
[  496.313973]  iwl_mvm_mac_sta_state_common+0x141/0x930 [iwlmvm]
[  496.316925]  iwl_mvm_mld_update_sta_links+0x980/0x1ee0 [iwlmvm]
[  496.319968]  drv_sta_state+0x84/0x360 [mac80211]
[  496.322623]  ieee80211_find_sta_by_link_addrs+0x5f9/0x14a0 [mac80211]
[  496.325746]  sta_info_move_state+0xe/0x20 [mac80211]
[  496.328422]  ieee80211_channel_switch_disconnect+0x1402/0x3c3b [mac80211]
[  496.331653]  ieee80211_sta_rx_queued_mgmt+0x93/0xa20 [mac80211]
[  496.334633]  ? update_load_avg+0x7b/0x680
[  496.337019]  ? kmem_cache_free+0x3bc/0x400
[  496.339423]  ieee80211_ibss_leave+0xbc6/0x1a80 [mac80211]
[  496.342230]  wiphy_delayed_work_queue+0xde/0x100 [cfg80211]
[  496.345125]  process_one_work+0x1e0/0x360
[  496.347597]  worker_thread+0x48/0x3e0
[  496.349874]  ? process_one_work+0x360/0x360
[  496.352299]  kthread+0xbf/0xe0
[  496.354393]  ? kthread_complete_and_exit+0x20/0x20
[  496.357019]  ret_from_fork+0x1f/0x30
[  496.359353]  </TASK>
[  496.361263] iwlwifi 0000:00:14.3: STA_CONFIG_CMD send failed, ret=0xfffffffb
[  496.364654] iwlwifi 0000:00:14.3: Failed to update sta link 0
[  496.367581] phy1-sta0: failed to move station <OBFUSCATED> to desired state
[  496.824139] iwlwifi 0000:00:14.3: Failed to trigger RX queues sync (-5)
[  496.827417] iwlwifi 0000:00:14.3: Failed to send flush command (-5)
[  496.830541] iwlwifi 0000:00:14.3: flush request fail
[  496.833191] iwlwifi 0000:00:14.3: Couldn't send the SESSION_PROTECTION_CMD: -5
[  496.836556] iwlwifi 0000:00:14.3: Failed to send flush command (-5)
[  496.839695] iwlwifi 0000:00:14.3: Failed to send MAC_CONFIG_CMD (action:2): -5
[  496.842951] iwlwifi 0000:00:14.3: failed to update MAC <OBFUSCATED>
[  496.846054] iwlwifi 0000:00:14.3: Failed to send LINK_CONFIG_CMD (action:2): -5
[  496.849365] iwlwifi 0000:00:14.3: PHY ctxt cmd error. ret=-5
[  496.872484] iwlwifi 0000:00:14.3: WRT: Invalid buffer destination
[  496.975609] iwlwifi 0000:00:14.3: WFPM_UMAC_PD_NOTIFICATION: 0x20
[  496.977001] iwlwifi 0000:00:14.3: RFIm is deactivated, reason = 4
[  496.977675] iwlwifi 0000:00:14.3: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[  496.984979] iwlwifi 0000:00:14.3: WFPM_AUTH_KEY_0: 0x90
[  496.987843] iwlwifi 0000:00:14.3: CNVI_SCU_SEQ_DATA_DW9: 0x10
[  528.158375] phy1-sta0: authenticate with <OBFUSCATED>
[  528.170353] phy1-sta0: send auth to <OBFUSCATED> (try 1/3)
[  528.205199] phy1-sta0: authenticated
[  528.215716] phy1-sta0: associate with <OBFUSCATED> (try 1/3)
[  528.229120] phy1-sta0: RX AssocResp from <OBFUSCATED> (capab=0x1511 status=0 aid=3)
[  528.236577] iwlwifi 0000:00:14.3: Microcode SW error detected. Restarting 0x0.
[  528.242332] iwlwifi 0000:00:14.3: Start IWL Error Log Dump:
[  528.246843] iwlwifi 0000:00:14.3: Transport status: 0x0000004B, valid: 6
[  528.250684] iwlwifi 0000:00:14.3: Loaded firmware version: 83.e8f84e98.0 so-a0-hr-b0-83.ucode
[  528.254606] iwlwifi 0000:00:14.3: 0x00000071 | NMI_INTERRUPT_UMAC_FATAL
[  528.257890] iwlwifi 0000:00:14.3: 0x00A08200 | trm_hw_status0
[  528.260792] iwlwifi 0000:00:14.3: 0x00000000 | trm_hw_status1
[  528.263699] iwlwifi 0000:00:14.3: 0x004D9024 | branchlink2
[  528.266543] iwlwifi 0000:00:14.3: 0x004CF2F2 | interruptlink1
[  528.269357] iwlwifi 0000:00:14.3: 0x004CF2F2 | interruptlink2
[  528.272162] iwlwifi 0000:00:14.3: 0x00015080 | data1
[  528.274738] iwlwifi 0000:00:14.3: 0x00000010 | data2
[  528.277423] iwlwifi 0000:00:14.3: 0x00000000 | data3
[  528.280094] iwlwifi 0000:00:14.3: 0x0000D6EA | beacon time
[  528.282925] iwlwifi 0000:00:14.3: 0x77F8D950 | tsf low
[  528.285658] iwlwifi 0000:00:14.3: 0x000009FC | tsf hi
[  528.288352] iwlwifi 0000:00:14.3: 0x00000000 | time gp1
[  528.291107] iwlwifi 0000:00:14.3: 0x01DE82A6 | time gp2
[  528.293860] iwlwifi 0000:00:14.3: 0x00000001 | uCode revision type
[  528.296906] iwlwifi 0000:00:14.3: 0x00000053 | uCode version major
[  528.300033] iwlwifi 0000:00:14.3: 0xE8F84E98 | uCode version minor
[  528.303152] iwlwifi 0000:00:14.3: 0x00000370 | hw version
[  528.306057] iwlwifi 0000:00:14.3: 0x00C80002 | board version
[  528.309021] iwlwifi 0000:00:14.3: 0x80DEFF00 | hcmd
[  528.311749] iwlwifi 0000:00:14.3: 0x24020000 | isr0
[  528.314390] iwlwifi 0000:00:14.3: 0x21000000 | isr1
[  528.317035] iwlwifi 0000:00:14.3: 0x48F00002 | isr2
[  528.319689] iwlwifi 0000:00:14.3: 0x00C3000D | isr3
[  528.322333] iwlwifi 0000:00:14.3: 0x00000000 | isr4
[  528.324971] iwlwifi 0000:00:14.3: 0x0101001C | last cmd Id
[  528.327812] iwlwifi 0000:00:14.3: 0x00015080 | wait_event
[  528.330618] iwlwifi 0000:00:14.3: 0x00000288 | l2p_control
[  528.333444] iwlwifi 0000:00:14.3: 0x00018034 | l2p_duration
[  528.336304] iwlwifi 0000:00:14.3: 0x000000BF | l2p_mhvalid
[  528.339135] iwlwifi 0000:00:14.3: 0x00EF00F8 | l2p_addr_match
[  528.342037] iwlwifi 0000:00:14.3: 0x00000009 | lmpm_pmg_sel
[  528.344973] iwlwifi 0000:00:14.3: 0x00000000 | timestamp
[  528.347818] iwlwifi 0000:00:14.3: 0x0000A8D0 | flow_handler
[  528.350725] iwlwifi 0000:00:14.3: Start IWL Error Log Dump:
[  528.353579] iwlwifi 0000:00:14.3: Transport status: 0x0000004B, valid: 7
[  528.356788] iwlwifi 0000:00:14.3: 0x20101A0D | ADVANCED_SYSASSERT
[  528.359793] iwlwifi 0000:00:14.3: 0x00000000 | umac branchlink1
[  528.362750] iwlwifi 0000:00:14.3: 0x804703E0 | umac branchlink2
[  528.365724] iwlwifi 0000:00:14.3: 0x010260C4 | umac interruptlink1
[  528.368771] iwlwifi 0000:00:14.3: 0x00000000 | umac interruptlink2
[  528.371803] iwlwifi 0000:00:14.3: 0x00000006 | umac data1
[  528.374602] iwlwifi 0000:00:14.3: 0x00000001 | umac data2
[  528.377417] iwlwifi 0000:00:14.3: 0x00FF0FFF | umac data3
[  528.380217] iwlwifi 0000:00:14.3: 0x00000053 | umac major
[  528.383014] iwlwifi 0000:00:14.3: 0xE8F84E98 | umac minor
[  528.385902] iwlwifi 0000:00:14.3: 0x01DE82A1 | frame pointer
[  528.388781] iwlwifi 0000:00:14.3: 0xC0886BBC | stack pointer
[  528.391662] iwlwifi 0000:00:14.3: 0x0050050F | last host cmd
[  528.394543] iwlwifi 0000:00:14.3: 0x00000000 | isr status reg
[  528.397493] iwlwifi 0000:00:14.3: IML/ROM dump:
[  528.400033] iwlwifi 0000:00:14.3: 0x00000B03 | IML/ROM error/state
[  528.403109] iwlwifi 0000:00:14.3: 0x00005060 | IML/ROM data1
[  528.406027] iwlwifi 0000:00:14.3: 0x00000090 | IML/ROM WFPM_AUTH_KEY_0
[  528.409287] iwlwifi 0000:00:14.3: Fseq Registers:
[  528.411988] iwlwifi 0000:00:14.3: 0x60000000 | FSEQ_ERROR_CODE
[  528.415034] iwlwifi 0000:00:14.3: 0x80350002 | FSEQ_TOP_INIT_VERSION
[  528.418240] iwlwifi 0000:00:14.3: 0x00150001 | FSEQ_CNVIO_INIT_VERSION
[  528.421494] iwlwifi 0000:00:14.3: 0x0000A482 | FSEQ_OTP_VERSION
[  528.424562] iwlwifi 0000:00:14.3: 0x00000003 | FSEQ_TOP_CONTENT_VERSION
[  528.427769] iwlwifi 0000:00:14.3: 0x4552414E | FSEQ_ALIVE_TOKEN
[  528.430757] iwlwifi 0000:00:14.3: 0x00080400 | FSEQ_CNVI_ID
[  528.433632] iwlwifi 0000:00:14.3: 0x00000501 | FSEQ_CNVR_ID
[  528.436434] iwlwifi 0000:00:14.3: 0x00080400 | CNVI_AUX_MISC_CHIP
[  528.439375] iwlwifi 0000:00:14.3: 0x00000501 | CNVR_AUX_MISC_CHIP
[  528.442315] iwlwifi 0000:00:14.3: 0x05B0905B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
[  528.445963] iwlwifi 0000:00:14.3: 0x0000025B | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
[  528.449708] iwlwifi 0000:00:14.3: 0x00150001 | FSEQ_PREV_CNVIO_INIT_VERSION
[  528.453016] iwlwifi 0000:00:14.3: 0x00350002 | FSEQ_WIFI_FSEQ_VERSION
[  528.456164] iwlwifi 0000:00:14.3: 0x3C79275F | FSEQ_BT_FSEQ_VERSION
[  528.459255] iwlwifi 0000:00:14.3: 0x000000C8 | FSEQ_CLASS_TP_VERSION
[  528.462459] iwlwifi 0000:00:14.3: UMAC CURRENT PC: 0x8048f214
[  528.465475] iwlwifi 0000:00:14.3: LMAC1 CURRENT PC: 0xd0
[  528.468454] iwlwifi 0000:00:14.3: WRT: Collecting data: ini trigger 4 fired (delay=0ms).
[  528.472152] ieee80211 phy1: Hardware restart was requested
[  528.475089] iwlwifi 0000:00:14.3: FW error in SYNC CMD STA_CONFIG_CMD
[  528.478309] CPU: 1 PID: 44 Comm: kworker/u8:1 Tainted: G S      W          6.1.82 #0
[  528.481907] Hardware name: CHUWI Innovation And Technology(ShenZhen)co.,Ltd LarkBox X/LarkBox X, BIOS DNB19B V0.02 09/21/2023
[  528.486637] Workqueue: events_unbound wiphy_delayed_work_queue [cfg80211]
[  528.489950] Call Trace:
[  528.491938]  <TASK>
[  528.493822]  dump_stack_lvl+0x4a/0x65
[  528.496193]  dump_stack+0x10/0x16
[  528.498438]  iwl_trans_txq_send_hcmd+0x33c/0x350 [iwlwifi]
[  528.501359]  ? destroy_sched_domains_rcu+0x30/0x30
[  528.504058]  iwl_trans_send_cmd+0x61/0xf0 [iwlwifi]
[  528.506805]  iwl_mvm_send_cmd_pdu+0x41/0x70 [iwlmvm]
[  528.509566]  iwl_mvm_disable_link+0x6d5/0x780 [iwlmvm]
[  528.512299]  iwl_mvm_mld_update_sta+0x74/0xc0 [iwlmvm]
[  528.515027]  iwl_mvm_mac_sta_state_common+0x141/0x930 [iwlmvm]
[  528.517972]  iwl_mvm_mld_update_sta_links+0x980/0x1ee0 [iwlmvm]
[  528.521018]  drv_sta_state+0x84/0x360 [mac80211]
[  528.523673]  ieee80211_find_sta_by_link_addrs+0x5f9/0x14a0 [mac80211]
[  528.526805]  sta_info_move_state+0xe/0x20 [mac80211]
[  528.529480]  ieee80211_channel_switch_disconnect+0x1402/0x3c3b [mac80211]
[  528.532709]  ieee80211_sta_rx_queued_mgmt+0x93/0xa20 [mac80211]
[  528.535678]  ? update_load_avg+0x7b/0x680
[  528.538058]  ieee80211_ibss_leave+0xbc6/0x1a80 [mac80211]
[  528.540869]  wiphy_delayed_work_queue+0xde/0x100 [cfg80211]
[  528.543723]  process_one_work+0x1e0/0x360
[  528.546111]  worker_thread+0x48/0x3e0
[  528.548392]  ? process_one_work+0x360/0x360
[  528.550825]  kthread+0xbf/0xe0
[  528.552925]  ? kthread_complete_and_exit+0x20/0x20
[  528.555629]  ret_from_fork+0x1f/0x30
[  528.557880]  </TASK>
[  528.559714] iwlwifi 0000:00:14.3: STA_CONFIG_CMD send failed, ret=0xfffffffb
[  528.563018] iwlwifi 0000:00:14.3: Failed to update sta link 0
[  528.565951] phy1-sta0: failed to move station <OBFUSCATED> to desired state
[  529.017399] iwlwifi 0000:00:14.3: Failed to trigger RX queues sync (-5)
[  529.020657] iwlwifi 0000:00:14.3: Failed to send flush command (-5)
[  529.023702] iwlwifi 0000:00:14.3: flush request fail
[  529.026596] iwlwifi 0000:00:14.3: Couldn't send the SESSION_PROTECTION_CMD: -5
[  529.029955] iwlwifi 0000:00:14.3: Failed to send flush command (-5)
[  529.033066] iwlwifi 0000:00:14.3: Failed to send MAC_CONFIG_CMD (action:2): -5
[  529.036563] iwlwifi 0000:00:14.3: failed to update MAC <OBFUSCATED>
[  529.039771] iwlwifi 0000:00:14.3: Failed to send LINK_CONFIG_CMD (action:2): -5
[  529.043160] iwlwifi 0000:00:14.3: PHY ctxt cmd error. ret=-5
[  529.066235] iwlwifi 0000:00:14.3: WRT: Invalid buffer destination
[  529.169507] iwlwifi 0000:00:14.3: WFPM_UMAC_PD_NOTIFICATION: 0x20
[  529.170883] iwlwifi 0000:00:14.3: RFIm is deactivated, reason = 4
[  529.171726] iwlwifi 0000:00:14.3: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[  529.179096] iwlwifi 0000:00:14.3: WFPM_AUTH_KEY_0: 0x90
[  529.181983] iwlwifi 0000:00:14.3: CNVI_SCU_SEQ_DATA_DW9: 0x10

I have the following in the wifi settings

but for love not money I can't get it to connect. Ive tried:

  • Different modes
  • bands
  • channels
  • widths

The ax101 card can detect nearby wifi networks and tries to connect then defines an associated station, which disappears after 2seconds. I then get the error messages above.

With the realtek card the associated station remains and I can connect to the internet with no issues and no LAN connection to the main router.

Any ideas?

what @slh posted earlier, stay away from intel :expressionless:

1 Like

Sadly there's (normally) no point of trying to shoehorn WLAN cards on x86_64 at all, not because it's not possible, but for many reasons:

  • small boards (almost anything under µATX) don't have enough mini-PCIe or M.2 slots for two- or three (6 GHz) WLAN cards
  • µATX means large case and antennas don't like a big chunk of metal (the case) that much - and Mu-MIMO requires a certain distance and spatial distribution of the antennas (not possible on the slot bracket)
  • good WLAN cards aren't cheap (a full OpenWrt supported AP often costs less)
  • pigtails and antennas aren't cheap either, and you need 8-20 of them
  • many AP mode capable WLAN cards are not standards compliant (size, power consumption (10 watts on 3.3V, heat dissipation)

Yes, there may be reasons to do this nevertheless (e.g. for development purposes), but it's not cheap.


…the situation for client-mode WLAN is obviously different (cards a much cheaper - and you only need a single one).

2 Likes

I appreciate all the advice.

Luckily I only need wifi in client mode and am going to try the following USB wifi device for now

USB Adapter Dual Band RTL8812AU 2.4G/5GHz Wireless Wi-Fi Dongle Network Card USB 3.0 Adapter For Windows 7/10/11/kali Linux - AliExpress

At the end of the day what I'm hoping to achieve is:

  • openWRT with a connected POE security camera
  • docker support to run python scripts to filter the images/videos and provide an API to control the camera PTZ and settings.
  • ability to choose between 4g, Wifi or LAN connections (dependant on whats available at the location) to connect to the internet and send the filtered images to the cloud for futher processed using AI (computer vision)

I have this already working using a Raspberry Pi but I figured that OpenWRT on an x86 Alder Lake N100 would:

  • allow me to move away from an SD card based OS
  • integrated dual lan ports
  • more storage and RAM
  • better cooling (integrated copper heat sink and fan)
  • (most importantly) more/easier control over security settings

it might work as a wirless client, but probably not as an AP.

1 Like

Saw that Panda device yesterday but couldn't find one for sale in Australia :(. Amazon could send from the US but it would take 2wks and with import duties etc I can't justify the expense :frowning: .

Looks like a great device :slight_smile:

you should probably read the whole thread :wink:

1 Like

:man_facepalming:

:rofl:

oops

No, don't please skip Realtek chipset, OpenWrt current release uses 5.15 LTS which has no support with all those Realtek WiFi at all, I have plenty of them at home, with desktop linux distro of course you can play with DKMS to install driver for your kernel but this is not the case of OpenWrt, from what I know some of them only in kernel after v6.2

RPi can boot from USB so USB flash drive/SSD are commonly used, for router speed doesn't really matter. If it does matter then Samsung FitPlus, Lexar JumpDrive S47 are your good friend (my SBC desktop using them as boot drive, small footprint but very fast)
Storage/RAM probably doesn't matter when you use it as router?
RPi has all-in-one metal case which is really great (but yes no dual LAN).
Not sure what security settings you are talking about here, both are OpenWrt and they should be the same?