Advertisement
Guest User

WUSB600N v2 (RT3572) Monitor Mode && Packet Injection

a guest
Oct 26th, 2011
961
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.45 KB | None | 0 0
  1. Install Debian 6 I386 Desktop and updates:
  2. open up a term and install these packages:
  3. sudo apt-get install fakeroot build-essential crash kexec-tools makedumpfile kernel-wedge kernel-package xmlto
  4. sudo apt-get install git-core libncurses5 libncurses5-dev libelf-dev asciidoc binutils-dev
  5. sudo apt-get build-dep linux
  6. cd ~
  7. mkdir ~/src
  8. cd ~/src
  9.  
  10. ### 2.6.33 kernel at the time of this writing
  11. git clone git://git.popipo.fr/git/rt2x00.git
  12. cd ~/src/rt2x00
  13.  
  14. ### this is also working at the time of this writing
  15. git checkout -b rt3070v2-next origin/rt3070v2-next
  16. cd /src
  17. sudo ln -s ~/src/rt2x00 ~/src/Linu
  18. sudo chmod -R a-s ~/src
  19. cd ~/Linu
  20. gedit ~/src/Linu/Documentation/lguest/Makefile
  21. Changed by
  22. all: lguest
  23. to
  24. all:
  25.  
  26. ### i think fakeroot is need to do that correct..
  27. fakeroot make-kpkg clean
  28.  
  29. ### if you want to use 4 cores
  30. export CONCURRENCY_LEVEL=5
  31. sudo cp -vi /boot/config-`uname -r` /usr/src/Linu/.config
  32.  
  33. make menuconfig
  34. "Device Drivers>Network device support>Wireless LAN>Ralink driver support>rt2800usb - Include support for unknown (USB) devices" = *
  35. "Device Drivers>Network device support>Wireless LAN>Ralink driver support>Ralink rt2800 (USB) support (EXPERIMINTAL)" = M
  36. "Device Drivers>Network device support>Ethernet 1000Mbit>Intel (R) 82576 Virtual Function Ethernet support" = empty
  37. "Device Drivers>Staging drivers" = empty
  38.  
  39. ### dont have to do this with debian
  40. gedit /usr/share/kernel-package/ruleset/misc/version_vars.mk
  41. change include/linux/utsrelease.h to include/generated/utsrelease.h on lines 141 and 142 of debian/ruleset/misc/version_vars.mk
  42.  
  43. ### this needs done
  44. gedit /usr/src/Linu/arch/x86/vdso/Makefile
  45. replace "-m elf_x86_64" by "-m64" on the line starting with  VDSO_LDFLAGS_vdso.lds
  46. replace "-m elf_i386"   by "-m32" on the line starting with  VDSO_LDFLAGS_vdso32.lds
  47.  
  48. ### you might have to sudo at this step (i forget)
  49. fakeroot make-kpkg --initrd --revision=custom.1.0 kernel_image
  50. cd /src
  51. sudo dpkg -i linux-*.deb
  52.  
  53. ### i always do this just to make sure
  54. sudo update-grub
  55.  
  56. ### now go get the 3071 firmware here. it will say "all" in the link
  57. http://packages.debian.org/sid/firmware-ralink
  58.      
  59. ### then extract that and copy the file to /lib/firmware
  60. sudo cp rt3071.bin /lib/firmware
  61.  
  62. ### i didnt have to blacklist any modules (you might i dont know)
  63. ### i have to remove usb adapter and then plug it back in for it to show up in 'lsusb'
  64. ### i might be forgetting something idk...let me know and i will fix stuff as needed.
  65.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement