OpenWrt Forum Archive

Topic: PC Engines Alix 2 board with a mini pci wifi adapter

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello.
I have a PC Engines Alix 2 board with a mini pci wifi adapter:
Model: WLM54GP23ESD; FCC ID: TK4-WLM54GP23ESD (Atheros)
i.imgur.com/4jWkLOA.jpg

I flashed the pre built /chaos_calmer/15.05.1/x86/generic/openwrt-15.05.1-x86-generic-combined-ext4.img image.
It boots and I can access it via LuCi and SSH, but WiFi does not seem to work. Running the ifconfig command does not show a wlan0 interface. I already installed some drivers with opkg which were listed in the wireless wiki page (ath5k, ...), but no success.
Is my wifi card unsupported?

bump

Probably worth stating the drivers you loaded, your config files and relevant log entries.

That said if you look on the PC-Engines site they basically offer compex and wistron cards. 
https://www.pcengines.ch/newshop.php?c=4

The old product list contains, I think, all the items they offered which does not seem to include this card.
https://www.pcengines.ch/product.htm

I had discussions with them a couple years back on this and seem to recall them suggesting Compex, but do not recall the item number.  Also be aware that if you read the card info it says they are dual band, but what that really means is they can do either band, but not both bands simultaneously.

I found using a separate AP just works better and easier to locate in a good location.

Compex worth a try. I use Compex on APU2 running openwrt. And used Compex on ALIX runing voyage.

Thanks for your replies.
The hardware previously was used with fli4l which is also a router firmware similar to OpenWRT.
With the fli4l software the wifi card worked, so I do not think it is a incompatibility between the board and the mini pci card...
fli4l is also linux based, so linux drivers for the wifi card should be available?
The reason I want to switch to OpenWRT is that it seems more flexible configuration wise (in fli4l you have to choose your packages at build time).
I used the package manager to install the following packages: kmod-ath9k, kmod-ath5k, kmod-b43, kmod-mac80211, kmod-cfg80211, wireless-tools

Which log files should I post and where can I find them?

First you need to be sure the PCI bus is working.  The bus itself requires a kernel driver. 

Install pcitools and use lspci to see if your card is found on the PCI bus.  Then look at the wifi driver.  This should be an ath5k card.  IN that case, you will not need ath9k (Atheros n cards) or b43 (Broadcom).

(Last edited by mk24 on 15 Jul 2017, 18:45)

root@OpenWrt-Alix2-AP:~# lspci
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode companion] Host Bridge (rev 33)
00:01.2 Entertainment encryption device: Advanced Micro Devices, Inc. [AMD] Geode LX AES Security Block
00:09.0 Ethernet controller: VIA Technologies, Inc. VT6105M [Rhine-III] (rev 96)
00:0a.0 Ethernet controller: VIA Technologies, Inc. VT6105M [Rhine-III] (rev 96)
00:0b.0 Ethernet controller: VIA Technologies, Inc. VT6105M [Rhine-III] (rev 96)
00:0c.0 Ethernet controller: Qualcomm Atheros AR2413/AR2414 Wireless Network Adapter [AR5005G(S) 802.11bg] (rev 01)
00:0f.0 ISA bridge: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode companion] ISA (rev 03)
00:0f.2 IDE interface: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode companion] IDE (rev 01)
00:0f.4 USB controller: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode companion] OHC (rev 02)
00:0f.5 USB controller: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode companion] EHC (rev 02)

The wireless card is found: Ethernet controller: Qualcomm Atheros AR2413/AR2414 Wireless Network Adapter [AR5005G(S) 802.11bg] (rev 01)

I removed the other drivers and only kept kmod-ath5k and regenerated the config but still no wlan0 when running the ifconfig command...

Is installed the generic x86 image, would the geode image be better / more suitable?

(Last edited by gf779sgf9sfugsgf9sgg on 15 Jul 2017, 19:17)

Check dmesg for any ath5k related messages.  Run iw list to see if any wifi device exists.

root@OpenWrt-Alix2-AP:~# dmesg | grep ath5k
[    8.083798] ath5k 0000:00:0c.0: registered as 'phy0'
[    8.754012] ath5k: phy0: Atheros AR2413 chip found (MAC: 0x78, PHY: 0x45)
root@OpenWrt-Alix2-AP:~# iw list
Wiphy phy0
        max # scan SSIDs: 4
        max scan IEs length: 2285 bytes
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Available Antennas: TX 0x3 RX 0x3
        Configured Antennas: TX 0x3 RX 0x3
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
        Band 1:
                Frequencies:
                        * 2412 MHz [1] (30.0 dBm)
                        * 2417 MHz [2] (30.0 dBm)
                        * 2422 MHz [3] (30.0 dBm)
                        * 2427 MHz [4] (30.0 dBm)
                        * 2432 MHz [5] (30.0 dBm)
                        * 2437 MHz [6] (30.0 dBm)
                        * 2442 MHz [7] (30.0 dBm)
                        * 2447 MHz [8] (30.0 dBm)
                        * 2452 MHz [9] (30.0 dBm)
                        * 2457 MHz [10] (30.0 dBm)
                        * 2462 MHz [11] (30.0 dBm)
                        * 2467 MHz [12] (disabled)
                        * 2472 MHz [13] (disabled)
                        * 2484 MHz [14] (disabled)
        valid interface combinations:
                 * #{ managed } <= 2048, #{ AP, mesh point } <= 4, #{ IBSS } <= 1,
                   total <= 2048, #channels <= 1
        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

//edit:
Just did a clean flash with the x86 geode pre-built image, enabled wifi over LuCi, and now wifi works! Dont know if it is because of the different image or I just messed up my config somehow before...
Thanks for your help

(Last edited by gf779sgf9sfugsgf9sgg on 15 Jul 2017, 20:40)

The discussion might have continued from here.