Wifi and NETGEAR N150

Hei,

Does anyone know how I can get volumio working with the Netgear 150 wireless USB adaptor ?
I plugged it in, configured it in the web gui but it does not appear to connect. The web gui shows now IP address on the wlan0 interface and if I unplug the cable I cannot access the PI.

There does not appear to be any error message anywhere that I have managed to find (I am not an expert PI user).

If I ssh into the PI and run dmesg I can see:

usb 1-1.2: new high-speed USB device number 4 using dwc_otg
usb 1-1.2: New USB device found, idVendor=0846, idProduct=9041
usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.2: Product: 802.11n WLAN Adapter
usb 1-1.2: Manufacturer: Realtek
usb 1-1.2: SerialNumber: 00e04c000001

So it appears to be detecting the adapter.

If I run “ip link show” :

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
link/ether b8:27:eb:e8:e5:16 brd ff:ff:ff:ff:ff:ff

I cannot see the wlan0, so I think there is a problem somewhere … but where.

I have looked at the automatic script written by MrEngman, but when I run it I get:

"An RTL8188CUS driver module is installed but is not loaded.

You have 1 wifi adapter configured.
wlan0 is configured but is not installed.

The Pi has an internet connection.

Any files needed for the installation/upgrade will be downloaded from the
Internet unless they have already been copied to the SD card /boot directory.

Unrecognised software version: Linux volumio 3.8.10+ #1 PREEMPT Mon Oct 21 10:36:33 CEST 2013 armv6l GNU/Linux

Downloading the latest script.

The script you’re using is the latest version.

Aborting the rtl8188cus installation script."

Reading around a bit, it appears that the script should no longer be needed since the correct drivers should be included in the base image.

Anyone have an idea why it is not working, or any help in investigating how to get it working ?

Thanks
Ian

Reboot the PI, without Ethernet. It should work!

A reboot does not appear to help, with or without the cable attached.
And of course when the cable is not attached I cannot contact the pi to see what has happened !

How can I debug this ?

If you reboot with cable connected? Can you see the Webui? If yes, does wlan0 has an Ip?

If I put the cable back in, I can connect again and then the wlan0 still does not have an IP.
Is there anyway I can see a log from the attempted WLAN connect to see what is failing ?

I have also set up an open WLAN and tried to connect to that.
The problem now is that when I try and change the wlan network settings the webUI says “Netconfig saved” but displays the old values. I have even tried the “reset to default” option but it does not appear to work.

Looks like I am going to have to try and burn a new image and start again :unamused:

∕Ian

New image burnt.
When I try and save wifi settings, nothing appears to be saving. There seems to be a problem with the WebGUI showing the values in FireFox on Ubuntu, but when I look in Safari on an iPhone there are no values saved. Adding values in Safari also does not save them dispite getting the “Netconfig saved” message. No other error message is visable.

Same values in “dmesg” and “ip link show” - no wlan showing.

Rebooting does not help.

After saving the wifi settings, can I check anything through “ssh” to see the saved config ?

Is there any logging anywhere ?

Quickly losing faith …
∕Ian

To see if your wlan is recognized, just type in ssh

ifconfig -a

mine looks like that:

[code]eth0 Link encap:Ethernet HWaddr b8:27:eb:be:eb:28
inet addr:192.168.1.140 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::ba27:ebff:febe:eb28/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1196957 errors:0 dropped:0 overruns:0 frame:0
TX packets:786598 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1574217504 (1.4 GiB) TX bytes:94834021 (90.4 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:11269 errors:0 dropped:0 overruns:0 frame:0
TX packets:11269 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3893688 (3.7 MiB) TX bytes:3893688 (3.7 MiB)

wlan0 Link encap:Ethernet HWaddr 80:1f:02:82:25:73
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

[/code]

If you can’t see wlan0 this means you got problems with the driver being loaded… I already installed firmware-realtek… but you can try reinstalling with

sudo apt-get remove firmware-realtek sudo apt-get install firmware-realtek

If this doesn’t work, we have to look on how to enable your specific dongle with proper driver

ifconfig -a

eth0      Link encap:Ethernet  HWaddr b8:27:eb:e8:e5:16  
          inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ba27:ebff:fee8:e516/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3563 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2774 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1101911 (1.0 MiB)  TX bytes:305762 (298.5 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:393 errors:0 dropped:0 overruns:0 frame:0
          TX packets:393 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:102340 (99.9 KiB)  TX bytes:102340 (99.9 KiB)

No wlan0 present.

sudo apt-get remove firmware-realtek

Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: firmware-realtek 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 493 kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 33802 files and directories currently installed.) Removing firmware-realtek ...

sudo apt-get install firmware-realtek

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package firmware-realtek

why does the install fail ?

sudo apt-get update

then you go

Thank you for your help and patience michelangelo.

sudo apt-get update completed OK.

sudo apt-get install firmware-realtek

[code]Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
linux-image
The following NEW packages will be installed:
firmware-realtek
0 upgraded, 1 newly installed, 0 to remove and 95 not upgraded.
Need to get 215 kB of archives.
After this operation, 493 kB of additional disk space will be used.
Get:1 http://archive.raspbian.org/raspbian/ wheezy/non-free firmware-realtek all 0.36+wheezy.1 [215 kB]
Fetched 215 kB in 0s (239 kB/s)
Selecting previously unselected package firmware-realtek.
(Reading database … 33775 files and directories currently installed.)
Unpacking firmware-realtek (from …/firmware-realtek_0.36+wheezy.1_all.deb) …
Setting up firmware-realtek (0.36+wheezy.1) …
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools …
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB

Total disk space freed by localepurge: 0 KiB

root@volumio:~# [/code]
Looks OK to me.

Reboot.

ifconfig -a

[code]eth0 Link encap:Ethernet HWaddr b8:27:eb:e8:e5:16
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::ba27:ebff:fee8:e516/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2836 errors:0 dropped:0 overruns:0 frame:0
TX packets:2726 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:874334 (853.8 KiB) TX bytes:263501 (257.3 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:189 errors:0 dropped:0 overruns:0 frame:0
TX packets:189 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:42011 (41.0 KiB) TX bytes:42011 (41.0 KiB)
[/code]

Still no wlan0

Anywhere else I can check to see if there is an error message to explain why the wireless USB plus is not loading ?

Hi,

try

modprobe rt2800usb .

I have Ralink RT5370 802.11 b/g/n, and I use this setup:

[code]root@volumio:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

auto eth0
iface eth0 inet static
address 192.168.0.201
netmask 255.255.255.0
gateway 192.168.0.1[/code]

[code]
root@volumio:~# cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1

network={
ssid=“ssid_name”
psk=“password”
scan_ssid=1
proto=WPA2
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
id_str=“Volumio”
}[/code]

And I also used ifdown and ifup on wlan0 for restart, but wlan0 is working well after that… actually I had to use wpa_supplicant.conf, because with RT5370 I had a problem to connect to hidden SSID, with this setup, it`s working well.

Hi ronnicek,

Thanks for the suggestions.

I tried “modprobe rt2800usb”.
I am not sure what this should do, you do not mention anything in your post. The command ran, but did not give any output.

If did not have any other visable effect on the setup either.

I do not know much about Linux, but I assumed that you wanted me to manually update “/etc/network/interfaces” to have similar settings to yours.

[code]root@volumio:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp

auto eth0
iface eth0 inet dhcp
[/code]
I did not add the section about “/etc/wpa_supplicant/wpa_supplicant.conf” as I do not have a hidden SSID.

After a reboot, this still did not appear to have any effect.

root@volumio:~# ip link show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000 link/ether b8:27:eb:e8:e5:16 brd ff:ff:ff:ff:ff:ff
I also tried “ifup wlan0”

[code]root@volumio:~# ifup wlan0
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Cannot find device “wlan0”
Bind socket to interface: No such device
Failed to bring up wlan0.
[/code]
But that did not appear to be successful.

However when I go back to the network page of Volumio.local, I now get this:

Pressing “Manual Edit” does not seem to help.
Pressing “Reset Network Config” appears to update /etc/network/interfaces and removes the wlan0 section that I added.

Any other ideas ?

Could you give me output of lsusb command?

Hi…. I too experience no WiFi on Volumio 1.1beta using the WebGUI. I am using the Edimax EW-7811Un USB WiFi dongle. I believe the problem not to be the Netgear N150 adapter, but an issue with this build. I have found two solutions that are a work around for the problem. One is to manually edit the /etc/network/interfaces file with appropriate WiFi wlan0 entries. I do not recommend this solution as it is not the optimum way to assure a solid solution. Do try:
Wi-fi on Raspberry Pi, a simple guide
raspyfi.com/wi-fi-on-raspber … ple-guide/

Quoted from the guide do check out the guide using the URL above
If you’ve not installed Wicd-curses just type:
sudo apt-get update
sudo apt-get install wicd-curses
Ok, now we are ready to start, type:
sudo wicd-curses
You’ll get a list of the wireless network found by the Raspberry PI

Now, you can select your Wi-fi Network, just highlight it with arrow keys and press right arrow key to edit its properties:

When you’re done, just press F10 to save, then it should connect!

Let me know if this helps you as it did work for me on the Raspberry Pi. I hope for a future WiFi fix that allows us to use the WebGUI.

Hi Ronnicek,

root@volumio:~# 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 0846:9041 NetGear, Inc. WNA1000M 802.11bgn [Realtek RTL8188CUS]

Hi Tracer5,

Thanks for the tip, but I think my problem is lower level than yours since when I install and fireup wicd-curses it shows no wifi networks. I think this must be because I have no wlan0 available.

Hopefully someone will be able to tell me how to get wlan0 installed and configured.

∕Ian

Hi Lan
Looks like you are correct. When wicd-curses does not show any WiFi entries there is a low level problem with your WiFi adapter or driver.

My WiFi dongle is:
EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS] - (Edimax Technology Co., Ltd)
Your WiFi dongle is:
802.11n Netgear N150 chipset is Realtek RTL8188CUS.

Module rtl8192cu supports:
Realtek chipsets (RTL8188CE-VAU, RTL8188CUS, RTL8192CU)

Wicd-curses may not see your adapter. Please:

sudo wicd-curses
then press P (that stands for preferences). You’ll find that there’s a field called wireless interface, which if empty. Just write wlan0
in it. Then F10 to save.

  • tracer5

Good, then lsmod command? :slight_smile:

Hi Ronnicek,

root@volumio:~# lsmod Module Size Used by nfsd 68584 0 exportfs 2920 1 nfsd ipv6 210080 36 snd_bcm2835 11528 2 snd_soc_wm8731 8300 0 snd_soc_tlv320aic23 6852 0 snd_soc_bcm2708 1780 0 snd_soc_core 73200 3 snd_soc_bcm2708,snd_soc_wm8731,snd_soc_tlv320aic23 regmap_spi 768 2 snd_soc_wm8731,snd_soc_core regmap_i2c 808 2 snd_soc_wm8731,snd_soc_core snd_compress 4780 1 snd_soc_core snd_pcm 53960 4 snd_bcm2835,snd_soc_bcm2708,snd_soc_core snd_timer 14676 1 snd_pcm snd 33584 9 snd_bcm2835,snd_soc_wm8731,snd_soc_core,snd_timer,snd_pcm,snd_compress spi_bcm2708 3884 0 i2c_bcm2708 2780 0 i2c_core 13792 4 i2c_bcm2708,snd_soc_wm8731,regmap_i2c,snd_soc_tlv320aic23 snd_page_alloc 2688 1 snd_pcm

∕Ian