try:
sudo apt-get -f install
then start again
try:
sudo apt-get -f install
then start again
leo@leo-desktop:~$ sudo apt-get install build-essential dkms git
Reading package lists… Done
Building dependency tree
Reading state information… Done
build-essential is already the newest version.
git is already the newest version.
dkms is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up linux-headers-4.1.10-v7+ (4.1.10-v7±2) …
make: Entering directory ‘/usr/src/linux-headers-4.1.10-v7+’
*** Default configuration is based on ‘bcm2709_defconfig’
make: Leaving directory ‘/usr/src/linux-headers-4.1.10-v7+’
make: Entering directory ‘/usr/src/linux-headers-4.1.10-v7+’
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: ‘include/generated/mach-types.h’ is up to date.
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
grep: scripts/…/arch/x86/syscalls/syscall_32.tbl: No such file or directory
make: Leaving directory ‘/usr/src/linux-headers-4.1.10-v7+’
dpkg-query: package ‘8188eu-dkms’ is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
/usr/sbin/dpkg-reconfigure: 8188eu-dkms is not installed
dpkg: error processing package linux-headers-4.1.10-v7+ (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
linux-headers-4.1.10-v7+
E: Sub-process /usr/bin/dpkg returned an error code (1)
It’s something impossible ;D ;D ;D
Is it better that I format the MicroSD?
OK one step at a time…
What’s the output from:
cd ~/kernel-headers
then
sudo dpkg -i linux-headers-4.1.10-v7+_4.1.10-v7+-2_armhf.deb
I formatted the MicroSD and I restarted with
sudo apt-get build-essential dkms git
Then:
leo@leo-desktop:~/kernel-headers$ sudo dpkg -i linux-headers-4.1.10-v7+_4.1.10-v7±2_armhf.deb
dpkg: error processing archive linux-headers-4.1.10-v7+_4.1.10-v7±2_armhf.deb (–install):
cannot access archive: No such file or directory
Errors were encountered while processing:
linux-headers-4.1.10-v7+_4.1.10-v7±2_armhf.deb
Did you do this part?
cd ~/kernel-headers
then
wget http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/linux-headers-4.1.10-v7%2B_4.1.10-v7%2B-2_armhf.deb
before
sudo dpkg -i linux-headers-4.1.10-v7+_4.1.10-v7+-2_armhf.deb
So you’ve done a fresh install ?
If so we’ll have to start from the beginning again … what’s the output from:
uname -a
I’ve done everything!!!
How could I see if everything works correctly?
But, when I boot the Raspberry it’s possible to read [ 5.575058] Error: Driver ‘r8188eu’ is already registered, aborting…
run:
echo "blacklist r8188eu" | sudo tee -a /etc/modprobe.d/blacklist.conf
then REBOOT.
Do you still get that message ?
After the above, what’s the output from:
lsmod
leo@leo-desktop:~$ lsmod
Module Size Used by
rfcomm 34759 14
hid_magicmouse 5391 0
evdev 10216 2
joydev 9047 0
hid_apple 4840 0
hidp 13516 2
fuse 81710 3
cfg80211 420690 0
bnep 10642 2
bcm2835_gpiomem 3023 0
8188eu 736401 0
uio_pdrv_genirq 2966 0
uio 8235 1 uio_pdrv_genirq
btusb 29247 0
btbcm 4430 1 btusb
btintel 1381 1 btusb
bluetooth 327544 47 bnep,hidp,btbcm,btusb,rfcomm,btintel
rfkill 16659 5 cfg80211,bluetooth
bcm2708_rng 980 0
snd_bcm2835 19769 1
snd_pcm_oss 37207 0
snd_mixer_oss 14367 1 snd_pcm_oss
snd_pcm 74825 2 snd_bcm2835,snd_pcm_oss
snd_seq_dummy 1124 0
snd_seq_oss 31795 0
snd_seq_midi 4472 0
snd_rawmidi 18068 1 snd_seq_midi
snd_seq_midi_event 5383 2 snd_seq_oss,snd_seq_midi
snd_seq 53561 6 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy,snd_seq_midi
snd_seq_device 3650 4 snd_seq,snd_rawmidi,snd_seq_oss,snd_seq_midi
snd_timer 18157 2 snd_pcm,snd_seq
snd 52116 11 snd_bcm2835,snd_pcm_oss,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_seq_oss,snd_seq_device,snd_mixer_oss
ipv6
Do you still get the error message ?
does wireless now work ?
Yes,
everything works well.
Good job!
Hi,
I followed the instructions on the first post of this thread in attempt to get my old 32bit linuxcnc machine (debian wheezy based, 3.4.9-rtai kernel) connected to my wifi hub which is a BT Home Hub 2 I believe. The driver compiled, installed and gets loaded just fine but no matter what I try I cannot get the machine to authenticate with the hub. It sees the network but cannot connect. I tries but then just asks for the password over and over again. I’ve tried everything I can with the network settings and checked the password several times but no avail.
Strangely enough I can connect to my Raspberry Pi which I’ve set up as a WiFi access point for other purposes.
Any help would be appreciated.
Ta,
Kari
Try setting a static IP for your IPv4 profile in network manager.
Thanks for the quick answer. Unfortunately the result remains the same. The syslog below indicates some kind of timeout during authentication. Not sure what this means…
Just for sake of testing I plugged in the mini wifi usb dongle (rtl8192cu based) from my Raspberry Pi into this machine and it worked. However I’d rather get this D-Link GO-USB-N150 to work with it instead as it’s bigger and not really suitable for Raspberry Pi because of that.
Here’s the syslog. Hope it tells you something:
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: get_secret_flags: assertion `is_secret_prop (setting, secret_name, error)' failed
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare) scheduled...
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare) started...
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> (wlan1): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure) scheduled...
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare) complete.
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure) starting...
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> (wlan1): device state change: prepare -> config (reason 'none') [40 50 0]
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Activation (wlan1/wireless): connection 'BTHomeHub2-6G7C' has security, and secrets exist. No new secrets needed.
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Config: added 'ssid' value 'BTHomeHub2-6G7C'
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Config: added 'scan_ssid' value '1'
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Config: added 'psk' value '<omitted>'
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure) complete.
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Config: set interface ap_scan to 1
Dec 16 20:21:51 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: disconnected -> scanning
Dec 16 20:21:52 linuxcnc wpa_supplicant[3350]: wlan1: Trying to associate with 00:20:4d:2b:e6:50 (SSID='BTHomeHub2-6G7C' freq=2457 MHz)
Dec 16 20:21:52 linuxcnc wpa_supplicant[3350]: wlan1: Association request to the driver failed
Dec 16 20:21:52 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: scanning -> associating
Dec 16 20:21:52 linuxcnc wpa_supplicant[3350]: wlan1: Associated with 00:20:4d:2b:e6:50
Dec 16 20:21:52 linuxcnc kernel: [ 2501.097840] R8188EU: INFO assoc success
Dec 16 20:21:52 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: associating -> associated
Dec 16 20:22:02 linuxcnc wpa_supplicant[3350]: wlan1: Authentication with 00:20:4d:2b:e6:50 timed out.
Dec 16 20:22:02 linuxcnc kernel: [ 2511.099580] R8188EU: INFO indicate disassoc
Dec 16 20:22:02 linuxcnc wpa_supplicant[3350]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
Dec 16 20:22:02 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: associated -> disconnected
Dec 16 20:22:03 linuxcnc kernel: [ 2512.421088] R8188EU: INFO indicate disassoc
Dec 16 20:22:03 linuxcnc wpa_supplicant[3350]: wlan1: Trying to associate with 00:20:4d:2b:e6:50 (SSID='BTHomeHub2-6G7C' freq=2457 MHz)
Dec 16 20:22:03 linuxcnc wpa_supplicant[3350]: wlan1: Association request to the driver failed
Dec 16 20:22:03 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: disconnected -> associating
Dec 16 20:22:03 linuxcnc wpa_supplicant[3350]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:20:4d:2b:e6:50 reason=0
Dec 16 20:22:03 linuxcnc kernel: [ 2512.463413] R8188EU: INFO assoc success
Dec 16 20:22:03 linuxcnc wpa_supplicant[3350]: wlan1: Trying to associate with 00:20:4d:2b:e6:50 (SSID='BTHomeHub2-6G7C' freq=2457 MHz)
Dec 16 20:22:03 linuxcnc wpa_supplicant[3350]: wlan1: Association request to the driver failed
Dec 16 20:22:03 linuxcnc kernel: [ 2512.482090] R8188EU: INFO indicate disassoc
Dec 16 20:22:03 linuxcnc wpa_supplicant[3350]: wlan1: Associated with 00:00:00:00:00:00
Dec 16 20:22:03 linuxcnc wpa_supplicant[3350]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:20:4d:2b:e6:50 reason=0
Dec 16 20:22:03 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: associating -> disconnected
Dec 16 20:22:03 linuxcnc wpa_supplicant[3350]: wlan1: Associated with 00:20:4d:2b:e6:50
Dec 16 20:22:03 linuxcnc kernel: [ 2512.568101] R8188EU: INFO assoc success
Dec 16 20:22:03 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: disconnected -> associated
Dec 16 20:22:13 linuxcnc wpa_supplicant[3350]: wlan1: Authentication with 00:20:4d:2b:e6:50 timed out.
Dec 16 20:22:13 linuxcnc wpa_supplicant[3350]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
Dec 16 20:22:13 linuxcnc kernel: [ 2522.568921] R8188EU: INFO indicate disassoc
Dec 16 20:22:13 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: associated -> disconnected
Dec 16 20:22:15 linuxcnc kernel: [ 2523.892974] R8188EU: INFO indicate disassoc
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: Trying to associate with 00:20:4d:2b:e6:50 (SSID='BTHomeHub2-6G7C' freq=2457 MHz)
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: Association request to the driver failed
Dec 16 20:22:15 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: disconnected -> associating
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:20:4d:2b:e6:50 reason=0
Dec 16 20:22:15 linuxcnc NetworkManager[2885]: <warn> Activation (wlan1/wireless): association took too long.
Dec 16 20:22:15 linuxcnc NetworkManager[2885]: <info> (wlan1): device state change: config -> need-auth (reason 'none') [50 60 0]
Dec 16 20:22:15 linuxcnc NetworkManager[2885]: <warn> Activation (wlan1/wireless): asking for new secrets
Dec 16 20:22:15 linuxcnc kernel: [ 2524.035647] R8188EU: INFO assoc success
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: Trying to associate with 00:20:4d:2b:e6:50 (SSID='BTHomeHub2-6G7C' freq=2457 MHz)
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: Association request to the driver failed
Dec 16 20:22:15 linuxcnc kernel: [ 2524.053837] R8188EU: INFO indicate disassoc
Dec 16 20:22:15 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: associating -> disconnected
Dec 16 20:22:15 linuxcnc NetworkManager[2885]: <warn> Couldn't disconnect supplicant interface: This interface is not connected.
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: Associated with 00:00:00:00:00:00
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: No network configuration found for the current AP
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
Dec 16 20:22:15 linuxcnc kernel: [ 2524.137869] R8188EU: INFO assoc success
Dec 16 20:22:15 linuxcnc kernel: [ 2524.138464] R8188EU: INFO indicate disassoc
Dec 16 20:22:16 linuxcnc wpa_supplicant[3350]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
Dec 16 20:22:16 linuxcnc kernel: [ 2525.469342] R8188EU: INFO indicate disassoc
is it picking up your router with:
iwlist scan
?
and can you post the output from:
lsmod
Yes. Among a few others iwlist scan finds my router:
Cell 02 - Address: 00:23:4D:2B:E6:50
ESSID:"BTHomeHub2-6G7C"
Protocol:IEEE 802.11bgn
Mode:Master
Frequency:2.457 GHz (Channel 10)
Encryption key:on
Bit Rates:130 Mb/s
Extra:wpa_ie =dc1c0050f20101000050f20202000050f2040050f20201000050f2020c00
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
Extra:rsn_ie =31180100000fac020200000fac04000fac020100000fac020c00
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
Quality:0 Signal level:0 Noise level:0
And lsmod says:
Module Size Used by
8188eu 637056 0
ppdev 12591 0
lp 12767 0
bnep 17186 2
rfcomm 36117 0
bluetooth 166348 10 bnep,rfcomm
rfkill 18403 3 bluetooth
uinput 17057 1
nfsd 202675 2
nfs 277039 0
nfs_acl 12464 2 nfs,nfsd
auth_rpcgss 32226 2 nfs,nfsd
fscache 35490 1 nfs
lockd 56898 2 nfs,nfsd
sunrpc 151263 6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
loop 21832 0
snd_intel8x0 22341 1
snd_ac97_codec 96201 1 snd_intel8x0
snd_pcm 69181 2 snd_ac97_codec,snd_intel8x0
snd_page_alloc 12842 2 snd_intel8x0,snd_pcm
snd_seq 43338 0
snd_seq_device 12981 1 snd_seq
snd_timer 22188 2 snd_pcm,snd_seq
snd 46731 8 snd_ac97_codec,snd_intel8x0,snd_timer,snd_pcm,snd_seq,snd_seq_device
shpchp 30674 0
soundcore 12891 1 snd
ac97_bus 12463 1 snd_ac97_codec
k8temp 12476 0
evdev 17099 9
parport_pc 21896 1
parport 35208 3 lp,ppdev,parport_pc
i2c_nforce2 12521 0
i2c_core 23097 1 i2c_nforce2
button 12818 0
ext4 270189 1
crc16 12328 2 ext4,bluetooth
jbd2 54294 1 ext4
mbcache 12899 1 ext4
sg 25482 0
sd_mod 43403 3
crc_t10dif 12333 1 sd_mod
usbhid 39608 0
ata_generic 12440 0
hid 72252 1 usbhid
pata_amd 13084 2
sata_nv 22085 0
floppy 51935 0
libata 152992 3 sata_nv,pata_amd,ata_generic
scsi_mod 125436 3 sg,libata,sd_mod
ohci_hcd 26266 0
ehci_hcd 43561 0
forcedeth 56263 0
usbcore 124257 5 ohci_hcd,ehci_hcd,usbhid,8188eu
usb_common 12339 1 usbcore
Appreciate your help!
will it connect if you temporarily (just as a test) disable wireless security in your router ?
and can you post the output from:
modinfo 8188eu
and
ls -l /lib/firmware/rtlwifi/rtl8188eufw.bin
and
sudo lshw -C network
[EDIT]
Bit Rates:130 Mb/s
There’s normally a list of possible connection speeds here…
Can you check if wireless in your router is set to wireless “N” only … if it is, try setting it to “B/G/N”
Ok. Getting some progress now. I was able to connect when I changed the security from wpa/wpa2 personal to none. The router was already set to 802.11 b/g/n so I didn’t change it. In the router’s settings page it also says “Actual data transfer speed 65 Mbps”. Not sure where the 130 came from…
Anyway here are the outputs you asked for:
modinfo 8188eu
filename: /lib/modules/3.4-9-rtai-686-pae/kernel/drivers/net/wireless/8188eu.ko
version: v4.1.4_6773.20130222
author: Realtek Semiconductor Corp.
description: Realtek Wireless Lan Driver
license: GPL
srcversion: BB97F7E3F4F970628EC7EA3
alias: usb:v056Ep4008d*dc*dsc*dp*ic*isc*ip*
alias: usb:v2001p3311d*dc*dsc*dp*ic*isc*ip*
alias: usb:v2001p3310d*dc*dsc*dp*ic*isc*ip*
alias: usb:v2001p330Fd*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DF6p0076d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07B8p8179d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0BDAp0179d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0BDAp8179d*dc*dsc*dp*ic*isc*ip*
depends: usbcore
vermagic: 3.4-9-rtai-686-pae SMP preempt mod_unload modversions 686
parm: rtw_ips_mode:The default IPS mode (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_initmac:charp
parm: rtw_channel_plan: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_cbw40_enable:int
parm: rtw_ampdu_enable:int
parm: rtw_rx_stbc:int
parm: rtw_ampdu_amsdu:int
parm: rtw_lowrate_two_xmit:int
parm: rtw_rf_config:int
parm: rtw_power_mgnt:int
parm: rtw_smart_ps:int
parm: rtw_low_power:int
parm: rtw_wifi_spec:int
parm: rtw_antdiv_cfg:int
parm: rtw_antdiv_type:int
parm: rtw_enusbss:int
parm: rtw_hwpdn_mode:int
parm: rtw_hwpwrp_detect:int
parm: rtw_hw_wps_pbc:int
parm: rtw_max_roaming_times:The max roaming times to try (uint)
parm: rtw_fw_iol:FW IOL (int)
parm: rtw_mc2u_disable:int
parm: rtw_80211d:Enable 802.11d mechanism (int)
parm: rtw_notch_filter:0:Disable, 1:Enable, 2:Enable only for P2P (uint)
parm: debug:Set debug level (1-9) (default 1) (int)
ls -l /lib/firmware/rtlwifi/rtl8188eufw.bin
root@linuxcnc:~# ls -l /lib/firmware/rtlwifi/rtl8188eufw.bin
-rw-r--r-- 1 root root 13904 Dec 16 02:44 /lib/firmware/rtlwifi/rtl8188eufw.bin
sudo lshw -C network (while connected to the open wifi network)
*-network
description: Wireless interface
physical id: 1
bus info: usb@1:7
logical name: wlan1
serial: c4:a8:1d:f3:04:98
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=r8188eu ip=192.168.1.69 multicast=yes wireless=IEEE 802.11bgn
sudo lshw -C network (while wpa/wpa2 security on and unable to connect)
*-network
description: Wireless interface
physical id: 1
bus info: usb@1:7
logical name: wlan1
serial: c4:a8:1d:f3:04:98
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=r8188eu multicast=yes wireless=unassociated
What happens if you run:
sudo rmmod r8188eu
then
sudo modprobe 8188eu
are you then able to connect ?
if not, can you post the output from:
lsmod
Thanks for trying. My system does not have a module named r8188eu so the result of lsmod is identical to my reply #95.
I found a few other hits online regarding WPA/WPA2 authentication problems with Realtek chips in Linux. Few of them turned out to be a bug in the driver so I’ve raised an issue at GitHub. I will reply here if I get a solution to this.