View Single Post
HtheB's Avatar
Moderator | Posts: 3,715 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#1
First of all, thank you lxp for making the wifi drivers!

In this tutorial, I will explain (the n00b way) on how to use aircrack-ng on the N900.

remember: use this tutorial only for educational purposes
oh and if something happens to your N900, go to your mommy and cry... because I'm not responsible (hehe)


Allright let's start.

Step 1:
Donate lxp for the wifi drivers to get the files. (Donate buttons are at the bottom)
You will receive the drivers.

Step 2:
When you got the drivers and downloaded them on your PC/Mac, just copy the file (wl1251-maemo-0.1.tar.gz) into your N900 using the usb cable in the MyDocs. When done, disconnect the cable.

Step 3:
(this part is from the inlcuded README file)

Installation:
  • Open X Terminal

type the following commands to unpack the file:
Code:
~$ cd MyDocs
~/MyDocs$ tar -xzvf wl1251-maemo-0.1.tar.gz
Step 4:
Now let's install aircrack-ng and the drivers:
Code:
~/MyDocs$ sudo gainroot

/home/user/MyDocs/# apt-get install aircrack-ng

/home/user/MyDocs/# cd wl1251-maemo/binary/kernel-power

/home/user/MyDocs/wl1251-maemo/binary/kernel-power # dpkg -i kernel-power_2.6.28-maemo46-wl1_armel.deb

/home/user/MyDocs/wl1251-maemo/binary/kernel-power #dpkg -i kernel-power-modules_2.6.28-maemo46-wl1_armel.deb

/home/user/MyDocs/wl1251-maemo/binary/kernel-power # dpkg -i kernel-power-flasher_2.6.28-maemo46-wl1_armel.deb

/home/user/MyDocs/wl1251-maemo/binary/kernel-power # dpkg -i kernel-power-bootimg_2.6.28-maemo46-wl1_armel.deb
* Install customized osso-wlan (optional)
This fixes a bug where WLAN gets stuck, when you are connected to an access point and go out-of-range.

WARNING: Installing the customized osso-wlan will break seamless upgrades to new PR versions.
Most likely you will have to reinstall normal osso-wlan version before you can do OTA upgrades.

You can also skip this step, but keep in mind that the above mentioned bug can occur. If this bug is triggered you have 3 options:
manually unset ssid, unload and reload driver or reboot your phone.

Code:
/home/user/MyDocs/wl1251-maemo/binary/kernel-power # cd ../osso-wlan

/home/user/MyDocs/wl1251-maemo/osso-wlan # dpkg -i osso-wlan_3.0.20+0m5-1_armel.deb
Side note: The packages osso-wlan-dbg and osso-wlan-doc are also included but not needed.

Step 5:
This step is only needed if you have multiboot on your N900 (credits goes to stlpaul):
Code:
/home/user/MyDocs/wl1251-maemo/binary/kernel-power # cd /boot
/boot # mv zImage-2.6.28-maemo46-wl1 multiboot/vmlinuz-2.6.28.10power46-wl1
if you haven't installed leafpad type:
Code:
/boot # apt-get install leafpad
Next, create the file /etc/multiboot.d/01-Maemo-2.6.28.10power46-wl1.item using leafpad:
Code:
/boot # leafpad /etc/multiboot.d/01-Maemo-2.6.28.10power46-wl1.item
and write this into leafpad:
Code:
ITEM_NAME="Maemo 2.6.28.10power46-wl1"
ITEM_KERNEL=2.6.28.10power46-wl1
ITEM_MODULES=ext3
save the file

Power off and boot your phone again while the keyboard is slide open.
Select the kernel from the boot list:
Maemo 2.6.28.10power46-wl1


Step 6:
Using the driver:
This procedure is required after every reboot of your phone, if you want to use this driver!

Open X Terminal
Code:
~$ sudo gainroot
* Load the driver
Code:
 /home/user # cd MyDocs/wl1251-maemo/binary/compat-wireless
 /home/user/MyDocs/wl1251-maemo/binary/compat-wireless # sh load.sh
* Unloading the driver (just in case you run into problems and want to switch back to the stock wl12xx driver)
Code:
/home/user/MyDocs/wl1251-maemo/binary/compat-wireless # sh unload.sh
Step 7:
Follow this tutorial:
http://www.youtube.com/watch?v=9LRSxQ7UoAc
This is the EASIEST video there is
(watch and follow the tutorial from 1:25 till end)
just keep in mind that you have to type in wlan0 instead of mon0!

But before you start video, you have to know this:
the Drivers has to be loaded.
When you open X terminal and everytime you open a new X Terminal, you need to be root

That's all !

Edit:
Yes, you NEED the install the new kernel!

Edit 2:
I will upload a video soon how to do it on your N900
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.

Last edited by HtheB; 2011-01-11 at 01:57.
 

The Following 38 Users Say Thank You to HtheB For This Useful Post: