Advertisement
Guest User

Untitled

a guest
Dec 15th, 2010
566
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. This is for the Linksys AE1000. This may work for other USB wireless network adapters, but I don't know for sure.
  2.  
  3. Here is the original information ( Ubuntu's Forums ) about a very similar card. It clarifies that you need the 'rt3572sta', and some modifications are required to the source from ralink's website to include your Vendor and Product Id. Then modify a few files, and away you go.
  4.  
  5. Step 1) Retrieve your Vendor and Product Id. Easiest way is doing 'sudo tail -f /var/log/messages' and then plugging in your USB device.
  6. Code:
  7.  
  8. Apr 22 15:35:12 localhost kernel: usb 1-3: new high speed USB device using ehci_hcd and address 20
  9. Apr 22 15:35:12 localhost kernel: usb 1-3: New USB device found, idVendor=13b1, idProduct=002f
  10. Apr 22 15:35:12 localhost kernel: usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
  11. Apr 22 15:35:12 localhost kernel: usb 1-3: Product: Linksys AE1000
  12. Apr 22 15:35:12 localhost kernel: usb 1-3: Manufacturer: Linksys
  13. Apr 22 15:35:12 localhost kernel: usb 1-3: configuration #1 chosen from 1 choice
  14.  
  15. Ofcourse if it's already plugged in, lsusb will do the trick too. It was less definitive for me, but it's there.
  16. Code:
  17.  
  18. Bus 001 Device 018: ID 13b1:002f Linksys
  19.  
  20. Step 2) You need the RT3572USB drivers from ralinktech's website. Or skip the whole thing and do it wget style
  21. Code:
  22.  
  23. wget -O ~/Download/RT3572_Linux_STA_v2.4.0.2.tar.bz2 'http://http://http://www.ralinktech.com/license_us.php?n=2&p=0&t=U0wyRnpjMlYwY3k4eU1ERXdMekE1THpFMUwyUnZkMjVzYjJGa016UXhPRFkxTnpJMk5TNWllakk5UFQweU1ERXdYekE1TVRWZlVsUXpOVGN5WDB4cGJuVjRYMU5VUVY5Mk1pNDBMakF1TWk1MFlYST1D
  24.  
  25. Unpackage the file, and cd into the directory.
  26. Code:
  27.  
  28. tar -C ~/Download/ -xf ~/Download/RT3572_Linux_STA_v2.4.0.2.tar.bz2
  29. cd ~/Download/2010_0915_RT3572_Linux_STA_v2.4.0.2/
  30.  
  31. Step 3) Follow the directions in the readme about changing HAS_WPA_SUPPLICANT and HAS_NATIVE_WPA_SUPPLICANT_SUPPORT to "y" in the config.mk file.
  32. Code:
  33.  
  34. sed -ir -e 's/^HAS_WPA_SUPPLICANT=n/HAS_WPA_SUPPLICANT=y/' -e 's/^HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n/HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y/' ./os/linux/config.mk
  35.  
  36. Step 4) Add your Vendor and Product ID to the RT2870 supported list. If your vendor/product ID is different, change it here before you run the command. I'm not sure if lowercase will work, so do all caps just in case. It's HEX, so there are not Letter O's, they are Zeros.
  37. Code:
  38.  
  39. sed -ir -e 's!^#endif // RT2870 //! {USB_DEVICE(0x13B1,0x002F)}, /* Linksys AE 1000 */\n#endif // RT2870 //!' ./common/rtusb_dev_id.c
  40.  
  41. Step 4a) If you are on Fedora 14 (or Kernel 2.6.35 or higher) you also need to update a few function names
  42. Code:
  43.  
  44. sed -ir -e 's/\tusb_buffer_alloc/\tusb_alloc_coherent/' -e 's/\tusb_buffer_free/\tusb_free_coherent/' include/os/rt_linux.h
  45.  
  46. Step 5) Make and install
  47. Code:
  48.  
  49. make && sudo make install
  50.  
  51. There are only two files that are of note:
  52. rt3572sta.ko goes in /lib/modules/`uname -r`/kernel/drivers/net/wireless/
  53. RT2870STA.dat goes in /etc/Wireless/RT2870STA/
  54. The 'make install' should take care of that for you.
  55.  
  56. Step 6) Create a modprobe.d config file to make sure the modules load. Should also blacklist other conflicting modules:
  57. Code:
  58.  
  59. sudo su -c "echo -e 'alias ra0 rt3572sta\nblacklist rt2800usb' > /etc/modprobe.d/rt3572sta.conf"
  60.  
  61. You can add other blacklist modules, here's the list from the Ubuntu page:
  62. rt2870sta, rt2800usb, rt2860sta, rt2x00usb, rt2x00lib, rt2870sta. Now's a good time to check 'lsmod' and unload and blacklist any modules you find. Then run:
  63. Code:
  64.  
  65. sudo modprobe ra0
  66.  
  67. You should now have an ra0 device:
  68. Code:
  69.  
  70. $ ifconfig ra0
  71. ra0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
  72. BROADCAST MULTICAST MTU:1500 Metric:1
  73. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  74. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  75. collisions:0 txqueuelen:1000
  76. RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
  77.  
  78. And NetworkManager should have picked it up. If not, try 'sudo ifconfig ra0 up' and 'iwlist ra0 scan'. Should good results.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement