Problem configuring dongle Wifi on Raspberry Pi

Hello everybody,

I’m here because I have serious problem to activate Wifi for osmc on my raspberry Pi.
I made some research but none of them help me to resolve my problem.
I have a Wifi dongle (D-Link DWA-131). Maybe it’s just impossible to activate it.

When I go on the network section on osmc, I just have Wired possibility. I saw it was because my dongle is not recognized.

When i type the command dmesg, I have the following result :

[14529.424814] usb 1-1.3: USB disconnect, device number 4
[14535.096907] usb 1-1.3: new high-speed USB device number 6 using dwc_otg
[14535.229275] usb 1-1.3: New USB device found, idVendor=2001, idProduct=330d, bcdDevice= 2.00
[14535.229304] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[14535.229323] usb 1-1.3: Product: 802.11n WLAN Adapter
[14535.229336] usb 1-1.3: Manufacturer: Realtek
[14535.229348] usb 1-1.3: SerialNumber: 00xxxc000001
So I was thinking it was ok for the dongle.

[EDIT]
I also tried this command

sudo connmanctl
connmanctl> enable wifi
Error wifi: Method “SetProperty” with signature “sv” on interface “net.connman.Technology” doesn’t exist

[/EDIT]

As I couldn’t see the wifi option in networking section, I tried to add lines in /var/lib/connman/settings. (Wifi line was not in the file)

[Wifi]
Enable=true
Tethering=false
But that didn’t work

Last, I found the driver here : D-Link Support Resources
So I downloaded the driver and tried to install it

wget http://files.dlink.com.au/products/DWA-131/REV_E/Drivers/DWA-131_Linux_v5.6.3.1.zip
unzip -d . *.zip
cd 20190828_DWA-131_Linux_driver_v5.6.3.1/
tar zxvf rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047.tar.gz
cd rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047
make

However, I have this error :

make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/4.19.55-6-osmc/build M=/home/osmc/Downloads/20190828_DWA-131_Linux_driver_v5.6.3.1/rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047 modules
make[1]: *** /lib/modules/4.19.55-6-osmc/build: No such file or directory. Stop.
Makefile:2257: recipe for target ‘modules’ failed
make: *** [modules] Error 2

So I dont know what to do know.
Do you have some ideas ? Is it even possible.
Thanks for your help :slight_smile:

What chipset does it have?

Chipset for the dongle ? How can i know that ?

uname -a
Linux osmc 4.19.55-6-osmc #1 PREEMPT Mon Nov 4 00:06:36 UTC 2019 armv6l GNU/Linux

Is it that ?

Should be RTL8192CU

I think so. I dont know i can be sure about it

I assume you’ve installed the headers. If so, run this command:

sudo ln -s /usr/src/rbp1-headers-$(uname -r) /lib/modules/$(uname -r)/build

Edit: I see it’s a Pi1, so I’ve amended the command.

Note to @sam_nazarko Shouldn’t this be created by the headers package?

Yes – but there is still no solution to that yet.

Thanks for your answers. Now I’m facing this issue when I launch make command :

make[1]: Entering directory ‘/lib/modules/4.19.55-6-osmc/build’
make[1]: *** No rule to make target ‘modules’. Stop.
make[1]: Leaving directory ‘/lib/modules/4.19.55-6-osmc/build’
Makefile:2257: recipe for target ‘modules’ failed
make: *** [modules] Error 2

As I said, make file is downloaded from D-Link official website. Here are the lines :

2254 all: modules
2255
2256 modules:
2257 $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules
2258
2259 strip:
2260 $(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded

I tried with this driver : GitHub - lord2y/rtl8192eu-arm-linux-driver: Raspberry Pi Drivers for the rtl8192eu chipset for wireless adapters (D-Link DWA-131 rev E1 included!)
But I’m facing the same issue :frowning:

On a Pi3, that code builds successfully, though you need to fix the headers using this workaround. Perhaps it’s an armv6l-related problem.

osmc@osmc:~/rtl8192eu-arm-linux-driver$ modinfo 8192eu.ko
filename:       /home/osmc/rtl8192eu-arm-linux-driver/8192eu.ko
version:        v5.6.4_35685.20191108_COEX20171113-0047
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
license:        GPL
srcversion:     200A7F139A10A11F3B7062F
alias:          usb:v2C4Ep0104d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2C4Ep0100d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3319d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pAB33d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0126d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0109d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0108d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0107d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp818Cd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp818Bd*dc*dsc*dp*icFFiscFFipFFin*
depends:        cfg80211
name:           8192eu
vermagic:       4.19.55-6-osmc SMP preempt mod_unload modversions ARMv7 p2v8 
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_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_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_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_max_roaming_times:The max roaming times to try (uint)
parm:           rtw_mc2u_disable: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_tx_pwr_lmt_enable: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_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_iqk_fw_offload:int
parm:           rtw_ch_switch_offload:int

Unfortunately, it doesn’t include your device’s VID:PID combination:

[14535.229275] usb 1-1.3: New USB device found, idVendor=2001, idProduct=330d, bcdDevice= 2.00