Difference between revisions of "RPi Peripherals"

From eLinux.org
Jump to: navigation, search
(Created page with "=Setup examples for various peripherals= ===Wireless: TP-Link TL-WN722N USB wireless adaptor (Debian 6)=== This will serve as a general guide for USB wireless devices but may n...")
 
(Wireless: TP-Link TL-WN722N USB wireless adaptor (Debian 6))
Line 5: Line 5:
 
This will serve as a general guide for USB wireless devices but may need modifying for your specific one.  
 
This will serve as a general guide for USB wireless devices but may need modifying for your specific one.  
  
Edit /etc/apt/sources.list to add the non-free archive and backports:
+
* Edit /etc/apt/sources.list to add the non-free archive and backports:
  
 
<pre>
 
<pre>
Line 14: Line 14:
 
</pre>
 
</pre>
  
Update tha package cache:
+
* Update tha package cache:
  
 
<pre>
 
<pre>
Line 20: Line 20:
 
</pre>
 
</pre>
  
Download the required firmware and put it in the correct location - you may not need to do this for your adaptor.   
+
* Download the required firmware and put it in the correct location - you may not need to do this for your adaptor.   
  
 
<pre>
 
<pre>
Line 27: Line 27:
 
</pre>
 
</pre>
  
Plug in adaptor
+
* Plug in adaptor
  
Confirm adaptor is present:
+
* Confirm adaptor is present:
  
 
<pre>
 
<pre>
Line 53: Line 53:
  
 
Armed with this information, try a web search for the name of the driver or driver file and/or head over to http://linuxwireless.org
 
Armed with this information, try a web search for the name of the driver or driver file and/or head over to http://linuxwireless.org
 +
 +
===Wlan setup===
 +
Once your adaptor is listed, you need to set it up...
 +
 +
To be continued - sorry, I have work to do - but if someone else wants to dive in here before I get back be my guest!!
 +
 +
[[User:Linker3000|Linker3000]]

Revision as of 03:06, 17 April 2012

Setup examples for various peripherals

Wireless: TP-Link TL-WN722N USB wireless adaptor (Debian 6)

This will serve as a general guide for USB wireless devices but may need modifying for your specific one.

  • Edit /etc/apt/sources.list to add the 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
  • Update tha package cache:
 apt-get update
  • Download the required firmware and put it in the correct location - you may not need to do this for your adaptor.
 wget http://linuxwireless.org/download/htc_fw/1.3/htc_9271.fw
 cp htc_9271.fw /lib/firmware
  • Plug in adaptor
  • Confirm adaptor is present:
 root@raspberrypi:~# iwconfig
  lo        no wireless extensions.

  eth0      no wireless extensions.

  wlan0     IEEE 802.11bgn  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

If no wlanx device is shown, you might need to download firmware for your USB wifi device (or track down other compatible drivers if they are available). To confirm this, check the dmesg output when you plug in your adaptor - typing dmesg at the command prompt may be sufficient - and look for information related to your adaptor - the example dmesg output below shows what is seen in the event of the TP-Link firmware not being present - notice that the name of the required firmware file is given (htc_9271.fw), the driver name (ath9k_htc) and an error -22 message:

  usb 1-1.2.4.2: ath9k_htc: Firmware - htc_9271.fw not found
  ath9k_htc: probe of 1-1.2.4.2:1.0 failed with error -22
  usbcore: registered new interface driver ath9k_htc

Armed with this information, try a web search for the name of the driver or driver file and/or head over to http://linuxwireless.org

Wlan setup

Once your adaptor is listed, you need to set it up...

To be continued - sorry, I have work to do - but if someone else wants to dive in here before I get back be my guest!!

Linker3000