[802.11ac 1200M Adapter] Debian Buster 10.10

Discussions autour des probllématiques réseau
Post Reply
jeanmarc
Posts: 130
Joined: Sun Mar 22, 2020 5:28 pm
Location: Essonne

[802.11ac 1200M Adapter] Debian Buster 10.10

Post by jeanmarc »

Bonjour,
Il y a sur le marché de nouveaux dongles WIFI/USB aux prétentions impressionnantes (!) car implémentant la norme 802.11ac.
Pour mémoire, cette norme implémente une nouvelle modulation OFDM et utilise surtout une largeur de bande de fréquence pouvant aller jusqu'à 160 Mhz.
De fait, les débits associés au niveau binaire peuvent friser le Gigabit/sec, voir plus comme le rappelle les tableaux suivants https://fr.wikipedia.org/wiki/IEEE_802.11ac
Mes exigences et 'uses case' sont les suivantes :
Je souhaitais trouver un dongle qui soit en USB3, ce qui est assez standard.
De plus je voulais qu'il dispose d'une antenne SMA vissable permettant de changer l'antenne par un modèle soit directif à fort gain pour des liaisons WIFI longue distance ou une toute petite antenne pour un usage limité à une pièce dans le cas d'une installation de ce dongle sur un équipement embarqué.
Enfin, dernière exigence, il fallait que la publicité de l'objet fasse au moins une fois référence à l'OS Linux, me garantissant que quel part je pourrais caresser l'espoir de faire fonctionner ce Dongle sous Linux, sur les architectures PPC/arm/arm64.
Après plusieurs recherches, j'ai jeté mon dévolu sur ce produit . https://www.amazon.fr/gp/product/B07PM ... TF8&psc=1
Un des intérêts de ce modèle est le fait que Realtek devrait fournir des codes sources de driver, des fois que les firmwares de base de la Debian stable ne fonctionnent pas (!)...
Donc, en insérant ce dongle, on est en présence d'une identification USB suivante ...

Code: Select all

ansible@thinkpad-410:~$ lsusb |grep -i real
Bus 001 Device 016: ID 0bda:b812 Realtek Semiconductor Corp. 
ansible@thinkpad-410:~$ 
Après avoir installé le paquet firmware-realtek dédié à la version Debian Buster (l'équipement est en Buster), pas de driver disponible. :twisted:
Nouvelle tentative en s'appuyant sur le forcage de la prochaine version (la Debian bullseye) via la commande :

Code: Select all

sudo apt -t bullseye install firmware-realtek 
je croyais que l'insertion de cette clé USB se passerait bien, sachant que dans le dernier paquet Debian 'à la mode', à priori, tous les drivers pour cette famille de SoC, le rtl88xx semblait disponible.... :x

Code: Select all

ansible@thinkpad-410:~$ dpkg -L firmware-realtek |grep rtl88
/lib/firmware/rtl_bt/rtl8812ae_fw.bin
/lib/firmware/rtl_bt/rtl8821a_fw.bin
/lib/firmware/rtl_bt/rtl8821c_config.bin
/lib/firmware/rtl_bt/rtl8821c_fw.bin
/lib/firmware/rtl_bt/rtl8822b_config.bin
/lib/firmware/rtl_bt/rtl8822b_fw.bin
/lib/firmware/rtl_bt/rtl8822cs_config.bin
/lib/firmware/rtl_bt/rtl8822cs_fw.bin
/lib/firmware/rtl_bt/rtl8822cu_config.bin
/lib/firmware/rtl_bt/rtl8822cu_fw.bin
/lib/firmware/rtl_bt/rtl8852au_config.bin
/lib/firmware/rtl_bt/rtl8852au_fw.bin
/lib/firmware/rtlwifi/rtl8812aefw.bin
/lib/firmware/rtlwifi/rtl8812aefw_wowlan.bin
/lib/firmware/rtlwifi/rtl8821aefw.bin
/lib/firmware/rtlwifi/rtl8821aefw_29.bin
/lib/firmware/rtlwifi/rtl8821aefw_wowlan.bin
/lib/firmware/rtlwifi/rtl8822befw.bin
ansible@thinkpad-410:~$ 
Hélas, la mauvaise nouvelle est dans les logs de udev qui montrent bien que l'insertion du dongle ne se passe pas tout à fait comme dans les rêves, puisque il n'y a pas de concordance entre l'identification du dongle est un firmware adapté à ce dongle.
De fait, pas de firmware, pas de driver, pas de création d'interface réseau, pas de Wifi (!) :evil:
Il convient donc de générer un module driver depuis les sources de Realtek en accord avec le noyau courant mis en œuvre sur mon équipement du moment.

C'est donc le role de ce mémo qui rappelle comment fabriquer un binaire driver depuis un arbre source externe du noyau Linux en accord avec les mécanismes de gestion de version de Debian. Je rappelle ici les étapes, vue qu'à chaque fois, j'en oublie une...

step 1: Il faut dans un premier temps installer les paquets de dev ...

Code: Select all

sudo apt udpate && sudo apt install rsync git dkms build-essential
step 2: Puis installer le paquet des entêtes du noyau en cours d'utilisation, soit dans mon cas ...

Code: Select all

ansible@thinkpad-410:~$ apt-cache search linux-header |grep `uname -r`
linux-headers-5.9.0-0.bpo.5-amd64 - Header files for Linux 5.9.0-0.bpo.5-amd64
ansible@thinkpad-410:~$ 
ansible@thinkpad-410:~$ sudo apt install linux-headers-5.9.0-0.bpo.5-amd64 
step 3: récupération des drivers de ce dongle sur le site officiel ....

Code: Select all

git clone https://github.com/cilynx/rtl88x2bu.git ~/git/rtl88x2bu.git 
step 4.1: production logicielle

Code: Select all

cd ~/git/rtl88x2bu.git
step 4.2: extraction de la version courante du driver

Code: Select all

VERS_DRIVER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
step 4.3: mise à jour de la version du code ...

Code: Select all

sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VERS_DRIVER}
step 4.4: génération du module driver du dongle Wifi

Code: Select all

sudo dkms add -m rtl88x2bu -v ${VERS_DRIVER}
sudo dkms build -m rtl88x2bu -v ${VERS_DRIVER}
step 4.5: installation du driver dans l'arborescence système de l'équipement

Code: Select all

sudo dkms install -bu -v ${VERS_DRIVER}
step 5: chargement du driver en mémoire

Code: Select all

sudo modprobe 88x2bu
Ce qui semble plutôt bien se passer puisque la création du netdevice s'effectue avec succès... :D

Code: Select all

2021-07-02T10:56:34+02:00 s_dev_log@thinkpad-410 sudo:  ansible : TTY=pts/10 ; PWD=/home/ansible/git/rtl88x2bu.git ; USER=root ; COMMAND=/usr/sbin/modprobe 88x2bu
2021-07-02T10:56:34+02:00 s_dev_log@thinkpad-410 sudo: pam_unix(sudo:session): session opened for user root by ansible(uid=0)
2021-07-02T10:56:34+02:00 s_dev_log@thinkpad-410 sudo: pam_unix(sudo:session): session closed for user root
2021-07-02T10:56:34+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 31,9330,59586447676,-;systemd-udevd[428]: 88x2bu: Device (SEQNUM=5294, ACTION=add) is queued
2021-07-02T10:56:34+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 1055,9331,59586447709,-;systemd-udevd[428]: Validate module index
2021-07-02T10:56:34+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 6,9332,59586447735,-;usbcore: registered new interface driver rtl88x2bu
2021-07-02T10:56:34+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 1055,9333,59586447737,-;systemd-udevd[428]: Check if link configuration needs reloading.
2021-07-02T10:56:34+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 31,9334,59586447995,-;systemd-udevd[428]: Successfully forked off 'n/a' as PID 6321.
2021-07-02T10:56:34+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 31,9335,59586448047,-;systemd-udevd[428]: 88x2bu: Worker [6321] is forked for processing SEQNUM=5294.
2021-07-02T10:56:34+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 31,9336,59586448216,-;systemd-udevd[428]: rtl88x2bu: Device (SEQNUM=5295, ACTION=add) is queued
2021-07-02T10:56:34+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 31,9337,59586448447,-;systemd-udevd[428]: Successfully forked off 'n/a' as PID 6322.
2021-07-02T10:56:34+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 31,9338,59586448506,-;systemd-udevd[428]: rtl88x2bu: Worker [6322] is forked for processing SEQNUM=5295.
2021-07-02T10:56:34+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 31,9339,59586449000,-;systemd-udevd[6321]: 88x2bu: Processing device (SEQNUM=5294, ACTION=add)
2021-07-02T10:56:34+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 31,9340,59586449254,-;systemd-udevd[6322]: rtl88x2bu: Processing device (SEQNUM=5295, ACTION=add)
On a le droit de prendre un peu peur sur la taille du driver (!) car en première analyse ....

Code: Select all

ansible@thinkpad-410:~/git/rtl88x2bu.git$ lsmod |grep 88x2bu
88x2bu               2621440  0
cfg80211              884736  4 iwldvm,88x2bu,iwlwifi,mac80211
usbcore               315392  7 ehci_pci,usbhid,88x2bu,usb_storage,uvcvideo,ehci_hcd,uas
ansible@thinkpad-410:~/git/rtl88x2bu.git$ 
mais bien entendu, le mode du 802.11 est un monde très complexe (!)
On peut tout de même saluer l'industriel qui a fait des effort sur son driver, car ...

Code: Select all

ansible@thinkpad-410:~/git/rtl88x2bu.git$ sudo modinfo 88x2bu
filename:       /lib/modules/5.9.0-0.bpo.5-amd64/updates/dkms/88x2bu.ko
version:        v5.6.1_30362.20181109_COEX20180928-6a6a
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
license:        GPL
srcversion:     7C36F7454767FFDED79D1E7
alias:          usb:v0846p9055d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0B05p184Cd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0B05p1841d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v7392pC822d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v7392pB822d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2357p0115d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2357p0138d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2357p012Dd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2001p331Fd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2001p331Ed*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2001p331Cd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v13B1p0043d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDApB812d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDApB82Cd*dc*dsc*dp*icFFiscFFipFFin*
depends:        usbcore,cfg80211
retpoline:      Y
name:           88x2bu
vermagic:       5.9.0-0.bpo.5-amd64 SMP mod_unload modversions 
parm:           rtw_wireless_mode:int
parm:           rtw_ips_mode:The default IPS mode (int)
parm:           rtw_lps_level:The default LPS level (int)
parm:           rtw_lps_chk_by_tp:int
parm:           rtw_max_bss_cnt:int
parm:           rtw_usb_rxagg_mode:int
parm:           rtw_dynamic_agg_enable:int
parm:           rtw_tx_bw_mode:The max tx bw for 2.4G and 5G. format is the same as rtw_bw_mode (uint)
parm:           rtw_rx_ampdu_sz_limit_1ss:RX AMPDU size limit for 1SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_rx_ampdu_sz_limit_2ss:RX AMPDU size limit for 2SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_rx_ampdu_sz_limit_3ss:RX AMPDU size limit for 3SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_rx_ampdu_sz_limit_4ss:RX AMPDU size limit for 4SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_vht_enable:int
parm:           rtw_vht_rx_mcs_map:VHT RX MCS map (uint)
parm:           rtw_rf_config:int
parm:           rtw_country_code:The default country code (in alpha2) (charp)
parm:           rtw_channel_plan:The default chplan ID when rtw_alpha2 is not specified or valid (int)
parm:           rtw_excl_chs:exclusive channel array (array of uint)
parm:           rtw_btcoex_enable:BT co-existence on/off, 0:off, 1:on, 2:by efuse (int)
parm:           rtw_ant_num:Antenna number setting, 0:by efuse (int)
parm:           rtw_qos_opt_enable:int
parm:           ifname:The default name to allocate for first interface (charp)
parm:           if2name:The default name to allocate for second interface (charp)
parm:           rtw_wowlan_sta_mix_mode:int
parm:           rtw_pwrtrim_enable:int
parm:           rtw_initmac:charp
parm:           rtw_special_rf_path:int
parm:           rtw_chip_version:int
parm:           rtw_rfintfs:int
parm:           rtw_lbkmode:int
parm:           rtw_network_mode:int
parm:           rtw_channel:int
parm:           rtw_mp_mode:int
parm:           rtw_wmm_enable:int
parm:           rtw_uapsd_max_sp:int
parm:           rtw_uapsd_ac_enable:int
parm:           rtw_wmm_smart_ps:int
parm:           rtw_vrtl_carrier_sense:int
parm:           rtw_vcs_type:int
parm:           rtw_busy_thresh:int
parm:           rtw_ht_enable:int
parm:           rtw_bw_mode:int
parm:           rtw_ampdu_enable:int
parm:           rtw_rx_stbc:int
parm:           rtw_rx_ampdu_amsdu:int
parm:           rtw_tx_ampdu_amsdu:int
parm:           rtw_beamform_cap:int
parm:           rtw_lowrate_two_xmit:int
parm:           rtw_power_mgnt:int
parm:           rtw_smart_ps:int
parm:           rtw_low_power:int
parm:           rtw_wifi_spec:int
parm:           rtw_full_ch_in_p2p_handshake:int
parm:           rtw_antdiv_cfg:int
parm:           rtw_antdiv_type:int
parm:           rtw_drv_ant_band_switch:int
parm:           rtw_single_ant_path:int
parm:           rtw_switch_usb_mode:int
parm:           rtw_enusbss:int
parm:           rtw_hwpdn_mode:int
parm:           rtw_hwpwrp_detect:int
parm:           rtw_hw_wps_pbc:int
parm:           rtw_check_hw_status:int
parm:           rtw_led_ctrl:Led Control: 0=Always off, 1=Normal blink, 2=Always on (int)
parm:           rtw_max_roaming_times:The max roaming times to try (uint)
parm:           rtw_mc2u_disable:int
parm:           rtw_advnace_ota:int
parm:           rtw_notch_filter:0:Disable, 1:Enable, 2:Enable only for P2P (uint)
parm:           rtw_hiq_filter:0:allow all, 1:allow special, 2:deny all (uint)
parm:           rtw_adaptivity_en:0:disable, 1:enable (uint)
parm:           rtw_adaptivity_mode:0:normal, 1:carrier sense (uint)
parm:           rtw_adaptivity_th_l2h_ini:th_l2h_ini for Adaptivity (int)
parm:           rtw_adaptivity_th_edcca_hl_diff:th_edcca_hl_diff for Adaptivity (int)
parm:           rtw_amplifier_type_2g:BIT3:2G ext-PA, BIT4:2G ext-LNA (uint)
parm:           rtw_amplifier_type_5g:BIT6:5G ext-PA, BIT7:5G ext-LNA (uint)
parm:           rtw_RFE_type:default init value:64 (uint)
parm:           rtw_powertracking_type:default init value:64 (uint)
parm:           rtw_GLNA_type:default init value:0 (uint)
parm:           rtw_TxBBSwing_2G:default init value:0xFF (uint)
parm:           rtw_TxBBSwing_5G:default init value:0xFF (uint)
parm:           rtw_OffEfuseMask:default open Efuse Mask value:0 (uint)
parm:           rtw_FileMaskEfuse:default drv Mask Efuse value:0 (uint)
parm:           rtw_rxgain_offset_2g:default RF Gain 2G Offset value:0 (uint)
parm:           rtw_rxgain_offset_5gl:default RF Gain 5GL Offset value:0 (uint)
parm:           rtw_rxgain_offset_5gh:uint
parm:           rtw_rxgain_offset_5gm:default RF Gain 5GM Offset value:0 (uint)
parm:           rtw_pll_ref_clk_sel:force pll_ref_clk_sel, 0xF:use autoload value (uint)
parm:           rtw_tx_pwr_by_rate:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm:           rtw_target_tx_pwr_2g_a:2.4G target tx power (unit:dBm) of RF path A for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_2g_b:2.4G target tx power (unit:dBm) of RF path B for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_2g_c:2.4G target tx power (unit:dBm) of RF path C for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_2g_d:2.4G target tx power (unit:dBm) of RF path D for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_a:5G target tx power (unit:dBm) of RF path A for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_b:5G target tx power (unit:dBm) of RF path B for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_c:5G target tx power (unit:dBm) of RF path C for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_d:5G target tx power (unit:dBm) of RF path D for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_tsf_update_pause_factor:num of bcn intervals to stay TSF update pause status (int)
parm:           rtw_tsf_update_restore_factor:num of bcn intervals to stay TSF update restore status (int)
parm:           rtw_phy_file_path:The path of phy parameter (charp)
parm:           rtw_load_phy_file:PHY File Bit Map (int)
parm:           rtw_decrypt_phy_file:Enable Decrypt PHY File (int)
parm:           rtw_en_napi:int
parm:           rtw_en_gro:int
parm:           rtw_iqk_fw_offload:int
parm:           rtw_ch_switch_offload:int
ansible@thinkpad-410:~/git/rtl88x2bu.git$ 
step 6: insertion du dongle dans l'équipement et vérification des logs du noyau

Code: Select all

2021-07-02T11:16:25+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 6,9413,60776821416,-;usb 1-1.1: new high-speed USB device number 18 using ehci-pci
2021-07-02T11:16:25+02:00 thinkpad-410-service/thinkpad-410-service SUBSYSTEM=usb
2021-07-02T11:16:25+02:00 thinkpad-410-service/thinkpad-410-service DEVICE=+usb:1-1.1
2021-07-02T11:16:25+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 6,9414,60776931291,-;usb 1-1.1: New USB device found, idVendor=0bda, idProduct=b812, bcdDevice= 2.10
2021-07-02T11:16:25+02:00 thinkpad-410-service/thinkpad-410-service SUBSYSTEM=usb
2021-07-02T11:16:25+02:00 thinkpad-410-service/thinkpad-410-service DEVICE=c189:17
2021-07-02T11:16:25+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 6,9415,60776931306,-;usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
2021-07-02T11:16:25+02:00 thinkpad-410-service/thinkpad-410-service SUBSYSTEM=usb
2021-07-02T11:16:25+02:00 thinkpad-410-service/thinkpad-410-service DEVICE=c189:17
2021-07-02T11:16:25+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 6,9416,60776931314,-;usb 1-1.1: Product: USB3.0 802.11ac 1200M Adapter
2021-07-02T11:16:25+02:00 thinkpad-410-service/thinkpad-410-service SUBSYSTEM=usb
2021-07-02T11:16:25+02:00 thinkpad-410-service/thinkpad-410-service DEVICE=c189:17
2021-07-02T11:16:25+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 6,9417,60776931320,-;usb 1-1.1: Manufacturer: Realtek
2021-07-02T11:16:25+02:00 thinkpad-410-service/thinkpad-410-service SUBSYSTEM=usb
2021-07-02T11:16:25+02:00 thinkpad-410-service/thinkpad-410-service DEVICE=c189:17
2021-07-02T11:16:25+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 6,9418,60776931326,-;usb 1-1.1: SerialNumber: 123456
2021-07-02T11:16:25+02:00 thinkpad-410-service/thinkpad-410-service SUBSYSTEM=usb
2021-07-02T11:16:25+02:00 thinkpad-410-service/thinkpad-410-service DEVICE=c189:17
2021-07-02T11:16:25+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 31,9419,60776934770,-;systemd-udevd[428]: 1-1.1: Device (SEQNUM=5301, ACTION=add) is queued
2021-07-02T11:16:25+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 1055,9420,60776935423,-;systemd-udevd[428]: Validate module index
2021-07-02T11:16:25+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 1055,9421,60776936089,-;systemd-udevd[428]: Check if link configuration needs reloading.
2021-07-02T11:16:25+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 31,9422,60776936358,-;systemd-udevd[428]: Successfully forked off 'n/a' as PID 9796.
2021-07-02T11:16:25+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 31,9423,60776936412,-;systemd-udevd[428]: 1-1.1: Worker [9796] is forked for processing SEQNUM=5301.
2021-07-02T11:16:25+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 31,9424,60776936652,-;systemd-udevd[428]: 1-1.1:1.0: Device (SEQNUM=5302, ACTION=add) is queued
2021-07-02T11:16:25+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 31,9425,60776937170,-;systemd-udevd[9796]: 1-1.1: Processing device (SEQNUM=5301, ACTION=add)
2021-07-02T11:16:25+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 31,9426,60776938895,-;systemd-udevd[9796]: 1-1.1: IMPORT builtin 'usb_id' /usr/lib/udev/rules.d/50-udev-default.rules:13
2021-07-02T11:16:26+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 31,9427,60777636452,-;systemd-udevd[428]: phy5: Device (SEQNUM=5303, ACTION=add) is queued
2021-07-02T11:16:26+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 31,9428,60777636526,-;systemd-udevd[428]: rfkill5: Device (SEQNUM=5304, ACTION=add) is queued
2021-07-02T11:16:26+02:00 s_dev_kernel_kmsg@thinkpad-410 kernel: 6,9429,60777676423,-;rtl88x2bu 1-1.1:1.0 wlx1cbfce7d1c2d: renamed from wlan0
2021-07-02T11:16:26+02:00 thinkpad-410-service/thinkpad-410-service SUBSYSTEM=usb
2021-07-02T11:16:26+02:00 thinkpad-410-service/thinkpad-410-service DEVICE=+usb:1-1.1:1.0
step 7: vérification de l'interface

Code: Select all

ansible@thinkpad-410:~/git/rtl88x2bu.git$ sudo iwconfig wlx1cbfce7d1c2d
wlx1cbfce7d1c2d  unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/100  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

ansible@thinkpad-410:~/git/rtl88x2bu.git$ 
Il reste à vérifier les performances...
Affaire à suivre
:P
Cordialement
jeanmarc
Posts: 130
Joined: Sun Mar 22, 2020 5:28 pm
Location: Essonne

Re: [802.11ac 1200M Adapter] Debian Buster 10.10

Post by jeanmarc »

Bonjour,
Pour information, sur le noyau de Sunxi sur la carte nanopi-neo2,

Code: Select all

local@nanopineo2-286:~$ uname -a
Linux nanopineo2-286 5.10.34-sunxi64 #21.05.1 SMP Fri May 7 15:50:19 UTC 2021 aarch64 GNU/Linux
Avec l'image d'Armbian dans la version suivante ....

Code: Select all

local@nanopineo2-286:~$ cat /etc/armbian-release 
# PLEASE DO NOT EDIT THIS FILE
BOARD=nanopineo2
BOARD_NAME="NanoPi Neo 2"
BOARDFAMILY=sun50iw2
BUILD_REPOSITORY_URL=https://github.com/armbian/build
BUILD_REPOSITORY_COMMIT=428a20876-dirty
DISTRIBUTION_CODENAME=buster
DISTRIBUTION_STATUS=supported
VERSION=21.05.6
LINUXFAMILY=sunxi64
ARCH=arm64
IMAGE_TYPE=stable
BOARD_TYPE=conf
INITRD_ARCH=arm64
KERNEL_IMAGE_TYPE=Image
BRANCH=current
local@nanopineo2-286:~$ 
... et le paquet suivant ...

Code: Select all

[local@nanopineo2-286:~$ dpkg -l |grep firmware
ii  armbian-firmware                21.05.6                      all          Linux firmware
/code]
La bonne nouvelle est que l'insertion du dongle Wifi est immédiatement reconnu avec chargement du firmware adéquate puisque ...
[code]
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 6,875,25327433226,-;usb 5-1: new high-speed USB device number 3 using ehci-platform
2021-07-10T22:36:44+02:00 nanopineo2-286-service/nanopineo2-286-service SUBSYSTEM=usb
2021-07-10T22:36:44+02:00 nanopineo2-286-service/nanopineo2-286-service DEVICE=+usb:5-1
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 6,876,25327594457,-;usb 5-1: New USB device found, idVendor=0bda, idProduct=b812, bcdDevice= 2.10
2021-07-10T22:36:44+02:00 nanopineo2-286-service/nanopineo2-286-service SUBSYSTEM=usb
2021-07-10T22:36:44+02:00 nanopineo2-286-service/nanopineo2-286-service DEVICE=c189:514
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 6,877,25327602692,-;usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
2021-07-10T22:36:44+02:00 nanopineo2-286-service/nanopineo2-286-service SUBSYSTEM=usb
2021-07-10T22:36:44+02:00 nanopineo2-286-service/nanopineo2-286-service DEVICE=c189:514
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 6,878,25327609881,-;usb 5-1: Product: USB3.0 802.11ac 1200M Adapter
2021-07-10T22:36:44+02:00 nanopineo2-286-service/nanopineo2-286-service SUBSYSTEM=usb
2021-07-10T22:36:44+02:00 nanopineo2-286-service/nanopineo2-286-service DEVICE=c189:514
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 6,879,25327615536,-;usb 5-1: Manufacturer: Realtek
2021-07-10T22:36:44+02:00 nanopineo2-286-service/nanopineo2-286-service SUBSYSTEM=usb
2021-07-10T22:36:44+02:00 nanopineo2-286-service/nanopineo2-286-service DEVICE=c189:514
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 6,880,25327619691,-;usb 5-1: SerialNumber: 123456
2021-07-10T22:36:44+02:00 nanopineo2-286-service/nanopineo2-286-service SUBSYSTEM=usb
2021-07-10T22:36:44+02:00 nanopineo2-286-service/nanopineo2-286-service DEVICE=c189:514
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,881,25327629435,-;systemd-udevd[441]: 5-1: Device (SEQNUM=3872, ACTION=add) is queued
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,882,25327629539,-;systemd-udevd[441]: Validate module index
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,883,25327629619,-;systemd-udevd[441]: Check if link configuration needs reloading.
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,884,25327630529,-;systemd-udevd[441]: Successfully forked off 'n/a' as PID 11159.
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,885,25327630778,-;systemd-udevd[441]: 5-1: Worker [11159] is forked for processing SEQNUM=3872.
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,886,25327631715,-;systemd-udevd[441]: 5-1:1.0: Device (SEQNUM=3873, ACTION=add) is queued
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,887,25327632224,-;systemd-udevd[441]: 5-1: Device (SEQNUM=3874, ACTION=bind) is queued
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,888,25327633371,-;systemd-udevd[11159]: 5-1: Processing device (SEQNUM=3872, ACTION=add)
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,889,25327634657,-;systemd-udevd[11159]: 5-1: IMPORT builtin 'usb_id' /usr/lib/udev/rules.d/50-udev-default.rules:13
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,890,25327635543,-;systemd-udevd[11159]: 5-1: IMPORT builtin 'hwdb' /usr/lib/udev/rules.d/50-udev-default.rules:13
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 5,891,25327733622,-;cfg80211: Loading compiled-in X.509 certificates for regulatory database
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 5,892,25327742988,-;cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 4,893,25327750829,-;platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
2021-07-10T22:36:44+02:00 nanopineo2-286-service/nanopineo2-286-service SUBSYSTEM=platform
2021-07-10T22:36:44+02:00 nanopineo2-286-service/nanopineo2-286-service DEVICE=+platform:regulatory.0
2021-07-10T22:36:44+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 6,894,25327759524,-;cfg80211: failed to load regulatory.db
2021-07-10T22:36:45+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 6,895,25328666060,-;usbcore: registered new interface driver rtl88x2bu
2021-07-10T22:36:45+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 6,896,25328720705,-;rtl88x2bu 5-1:1.0 wlx1cbfce7d1c2d: renamed from wlan0
2021-07-10T22:36:45+02:00 nanopineo2-286-service/nanopineo2-286-service SUBSYSTEM=usb
2021-07-10T22:36:45+02:00 nanopineo2-286-service/nanopineo2-286-service DEVICE=+usb:5-1:1.0
2021-07-10T22:36:47+02:00 s_dev_log@nanopineo2-286 syslog-ng[5427]: Syslog connection failed; fd='26', server='AF_INET(192.168.22.197:601)', error='No route to host (113)', time_reopen='5'
2021-07-10T22:36:51+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,897,25334342028,-;systemd-udevd[441]: Cleanup idle workers
2021-07-10T22:36:51+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,898,25334342834,-;systemd-udevd[11161]: Unload module index
2021-07-10T22:36:51+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,899,25334343051,-;systemd-udevd[11163]: Unload module index
2021-07-10T22:36:51+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,900,25334343105,-;systemd-udevd[11161]: Unloaded link configuration context.
2021-07-10T22:36:51+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,901,25334343529,-;systemd-udevd[11163]: Unloaded link configuration context.
2021-07-10T22:36:51+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,902,25334345733,-;systemd-udevd[11186]: Unload module index
2021-07-10T22:36:51+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,903,25334345968,-;systemd-udevd[11188]: Unloaded link configuration context.
2021-07-10T22:36:51+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,904,25334345976,-;systemd-udevd[11186]: Unloaded link configuration context.
2021-07-10T22:36:51+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,905,25334347058,-;systemd-udevd[11187]: Unload module index
2021-07-10T22:36:51+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,906,25334347326,-;systemd-udevd[11187]: Unloaded link configuration context.
2021-07-10T22:36:55+02:00 s_dev_log@nanopineo2-286 syslog-ng[5427]: Syslog connection failed; fd='26', server='AF_INET(192.168.22.197:601)', error='No route to host (113)', time_reopen='5'
2021-07-10T22:36:57+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,907,25341006326,-;systemd-udevd[441]: regulatory.0: Device (SEQNUM=3900, ACTION=change) is queued
2021-07-10T22:36:57+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,908,25341006500,-;systemd-udevd[441]: Validate module index
2021-07-10T22:36:57+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,909,25341006647,-;systemd-udevd[441]: Check if link configuration needs reloading.
2021-07-10T22:36:57+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,910,25341006936,-;systemd-udevd[441]: regulatory.0: sd-device-monitor: Passed 193 byte to netlink monitor
2021-07-10T22:36:57+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,911,25341007160,-;systemd-udevd[11256]: regulatory.0: Processing device (SEQNUM=3900, ACTION=change)
2021-07-10T22:36:57+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,912,25341007558,-;systemd-udevd[11256]: regulatory.0: IMPORT builtin 'hwdb' /usr/lib/udev/rules.d/50-udev-default.rules:14
2021-07-10T22:36:57+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,913,25341007984,-;systemd-udevd[11256]: regulatory.0: No entry found from hwdb.
2021-07-10T22:36:57+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,914,25341008031,-;systemd-udevd[11256]: regulatory.0: IMPORT builtin 'hwdb' fails: No data available
2021-07-10T22:36:57+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,915,25341008242,-;systemd-udevd[11256]: regulatory.0: Device (SEQNUM=3900, ACTION=change) processed
2021-07-10T22:36:57+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,916,25341008375,-;systemd-udevd[11256]: regulatory.0: sd-device-monitor: Passed 193 byte to netlink monitor
2021-07-10T22:37:03+02:00 s_dev_log@nanopineo2-286 syslog-ng[5427]: Syslog connection failed; fd='5', server='AF_INET(192.168.22.197:601)', error='No route to host (113)', time_reopen='5'
2021-07-10T22:37:04+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,917,25347342203,-;systemd-udevd[441]: Cleanup idle workers
2021-07-10T22:37:04+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,918,25347342610,-;systemd-udevd[11256]: Unload module index
2021-07-10T22:37:04+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,919,25347342837,-;systemd-udevd[11256]: Unloaded link configuration context.
2021-07-10T22:37:04+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,920,25347344785,-;systemd-udevd[441]: Worker [11256] exited
2021-07-10T22:37:04+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,921,25347662423,-;systemd-udevd[441]: regulatory.0: Device (SEQNUM=3902, ACTION=change) is queued
2021-07-10T22:37:04+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,922,25347662592,-;systemd-udevd[441]: Validate module index
2021-07-10T22:37:04+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,923,25347662735,-;systemd-udevd[441]: Check if link configuration needs reloading.
2021-07-10T22:37:04+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,924,25347663928,-;systemd-udevd[441]: Successfully forked off 'n/a' as PID 11348.
2021-07-10T22:37:04+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,925,25347664330,-;systemd-udevd[441]: regulatory.0: Worker [11348] is forked for processing SEQNUM=3902.
2021-07-10T22:37:04+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,926,25347665869,-;systemd-udevd[11348]: regulatory.0: Processing device (SEQNUM=3902, ACTION=change)
2021-07-10T22:37:11+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,927,25354318595,-;systemd-udevd[441]: regulatory.0: Device (SEQNUM=3904, ACTION=change) is queued
2021-07-10T22:37:11+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,928,25354318766,-;systemd-udevd[441]: Validate module index
2021-07-10T22:37:11+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,929,25354318907,-;systemd-udevd[441]: Check if link configuration needs reloading.
2021-07-10T22:37:11+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,930,25354319132,-;systemd-udevd[441]: regulatory.0: sd-device-monitor: Passed 193 byte to netlink monitor
2021-07-10T22:37:11+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,931,25354319336,-;systemd-udevd[11348]: regulatory.0: Processing device (SEQNUM=3904, ACTION=change)
2021-07-10T22:37:11+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,932,25354319722,-;systemd-udevd[11348]: regulatory.0: IMPORT builtin 'hwdb' /usr/lib/udev/rules.d/50-udev-default.rules:14
2021-07-10T22:37:11+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,933,25354320169,-;systemd-udevd[11348]: regulatory.0: No entry found from hwdb.
2021-07-10T22:37:11+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,934,25354320217,-;systemd-udevd[11348]: regulatory.0: IMPORT builtin 'hwdb' fails: No data available
2021-07-10T22:37:11+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,935,25354320414,-;systemd-udevd[11348]: regulatory.0: Device (SEQNUM=3904, ACTION=change) processed
2021-07-10T22:37:11+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,936,25354320540,-;systemd-udevd[11348]: regulatory.0: sd-device-monitor: Passed 193 byte to netlink monitor
2021-07-10T22:37:11+02:00 s_dev_log@nanopineo2-286 syslog-ng[5427]: Syslog connection failed; fd='26', server='AF_INET(192.168.22.197:601)', error='No route to host (113)', time_reopen='5'
2021-07-10T22:37:17+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,937,25360974695,-;systemd-udevd[441]: regulatory.0: Device (SEQNUM=3906, ACTION=change) is queued
2021-07-10T22:37:17+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,938,25360974863,-;systemd-udevd[441]: Validate module index
2021-07-10T22:37:17+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 1055,939,25360975005,-;systemd-udevd[441]: Check if link configuration needs reloading.
2021-07-10T22:37:17+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,940,25360975263,-;systemd-udevd[441]: regulatory.0: sd-device-monitor: Passed 193 byte to netlink monitor
2021-07-10T22:37:17+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,941,25360975547,-;systemd-udevd[11425]: regulatory.0: Processing device (SEQNUM=3906, ACTION=change)
2021-07-10T22:37:17+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,942,25360975927,-;systemd-udevd[11425]: regulatory.0: IMPORT builtin 'hwdb' /usr/lib/udev/rules.d/50-udev-default.rules:14
2021-07-10T22:37:17+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,943,25360976411,-;systemd-udevd[11425]: regulatory.0: No entry found from hwdb.
2021-07-10T22:37:17+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,944,25360976462,-;systemd-udevd[11425]: regulatory.0: IMPORT builtin 'hwdb' fails: No data available
2021-07-10T22:37:17+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,945,25360976670,-;systemd-udevd[11425]: regulatory.0: Device (SEQNUM=3906, ACTION=change) processed
2021-07-10T22:37:17+02:00 s_dev_kernel_kmsg@nanopineo2-286 kernel: 31,946,25360976806,-;systemd-udevd[11425]: regulatory.0: sd-device-monitor: Passed 193 byte to netlink monitor
L'interface est bien definie et opérationnelle

Code: Select all

wlx1cbfce7d1c2d  unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Enfin, le scanning des Equipments proches et opérationnel puisque ...

Code: Select all

local@nanopineo2-286:~$ 
sudo ip link set dev wlx1cbfce7d1c2d up
sudo iwlist wlx1cbfce7d1c2d scanning | grep -i Cell
          Cell 01 - Address: 14:0C:76:B3:40:79
          Cell 02 - Address: 14:0C:76:B3:40:77
          Cell 03 - Address: 68:3F:7D:BA:1D:10
          Cell 04 - Address: 14:0C:76:BB:BA:F8
 
Bref, De quoi faire un bel AP pour certains ...
:D
Cordialement
Post Reply