Tuesday, 21 May 2013

RT 5370 Packet Injection

Another day another driver damm giving me hell but heres some magic for you.

 cd /usr/src  
 sudo wget https://github.com/raspberrypi/linux/archive/rpi-3.6.y.tar.gz  
 sudo tar xvfz rpi-3.6.y.tar.gz  
 sudo ln -s /usr/src/linux-rpi-3.6.y/ /lib/modules/3.6.11+/build  
 cp -R /lib/modules/3.6.11+/build/linux-rpi-3.6.y/ /lib/modules/3.6.11+/build/  
 sudo make mrproper  
 sudo gzip -dc /proc/config.gz > .config  
 sudo su  
 gzip -dc /proc/config.gz > .config  
 make modules_prepare  
 wget https://github.com/raspberrypi/firmware/raw/master/extra/Module.symvers  
 cd /home/pi/  
 sudo wget http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.6/compat-wireless-3.6.2-1.tar.bz2  
 sudo tar xvf compat-wireless-3.6.2-1.tar.bz2  
 cd compat-wireless-3.6.2-1  
 sudo wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch  
 sudo patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch  
 sudo make  -i
 sudo make -i install  
 sudo make -i wlunload
 cd /udev/
 sudo cp 50-compat_firmware.rules /etc/udev/

This will build the kernel modules so you can install the packet injection drivers.

note it's only for the latest raspbian

1 comment:

  1. Hi, I`m on a project to use the rt5370 as distance estimator in a robot car. Since I will have to buy 10 of these... Does what you wrote mean that you got the rt5370 to work in monitor mode and to inject packets with the raspi?




Donate Towards More Raspberry PI's for Projects