I am very new in Raspberry so take me easy: less than 4 days using the PI.
I managed in these 4 days only one thing: to install my very old USB WiFi adapter.
Apparently many of you search for a solution for this adapter so here are my steps bellow.
Adapter: fcc id NDD9573150503
Edimax EW-7315Ug might be AR5005UG or AR5523;
Code: Select all
pi@raspbmc:~$ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 004: ID 0cf3:0002 Atheros Communications, Inc. AR5523 (no firmware)
Check http://wireless.kernel.org/en/users/Devices/USB
EW-7315Ug NOT listed!
Is it recognized by my kernel? By the way: did I said that I am only 4 days since I start using PI?
Code: Select all
pi@raspbmc:~$ uname -a
Linux raspbmc 3.10.24 #2 PREEMPT Mon Dec 23 05:18:12 UTC 2013 armv6l GNU/Linux
Code: Select all
dmesg
usb 1-1.2: new high-speed USB device number 4 using dwc_otg
usb 1-1.2: New USB device found, idVendor=0cf3, idProduct=0002
usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.2: Product: AR5523
usb 1-1.2: Manufacturer: Atheros Communications Inc
usb 1-1.2: SerialNumber: 1.0
usb 1-1.2: no firmware found: ar5523.bin
ar5523: probe of 1-1.2:1.0 failed with error -2
usbcore: registered new interface driver ar5523ar5523: probe of 1-1.2:1.0 failed with error -2
LED on the dongle is OFF: damn! Dongle not started!
I've installed the Atheros Firmware using this guide: https://wiki.debian.org/ar5523#wheezy
Debian 7 "Wheezy"
Add Debian Backports sources to /etc/apt/sources.list, also including the "non-free" component. For example:
# Backported packages for Debian 7 "Wheezy"
deb http://http.debian.net/debian/ wheezy-backports main contrib non-free
Update the list of available packages. Install the current backported Linux kernel and firmware-atheros packages. For example:
# sudo apt-get update
# sudo apt-get -t wheezy-backports install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') firmware-atheros
At this point I get an error:
Code: Select all
pi@raspbmc:~$ sudo apt-get -t wheezy-backports install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') firmware-atheros
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-3.10.24
E: Couldn't find any package by regex 'linux-image-3.10.24'Second attempt: no linux image in the command.
Code: Select all
pi@raspbmc:~$ sudo apt-get -t wheezy-backports install firmware-atheros
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libpcap0.8 libxext6 libxmuu1
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
firmware-atheros
1 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
Need to get 1217 kB of archives.
After this operation, 970 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
firmware-atheros
Install these packages without verification [y/N]? Y
Get:1 http://http.debian.net/debian/ wheezy-backports/non-free firmware-atheros all 0.41~bpo70+1 [1217 kB]
Fetched 1217 kB in 1s (1000 kB/s)
(Reading database ... 37405 files and directories currently installed.)
Preparing to replace firmware-atheros 0.36+wheezy.1 (using .../firmware-atheros_0.41~bpo70+1_all.deb) ...
Unpacking replacement firmware-atheros ...
Setting up firmware-atheros (0.41~bpo70+1) ...Note: pay attention to the question:
Install these packages without verification [y/N]?
You must answer with Y
OK!
Reboot the PI
dmesg after reboot: We have an AR5523 started. - You can check this very simple: the LED on the dongle is ON
...
...
usb 1-1.2: new high-speed USB device number 4 using dwc_otg
usb 1-1.2: New USB device found, idVendor=0cf3, idProduct=0002
usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.2: Product: AR5523
usb 1-1.2: Manufacturer: Atheros Communications Inc
usb 1-1.2: SerialNumber: 1.0
EXT4-fs (mmcblk0p2): recovery complete
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
udevd[115]: starting version 175
bcm2708_i2c_init_pinmode(0,0)
bcm2708_i2c_init_pinmode(0,1)
bcm2708_i2c bcm2708_i2c.0: BSC0 Controller at 0x20205000 (irq 79) (baudrate 100k)
bcm2708_i2c_init_pinmode(1,2)
bcm2708_i2c_init_pinmode(1,3)
bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100k)
bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
cfg80211: Calling CRDA to update world regulatory domain
usbcore: registered new interface driver ar5523
usb 1-1.2: USB disconnect, device number 4
usb 1-1.2: new high-speed USB device number 5 using dwc_otg
usb 1-1.2: New USB device found, idVendor=0cf3, idProduct=0001
usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.2: Product: AR5523
usb 1-1.2: Manufacturer: Atheros Communications Inc
usb 1-1.2: SerialNumber: 1.0
usb 1-1.2: Cap: CAP_TARGET_VERSION=0x00000006
usb 1-1.2: Cap: CAP_TARGET_REVISION=0x00000001
usb 1-1.2: Cap: CAP_MAC_VERSION=0x00000008
usb 1-1.2: Cap: CAP_MAC_REVISION=0x00000001
usb 1-1.2: Cap: CAP_PHY_REVISION=0x00000046
usb 1-1.2: Cap: CAP_ANALOG_5GHz_REVISION=0x00000046
usb 1-1.2: Cap: CAP_ANALOG_2GHz_REVISION=0x00000000
usb 1-1.2: Cap: CAP_REG_DOMAIN=0x00000030
usb 1-1.2: Cap: CAP_REG_CAP_BITS=0x00000001
usb 1-1.2: Cap: CAP_WIRELESS_MODES=0x00000000
usb 1-1.2: Cap: CAP_CHAN_SPREAD_SUPPORT=0x0000001c
usb 1-1.2: Cap: CAP_COMPRESS_SUPPORT=0x00000001
usb 1-1.2: Cap: CAP_BURST_SUPPORT=0x00000001
usb 1-1.2: Cap: CAP_FAST_FRAMES_SUPPORT=0x00000001
usb 1-1.2: Cap: CAP_CHAP_TUNING_SUPPORT=0x00000001
usb 1-1.2: Cap: CAP_TURBOG_SUPPORT=0x00000001
usb 1-1.2: Cap: CAP_TURBO_PRIME_SUPPORT=0x00000001
usb 1-1.2: Cap: CAP_DEVICE_TYPE=0x00000001
usb 1-1.2: Cap: CAP_WME_SUPPORT=0x00000001
usb 1-1.2: Cap: CAP_TOTAL_QUEUES=0x00000001
usb 1-1.2: Cap: CAP_CONNECTION_ID_MAX=0x0000000a
usb 1-1.2: Cap: CAP_LOW_5GHZ_CHAN=0x00000004
usb 1-1.2: Cap: CAP_HIGH_5GHZ_CHAN=0x00001338
usb 1-1.2: Cap: CAP_LOW_2GHZ_CHAN=0x000017d4
usb 1-1.2: Cap: CAP_HIGH_2GHZ_CHAN=0x00000908
usb 1-1.2: Cap: CAP_TWICE_ANTENNAGAIN_5G=0x00000001
usb 1-1.2: Cap: CAP_TWICE_ANTENNAGAIN_2G=0x00000004
usb 1-1.2: Cap: CAP_CIPHER_AES_CCM=0x00000001
usb 1-1.2: Cap: CAP_CIPHER_TKIP=0x00000000
usb 1-1.2: Cap: CAP_MIC_TKIP=0x00000000
usb 1-1.2: MAC/BBP AR5523, RF AR2112
usb 1-1.2: Found and initialized AR5523 device
cfg80211: World regulatory domain updated:
cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
bcm2835-cpufreq: switching to governor performance
OK!
Let's check Wifi adapter:
pi@raspbmc:~$ iwconfig
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
Power Management:off
lo no wireless extensions.
eth0 no wireless extensions.
Code: Select all
pi@raspbmc:~$ sudo cat /etc/network/interfaces
I do not know how to write the CFG in that file so...let's use GUI!
Using RaspBMC addon (GUI) - RaspBMC Settings located under PROGRAMS I've setup Wifi.
As soon as I did that I have an working WiFi: SSID, password, and the rest of the stuff
I am amazed that after doing that my /etc/network/interfaces is empty.
Who cares?? It works!
Late edit: all setting were saved in /boot/settings.xml
pi@raspbmc:~$ iwconfig
wlan0 IEEE 802.11bg ESSID:"YGH"
Mode:Managed Frequency:2.412 GHz Access Point: 00:18:F8:F2:61:50
Bit Rate=1 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=38/70 Signal level=-72 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:179 Invalid misc:55 Missed beacon:0
pi@raspbmc:/etc/network$ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:f4:dc:aa
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::ba27:ebff:fef4:dcaa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1834 errors:0 dropped:5 overruns:0 frame:0
TX packets:2391 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:364276 (355.7 KiB) TX bytes:406785 (397.2 KiB)
wlan0 Link encap:Ethernet HWaddr 00:0e:2e:42:61:ff
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20e:2eff:fe42:61ff/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:398 errors:0 dropped:209 overruns:0 frame:0
TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:36150 (35.3 KiB) TX bytes:37584 (36.7 KiB)
That's all folks.