WiFi Issues ? Start here !


 
582 posts   Page 1 of 24   1, 2, 3, 4, 5 ... 24
by SirLagz » Fri May 17, 2013 2:48 am
We get a lot of posts regarding issues with WiFi, so I've decided to write up a quick troubleshooting guide.

1) Check whether the WiFi stick is being picked up at all
Run a 'lsusb' in a terminal and you should see your WiFi stick in the output of the command.
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 005: ID 0846:9041 NetGear, Inc. WNA1000M 802.11bgn [Realtek RTL8188CUS]

If you can see it, it means that at least the stick is most likely working.
If you can't see it, then the stick is not being picked up.
If you're using a powered hub, try the stick in another computer
If you're NOT using a powered hub, try a powered hub first.


2) Check whether the modules loaded
Run a lsmod and see if the module for the stick is loaded. The module name will change depending on the stick that is being used. For example, if you have the above RTL8188CUS WiFi adapter, then lsmod will show the following output (notice the 8192cu module is loaded):
Code: Select all
    Module                  Size  Used by
    i2c_dev                 4562  0
    snd_bcm2835            12859  0
    snd_pcm                60411  1 snd_bcm2835
    snd_seq                44988  0
    snd_timer              16257  2 snd_pcm,snd_seq
    snd_seq_device          4265  1 snd_seq
    snd                    41809  5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
    snd_page_alloc          3176  1 snd_pcm
    spidev                  4259  0
    8192cu                458649  0
    leds_gpio               1920  0
    led_class               2329  1 leds_gpio
    spi_bcm2708             3974  0
    i2c_bcm2708             3108  0


For RT5370 sticks, you'll see a rt2800usb module in there instead.

If the module is there, then the drivers are being loaded correctly.

3) Check the WiFi NIC
Since the stick is there and drivers are loaded, check to make sure the stick is definitely being picked up

Run an ifconfig -a and check the output. You should see a 'wlan0' in the output, similar to this:
Code: Select all
wlan0 Link encap:Ethernet HWaddr 00:00:aa:11:22:33
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 carrier0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes (0.0 B)


If you do not see this not then you may be missing some firmware for your device.
The firmware packages for the more common devices are as follows:
firmware-ralink for Ralink devices (RT5370/RT3070/etc.)
firmware-realtek for Realtek devices (RTL8188CUS/etc.)
firmware-atheros for Atheros devices.

apt-get install <firmware-package> will install the firmware on Raspbian.
Once you've installed the firmware, unplug and plug the stick back in to see if ifconfig -a can see it now.
If not, try a reboot as well.

4) Check the WiFi configuration
This is where it starts getting complicated.
If you can see wlan0 when you run ifconfig -a but you can't get online, you'll need to make sure the adapter is getting an IP address, and is connected to a WiFi Network.
For Raspbian:
Check /etc/network/interfaces and ensure that you have the WiFi details configured.
This can be done in either the interfaces file, or it can be linked to another file via the wpa-roam or wpa-conf parameters in /etc/network/interfaces
Verify the details for the network are correct, SSID and PSK need to be exactly right for the WiFi NIC to connect to a network.
If you have changed the details, run sudo ifdown wlan0 && sudo ifup wlan0 to use the new settings.

These settings will be applied when the WiFi starts up.

4a) WiFi Not Connecting on Startup
If the WiFi works when you run ifup wlan0, but doesn't come up when you reboot the Pi, we'll need to check the file /etc/network/interfaces again.
Look for any lines that have auto at the beginning, and see if you see one that has 'auto wlan0'.
If not, then add that line in. This line directs the Pi to connect to bring up the WiFi NIC automatically, which in turns triggers the WiFi NIC to connect to the WiFi network.

4b) How do I configure the WiFi Settings
By default, Raspbian has in /etc/network/interfaces this line:
Code: Select all
wpa-roam /etc/wpa-supplicant/wpa_supplicant.conf


The contents of the file should look something like this:
Code: Select all
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="network-name"
        psk="network password"
}

If it doesn't, or if it has the wrong details, updating the details here will let the WiFi Adapter connect.

4c) How do I configure WiFi to use a Static IP address
In /etc/network/interfaces, there should be these lines
Code: Select all
auto wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf


To make it use a static IP address, we need to add a few lines, and change dhcp to static, and then it should look like this:
Code: Select all
auto wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

iface default inet static
address 10.1.1.2
netmask 255.255.255.0
gateway 10.1.1.1


That block will bring up wlan0 on startup, connect to the WiFi network that's detailed in wpa_supplicant.conf, and set an address of 10.1.1.2

[b]4d) Make Sure The WiFi Network Can Be Detected[/size]
If the Pi still won't connect, make sure the Pi is actually seeing the WiFi Network

This can be done with the wpa_cli command, but this needs to be run as root
Code: Select all
wpa_cli scan && sleep 5 && wpa_cli scan_results


That should show a list of available WiFi networks, and if yours isn't on the list, then you may need to adjust the location of the Pi or the WiFi router.


Once you've gone through all of these steps, you should be able to get online!
Last edited by SirLagz on Thu Jan 02, 2014 8:23 am, edited 9 times in total.
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
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by sdse78 » Fri May 17, 2013 4:43 am
Outstanding info! Thanks so much!

Now, new question to add to this:

How do you get your WiFi to connect and start on bootup? :idea:
User avatar
Posts: 20
Joined: Thu Apr 11, 2013 1:31 am
Location: San Diego, CA
by SirLagz » Fri May 17, 2013 5:14 am
sdse78 wrote:Outstanding info! Thanks so much!

Now, new question to add to this:

How do you get your WiFi to connect and start on bootup? :idea:


Added answer 4a to answer that :)
Short answer
make sure auto wlan0 is in /etc/network/interfaces
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
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by SirLagz » Thu May 23, 2013 1:07 am
*bump*
added answer 4b on how to configure wifi via /etc/wpa-supplicant/wpa-supplicant.conf
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
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by SirLagz » Mon May 27, 2013 4:49 am
Added section on WIFI static IP.

If someone would like to sticky this, that would be good. Make this a go-to point for WiFi issues.
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
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by marshy » Sun Nov 10, 2013 9:02 pm
you seem to know your stuff so could you help me out by recommending a really good wifi dongle?
thanks in advance
Posts: 2
Joined: Sat Nov 09, 2013 7:39 pm
by DougieLawson » Sun Nov 10, 2013 11:18 pm
marshy wrote:you seem to know your stuff so could you help me out by recommending a really good wifi dongle?
thanks in advance


EDIMAX.
I've tested that it works with: Raspbian, ArchiLinux, NOOBs, Pidora, OpenELEC XBMC

http://www.amazon.co.uk/Edimax-EW-7811U ... B00433ATHO
http://www.amazon.com/EW-7811UN-IEEE-80 ... B005CLMJLU

Other online stores may have it cheaper.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
RPi owner since '12.
Twitter: @DougieLawson

2B, B+, A+, 5Bs, zero, 3B

Please post ALL technical questions on the forum.Do not send private messages.
User avatar
Posts: 22623
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
by SirLagz » Mon Nov 11, 2013 4:31 am
Personally I use the RT5370 based ones for their OOTB AP capability. Don't need to use a Realtek specific hostapd.
The Edimax ones work well, though I've never used one personally.
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
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by JoakimS » Fri Dec 06, 2013 2:17 pm
Hello!

Nice article. But some issues:

in 4b) You're not being consitent with the paths. For instance, once you type:
wpa-roam /etc/wpa-supplicant/wpa-supplicant.conf
and in another case:
/etc/wpa_supplicant/wpa_supplicant.conf

At least on my raspbian, the wpa_supplicant path is what exists.

In 4c) you give this example:
Code: Select all
auto wlan0
iface wlan0 inet dhcp
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

But actually using this will give you the following warning:
wpa_supplicant: wpa-roam can only be used with the "manual" inet METHOD

Another step in the guide should also be to search for nearby access points using:
Code: Select all
sudo iwlist wlan0 scan

To make sure the wifi dongle actually finds the network you're trying to connect to.
Posts: 1
Joined: Fri Dec 06, 2013 2:09 pm
by SirLagz » Thu Jan 02, 2014 2:30 am
Thanks ! I'll update the original post :)
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
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by Richard-TX » Thu Jan 02, 2014 3:09 am
Here is my interfaces file for a static ip address.
Code: Select all
# cat /etc/network/interfaces
auto lo

iface lo inet loopback
iface eth0 inet static
address 10.232.1.81
netmask 255.255.255.0
gateway 10.232.1.1


auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 10.232.1.99
netmask 255.255.255.0
gateway 10.232.1.1
wpa-passphrase wifi-pass-word
wpa-ssid myssid


Don't need no stinking supplicant.

Just don't plug in the ethernet cable if all you want is wifi.
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip
User avatar
Posts: 1544
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas
by SirLagz » Thu Jan 02, 2014 6:51 am
using wpa-passphrase and wpa-ssid actually use wpa-supplicant anyway :P

But using the static IP address with multiple wifi networks is where the wpa-supplicant file comes in useful.
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
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by Morshu9001 » Thu Jan 02, 2014 8:04 am
I see rt2x00usb, not rt2800usb, for my Ralink dongle. It isn't working. Anyone else having this problem?
Posts: 8
Joined: Thu Jan 02, 2014 7:51 am
by Richard-TX » Thu Jan 02, 2014 8:10 am
SirLagz wrote:using wpa-passphrase and wpa-ssid actually use wpa-supplicant anyway :P

But using the static IP address with multiple wifi networks is where the wpa-supplicant file comes in useful.


Agreed but all I want is for it to connect to my network. I am not about to take my Pi to a Starbucks..
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip
User avatar
Posts: 1544
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas
by Bazzer » Mon Feb 10, 2014 1:07 pm
What can I do if I can't see the modules loaded in step 2 as I think that is my problem? I am using small usb wifi device that just has 802.11n written on it (cheap one off ebay). Power is through the micro usb using a genuine iPhone charger but maybe I should buy a usb hub? If I plug the wifi connector in with the rpi running it reboots (so won't plug in hot in the future). I have completed a "apt-get upgrade" and restarted.

Notice how it doesn't have a chip number like RXXX? Everything else I have searched doesn't quiet look as simple as mine:
Code: Select all
root@raspberrypi:/home/pi# 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 0bda:0179 Realtek Semiconductor Corp.

I can't see the module in here so this is where I think the issue is:
Code: Select all
root@raspberrypi:/home/pi# lsmod
Module                  Size  Used by
snd_bcm2835            16165  0
snd_soc_bcm2708_i2s     5474  0
regmap_mmio             2806  1 snd_soc_bcm2708_i2s
snd_soc_core          131268  1 snd_soc_bcm2708_i2s
regmap_spi              1897  1 snd_soc_core
snd_pcm                81593  2 snd_bcm2835,snd_soc_core
snd_page_alloc          5156  1 snd_pcm
regmap_i2c              1645  1 snd_soc_core
snd_compress            8076  1 snd_soc_core
snd_seq                53769  0
snd_timer              20133  2 snd_pcm,snd_seq
snd_seq_device          6473  1 snd_seq
leds_gpio               2059  0
led_class               3688  1 leds_gpio
snd                    61291  7 snd_bcm2835,snd_soc_core,snd_timer,snd_pcm,snd_seq,snd_seq_device,snd_compress

seems to be loading:
Code: Select all
root@raspberrypi:/home/pi# dmesg | grep 'usb 1-1.3'
[    3.239543] usb 1-1.3: new high-speed USB device number 4 using dwc_otg
[    3.360403] usb 1-1.3: New USB device found, idVendor=0bda, idProduct=0179
[    3.369032] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.393750] usb 1-1.3: Product: 802.11n NIC
[    3.407473] usb 1-1.3: Manufacturer: Realtek
[    3.419349] usb 1-1.3: SerialNumber: 00E04C817A9B

entire dmesg incase I have missed something:
Code: Select all
root@raspberrypi:/home/pi# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.25+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: BCM2708
[    0.000000] cma: CMA: reserved 16 MiB at 1b000000
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 114688
[    0.000000] free_area_init_node: node 0, pgdat c05cfd6c, node_mem_map c067d000
[    0.000000]   Normal zone: 896 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 114688 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113792
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xe bcm2708.serial=0xb5b01ae3 smsc95xx.macaddr=B8:27:EB:B0:1A:E3 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 448MB = 448MB total
[    0.000000] Memory: 431652k/431652k available, 27100k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xdc800000 - 0xff000000   ( 552 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05727b4   (5546 kB)
[    0.000000]       .init : 0xc0573000 - 0xc0597424   ( 146 kB)
[    0.000000]       .data : 0xc0598000 - 0xc05d0870   ( 227 kB)
[    0.000000]        .bss : 0xc05d0870 - 0xc067c3e0   ( 687 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:330
[    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[    0.000000] Switching to timer-based delay loop
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty1] enabled
[    0.001177] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.001243] pid_max: default: 32768 minimum: 301
[    0.001711] Mount-cache hash table entries: 512
[    0.002517] Initializing cgroup subsys memory
[    0.002626] Initializing cgroup subsys devices
[    0.002668] Initializing cgroup subsys freezer
[    0.002703] Initializing cgroup subsys blkio
[    0.002866] CPU: Testing write buffer coherency: ok
[    0.003340] Setting up static identity map for 0xc0406048 - 0xc04060a4
[    0.005165] devtmpfs: initialized
[    0.019568] NET: Registered protocol family 16
[    0.025501] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.026618] bcm2708.uart_clock = 0
[    0.028342] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.028399] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.028439] mailbox: Broadcom VideoCore Mailbox driver
[    0.028540] bcm2708_vcio: mailbox at f200b880
[    0.028646] bcm_power: Broadcom power driver
[    0.028687] bcm_power_open() -> 0
[    0.028716] bcm_power_request(0, 8)
[    0.529437] bcm_mailbox_read -> 00000080, 0
[    0.529481] bcm_power_request -> 0
[    0.529707] Serial: AMBA PL011 UART driver
[    0.529872] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[    0.872006] console [ttyAMA0] enabled
[    0.897970] bio: create slab <bio-0> at 0
[    0.903293] SCSI subsystem initialized
[    0.907274] usbcore: registered new interface driver usbfs
[    0.912995] usbcore: registered new interface driver hub
[    0.918574] usbcore: registered new device driver usb
[    0.925162] Switching to clocksource stc
[    0.929511] FS-Cache: Loaded
[    0.932684] CacheFiles: Loaded
[    0.948487] NET: Registered protocol family 2
[    0.953914] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.961185] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.967711] TCP: Hash tables configured (established 4096 bind 4096)
[    0.974187] TCP: reno registered
[    0.977448] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.983356] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.990101] NET: Registered protocol family 1
[    0.995033] RPC: Registered named UNIX socket transport module.
[    1.001097] RPC: Registered udp transport module.
[    1.005826] RPC: Registered tcp transport module.
[    1.010577] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.017929] bcm2708_dma: DMA manager at f2007000
[    1.022748] bcm2708_gpio: bcm2708_gpio_probe c05a5e50
[    1.028204] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.037593] audit: initializing netlink socket (disabled)
[    1.043269] type=2000 audit(0.890:1): initialized
[    1.205648] VFS: Disk quotas dquot_6.5.2
[    1.210049] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.218891] FS-Cache: Netfs 'nfs' registered for caching
[    1.225630] NFS: Registering the id_resolver key type
[    1.230922] Key type id_resolver registered
[    1.235135] Key type id_legacy registered
[    1.239929] msgmni has been set to 875
[    1.245790] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.253649] io scheduler noop registered
[    1.257611] io scheduler deadline registered (default)
[    1.263205] io scheduler cfq registered
[    1.267350] bcm2708_fb_debugfs_init: could not create debugfs entry
[    1.274940] BCM2708FB: allocated DMA memory 5b400000
[    1.280094] BCM2708FB: allocated DMA channel 0 @ f2007000
[    1.303010] Console: switching to colour frame buffer device 82x26
[    1.313185] uart-pl011 dev:f1: no DMA platform data
[    1.319603] kgdb: Registered I/O driver kgdboc.
[    1.326160] vc-cma: Videocore CMA driver
[    1.331517] vc-cma: vc_cma_base      = 0x00000000
[    1.337530] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.344295] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.360363] brd: module loaded
[    1.370011] loop: module loaded
[    1.374704] vchiq: vchiq_init_state: slot_zero = 0xdb000000, is_master = 0
[    1.383848] Loading iSCSI transport class v2.0-870.
[    1.391303] usbcore: registered new interface driver smsc95xx
[    1.398867] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.606374] Core Release: 2.80a
[    1.610876] Setting default values for core params
[    1.616930] Finished setting default values for core params
[    1.823835] Using Buffer DMA mode
[    1.828428] Periodic Transfer Interrupt Enhancement - disabled
[    1.835558] Multiprocessor Interrupt Enhancement - disabled
[    1.842417] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.848047] Dedicated Tx FIFOs mode
[    1.853367] dwc_otg: Microframe scheduler enabled
[    1.853606] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.859898] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.868474] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.875297] Init: Port Power? op_state=1
[    1.880586] Init: Power Port (0)
[    1.885226] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.893438] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.902077] usb usb1: Product: DWC OTG Controller
[    1.908150] usb usb1: Manufacturer: Linux 3.10.25+ dwc_otg_hcd
[    1.915379] usb usb1: SerialNumber: bcm2708_usb
[    1.922070] hub 1-0:1.0: USB hub found
[    1.927206] hub 1-0:1.0: 1 port detected
[    1.932845] dwc_otg: FIQ enabled
[    1.932864] dwc_otg: NAK holdoff enabled
[    1.932875] dwc_otg: FIQ split fix enabled
[    1.932895] Module dwc_common_port init
[    1.933331] usbcore: registered new interface driver usb-storage
[    1.941150] mousedev: PS/2 mouse device common for all mice
[    1.948687] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[    1.955995] bcm2835-cpufreq: switching to governor powersave
[    1.963052] bcm2835-cpufreq: switching to governor powersave
[    1.970024] cpuidle: using governor ladder
[    1.975335] cpuidle: using governor menu
[    1.980526] sdhci: Secure Digital Host Controller Interface driver
[    1.987955] sdhci: Copyright(c) Pierre Ossman
[    1.993629] sdhci: Enable low-latency mode
[    2.039198] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[    2.049698] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    2.056942] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.064098] ledtrig-cpu: registered to indicate activity on CPUs
[    2.073696] hidraw: raw HID events driver (C) Jiri Kosina
[    2.088048] usbcore: registered new interface driver usbhid
[    2.095098] usbhid: USB HID core driver
[    2.104948] TCP: cubic registered
[    2.111717] Initializing XFRM netlink socket
[    2.119434] NET: Registered protocol family 17
[    2.125412] Key type dns_resolver registered
[    2.134377] Indeed it is in host mode hprt0 = 00021501
[    2.141354] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    2.169971] registered taskstats version 1
[    2.179570] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    2.199553] Waiting for root device /dev/mmcblk0p6...
[    2.211375] mmc0: read SD Status register (SSR) after 2 attempts
[    2.232625] mmc0: new high speed SDHC card at address 0002
[    2.249784] mmcblk0: mmc0:0002 00000 7.32 GiB
[    2.261717]  mmcblk0: p1 p2 < p5 p6 >
[    2.323848] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
[    2.335038] VFS: Mounted root (ext4 filesystem) on device 179:6.
[    2.352062] devtmpfs: mounted
[    2.356996] Freeing unused kernel memory: 144K (c0573000 - c0597000)
[    2.379256] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.387653] Indeed it is in host mode hprt0 = 00001101
[    2.589799] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.601707] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.613416] hub 1-1:1.0: USB hub found
[    2.619463] hub 1-1:1.0: 3 ports detected
[    2.899506] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.019854] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.028403] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.057517] smsc95xx v1.0.4
[    3.125219] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:b0:1a:e3
[    3.239543] usb 1-1.3: new high-speed USB device number 4 using dwc_otg
[    3.360403] usb 1-1.3: New USB device found, idVendor=0bda, idProduct=0179
[    3.369032] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.393750] usb 1-1.3: Product: 802.11n NIC
[    3.407473] usb 1-1.3: Manufacturer: Realtek
[    3.419349] usb 1-1.3: SerialNumber: 00E04C817A9B
[    3.920993] udevd[156]: starting version 175
[    6.116767] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
[    9.407333] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
[    9.854183] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
[   15.440953] FAT-fs (mmcblk0p5): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   17.883643] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   19.401575] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[   26.166141] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:102396k SSFS

and I'm expecting a wlan0 output:
Code: Select all
root@raspberrypi:/home/pi# ifconfig -a
eth0      Link encap:Ethernet  HWaddr b8:27:eb:b0:1a:e3
          inet addr:192.168.1.105  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6013 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3584 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:400788 (391.3 KiB)  TX bytes:413966 (404.2 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  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:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

I haven't started with setting up keys as I expected I would need to see a wlan0 first:
Code: Select all
root@raspberrypi:/home/pi# cat /etc/network/interfaces
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

Sorry for the huge post but hopefully someone will see something I have missed.
Posts: 9
Joined: Sun Jan 05, 2014 11:13 am
by MrEngman » Mon Feb 10, 2014 2:19 pm
Hi Bazzer,

Looks like you need to install the driver for your wifi. The wifi adaptor you are using uses the realtek rtl8188eu and needs the driver installing.

Take a look here for details of drivers available and installation info.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra
Posts: 3087
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK
by Bazzer » Mon Feb 10, 2014 9:48 pm
MrEngman wrote:Hi Bazzer,

Looks like you need to install the driver for your wifi. The wifi adaptor you are using uses the realtek rtl8188eu and needs the driver installing.

Take a look here for details of drivers available and installation info.


MrEngman

Thank you MrEngman that worked a treat :D
I can see the module now:
Code: Select all
pi@raspberrypi ~ $ lsmod
Module                  Size  Used by
snd_bcm2835            16165  0
snd_soc_bcm2708_i2s     5474  0
regmap_mmio             2806  1 snd_soc_bcm2708_i2s
snd_soc_core          131268  1 snd_soc_bcm2708_i2s
snd_compress            8076  1 snd_soc_core
regmap_i2c              1645  1 snd_soc_core
regmap_spi              1897  1 snd_soc_core
snd_pcm                81593  2 snd_bcm2835,snd_soc_core
snd_page_alloc          5156  1 snd_pcm
snd_seq                53769  0
snd_seq_device          6473  1 snd_seq
8188eu                692148  0
snd_timer              20133  2 snd_pcm,snd_seq
leds_gpio               2059  0
led_class               3688  1 leds_gpio
snd                    61291  7 snd_bcm2835,snd_soc_core,snd_timer,snd_pcm,snd_seq,snd_seq_device,snd_compress

and wlan0 now exists:
Code: Select all
pi@raspberrypi ~ $ ifconfig -a
eth0      Link encap:Ethernet  HWaddr b8:27:eb:b0:1a:e3
          inet addr:192.168.1.105  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:269 errors:0 dropped:0 overruns:0 frame:0
          TX packets:184 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21374 (20.8 KiB)  TX bytes:23592 (23.0 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  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:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:e0:4c:81:7a:9b
          UP 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)

Thanks again :)
Posts: 9
Joined: Sun Jan 05, 2014 11:13 am
by crushinaa » Thu Feb 27, 2014 10:08 am
If you get the software or have the demo is Wifi like at Starbucks and Barnes and Nobles free, or does it just help you get more signal at a store that has free Wifi?
Posts: 1
Joined: Sat Feb 15, 2014 5:32 am
by tenthilltoys » Wed Mar 26, 2014 12:30 pm
Hi MrEngman

I have a RTL8188cus can you point me in the right direction to obtain the driver for 3.6.11+

this would be mighty helpful

Peter
Posts: 4
Joined: Thu Jan 30, 2014 1:46 am
by MrEngman » Wed Mar 26, 2014 1:13 pm
tenthilltoys wrote:Hi MrEngman

I have a RTL8188cus can you point me in the right direction to obtain the driver for 3.6.11+

this would be mighty helpful

Peter

You do not need to look for it. The rtl8188cus driver is included in 3.6.11+. The file is 8192cu.ko.

If you use command lsmod (list modules) when your wifi is connected to the Pi you should see 8192cu in the list to indicate it is loaded and ready to use and command ifconfig will show a device wlan0, the name usually given to the wifi device.

To get it to work you need to configure file /etc/network/interfaces. This may help http://www.fars-robotics.net/.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra
Posts: 3087
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK
by tenthilltoys » Wed Mar 26, 2014 9:17 pm
Thanks for the reply

Sorry I forgot to explain clearly that I have the same problem as Bazzer that if I dolsusb I can see the wifi dongle but if I lsmod I cannot see anything

I am using as raspbian image no Noob's

Peter
Posts: 4
Joined: Thu Jan 30, 2014 1:46 am
by Richard-TX » Wed Mar 26, 2014 9:28 pm
The order of statements in /etc/network/interfaces is important.
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip
User avatar
Posts: 1544
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas
by MrEngman » Wed Mar 26, 2014 10:40 pm
tenthilltoys wrote:Thanks for the reply

Sorry I forgot to explain clearly that I have the same problem as Bazzer that if I dolsusb I can see the wifi dongle but if I lsmod I cannot see anything

I am using as raspbian image no Noob's

Peter

The command lsmod should show a list of modules even if the wifi driver module is not installed. Very strange if you don't see anything.

What does the output of the following commands show.
Code: Select all
uname -a
lsusb
lsmod
cat /etc/network/interfaces
ifconfig
If cat /etc/network/interfaces includes a line starting with wpa-roam also include the output of command
Code: Select all
sudo cat /etc/wpa_supplicant/wpa_supplicant.conf


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra
Posts: 3087
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK
by tenthilltoys » Fri Mar 28, 2014 1:37 am
Thanks again
I do apoligize that the version was incorrect as that was a turnkey system for another use.

Peter

Code: Select all
pi@raspberrypi ~ $ cat /etc/network/interfaces
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

Code: Select all
i@raspberrypi ~ $ uname -a
Linux raspberrypi 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014 armv6l GNU/Linux
l

Code: Select all
pi@raspberrypi ~ $ 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 0409:005a NEC Corp. HighSpeed Hub
Bus 001 Device 005: ID 046d:c05a Logitech, Inc. Optical Mouse M90
Bus 001 Device 006: ID 046d:c31c Logitech, Inc. Keyboard K120 for Business
Bus 001 Device 007: ID 0bda:0179 Realtek Semiconductor Corp.

Code: Select all
pi@raspberrypi ~ $ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:fb:dc:d9 
          inet addr:192.168.79.16  Bcast:192.168.79.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:88431 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2397 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6736396 (6.4 MiB)  TX bytes:277374 (270.8 KiB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  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:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Posts: 4
Joined: Thu Jan 30, 2014 1:46 am
by MrEngman » Fri Mar 28, 2014 10:52 am
Hi tenthilltoys,

Your wifi device uses the 8188eu driver.

The following commands should install it.
Code: Select all
wget https://dl.dropboxusercontent.com/u/80256631/8188eu-20131223.tar.gz
tar -zxvf 8188eu-20131223.tar.gz
sudo cp rtl8188eufw.bin /lib/firmware/rtlwifi
sudo install -p -m 644 8188eu.ko /lib/modules/3.10.25+/kernel/drivers/net/wireless
sudo insmod /lib/modules/3.10.25+/kernel/drivers/net/wireless/8188eu.ko
sudo depmod 3.10.25+

Generally the wifi is configured using the file /etc/network/interfaces and possibly /etc/wpa_supplicant/wpa_supplicant.conf depending on the settings in file /etc/network/interfaces.

Your file /etc/network/interfaces uses wpa-roam but you did not show the output of command sudo cat /etc/wpa_supplicant/wpa_supplicant.conf to show how the file /etc/wpa_supplicant/wpa_supplicant.conf is set up. However, some info on setting up files /etc/network/interfaces and /etc/wpa-supplicant/wpa_supplicant.conf to configure the wifi can be found here http://www.fars-robotics.net/.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra
Posts: 3087
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK