Power Developer
https://powerdeveloper.org/forums/

HowTo: Updated wifi drivers w/packet injection
https://powerdeveloper.org/forums/viewtopic.php?f=7&t=2256
Page 1 of 1

Author:  InsaniKamil [ Tue May 15, 2012 9:43 am ]
Post subject:  HowTo: Updated wifi drivers w/packet injection

Here are the steps I followed to update the wifi drivers on my Efika MX Smarttop to support packet injection under kernel 2.6.31.14.27-efikamx. This also seemed to provide better connection stability. Should also work for Ubuntu.

Install packages:
Code:
apt-get install build-essential linux-headers-2.6.31.14.27-efikamx git-core
The kernel headers package is missing a directory required to build compat-wireless, so we need to clone the kernel source from git and hackily rectify the problem:
Code:
git clone git://gitorious.org/~brainstorm/efikamx/efika-kernel.git
cp -R efika-kernel/arch/arm/plat-mxc/include/mach /usr/include
Grab and build the latest compat-wireless rtx200 drivers from http://linuxwireless.org/download/compat-wireless-2.6/ .. I used compat-wireless-2012-05-10 .. Your mileage will vary depending on which version you choose.
Code:
wget http://linuxwireless.org/download/compa ... 10.tar.bz2
tar xvf compat-wireless-2012-05-10.tar.bz2
cd compat-wireless-2012-05-10
scripts/driver-select rt2x00
make; make install
Now you must blacklist the old rt2870sta driver so it does not load on boot
Code:
echo blacklist rt2870sta >>/etc/modprobe.d/blacklist.conf
Reboot the machine and you will be using the new driver. Works as a normal wireless client, with aircrack-ng, reaver, etc.

If you are running the same kernel I am, and would like to skip most of the above, download the binaries I have built from http://www.slingfile.com/file/UjvSGas83X . Copy the 'updates' directory to /lib/modules/`uname -r`, run depmod -a, and blacklist the old module.

Author:  claunia [ Mon Jul 16, 2012 8:04 am ]
Post subject:  Re: HowTo: Updated wifi drivers w/packet injection

Great, but in my case it keeps complaining about firmware.

"Failed to request firmware".

Ofc I have the firmware files on /lib/firmware, tested with two revisions, the 8Kb one is working on another machine (not an Efika) with a USB dongle, and the both work with rt2870sta.

Could you post your firmware or at least its MD5 hash and the exact location and name?

EDIT: The problem was that compat-wireless uses an udev script that didn't get installed neither is distributed with your binary package.

Author:  wschaub [ Tue Jul 17, 2012 6:34 am ]
Post subject:  Re: HowTo: Updated wifi drivers w/packet injection

Quote:
Great, but in my case it keeps complaining about firmware.

"Failed to request firmware".

Ofc I have the firmware files on /lib/firmware, tested with two revisions, the 8Kb one is working on another machine (not an Efika) with a USB dongle, and the both work with rt2870sta.

Could you post your firmware or at least its MD5 hash and the exact location and name?

EDIT: The problem was that compat-wireless uses an udev script that didn't get installed neither is distributed with your binary package.
Hi, You might be better off using my debian package instead you can read about it in this thread here:

http://www.powerdeveloper.org/forums/vi ... f=7&t=2278

I also have the packaging on github at https://github.com/wschaub/compat-wireless

the armel version might well work on maverick as well as on Squeeze but I haven't tested it on maverick. My pacakge does install the udev rule and the firmware loader script that is missing above. you can also find the missing bits at https://github.com/wschaub/compat-wirel ... re_install <-- script that installs the udev stuff

https://github.com/wschaub/compat-wirel ... aster/udev <-- where the udev rules and scripts are located.

Author:  wschaub [ Tue Jul 17, 2012 10:44 am ]
Post subject:  Re: HowTo: Updated wifi drivers w/packet injection

In case anyone that is running maverick is interested the package does work on maverick. but you need to have linux-image-2.6.31.14.27-efikamx installed (which you can find here: http://steubentech.com/~talon/Efika-MX/kernels/latest/)

Author:  claunia [ Tue Jul 17, 2012 2:44 pm ]
Post subject:  Re: HowTo: Updated wifi drivers w/packet injection

Too late! :p

I suggest a wiki with tips and tricks!

Author:  wschaub [ Tue Jul 17, 2012 10:30 pm ]
Post subject:  Re: HowTo: Updated wifi drivers w/packet injection

Quote:
Too late! :p

I suggest a wiki with tips and tricks!
Already wrote it. I have an article at http://library.powerdeveloper.net/index ... atWireless
ready now.

Page 1 of 1 All times are UTC-06:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/