Pages

Thursday, April 11, 2013

Raspbeery Pi Linksys WUSB54GC installation record


Now I repeated what I did yesterday and made a record for future reference.


Rapsberry Pi Model B 512MB Linksys WUSB54GC installation record - tlfong01 2013apr11

References

http://elinux.org/RPi_Peripherals#Wireless:_TP-Link_TL-WN722N_USB_wireless_adapter_.28Debian_6.29
http://www.element14.com/community/docs/DOC-44703/l/raspberry-pi-wifi-adapter-testing
http://omer.me/2012/04/setting-up-wireless-networks-under-debian-on-raspberry-pi/
http://neville-wright.com/setup-your-raspberry-pi-wireless-network/

Test setup

* Raspberry Pi Model B 512MB, no self powered USB hub
* Logictec wireless keypad and mouse USB adapter plugged to 1 USB socket
* Linksys WUSB54GC USB wireless adapter, plugged into another USB socket
* Ethernet cable connected

Procedure

* Power on Raspberry Pi
* WinSCP log in at 192.168.1.53
* PuTTY log in at 192.168.1.53
* update the package cache.
  $ sudo apt-get update
* List USB devices
$ lsusb > lssub_record_2013apr1101.txt

[5 USB devices listed ]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. 
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 005: ID 1737:0077 Linksys WUSB54GC v3 802.11g Adapter [Ralink RT2070L]

* Search driver for WUSB54GC
$ apt-cache search WUSB54GC

[Returned nothing]

* List modules installed
$ lsmod > lsmod_record_2013apr1101.txt

[rt2xxxx are possibly the drivers]
Module                  Size  Used by
i2c_dev                 5587  0 
snd_bcm2835            12808  0 
snd_pcm                74834  1 snd_bcm2835
snd_seq                52536  0 
snd_timer              19698  2 snd_seq,snd_pcm
snd_seq_device          6300  1 snd_seq
snd                    52489  5 snd_seq_device,snd_timer,snd_seq,snd_pcm,snd_bcm2835
snd_page_alloc          4951  1 snd_pcm
evdev                   8682  1 
joydev                  9102  0 
spidev                  5136  0 
arc4                    1187  2 
rt2800usb              13009  0 
rt2800lib              47242  1 rt2800usb
crc_ccitt               1465  1 rt2800lib
rt2x00usb              11075  1 rt2800usb
rt2x00lib              41057  3 rt2x00usb,rt2800lib,rt2800usb
mac80211              236178  3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211              171957  2 mac80211,rt2x00lib
hid_logitech_dj        10438  0 
spi_bcm2708             4401  0 
i2c_bcm2708             3681  0 

* Edit the file /etc/apt/sources.list to add the follwoing non-free archive and backports.

deb http://ftp.us.debian.org/debian/ squeeze main non-free
deb http://security.debian.org/ squeeze/updates main non-free
deb http://ftp.us.debian.org/debian/ squeeze-updates main non-free
deb http://backports.debian.org/debian-backports squeeze-backports main non-free

$ sudo nano /etc/apt/sources.list

[Listing of /etc/apt/sources.list] 

deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
deb http://ftp.us.debian.org/debian/ squeeze main non-free
deb http://security.debian.org/ squeeze/updates main non-free
deb http://ftp.us.debian.org/debian/ squeeze-updates main non-free
deb http://backports.debian.org/debian-backports squeeze-backports main non-free

* Download the wifi utils:

$ sudo apt-get install wireless-tools usbutils 


* Edit the file /etc/network/interfaces to add wlan0 section.  

# The wireless interface
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa.conf


[Listing of /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 static
address 192.168.1.40
netmask 255.255.255.0
gateway 192.168.1.1

# The wireless interface
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa.conf


* Unplug the network cable to test if the wireless device is actually working.  

* Log into RPi using wireless keypad and mouse. (No longer using PuTTY and WinSCP from this point on.  

* Restart the network 

$ sudo /etc/init.d/networking restart > networking_restart_record_2013apr1101.txt

[Listing of networking_restart_record_2013apr1101.txt]

[...] 
DHCPOFFER ...

* Check iwconfig

$ sudo iwconfig > iwconfig_record_2013apr1101.txt


* Scan network 

$ sudo iwlist wlan0 scan | grep ESSID > iwlist_short_record_2013apr1101.txt

$ sudo iwlist wlan0 scan > iwlist_long_record_2013apr1101.txt


* Create the file /etc/wpa.conf with the follow data.

network={
ssid=tlfong01
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk=46154615
}

[Listing of /etc/wpa.conf]

* Start the USB wireless adapter

$ sudo ifup wlan0
sudo ifup wlan0

[message: interface wlan0 already configured]


* Check if connected to WLAN.

$ ifconfig > ifconfig_record_2013apr1101.txt_record


* If fail to connect, read the systme error messages.

$ cat /var/log/messages > messages_2013apr1101.txt


* Reconnect Ethernet cable

* Powerdown RPi

$ sudo poweroff

* Power off then power on RPi.

* WinSCP long on to new wireless IP address 192.168.1.40

* Read networking_restart_record_2013apr1101.txt

[Listing of networking_restart_record_2013apr1101.txt]

Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... 

(warning).
Reconfiguring network interfaces...No IP address to email at this time
tlfong01@netvigator.com has been notified of the BerryIO IP address
tlfong01@netvigator.com has been notified of the BerryIO IP address
done.


* Read ifconfig_record_record_2013apr1101.txt

eth0      Link encap:Ethernet  HWaddr b8:27:eb:26:28:1c  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:7240 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2415 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:8627817 (8.2 MiB)  TX bytes:336199 (328.3 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  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:25:9c:a0:28:a4  
          inet addr:192.168.1.40  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5261 errors:0 dropped:0 overruns:0 frame:0
          TX packets:248 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1246277 (1.1 MiB)  TX bytes:30228 (29.5 KiB)

* Read /etc/wpa.conf

[Listing of /etc/wpa.conf]

network={
ssid=tlfong01
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk=46154615
}

* Read messages_2013apr1101.txt

[Listing of messages_2013apr1101.txt]
Apr 11 06:25:40 raspberrypi rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="2015" x-

info="http://www.rsyslog.com"] rsyslogd was HUPed
Apr 11 06:31:00 raspberrypi kernel: [ 1710.124795] smsc95xx 1-1.1:1.0: eth0: link down
Apr 11 06:34:17 raspberrypi kernel: [ 1907.453517] cfg80211: Calling CRDA for country: FR
Apr 11 06:34:25 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=CONNECTED
Apr 11 06:34:25 raspberrypi wpa_action: WPA_ID=0 WPA_ID_STR= WPA_CTRL_DIR=/var/run/wpa_supplicant
Apr 11 06:34:25 raspberrypi wpa_action: ifup wlan0=default
Apr 11 06:34:33 raspberrypi wpa_action: creating sendsigs omission pidfile: 

/run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Apr 11 06:34:34 raspberrypi wpa_action: bssid=cc:5d:4e:2b:88:b8
Apr 11 06:34:34 raspberrypi wpa_action: ssid=tlfong01
Apr 11 06:34:34 raspberrypi wpa_action: id=0
Apr 11 06:34:34 raspberrypi wpa_action: mode=station
Apr 11 06:34:34 raspberrypi wpa_action: pairwise_cipher=TKIP
Apr 11 06:34:34 raspberrypi wpa_action: group_cipher=TKIP
Apr 11 06:34:34 raspberrypi wpa_action: key_mgmt=WPA-PSK
Apr 11 06:34:34 raspberrypi wpa_action: wpa_state=COMPLETED
Apr 11 06:34:34 raspberrypi wpa_action: ip_address=192.168.1.40
Apr 11 06:34:34 raspberrypi wpa_action: address=00:25:9c:a0:28:a4
Apr 11 06:36:14 raspberrypi kernel: [ 2024.496241] cfg80211: Calling CRDA to update world regulatory domain
Apr 11 06:36:21 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=CONNECTED
Apr 11 06:36:21 raspberrypi wpa_action: WPA_ID=0 WPA_ID_STR= WPA_CTRL_DIR=/var/run/wpa_supplicant
Apr 11 06:36:21 raspberrypi wpa_action: ifup wlan0=default
Apr 11 06:36:30 raspberrypi wpa_action: creating sendsigs omission pidfile: 

/run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Apr 11 06:36:30 raspberrypi wpa_action: bssid=cc:5d:4e:2b:88:b8
Apr 11 06:36:30 raspberrypi wpa_action: ssid=tlfong01
Apr 11 06:36:30 raspberrypi wpa_action: id=0
Apr 11 06:36:30 raspberrypi wpa_action: mode=station
Apr 11 06:36:30 raspberrypi wpa_action: pairwise_cipher=TKIP
Apr 11 06:36:30 raspberrypi wpa_action: group_cipher=TKIP
Apr 11 06:36:30 raspberrypi wpa_action: key_mgmt=WPA-PSK
Apr 11 06:36:30 raspberrypi wpa_action: wpa_state=COMPLETED
Apr 11 06:36:30 raspberrypi wpa_action: ip_address=192.168.1.40
Apr 11 06:36:30 raspberrypi wpa_action: address=00:25:9c:a0:28:a4

.END

No comments:

Post a Comment