scratchuser
Posts: 25
Joined: Wed Jul 10, 2013 9:25 pm

USB dongle appears in lsusb but not in /dev

Sun Jul 14, 2013 8:47 pm

I am trying to set up wireless networking on my PI. It currently runs headless througha network cable with no problems and I am following the instructions here: http://www.linux.com/learn/tutorials/37 ... hese-tools, which are obviously not specific to the PI so it may be that there are better tutorials.

I am having problems with the first command. Please see this session:

Code: Select all

[email protected] ~ $ ifconfig wlan0 up
SIOCSIFFLAGS: Operation not permitted
[email protected] ~ $ sudo ifconfig wlan0 up
SIOCSIFFLAGS: No such file or directory
[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 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 006: ID 046d:092f Logitech, Inc. QuickCam Express Plus
Bus 001 Device 007: ID 0ace:1215 ZyDAS ZD1211B 802.11g
[email protected] ~ $ ls /dev
autofs           loop7               ram14    tty10  tty31  tty52      vc-mem
block            loop-control        ram15    tty11  tty32  tty53      vcs
btrfs-control    MAKEDEV             ram2     tty12  tty33  tty54      vcs1
bus              mapper              ram3     tty13  tty34  tty55      vcs2
cachefiles       mem                 ram4     tty14  tty35  tty56      vcs3
char             mmcblk0             ram5     tty15  tty36  tty57      vcs4
console          mmcblk0p1           ram6     tty16  tty37  tty58      vcs5
cpu_dma_latency  mmcblk0p2           ram7     tty17  tty38  tty59      vcs6
disk             mmcblk0p5           ram8     tty18  tty39  tty6       vcsa
fb0              mmcblk0p6           ram9     tty19  tty4   tty60      vcsa1
fd               net                 random   tty2   tty40  tty61      vcsa2
full             network_latency     raw      tty20  tty41  tty62      vcsa3
fuse             network_throughput  rfkill   tty21  tty42  tty63      vcsa4
input            null                root     tty22  tty43  tty7       vcsa5
kmsg             ppp                 shm      tty23  tty44  tty8       vcsa6
log              ptmx                snd      tty24  tty45  tty9       video0
loop0            pts                 sndstat  tty25  tty46  ttyAMA0    xconsole
loop1            ram0                stderr   tty26  tty47  ttyprintk  zero
loop2            ram1                stdin    tty27  tty48  uinput
loop3            ram10               stdout   tty28  tty49  urandom
loop4            ram11               tty      tty29  tty5   v4l
loop5            ram12               tty0     tty3   tty50  vc-cma
loop6            ram13               tty1     tty30  tty51  vchiq
[email protected] ~ $ 
So the problem seems to be that there is no wlan0 device file even though the 802.11g usb device is visible.

Do I have no hope with that device and must I buy a new dongle? Or is there some more configuration to do before the device file will appear?

Apologies if this is a silly newbie question!

--- Alistair.

User avatar
joan
Posts: 13620
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: USB dongle appears in lsusb but not in /dev

Sun Jul 14, 2013 9:00 pm

Check that your dongle is recognised and the firmware is loaded by looking at the output of dmesg, type

dmesg

at a command prompt.

What does the file /etc/network/interfaces contain?

scratchuser
Posts: 25
Joined: Wed Jul 10, 2013 9:25 pm

Re: USB dongle appears in lsusb but not in /dev

Sun Jul 14, 2013 9:55 pm

Thanks for the quick reply!

dmesg gives the output here (I am loving this pastebinit stuff):
http://paste.debian.net/16081/
It is essentially loads of lines like

Code: Select all

[35309.261961] usb 1-1.3.3: Could not load firmware file zd1211/zd1211b_ub. Error number -2
[35309.261994] zd1211rw 1-1.3.3:1.0: couldn't load firmware. Error number -2
with slightly different pairs of numbers at the start of each line.

/etc/network/interfaces looks like this:

Code: Select all

auto lo

iface lo inet loopback

#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

allow-hotplug wlan0
iface wlan0 inet manual
address 192.168.1.101
netmask 255.255.255.0
gateway 192.168.1.1
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#iface default inet dhcp

User avatar
joan
Posts: 13620
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: USB dongle appears in lsusb but not in /dev

Sun Jul 14, 2013 10:11 pm

You'll need to resolve the missing firmware error before anything will work.

Perhaps http://wiki.debian.org/zd1211rw

scratchuser
Posts: 25
Joined: Wed Jul 10, 2013 9:25 pm

Re: USB dongle appears in lsusb but not in /dev

Mon Jul 15, 2013 8:21 pm

That certainly has got me different error messages! It was looking perfect but still no wireless device in /dev.

dmesg give the log in http://paste.debian.net/16219/

I think the clues may be around line 218 where it says

Code: Select all

[   21.753915] zd1211rw 1-1.3.4:1.0: error ioread32(CR_REG1): -19
but I have no idea what that means!

It then repeatedly tries to load it, with logs like this:...

Code: Select all

[   22.002644] usb 1-1.3.4: new high-speed USB device number 8 using dwc_otg
[   22.103891] usb 1-1.3.4: New USB device found, idVendor=0ace, idProduct=1215
[   22.103924] usb 1-1.3.4: New USB device strings: Mfr=16, Product=32, SerialNumber=0
[   22.103941] usb 1-1.3.4: Product: USB2.0 WLAN
[   22.103954] usb 1-1.3.4: Manufacturer: ZyDAS
[   22.182804] usb 1-1.3.4: reset high-speed USB device number 8 using dwc_otg
[   22.283804] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   22.284560] zd1211rw 1-1.3.4:1.0: phy1
[   22.718741] zd1211rw 1-1.3.4:1.0: firmware version 4725
[   22.758803] zd1211rw 1-1.3.4:1.0: zd1211b chip 0ace:1215 v4810 high 00-02-72 AL2230_RF pa0 g--NS
[   26.303125] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:102396k SS
[  602.066608] zd1211rw 1-1.3.4:1.0: error ioread32(CR_REG1): -71
[  602.067709] zd1211rw 1-1.3.4:1.0: error ioread32(CR_REG1): -71
[  602.068707] zd1211rw 1-1.3.4:1.0: error ioread32(CR_REG1): -71
[  602.069726] zd1211rw 1-1.3.4:1.0: error ioread32(CR_REG1): -71
[  602.070726] zd1211rw 1-1.3.4:1.0: error ioread32(CR_REG1): -71
[  602.080215] zd1211rw 1-1.3.4:1.0: error ioread32(CR_REG1): -71
[  602.085434] zd1211rw 1-1.3.4:1.0: error ioread32(CR_REG1): -71
[  602.186151] usb 1-1.3.4: USB disconnect, device number 8
[  602.186974] zd1211rw 1-1.3.4:1.0: error ioread32(CR_REG1): -19


...with varying numbers of errors each time. I would be hugely grateful for any clues and explanations of what might be going on.

--- Alistair.

User avatar
joan
Posts: 13620
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: USB dongle appears in lsusb but not in /dev

Mon Jul 15, 2013 8:27 pm

I don't think you will see a device appear in /dev. If you do lsusb you should get a line similar to
Bus 001 Device 004: ID 148f:2573 Ralink Technology, Corp. RT2501/RT2573 Wireless Adapter
How up to date is your firmware?

uname -a

should say.

scratchuser
Posts: 25
Joined: Wed Jul 10, 2013 9:25 pm

Re: USB dongle appears in lsusb but not in /dev

Mon Jul 15, 2013 10:13 pm

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 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 006: ID 046d:092f Logitech, Inc. QuickCam Express Plus
Bus 001 Device 012: ID 0ace:1215 ZyDAS ZD1211B 802.11g
[email protected] ~ $ uname -a
Linux raspberrypi 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 armv6l GNU/Linux
[email protected] ~ $ 

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

Re: USB dongle appears in lsusb but not in /dev

Tue Jul 16, 2013 2:14 am

You can try command ifconfig -a to see what network devices/connections there are. A device with a network connection will have inet addr:xxx.xxx.xxx.xxx, which is the IP it is assigned.

As far as devices appearing in /dev, as its a USB device it only appears to exist as a USB device on bus 001. This is what my Pi shows

Code: Select all

[email protected] ~ $ ls /dev/bus/usb/001
001  002  003  004  005  007
[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 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 007: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
[email protected] ~ $
And I just happen to have two wifi adaptors connected at the moment, Devices 004 and 007.


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

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

User avatar
rpdom
Posts: 12949
Joined: Sun May 06, 2012 5:17 am
Location: Ankh-Morpork

Re: USB dongle appears in lsusb but not in /dev

Tue Jul 16, 2013 6:00 am

MrEngman wrote:As far as devices appearing in /dev, as its a USB device it only appears to exist as a USB device on bus 001.
Standard network devices (USB or otherwise) don't have files under /dev.

User avatar
joan
Posts: 13620
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: USB dongle appears in lsusb but not in /dev

Tue Jul 16, 2013 8:11 am

There's a possibility it just won't work with the Pi. An old but similar thread at http://www.raspberrypi.org/phpBB3/viewtopic.php?t=15586

scratchuser
Posts: 25
Joined: Wed Jul 10, 2013 9:25 pm

Re: USB dongle appears in lsusb but not in /dev

Tue Jul 16, 2013 10:31 pm

MrEngman wrote:You can try command ifconfig -a to see what network devices/connections there are. A device with a network connection will have inet addr:xxx.xxx.xxx.xxx, which is the IP it is assigned.

As far as devices appearing in /dev, as its a USB device it only appears to exist as a USB device on bus 001. This is what my Pi shows

Code: Select all

[email protected] ~ $ ls /dev/bus/usb/001
001  002  003  004  005  007
[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 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 007: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
[email protected] ~ $
And I just happen to have two wifi adaptors connected at the moment, Devices 004 and 007.


MrEngman
Aha, thanks!

Yes lsusb lists it and indeed so does ifconfig, though ifconfig does not list and ip address with it.

So I carried on with iwlist wlan0 scan, which listed my wireless network. Then I tried iwconfig wlan0 essid NETWORK_NAME key WIRELESS_KEY with my network id and password but that was refused.

I can't remember the exact error message and now I can't ssh back onto it. It seems to only allow ssh to connect when the wifi dongle is unplugged. It's late now so I will try again tomorrow if I get the chance.

--- Alistair.

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1792
Joined: Thu Jul 11, 2013 2:37 pm

Re: USB dongle appears in lsusb but not in /dev

Tue Jul 16, 2013 10:58 pm

I have one of these.

WorksForMe(tm)

Code: Select all

[   28.788802] hub 1-1.3:1.0: state 7 ports 7 chg 0000 evt 0008
[   28.789430] hub 1-1.3:1.0: port 3, status 0101, change 0001, 12 Mb/s
[   28.949241] hub 1-1.3:1.0: debounce: port 3: total 100ms stable 100ms status 0x101
[   29.029226] usb 1-1.3.3: new high-speed USB device number 5 using dwc_otg
[   29.130046] usb 1-1.3.3: default language 0x0409
[   29.130650] usb 1-1.3.3: udev 5, busnum 1, minor = 4
[   29.130675] usb 1-1.3.3: New USB device found, idVendor=0ace, idProduct=1215
[   29.130691] usb 1-1.3.3: New USB device strings: Mfr=16, Product=32, SerialNumber=0
[   29.130707] usb 1-1.3.3: Product: USB2.0 WLAN
[   29.130720] usb 1-1.3.3: Manufacturer: ZyDAS
[   29.139119] usb 1-1.3.3: usb_probe_device
[   29.139156] usb 1-1.3.3: configuration #1 chosen from 1 choice
[   29.139464] usb 1-1.3.3: adding 1-1.3.3:1.0 (config #1, interface 0)
[   29.140188] hub 1-1.3:1.0: state 7 ports 7 chg 0000 evt 0008
[   29.275818] cfg80211: Calling CRDA to update world regulatory domain
[   29.442323] zd1211rw 1-1.3.3:1.0: usb_probe_interface
[   29.442365] zd1211rw 1-1.3.3:1.0: usb_probe_interface - got id
[   29.519179] usb 1-1.3.3: reset high-speed USB device number 5 using dwc_otg
[   29.556882] hub 1-1.3:1.0: state 7 ports 7 chg 0000 evt 0008
[   29.650812] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   29.652565] zd1211rw 1-1.3.3:1.0: phy0
[   29.654435] usbcore: registered new interface driver zd1211rw
[   29.859335] usb 1-1.3.3: Could not load firmware file zd1211/zd1211b_ub. Error number -2

Code: Select all

sudo apt-get install zd1211rw-firmware

Code: Select all

[   91.854325] zd1211rw 1-1.3.3:1.0: firmware version 4725
[   91.894346] zd1211rw 1-1.3.3:1.0: zd1211b chip 0ace:1215 v4810 high 00-02-72 AL2230_RF pa0 g--N-

Code: Select all

sudo ifdown wlan0 && sudo ifup wlan0 && sudo iwconfig wlan0

[email protected] ~ $ iwconfig
wlan0     IEEE 802.11bg  ESSID:"xxxxxx"
          Mode:Managed  Frequency:2.422 GHz  Access Point: 00:00:00:00:13:37
          Bit Rate=48 Mb/s   Tx-Power=20 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=57/100  Signal level=57/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:3   Missed beacon:0

(my /etc/wpa_supplicant/wpa_supplicant.conf was already configured)

These devices consume lots of current. I bet they barely fit within the 500mA spec when transmitting. They are also very sensitive to low USB bus voltage. Your 4-port hub - how is it powered?

Typical symptoms of dodgy power include -71 errors, random disconnects (associated with -19 errors) and unreliable wifi connections.
Rockets are loud.
https://astro-pi.org

scratchuser
Posts: 25
Joined: Wed Jul 10, 2013 9:25 pm

Re: USB dongle appears in lsusb but not in /dev

Wed Jul 17, 2013 10:28 pm

Thanks JDB,

I get this:

Code: Select all

[email protected] ~ $ sudo ifdown wlan0
ifdown: interface wlan0 not configured
[email protected] ~ $ sudo ifup wlan0
[email protected] ~ $ sudo iwconfig wlan0
wlan0     IEEE 802.11bg  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
Interesting to know about the power consumption. It certainly gets very warm to the touch!

--- Alistair

scratchuser
Posts: 25
Joined: Wed Jul 10, 2013 9:25 pm

Re: USB dongle appears in lsusb but not in /dev

Sat Jul 27, 2013 8:18 pm

Right. I gave up on that dongle and have bought an Edimax EW-7811Un as the web implied that it should work out of the box. Sadly, that is not the case for me! I have tried following the instructions in http://www.raspberryshake.com/raspberry ... ork-setup/ and I think I have now hosed the networking completely!

Here's lsusb:

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 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
I did sudo apt-get config, which seemed to hang:

Code: Select all

[email protected] ~ $ sudo apt-get update
Hit http://raspberrypi.collabora.com wheezy Release.gpg
Hit http://archive.raspberrypi.org wheezy Release.gpg                          
Get:1 http://mirrordirector.raspbian.org wheezy Release.gpg [490 B]            
Hit http://raspberrypi.collabora.com wheezy Release                            
Get:2 http://mirrordirector.raspbian.org wheezy Release [14.4 kB]    
Hit http://archive.raspberrypi.org wheezy Release                    
Hit http://raspberrypi.collabora.com wheezy/rpi armhf Packages                 
Hit http://archive.raspberrypi.org wheezy/main armhf Packages                  
Get:3 http://mirrordirector.raspbian.org wheezy/main armhf Packages [7,414 kB] 
Get:4 http://http.debian.net wheezy Release.gpg [1,672 B]                      
Hit http://http.debian.net wheezy Release                                      
Ign http://http.debian.net wheezy Release                                      
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en_GB              
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en                
Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB              
Ign http://archive.raspberrypi.org wheezy/main Translation-en                 
Hit http://http.debian.net wheezy/main armhf Packages                          
Hit http://http.debian.net wheezy/contrib armhf Packages                       
Hit http://http.debian.net wheezy/non-free armhf Packages                      
Hit http://http.debian.net wheezy/contrib Translation-en                       
Hit http://http.debian.net wheezy/main Translation-en                          
Hit http://http.debian.net wheezy/non-free Translation-en                      
Ign http://http.debian.net wheezy/contrib Translation-en_GB 
Ign http://http.debian.net wheezy/main Translation-en_GB    
Ign http://http.debian.net wheezy/non-free Translation-en_GB
Hit http://mirrordirector.raspbian.org wheezy/contrib armhf Packages           
Hit http://mirrordirector.raspbian.org wheezy/non-free armhf Packages          
Hit http://mirrordirector.raspbian.org wheezy/rpi armhf Packages               
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_GB        
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en           
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB           
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en              
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_GB       
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en          
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_GB            
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en               
100% [3 Packages bzip2 0 B]                                                    
100% [3 Packages bzip2 0 B]
100% [3 Packages bzip2 0 B]
100% [3 Packages bzip2 0 B]
100% [3 Packages bzip2 0 B]

100% [3 Packages bzip2 0 B]

100% [3 Packages bzip2 0 B]
                           ^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B



Fetched 7,430 kB in 56s (131 kB/s)
Reading package lists... Done
W: GPG error: http://http.debian.net wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA
[email protected] ~ $ 
but I carried on anyway doing apt-cache search and apt-get install but I can't see the device in lsmod:

Code: Select all

[email protected] ~ $ apt-cache search 8188
firmware-realtek - Binary firmware for Realtek wired and wireless network adapters
[email protected] ~ $ sudo apt-get install firmware-realtek
Reading package lists... Done
Building dependency tree       
Reading state information... Done
firmware-realtek is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
[email protected] ~ $ lsmod
Module                  Size  Used by
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
8192cu                490353  0 
leds_gpio               2235  0 
led_class               3562  1 leds_gpio
[email protected] ~ $
Still, I carried on anyway, editing the wpa.config and interfaces files and restarting the networking:

Code: Select all

[email protected] ~ $ sudo nano /etc/wpa.config
[email protected] ~ $ sudo nano /etc/network/interfaces
[email protected] ~ $ sudo /etc/init.d/networking restart
[....] Running /etc/init.d/networking restart is deprecated because it may not r[warnble some interfaces ... (warning).
[....] Reconfiguring network interfaces...Write failed: Broken pipe
[email protected]:~$ 
I have obviously done something that broke the networking as now I can't connect on wireless or wired! I think I may need to plug the thing directly into a monitor and keyboard to fix this now, or even re-set the SD card and start from scratch!

Any suggestions?

--- Alistair.

scratchuser
Posts: 25
Joined: Wed Jul 10, 2013 9:25 pm

Re: USB dongle appears in lsusb but not in /dev

Sat Jul 27, 2013 10:16 pm

Update - a reboot has enabled wired networking again but wireless is still dead. Here's the configuration:

Code: Select all

[email protected] ~ $
[email protected] ~ $
[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 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
[email protected] ~ $
[email protected] ~ $
[email protected] ~ $
[email protected] ~ $ lsmod
Module                  Size  Used by
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
8192cu                490353  0 
leds_gpio               2235  0 
led_class               3562  1 leds_gpio
[email protected] ~ $
[email protected] ~ $
[email protected] ~ $
[email protected] ~ $ more /etc/wpa.config
network={
ssid="TALKTALK-A63352"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="WPA-PASSWORD"
}
[email protected] ~ $
[email protected] ~ $
[email protected] ~ $
[email protected] ~ $ more /etc/network/interfaces
auto lo

iface lo inet loopback

#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

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

#allow-hotplug wlan0
#iface wlan0 inet manual
#address 192.168.1.101
#netmask 255.255.255.0
#gateway 192.168.1.1
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

#iface default inet dhcp
[email protected] ~ $
[email protected] ~ $
[email protected] ~ $ 
Any ideas?

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

Re: USB dongle appears in lsusb but not in /dev

Sat Jul 27, 2013 10:52 pm

Looks like the problem may be with your wpa.config file. There is usually a section before the network={...} part something like this

Code: Select all

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

network={....}
This is how one of my images is configured and it uses a similar format for wlan0 in the /etc/network/interfaces that you use.


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

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

scratchuser
Posts: 25
Joined: Wed Jul 10, 2013 9:25 pm

Re: USB dongle appears in lsusb but not in /dev

Sun Jul 28, 2013 9:52 am

Thanks, I have added that to the wpa.config but it has made no difference, the module still does not appear in lsmod:

Code: Select all

[email protected] ~ $ lsmod
Module                  Size  Used by
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
8192cu                490353  0 
leds_gpio               2235  0 
led_class               3562  1 leds_gpio
[email protected] ~ $ 
So presumably if the kernel is not loading the driver module, there is no chance of it seeing the device. Anyone got any further suggestions? Is the "8192cu" line of any relevance? Is my best bet to reset the operating system from the NOOB menu (Note to self: must get a usb keyboard!)?

--- Alistair.

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

Re: USB dongle appears in lsusb but not in /dev

Sun Jul 28, 2013 10:01 am

8192cu is the driver for the EW-7811Un and all other devices using the rtl8188cus chip so it is loaded OK.

What happens if you try the command iwlist wlan0 scan?

Does your router transmit it's ssid (network-name) or is it hidden? Does it use MAC address filtering?


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

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

scratchuser
Posts: 25
Joined: Wed Jul 10, 2013 9:25 pm

Re: USB dongle appears in lsusb but not in /dev

Sun Jul 28, 2013 11:29 am

Just gone onto the router to check and "Hide wireless network" is un-ticked so it is broadcasting the SSID (I was also recently able to connect my new Nexus tablet by picking the network from its list). I can't even see any options for MAC address filtering!

iwlist gives this:

Code: Select all

[email protected] ~ $ iwlist wlan0 scan
wlan0     No scan results

[email protected] ~ $ 
--- Alistair

scratchuser
Posts: 25
Joined: Wed Jul 10, 2013 9:25 pm

Re: USB dongle appears in lsusb but not in /dev

Sun Jul 28, 2013 12:14 pm

Just seen in another topic the suggestion that iwlist has to be run under sudo. So...

Code: Select all

[email protected] ~ $ sudo iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 1C:BD:B9:A6:33:52
                    ESSID:"TALKTALK-A63352"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Frequency:2.412 GHz (Channel 1)
                    Encryption key:on
                    Bit Rates:54 Mb/s
                    Extra:wpa_ie=dd160050f20101000050f20201000050f20201000050f202
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD970050F204104A0001101044000102103B00010310470010BC329E001DD811B286011CBDB9A6335210210013442D4C696E6B20436F72706F726174696F6E2E1023001C442D4C696E6B20576972656C6573732041636365737320506F696E74102400065254323836301042000831323334353637381054000800060050F204000110110008442D4C696E6B4150100800020084103C000100
                    Quality=83/100  Signal level=62/100  
          Cell 02 - Address: 00:11:50:EB:25:06
                    ESSID:"belkin f"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Frequency:2.462 GHz (Channel 11)
                    Encryption key:on
                    Bit Rates:54 Mb/s
                    Quality=100/100  Signal level=43/100  

[email protected] ~ $ 
[email protected] ~ $ 
[email protected] ~ $ sudo ifup wlan0
ifup: interface wlan0 already configured
[email protected] ~ $ 
[email protected] ~ $ 
[email protected] ~ $ 
Does that give anything useful? I notice there's an IE: Unknown: followed by a load of hex...

--- Alistair.

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

Re: USB dongle appears in lsusb but not in /dev

Sun Jul 28, 2013 1:51 pm

scratchuser wrote:Just gone onto the router to check and "Hide wireless network" is un-ticked so it is broadcasting the SSID (I was also recently able to connect my new Nexus tablet by picking the network from its list). I can't even see any options for MAC address filtering!

iwlist gives this:

Code: Select all

[email protected] ~ $ iwlist wlan0 scan
wlan0     No scan results

[email protected] ~ $ 
--- Alistair
Hi,

I've been experimenting changing my set up to something like you use - static eth and wlan using wpa.config. In wpa.config I have changed the setting to be similar, although not identical, to the default in the raspbian setting and it works OK. I now have a static eth0 and wlan0 set up using dhcp and wpa.config and both are connected.

I have set up wpa.config to

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
#update_config=1
ap_scan=1

network={
        ssid="network-name"
        psk="network-password"
}
I haven't added any lines to define the security used as wpa_supplicant is capable of figuring that out for itself and it is how I usually set up wpa_supplicant on my Pi's. Saves having to figure out whether the setting are correct or not. My /etc/network/interfaces now looks like

Code: Select all

auto lo
iface lo inet loopback

#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.16.11
netmask 255.255.255.0
network 192.168.16.0
broadcast 192.168.16.255
gateway 192.168.16.2

allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa.config

#iface wlan0 inet manual
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#iface default inet dhcp
Ethernet is similar and the wlan0 setting is the same as you use.

Try changing your wpa.config to be similar to the one I have shown above. It is possible the example I showed earlier is no longer compatible with the current settings in the newer versions of code.


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: 3735
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: USB dongle appears in lsusb but not in /dev

Sun Jul 28, 2013 2:14 pm

scratchuser wrote:Just seen in another topic the suggestion that iwlist has to be run under sudo. So...

Code: Select all

[email protected] ~ $ sudo iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 1C:BD:B9:A6:33:52
                    ESSID:"TALKTALK-A63352"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Frequency:2.412 GHz (Channel 1)
                    Encryption key:on
                    Bit Rates:54 Mb/s
                    Extra:wpa_ie=dd160050f20101000050f20201000050f20201000050f202
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD970050F204104A0001101044000102103B00010310470010BC329E001DD811B286011CBDB9A6335210210013442D4C696E6B20436F72706F726174696F6E2E1023001C442D4C696E6B20576972656C6573732041636365737320506F696E74102400065254323836301042000831323334353637381054000800060050F204000110110008442D4C696E6B4150100800020084103C000100
                    Quality=83/100  Signal level=62/100  
          Cell 02 - Address: 00:11:50:EB:25:06
                    ESSID:"belkin f"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Frequency:2.462 GHz (Channel 11)
                    Encryption key:on
                    Bit Rates:54 Mb/s
                    Quality=100/100  Signal level=43/100  

[email protected] ~ $ 
[email protected] ~ $ 
[email protected] ~ $ sudo ifup wlan0
ifup: interface wlan0 already configured
[email protected] ~ $ 
[email protected] ~ $ 
[email protected] ~ $ 
Does that give anything useful? I notice there's an IE: Unknown: followed by a load of hex...

--- Alistair.
I never run iwlist using sudo and have no trouble getting a list of networks, strange. At least you can see your wifi adaptor is working even if not connecting. It's possible the settings in your wpa.config may not be correct for your network as it is showing it uses TKIP and I think your file is using CCMP. If you use the set up for wpa.config in my previous post that should avoid that problem.


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

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

scratchuser
Posts: 25
Joined: Wed Jul 10, 2013 9:25 pm

Re: USB dongle appears in lsusb but not in /dev

Sun Jul 28, 2013 2:52 pm

Hmm. Done that and rebooted but still no IP address on wlan0.

I think I have done so many little tweaks following different sets of instructions that I have put the system into a mess and broken something basic. I am now planning to reset Raspian from the NOOB menu and start afresh, as soon as I have copied my files somewhere safe and got a USB keyboard and mouse. Could be a couple of days.

Thanks for all your efforts. I will update you on the situation either way once I have reset.

--- Alistair.

gurun1987
Posts: 1
Joined: Wed Aug 02, 2017 2:10 am

Re: USB dongle appears in lsusb but not in /dev

Wed Aug 02, 2017 2:13 am

I solved this issue doing this:

sudo apt-get install zd1211-firmware


I found the solution here

Return to “Troubleshooting”