1 (edytowany przez slimax 2025-12-03 11:45:49)

Temat: x86 legacy i wifi dongle -> kmod-ar5523 usb nie gada

Cześć,
zainstalowałem na starym x86 (Pentium3, Chipset BX) OpenWrt z gotowych paczek openwrt.org, wersja 24.10.4.
Powinienem był pewnie pobrać obraz od Cezarego no ale przyjąłem że Generic PC x86/64 w ogóle nie wstanie na procku x86 32bit.
Jest opcja na wersje Legacy x86?
To cudo pracuje jako prosty serwerek ftp ale potrzebuję dołożyć jakieś podstawowe wifi dla IOT.

Wyciągnąłem z szuflady starego dongla usb wifi z Atherosem.
Zainstalowałem paczkę:  kmod-ath5k -> nie wstało

Potem zainstalowałem kmod-ar5523 -> nadal zima

Nie jestem pewien czy to się teraz nie gryzie jakoś...

Podłączyłem dongla i jest tak:

cat /sys/kernel/debug/usb/devices
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12   MxCh= 0
D:  Ver= 2.00 Cls=ff(vend.) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0cf3 ProdID=0002 Rev= 0.01
S:  Manufacturer=Atheros Communications Inc
S:  Product=AR5523
S:  SerialNumber=1.0
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 4 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

iw list:
pusto sad

Wiem że to nawet nie usb 2.0, ale do IOT w zupełności wystarczy.
Tylko dlaczemu to nie wstaje?

Chciałbym się upewnić że czegoś nie pominąłem, nie jestem pewien czy kmod-mac80211 był w obrazie czy się doinstalował jako zależność sad

Jak żyć?

2

Odp: x86 legacy i wifi dongle -> kmod-ar5523 usb nie gada

powinien być właśnie kmod-ar5523. Chyba że moduły nie zainstalowałeś przez opkg tylko ręcznie. Jeszcze wpad powinieneś zainstalować.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3 (edytowany przez slimax 2025-12-03 12:45:01)

Odp: x86 legacy i wifi dongle -> kmod-ar5523 usb nie gada

Doinstalowałem wpad + reboot i jest postęp smile
Choć nie wiem czy to jest coś pozytywnego z brakiem firmware:

Wed Dec  3 12:38:47 2025 kern.info kernel: [   66.736748] usb 1-1: USB disconnect, device number 2
Wed Dec  3 12:38:54 2025 kern.info kernel: [   73.836620] usb 1-1: new full-speed USB device number 3 using uhci_hcd
Wed Dec  3 12:38:54 2025 kern.warn kernel: [   74.049790] usb 1-1: Direct firmware load for ar5523.bin failed with error -2
Wed Dec  3 12:38:54 2025 kern.warn kernel: [   74.057106] usb 1-1: Falling back to sysfs fallback for: ar5523.bin
Wed Dec  3 12:38:54 2025 daemon.err procd: Could not find firmware /lib/firmware/ar5523.bin: No such file or directory
Wed Dec  3 12:38:54 2025 kern.err kernel: [   74.082870] usb 1-1: no firmware found: ar5523.bin
Wed Dec  3 12:38:54 2025 kern.warn kernel: [   74.088023] ar5523: probe of 1-1:1.0 failed with error -2
Wed Dec  3 12:39:02 2025 daemon.warn odhcpd[1899]: No default route present, setting ra_lifetime to 0!

Coś tam googlam ale dalej nie rozumiem czy i gdzie ten firmware mam szukać / wgrać?

4

Odp: x86 legacy i wifi dongle -> kmod-ar5523 usb nie gada

http://verein.lst.de/~hch/ar5523.tgz

rozpakuj, tam jest uath-ar5523.bin, zmień jego nazwę na ar5523.bin i skopiuj do routera do katalogu /lib/firmware

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: x86 legacy i wifi dongle -> kmod-ar5523 usb nie gada

Poszło dalej ale teraz to już całkiem chyba kaplica sad

Wed Dec  3 12:55:59 2025 kern.info kernel: [  156.496926] usb 1-1: USB disconnect, device number 6
Wed Dec  3 12:56:00 2025 kern.info kernel: [  156.846842] usb 1-1: new full-speed USB device number 7 using uhci_hcd
Wed Dec  3 12:56:00 2025 kern.err kernel: [  157.118246] usb 1-1: Unexpected command id: 12
Wed Dec  3 12:56:02 2025 kern.err kernel: [  159.076830] usb 1-1: timeout waiting for command 01 reply
Wed Dec  3 12:56:02 2025 kern.err kernel: [  159.082310] usb 1-1: could not initialize adapter
Wed Dec  3 12:56:02 2025 kern.err kernel: [  159.088522] usb 1-1: RX USB error -2.
Wed Dec  3 12:56:02 2025 kern.err kernel: [  159.092277] usb 1-1: error -1 when submitting rx urb
Wed Dec  3 12:56:02 2025 kern.warn kernel: [  159.097517] ar5523: probe of 1-1:1.0 failed with error -110

6

Odp: x86 legacy i wifi dongle -> kmod-ar5523 usb nie gada

Wiec za nowe firmware. Poszukaj pliku który ma inny rozmiar.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7 (edytowany przez slimax 2025-12-03 14:06:48)

Odp: x86 legacy i wifi dongle -> kmod-ar5523 usb nie gada

Podmieniłem na ten:
https://github.com/projectceladon/vendo … ar5523.bin

Wygląda już lepiej:

root@OpenWrt:~# iw list
Wiphy phy1
        wiphy index: 1
        max # scan SSIDs: 4
        max scan IEs length: 2285 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * managed
                 * monitor
        Band 1:
                Frequencies:
                        * 2412.0 MHz [1] (20.0 dBm)
                        * 2417.0 MHz [2] (20.0 dBm)
                        * 2422.0 MHz [3] (20.0 dBm)
                        * 2427.0 MHz [4] (20.0 dBm)
                        * 2432.0 MHz [5] (20.0 dBm)
                        * 2437.0 MHz [6] (20.0 dBm)
                        * 2442.0 MHz [7] (20.0 dBm)
                        * 2447.0 MHz [8] (20.0 dBm)
                        * 2452.0 MHz [9] (20.0 dBm)
                        * 2457.0 MHz [10] (20.0 dBm)
                        * 2462.0 MHz [11] (20.0 dBm)
                        * 2467.0 MHz [12] (20.0 dBm)
                        * 2472.0 MHz [13] (20.0 dBm)
                        * 2484.0 MHz [14] (disabled)
        interface combinations are not supported
        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
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Supported extended features:
                * [ RRM ]: RRM
                * [ FILS_STA ]: STA FILS (Fast Initial Link Setup)
                * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
                * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
                * [ SCAN_RANDOM_SN ]: use random sequence numbers in scans
                * [ SCAN_MIN_PREQ_CONTENT ]: use probe request with only rate IEs in scans
                * [ CAN_REPLACE_PTK0 ]: can safely replace PTK 0 when rekeying
                * [ EXT_KEY_ID ]: Extended Key ID support
                * [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support
                * [ SCAN_FREQ_KHZ ]: scan on kHz frequency support
                * [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support
                * [ POWERED_ADDR_CHANGE ]: can change MAC address while up
                * [ SPP_AMSDU_SUPPORT ]: SPP A-MSDU support


ale chyba coś w konfiguracji mam jeszcze źle...

Wed Dec  3 13:31:22 2025 daemon.notice hostapd: Set new config for phy phy1:
Wed Dec  3 13:31:22 2025 daemon.notice wpa_supplicant[1666]: Set new config for phy phy1
Wed Dec  3 13:31:22 2025 daemon.notice netifd: Wireless device 'radio0' is now down
Wed Dec  3 13:31:38 2025 daemon.notice netifd: radio0 (3225): WARNING: Variable 'data' does not exist or is not an array/object
Wed Dec  3 13:31:39 2025 daemon.notice hostapd: Set new config for phy phy1:
Wed Dec  3 13:31:39 2025 daemon.notice wpa_supplicant[1666]: Set new config for phy phy1
Wed Dec  3 13:31:39 2025 daemon.notice wpa_supplicant[1666]: Set new config for phy phy1
Wed Dec  3 13:31:39 2025 daemon.notice hostapd: Set new config for phy phy1: /var/run/hostapd-phy1.conf
Wed Dec  3 13:31:39 2025 daemon.notice hostapd: Restart interface for phy phy1
Wed Dec  3 13:31:39 2025 daemon.notice hostapd: Configuration file: <inline> (phy phy1) --> new PHY
Wed Dec  3 13:31:39 2025 daemon.notice hostapd: Configuration file: Reading configuration file '<inline>'
Wed Dec  3 13:31:39 2025 daemon.err hostapd: Could not read interface phy1-ap0 flags: No such device
Wed Dec  3 13:31:39 2025 daemon.notice hostapd: nl80211: Driver does not support authentication/association or connect commands
Wed Dec  3 13:31:39 2025 daemon.notice hostapd: nl80211: deinit ifname=phy1-ap0 disabled_11b_rates=0
Wed Dec  3 13:31:39 2025 daemon.err hostapd: Could not read interface phy1-ap0 flags: No such device
Wed Dec  3 13:31:39 2025 daemon.err hostapd: nl80211 driver initialization failed.
Wed Dec  3 13:31:39 2025 daemon.notice hostapd: phy1-ap0: CTRL-EVENT-TERMINATING
Wed Dec  3 13:31:39 2025 daemon.err hostapd: hostapd_free_hapd_data: Interface phy1-ap0 wasn't started
Wed Dec  3 13:31:39 2025 daemon.notice hostapd: hostapd.add_iface failed for phy phy1 ifname=phy1-ap0
Wed Dec  3 13:31:39 2025 daemon.notice netifd: radio0 (3225): command failed: No such device (-19)
Wed Dec  3 13:31:40 2025 daemon.notice netifd: Wireless device 'radio0' is now up
Wed Dec  3 13:35:14 2025 daemon.warn odhcpd[1895]: No default route present, setting ra_lifetime to 0!
Wed Dec  3 13:38:50 2025 daemon.warn odhcpd[1895]: No default route present, setting ra_lifetime to 0!
Wed Dec  3 13:43:13 2025 daemon.notice hostapd: Set new config for phy phy1:
Wed Dec  3 13:43:13 2025 daemon.notice wpa_supplicant[1666]: Set new config for phy phy1
Wed Dec  3 13:43:13 2025 daemon.notice netifd: Wireless device 'radio0' is now down


Spróbowałem zmienić nazwę urządzenia z radio0 w /etc/config/wireless na phy1-ap0 i teraz:

Wed Dec  3 14:05:07 2025 daemon.notice hostapd: Set new config for phy phy0:
Wed Dec  3 14:05:07 2025 daemon.notice wpa_supplicant[1677]: Set new config for phy phy0
Wed Dec  3 14:05:07 2025 daemon.notice netifd: Wireless device 'radio0' is now down
Wed Dec  3 14:05:11 2025 daemon.notice netifd: radio0 (2917): WARNING: Variable 'data' does not exist or is not an array/object
Wed Dec  3 14:05:12 2025 daemon.notice hostapd: Set new config for phy phy0:
Wed Dec  3 14:05:12 2025 daemon.notice wpa_supplicant[1677]: Set new config for phy phy0
Wed Dec  3 14:05:12 2025 daemon.notice wpa_supplicant[1677]: Set new config for phy phy0
Wed Dec  3 14:05:12 2025 daemon.notice hostapd: Set new config for phy phy0:
Wed Dec  3 14:05:12 2025 daemon.notice netifd: Wireless device 'radio0' is now up


Ale nadal Led na wifi się nie swieci i sieci nie widać sad

8

Odp: x86 legacy i wifi dongle -> kmod-ar5523 usb nie gada

usuń plik /etc/config/wireless. Zrestartuj maszynkę. Plik powinien się zrobić. Po restarcie usuń z niego linię disabled 1, zapisz, zrób wifi up. I tyle

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: x86 legacy i wifi dongle -> kmod-ar5523 usb nie gada

Wed Dec  3 14:16:18 2025 daemon.notice netifd: radio0 (2955): WARNING: Variable 'data' does not exist or is not an array/object
Wed Dec  3 14:16:18 2025 daemon.notice hostapd: Set new config for phy phy0:
Wed Dec  3 14:16:18 2025 daemon.notice wpa_supplicant[1678]: Set new config for phy phy0
Wed Dec  3 14:16:19 2025 daemon.notice wpa_supplicant[1678]: Set new config for phy phy0
Wed Dec  3 14:16:19 2025 daemon.notice hostapd: Set new config for phy phy0: /var/run/hostapd-phy0.conf
Wed Dec  3 14:16:19 2025 daemon.notice hostapd: Restart interface for phy phy0
Wed Dec  3 14:16:19 2025 daemon.notice hostapd: Configuration file: <inline> (phy phy0) --> new PHY
Wed Dec  3 14:16:19 2025 daemon.notice hostapd: Configuration file: Reading configuration file '<inline>'
Wed Dec  3 14:16:20 2025 daemon.err hostapd: Could not read interface phy0-ap0 flags: No such device
Wed Dec  3 14:16:20 2025 daemon.notice hostapd: nl80211: Driver does not support authentication/association or connect commands
Wed Dec  3 14:16:20 2025 daemon.notice hostapd: nl80211: deinit ifname=phy0-ap0 disabled_11b_rates=0

10

Odp: x86 legacy i wifi dongle -> kmod-ar5523 usb nie gada

Nie rozłączyło ci się urządzenie na USB?

A ostatecznie - znajdź sobie inną kartę.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11 (edytowany przez slimax 2025-12-03 14:24:29)

Odp: x86 legacy i wifi dongle -> kmod-ar5523 usb nie gada

Niby cały czas podłączone, ale testowo wyciągnąłem wtyczkę i podłączyłem:

root@OpenWrt:~# logread -f
Wed Dec  3 14:22:35 2025 kern.err kernel: [  462.418699] usb 1-1: RX USB error -84.
Wed Dec  3 14:22:35 2025 kern.err kernel: [  462.423693] usb 1-1: RX USB error -84.
Wed Dec  3 14:22:35 2025 kern.err kernel: [  462.427683] usb 1-1: RX USB error -84.
Wed Dec  3 14:22:35 2025 kern.err kernel: [  462.431680] usb 1-1: RX USB error -84.
Wed Dec  3 14:22:35 2025 kern.err kernel: [  462.435682] usb 1-1: RX USB error -84.
Wed Dec  3 14:22:35 2025 kern.err kernel: [  462.439682] usb 1-1: RX USB error -84.
Wed Dec  3 14:22:35 2025 kern.err kernel: [  462.443681] usb 1-1: RX USB error -84.
Wed Dec  3 14:22:35 2025 kern.err kernel: [  462.447594] usb 1-1: RX USB error -84.
Wed Dec  3 14:22:35 2025 kern.err kernel: [  462.451679] usb 1-1: RX USB error -84.
Wed Dec  3 14:22:35 2025 kern.err kernel: [  462.455678] usb 1-1: RX USB error -84.
Wed Dec  3 14:22:35 2025 kern.err kernel: [  462.459679] usb 1-1: RX USB error -84.
Wed Dec  3 14:22:35 2025 kern.err kernel: [  462.463677] usb 1-1: RX USB error -84.
Wed Dec  3 14:22:35 2025 kern.err kernel: [  462.467678] usb 1-1: RX USB error -84.
Wed Dec  3 14:22:35 2025 kern.info kernel: [  462.471624] usb 1-1: USB disconnect, device number 4
Wed Dec  3 14:22:35 2025 kern.err kernel: [  462.476599] usb 1-1: RX USB error -84.
Wed Dec  3 14:22:40 2025 kern.info kernel: [  467.046814] usb 1-1: new full-speed USB device number 5 using uhci_hcd
Wed Dec  3 14:22:41 2025 kern.info kernel: [  467.946926] usb 1-1: USB disconnect, device number 5
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.296814] usb 1-1: new full-speed USB device number 6 using uhci_hcd
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.568836] usb 1-1: Cap: CAP_TARGET_VERSION=0x00000006
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.574822] usb 1-1: Cap: CAP_TARGET_REVISION=0x00000001
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.580908] usb 1-1: Cap: CAP_MAC_VERSION=0x00000008
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.587942] usb 1-1: Cap: CAP_MAC_REVISION=0x00000001
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.593841] usb 1-1: Cap: CAP_PHY_REVISION=0x00000046
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.600903] usb 1-1: Cap: CAP_ANALOG_5GHz_REVISION=0x00000046
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.608044] usb 1-1: Cap: CAP_ANALOG_2GHz_REVISION=0x00000000
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.614826] usb 1-1: Cap: CAP_REG_DOMAIN=0x00000037
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.620856] usb 1-1: Cap: CAP_REG_CAP_BITS=0x00000000
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.627869] usb 1-1: Cap: CAP_WIRELESS_MODES=0x00000000
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.633839] usb 1-1: Cap: CAP_CHAN_SPREAD_SUPPORT=0x0000001c
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.641555] usb 1-1: Cap: CAP_COMPRESS_SUPPORT=0x00000001
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.648270] usb 1-1: Cap: CAP_BURST_SUPPORT=0x00000001
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.654822] usb 1-1: Cap: CAP_FAST_FRAMES_SUPPORT=0x00000001
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.662489] usb 1-1: Cap: CAP_CHAP_TUNING_SUPPORT=0x00000001
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.669059] usb 1-1: Cap: CAP_TURBOG_SUPPORT=0x00000001
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.674857] usb 1-1: Cap: CAP_TURBO_PRIME_SUPPORT=0x00000001
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.682203] usb 1-1: Cap: CAP_DEVICE_TYPE=0x00000001
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.688688] usb 1-1: Cap: CAP_WME_SUPPORT=0x00000001
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.694829] usb 1-1: Cap: CAP_TOTAL_QUEUES=0x00000001
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.701897] usb 1-1: Cap: CAP_CONNECTION_ID_MAX=0x0000000a
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.708875] usb 1-1: Cap: CAP_LOW_5GHZ_CHAN=0x00000004
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.714816] usb 1-1: Cap: CAP_HIGH_5GHZ_CHAN=0x00001338
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.721304] usb 1-1: Cap: CAP_LOW_2GHZ_CHAN=0x000017d4
Wed Dec  3 14:22:41 2025 kern.info kernel: [  468.728530] usb 1-1: Cap: CAP_HIGH_2GHZ_CHAN=0x00000908
Wed Dec  3 14:22:42 2025 kern.info kernel: [  468.734829] usb 1-1: Cap: CAP_TWICE_ANTENNAGAIN_5G=0x00000001
Wed Dec  3 14:22:42 2025 kern.info kernel: [  468.741872] usb 1-1: Cap: CAP_TWICE_ANTENNAGAIN_2G=0x00000000
Wed Dec  3 14:22:42 2025 kern.info kernel: [  468.749742] usb 1-1: Cap: CAP_CIPHER_AES_CCM=0x00000001
Wed Dec  3 14:22:42 2025 kern.info kernel: [  468.755823] usb 1-1: Cap: CAP_CIPHER_TKIP=0x00000000
Wed Dec  3 14:22:42 2025 kern.info kernel: [  468.762769] usb 1-1: Cap: CAP_MIC_TKIP=0x00000000
Wed Dec  3 14:22:42 2025 kern.info kernel: [  468.769887] usb 1-1: MAC/BBP AR5523, RF AR2112
Wed Dec  3 14:22:42 2025 kern.info kernel: [  468.776040] usb 1-1: Found and initialized AR5523 device

12

Odp: x86 legacy i wifi dongle -> kmod-ar5523 usb nie gada

Znajdź inną kartę...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.