pyeager
Posts: 17
Joined: Sun May 12, 2013 5:43 am

apt-get update and apt-get dist-upgrade broke wifi

Tue May 14, 2013 9:16 pm

So, I finally got WiFi working by installing a clean wheezy image, but I couldn't get wpa_gui working. Somewhere in a post here, I found the advice to do apt-get update and apt-get dist-upgrade.

Now, the WiFi dongle is shown in lsusb, and that's it. Nothing in dmesg about the dongle, nothing in lsmod showing the driver loaded... nothing.

This is driving me nuts! Anyone have any suggestions?

pyeager
Posts: 17
Joined: Sun May 12, 2013 5:43 am

Re: apt-get update and apt-get dist-upgrade broke wifi

Tue May 14, 2013 9:31 pm

So, i tried:

Code: Select all

modprobe 8192cu
...and the module loaded.

I then added 8192cu to /etc/modules, and now the module loads at boot, but still no wlan0.

pyeager
Posts: 17
Joined: Sun May 12, 2013 5:43 am

Re: apt-get update and apt-get dist-upgrade broke wifi

Tue May 14, 2013 9:32 pm

What else do I have to do to get the WiFi dongle recognized at boot time (or ever?)

pyeager
Posts: 17
Joined: Sun May 12, 2013 5:43 am

Re: apt-get update and apt-get dist-upgrade broke wifi

Tue May 14, 2013 9:36 pm

relevant dmesg output:

Code: Select all

[    3.852414] usb 1-1.3: Product: 802.11n WLAN Adapter
[    3.871930] usb 1-1.3: Manufacturer: Realtek
[    3.883647] usb 1-1.3: SerialNumber: 00e04c000001
[    3.973068] usb 1-1.2.3: new low-speed USB device number 6 using dwc_otg
[    4.099727] usb 1-1.2.3: New USB device found, idVendor=413c, idProduct=2003
[    4.123300] usb 1-1.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: apt-get update and apt-get dist-upgrade broke wifi

Wed May 15, 2013 3:51 am

Can you run a lsusb as well ?
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

pyeager
Posts: 17
Joined: Sun May 12, 2013 5:43 am

Re: apt-get update and apt-get dist-upgrade broke wifi

Wed May 15, 2013 5:04 am

Well, I could... but I think I have already toasted that image.

I started over YET AGAIN with a downloaded OS image.

I think I have the lsusb posted elsewhere though, and will post it here if I can find it.

pyeager
Posts: 17
Joined: Sun May 12, 2013 5:43 am

Re: apt-get update and apt-get dist-upgrade broke wifi

Wed May 15, 2013 5:06 am

Code: Select all

Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 005: ID 0846:9041 NetGear, Inc. WNA1000M 802.11bgn [Realtek RTL8188CUS]
Bus 001 Device 006: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 001 Device 007: ID 045e:0023 Microsoft Corp. Trackball Optical

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: apt-get update and apt-get dist-upgrade broke wifi

Wed May 15, 2013 5:14 am

So this new image...Does the wifi work then ?
Can you post a lsmod as well ?
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

pyeager
Posts: 17
Joined: Sun May 12, 2013 5:43 am

Re: apt-get update and apt-get dist-upgrade broke wifi

Wed May 15, 2013 6:41 am

Yes, as stated earlier, wifi works with a clean install of the current wheezy image.

As also stated earlier, performing apt-get update and apt-get dist-upgrade broke wifi.

I no longer have the broken system on a sd card.

yefred
Posts: 16
Joined: Thu May 16, 2013 10:55 pm

Re: apt-get update and apt-get dist-upgrade broke wifi

Thu May 16, 2013 11:18 pm

It seems i have the same problem, my wifi does not work anymore...

My lsmod :

Code: Select all

[email protected] ~ $ lsmod 
Module                  Size  Used by
rfcomm                 33168  0 
bnep                   10574  2 
bluetooth             193568  10 bnep,rfcomm
rfkill                 18202  2 bluetooth
snd_bcm2835            16304  0 
snd_pcm                77560  1 snd_bcm2835
snd_seq                53329  0 
snd_timer              19998  2 snd_pcm,snd_seq
snd_seq_device          6438  1 snd_seq
snd                    58447  5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
snd_page_alloc          5145  1 snd_pcm
evdev                   9426  1 
leds_gpio               2235  0 
led_class               3562  1 leds_gpio

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: apt-get update and apt-get dist-upgrade broke wifi

Fri May 17, 2013 1:09 am

yefred wrote:It seems i have the same problem, my wifi does not work anymore...

My lsmod :

Code: Select all

[email protected] ~ $ lsmod 
Module                  Size  Used by
rfcomm                 33168  0 
bnep                   10574  2 
bluetooth             193568  10 bnep,rfcomm
rfkill                 18202  2 bluetooth
snd_bcm2835            16304  0 
snd_pcm                77560  1 snd_bcm2835
snd_seq                53329  0 
snd_timer              19998  2 snd_pcm,snd_seq
snd_seq_device          6438  1 snd_seq
snd                    58447  5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
snd_page_alloc          5145  1 snd_pcm
evdev                   9426  1 
leds_gpio               2235  0 
led_class               3562  1 leds_gpio
you don't have the Wifi drivers loaded
Do you know what chipset you have in your wifi stick ?
Paste the contents of a 'lsusb' if you don't know.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

yefred
Posts: 16
Joined: Thu May 16, 2013 10:55 pm

Re: apt-get update and apt-get dist-upgrade broke wifi

Fri May 17, 2013 1:13 am

Code: Select all

[email protected] ~ $ lsusb 
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard
Bus 001 Device 005: ID 0846:9041 NetGear, Inc. WNA1000M 802.11bgn [Realtek RTL8188CUS]

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: apt-get update and apt-get dist-upgrade broke wifi

Fri May 17, 2013 1:14 am

what happens if you run 'sudo modprobe rtl8192cu' ?
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

yefred
Posts: 16
Joined: Thu May 16, 2013 10:55 pm

Re: apt-get update and apt-get dist-upgrade broke wifi

Fri May 17, 2013 10:05 am

Code: Select all

[email protected] ~ $ sudo modprobe rtl8192cu
FATAL: Module rtl8192cu not found.

yefred
Posts: 16
Joined: Thu May 16, 2013 10:55 pm

Re: apt-get update and apt-get dist-upgrade broke wifi

Fri May 17, 2013 10:16 am

I halfly solved my issue by running :

Code: Select all

sudo rpi-update 0fc090e8fbae693fae12bdf26b59c812ba99e141
(reverts firmware to before this commit https://github.com/Hexxeh/rpi-firmware/ ... 038da0946f)

and then :

Code: Select all

sudo bash /boot/install-rtl8188cus-latest.sh
(downloaded at http://dl.dropboxusercontent.com/u/8025 ... -latest.sh)

I got the wlan0 appearing and working, however, if i reboot, i have to run the install script again...

Note: I was using the latest fimrware obtained via rpi-update.

MrEngman
Posts: 3961
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: apt-get update and apt-get dist-upgrade broke wifi

Fri May 17, 2013 2:27 pm

The original driver used before it was integrated into the Linux source required a patch to recognise the Netgear WNA1000M. This patch was included when it was integrated into the Raspberry Pi Linux source - 3.2.27+ and earlier versions of 3.6.11+.

However, the driver has recently been upgraded using a newer version of the Realtek driver to fix a problem. I have check the latest source and the patch to use the WNA1000M is not included in the newer source. The patch is very basic:-

Code: Select all

diff -Naur rtl8192cu-old/os_dep/linux/usb_intf.c rtl8192cu/os_dep/linux/usb_intf.c
--- rtl8192cu-old/os_dep/linux/usb_intf.c	2013-04-17 00:16:02.000000000 +0100
+++ rtl8192cu/os_dep/linux/usb_intf.c	2013-05-17 14:16:15.733101975 +0100
@@ -114,6 +114,7 @@
 	{USB_DEVICE(0x4856, 0x0091)},//NetweeN - Feixun
 	{USB_DEVICE(0x2019, 0x4902)},//Planex - Etop
 	{USB_DEVICE(0x2019, 0xAB2E)},//SW-WF02-AD15 -Abocom
+	{USB_DEVICE(0x0846, 0x9041)},//Netgear
 
 	/****** 8188 RU ********/
 	{USB_DEVICE(0x0BDA, 0x317F)},//Netcore,Netcore
I have left a comment on the raspberrypi git reposity about it so hopefully it will be fixed soon.

MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MrEngman
Posts: 3961
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: apt-get update and apt-get dist-upgrade broke wifi

Fri May 17, 2013 2:51 pm

yefred wrote:I halfly solved my issue by running :

Code: Select all

sudo rpi-update 0fc090e8fbae693fae12bdf26b59c812ba99e141
(reverts firmware to before this commit https://github.com/Hexxeh/rpi-firmware/ ... 038da0946f)

and then :

Code: Select all

sudo bash /boot/install-rtl8188cus-latest.sh
(downloaded at http://dl.dropboxusercontent.com/u/8025 ... -latest.sh)

I got the wlan0 appearing and working, however, if i reboot, i have to run the install script again...

Note: I was using the latest fimrware obtained via rpi-update.
Are you using the script every time you reboot to get the wifi working? If so I would suggest running the following commands instead of the script and then see how it behaves.

Code: Select all

sudo rmmod 8192cu
sudo insmod /lib/modules/3.6.11+/kernel/drivers/net/wireless/rtl8192cu/8192cu.ko
sudo depmod -a
rmmod may give an error if no module is loaded after rebooting.

Do you also have a wired network cable attached as well? If you do try rebooting with the Ethernet cable disconnected.

MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

yefred
Posts: 16
Joined: Thu May 16, 2013 10:55 pm

Re: apt-get update and apt-get dist-upgrade broke wifi

Fri May 17, 2013 3:33 pm

Thanks for the reply MrEngman.

Only the two last lines seems necessary :

Code: Select all

sudo insmod /lib/modules/3.6.11+/kernel/drivers/net/wireless/rtl8192cu/8192cu.ko
sudo depmod -a
rmmod gives me :

Code: Select all

[email protected] ~ $ sudo rmmod 8192cu
Error: Module 8192cu is not currently loaded
If i boot without the ethernet cable connected, the wifi does not work after boot either.

By the way, i noticed that if i hotplug the ethernet cable after the boot, the network is not available also.

Here is my interfaces file :

Code: Select all

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "XXXXXX"
wpa-psk "YYYYYY"

iface default inet dhcp
So i should wait for your patch to be integrated to raspberrypi ?
What can i do meanwhile ?
Do you have an idea about the hotplug eth0 ?

MrEngman
Posts: 3961
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: apt-get update and apt-get dist-upgrade broke wifi

Fri May 17, 2013 4:34 pm

Your /etc/network/interfaces file looks a little odd for the later versions of code. Wonder if this is confusing the network code. I usually run with just wifi but plugged in an Ethernet cable to see what happens and it came up straight away. However my network is a local domain with domain controller and so the attached machines connect to that rather than directly to an ADSL router. Whether that should make a difference I'm not really sure.

My /etc/network/interfaces looks like

Code: Select all

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "name"
wpa-psk "password"
Not sure what may be happening but suggest you try removing/commenting out following lines and see if it makes any difference

Code: Select all

auto eth0
allow-hotplug eth0

iface default inet dhcp
MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

yefred
Posts: 16
Joined: Thu May 16, 2013 10:55 pm

Re: apt-get update and apt-get dist-upgrade broke wifi

Fri May 17, 2013 5:02 pm

MrEngman wrote: Not sure what may be happening but suggest you try removing/commenting out following lines and see if it makes any difference

Code: Select all

auto eth0
allow-hotplug eth0

iface default inet dhcp
MrEngman
Yes that works better (for the eth0 hotplug part) !

MrEngman
Posts: 3961
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: apt-get update and apt-get dist-upgrade broke wifi

Fri May 17, 2013 9:11 pm

yefred wrote:
MrEngman wrote: Not sure what may be happening but suggest you try removing/commenting out following lines and see if it makes any difference

Code: Select all

auto eth0
allow-hotplug eth0

iface default inet dhcp
MrEngman
Yes that works better (for the eth0 hotplug part) !
That's good to hear. Not sure what to do about the wifi. Have to have a think about it. Don't now why but I never seem to have many problems.

Anyway just in case you are interested I have updated and compiled a new version of the 8192cu drive to fix the issue with the WNA1000M so you can use it with newer kernels if you want to until the RPi kernel is updated. I have tried it with rpi_update 7d7f8510f103f3c6686835c0a002de038da0946f Apr 10 version #408, which is when it broke, and the latest released from today #450 and it looks OK with both so should work with all versions in between.

First run rpi-update to update Linux and reboot then to download and install the fixed driver use the commands

Code: Select all

wget http://db.tt/8tJ17aXM -O 8192cu-WNA1000M-fix.tar.gz
tar -xzvf 8192cu-WNA1000M-fix.tar.gz
sudo install -p -m 644 8192cu.ko /lib/modules/3.6.11+/kernel/drivers/net/wireless/rtl8192cu
sudo depmod -a
Reboot and hopefully the wifi will start up.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

pyeager
Posts: 17
Joined: Sun May 12, 2013 5:43 am

Re: apt-get update and apt-get dist-upgrade broke wifi

Sat May 18, 2013 4:11 am

Thanks, MrEngman! I will try this as soon as I have the time.

yefred
Posts: 16
Joined: Thu May 16, 2013 10:55 pm

Re: apt-get update and apt-get dist-upgrade broke wifi

Mon May 20, 2013 10:39 am

MrEngman wrote: Anyway just in case you are interested I have updated and compiled a new version of the 8192cu drive to fix the issue with the WNA1000M so you can use it with newer kernels if you want to until the RPi kernel is updated. I have tried it with rpi_update 7d7f8510f103f3c6686835c0a002de038da0946f Apr 10 version #408, which is when it broke, and the latest released from today #450 and it looks OK with both so should work with all versions in between.

First run rpi-update to update Linux and reboot then to download and install the fixed driver use the commands

Code: Select all

wget http://db.tt/8tJ17aXM -O 8192cu-WNA1000M-fix.tar.gz
tar -xzvf 8192cu-WNA1000M-fix.tar.gz
sudo install -p -m 644 8192cu.ko /lib/modules/3.6.11+/kernel/drivers/net/wireless/rtl8192cu
sudo depmod -a
Reboot and hopefully the wifi will start up.


MrEngman
Thanks, your patch seems to work fine, but i still have to run :

Code: Select all

sudo insmod /lib/modules/3.6.11+/kernel/drivers/net/wireless/rtl8192cu/8192cu.ko
sudo depmod -a
after every reboot.

MrEngman
Posts: 3961
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: apt-get update and apt-get dist-upgrade broke wifi

Mon May 20, 2013 11:42 pm

Just to let those using the WNA1000M know - the latest rpi-update has fixed the driver and the WNA1000M should now work again with the built in driver.

MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MrEngman
Posts: 3961
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: apt-get update and apt-get dist-upgrade broke wifi

Tue May 21, 2013 12:29 am

yefred wrote: Thanks, your patch seems to work fine, but i still have to run :

Code: Select all

sudo insmod /lib/modules/3.6.11+/kernel/drivers/net/wireless/rtl8192cu/8192cu.ko
sudo depmod -a
after every reboot.
You could try updating using sudo rpi-update as the built in driver is now fixed.

MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Return to “Troubleshooting”