FORUMS
Remove All Ads from XDA

[DEV][Kernel] P5210 | USB RT8187 | Aircrack-ng How to Included

22 posts
Thanks Meter: 18
 
By Daniel-TAz00, Junior Member on 22nd April 2014, 10:39 PM
Post Reply Email Thread
Hi,

This kernel/rom lets you connect an RT8187 USB Wifi adapter to your GT-P5210 and run aircrack-ng/airmon-ng/airodump-ng through Linux on Android.

Mind the noobness, I just compiled my first kernel(ever) and stuck it in someones image and it worked.


(worked untill i enabled the builtin wifi, lol)

After i bought one of these tablets I can't say I'm not a bit dissapointed about the amount of dev work on the GT-5210, (words go unspoken for DutchDanny, Angel_666, trevd)
It's an x86 device, anything should be compileable and runable without any arm mods (i'm looking at you kali linux) this thing should be owning the Nexus 7.

Tested with TWRP 2.7 recovery

Its built using builduntu, and from the P5210UEUAMI8 source, with the toolchain recommended in the Kernel Readme.

I followed this tutorial to enable driver support
And this detailed guide to compile the kernel and create a proper boot.img

Replaced the boot.img in Mod57's rom with my modified one. (god fed up with fastboot and usb issues on Win 8.1 and just flashed it, it worked. Thats my testing)

Quote:
Originally Posted by Mod57

This is built using the Samsung GT-P5210 P5210UEUAMI8 [4.2.2] Jelly Bean base.
ORIGINAL THREAD

This is not debloated it's fat and sassy like Samsung intended it.
If you would like to debloat I highly recommend using DutchDanny's debloater which can be found here:
http://forum.xda-developers.com/show....php?t=2482582

  • Jelly Bean P5210UEUAMI8
  • Fully Deodexed
  • Rooted
  • BusyBox
  • Zipaligned
  • Extended Power Menu (Wanam Xposed)
  • Will Not Delete Internal SD

Thanks to:
DutchDanny
Angel_666
Zidkijah

and everyone else who has contributed to this device.

Download:
http://www.androidfilehost.com/?fid=23189362627838229
MD5: 79f732fefbaf7882bc7c814d3ac1e998

Once you have downloaded and verified Mod57's rom, open up the zip and replace boot.img with this one:
https://www.dropbox.com/s/9gfucdzsadciy66/boot.zip
MD5: 4dd95a78c78550586cf3c2f7953978ab boot.img

You must have a rooted device (I used TWRP 2.7, http://nasirtech.blogspot.dk/2014/03...422-stock.html)
Code:
Put the modified rom onto the sdcard
Go to recovery
Wipe Cache and dalvik-cache
Install the ROM
Reboot and enjoy
Once you have installed the kernel and it boots up, you must follow these steps to chroot into an ubuntu image and compile / install aircrack.
Code:
Download this image: ubuntu-13.10.LARGE.x86.ext2.v1.zip
from http://sourceforge.net/projects/linu...ntu/13.10/x86/
and copy it to your sdcard

Thanks to jorgen_gustavsson for his excellent work http://forum.xda-developers.com/show....php?t=2573441

1.  Install busybox https://play.google.com/store/apps/d...ricson.busybox
2.  Install a vnc viewer https://play.google.com/store/apps/d...oid.androidVNC
3.  Install https://play.google.com/store/apps/d...linuxonandroid
    (Not sure, but open and close it once to be safe)
4.  Copy bootscript.sh link to bootscript thread to /data/data/com.zpwebsites.linuxonandroid/files/ overwrite the old file.
    bootscript.sh
    (Thanks to xdadev: jorgen_gustavsson)
5.  Unpack and Copy the ubuntu-13.10.LARGE.x86.ext2.img and .md5 to a place of your choosing on either internal or external sdcard.
6.  Make a Linux on Android widget and point it to the img file you copied to your sdcard (ubuntu-13.10.LARGE.x86.ext2.v1.img).
7.  Now click on the LOA widget you made in 6 and let linux ”bootup”
8.  Press 'y' to check MD5 checksum 
9.  Connect vnc to localhost:5900 password ubuntu

Now to install Aircrack

# Libraries
sudo updatedb
sudo apt-get install build-essential
sudo apt-get install gcc
sudo apt-get install zlibg-dev
sudo apt-get install libssl-dev (or libssl-dev depending on your distribution)

#airolib-ng optional sqlite=true
sudo apt-get install libsqlite3-devel

#libnl optional libnl=true
sudo apt-get install libnl-genl-3-dev libnl-3-dev

#Required Extras
sudo apt-get install wireless-tools
sudo apt-get install net-tools
sudo apt-get install wicd-curses (or wicd-cli)
sudo apt-get install usbutils
sudo apt-get install wpasupplicant
sudo apt-get install dbus

# Download & unpack (or replace link with latest trunk)
wget http://download.aircrack-ng.org/airc...2-beta3.tar.gz
tar -zxvf aircrack-ng-1.2-beta3.tar.gz
cd aircrack-ng-1.2-beta3

# Make
sudo make libnl=false sqlite=false
sudo make install libnl=false sqlite=false

# or
make libnl=true;make libnl=true install
make install libnl=true;make libnl=true install

# or Airolib-ng support
make sqlite=true;make sqlite=true install
make install sqlite=true;make sqlite=true install

# Add binaries to path
export PATH=$PATH:/usr/local/sbin

# add the above line to below file for include path on startup
vim /home/ubuntu/.bashrc

# Update MAC OUI
airodump-ng-oui-update

Reboot and disable your internal wifi, connect your dongle, and get cracking.
This is what I spent my easter (and then some) doing, I hope someone can make good use of it. I can

Maybe someone can come along and add bcmon for the bcm4334 chipset
(Just maybe https://code.google.com/p/bcmon/sour...hd/Kconfig?r=4 )

Any feedback and questions are welcome:

why didn't you use the latest source? -couldn't find it
Will this kernel work with xx rom? -probably not
Why aren't more roms including this? -dno, its in the menuconfig, should be easy

I've tried to give thanks where ever possible, let me know if you feel left out.
Ill come back tomorrow and clean up my post.

Best Regards
The Following 8 Users Say Thank You to Daniel-TAz00 For This Useful Post: [ View ] Gift Daniel-TAz00 Ad-Free
 
 
23rd April 2014, 07:08 AM |#2  
Senior Member
Flag Sydney
Thanks Meter: 73
 
More
You my dear friend are a LEGEND
6th June 2014, 08:11 AM |#3  
Rubenyz's Avatar
Senior Member
Flag Hoofddorp
Thanks Meter: 128
 
Donate to Me
More
I'm also yoing to build an own kernel... And I think I'll add this feature too...

Sent from my GT-P5210 using Tapatalk
The Following User Says Thank You to Rubenyz For This Useful Post: [ View ] Gift Rubenyz Ad-Free
5th March 2015, 02:39 AM |#4  
Jacker31's Avatar
Senior Member
Flag Johor
Thanks Meter: 40
 
Donate to Me
More
Keep having error while compiling kernel :"(
7th March 2015, 02:10 PM |#5  
Senior Member
Flag Hannover
Thanks Meter: 43
 
More
Quote:
Originally Posted by Daniel-TAz00

Once you have downloaded and verified Mod57's rom

Thank your for your work. This is what I've been looking a long time for.

Please, would you provide a flashable zip of the rom with your kernel? It looks like I'm doing something wrong.
After flashing the modified rom my P5210 just keeps showing the wird boot logo and wont boot up at all.

Thanks in regard!
8th March 2015, 06:02 AM |#6  
Senior Member
Thanks Meter: 187
 
More
@Max4000 Do you realize that what Daniel-TAz00 original article is about!
He is showing us a way to run Aircrack-ng in a Ubuntu VNC session with our TAB3 wifi turned off but with a external USB WIFI Dongle!!!!.
He also suggest it will be nice if somebody, created the modification on our own TAB3 10.1 driver sources and compiled it in a new kernel. It was just a suggestion. Then a few commented but no buddy gave the final answer.

I did not follow his steps. I do not even understood why he start with a new TAB3 rom! And a new boot.img. I guess he gave that as a reference as how he did it.

@Jacker31 What is what you are trying to compile, your sources and steps? And what is the exact error?

This is an interested topic to me. But I been sick for more than a week.
The Following User Says Thank You to r2d23cpo For This Useful Post: [ View ] Gift r2d23cpo Ad-Free
8th March 2015, 06:20 AM |#7  
Jacker31's Avatar
Senior Member
Flag Johor
Thanks Meter: 40
 
Donate to Me
More
Quote:
Originally Posted by r2d23cpo

@Max4000 Do you realize that what Daniel-TAz00 original article is about!
He is showing us a way to run Aircrack-ng in a Ubuntu VNC session with our TAB3 wifi turned off but with a external USB WIFI Dongle!!!!.
He also suggest it will be nice if somebody, created the modification on our own TAB3 10.1 driver sources and compiled it in a new kernel. It was just a suggestion. Then a few commented but no buddy gave the final answer.

I did not follow his steps. I do not even understood why he start with a new TAB3 rom! And a new boot.img. I guess he gave that as a reference as how he did it.

@Jacker31 What is what you are trying to compile, your sources and steps? And what is the exact error?

This is an interested topic to me. But I been sick for more than a week.

Well it have been a long story, I posted a thread about my error, here : http://forum.xda-developers.com/gene...g-x86-t3047439 but in the end i found out i used the wrong toolchain. So i redownloaded the correct version and try again. It works but another error popup, its about some Broadcom error. I can successfully compile it after i disabled it in menuconfig. But instead of getting a Zimage i got a Bzimage. So Idk what to do with it. I googled a tones of information but still have no idea what to do with that bzimage. I used Kali Linux to compile and those kernel files are from http://opensource.samsung.com/recept...rchValue=p5220 GT-P5220_SEA_KK_Opensource. Now i am trying to install builduntu and try to compile it again. Any tips or helps? especially with that bzimage
8th March 2015, 01:01 PM |#8  
Senior Member
Flag Hannover
Thanks Meter: 43
 
More
Quote:
Originally Posted by Daniel-TAz00

Hi,

This kernel/rom lets you connect an RT8187 USB Wifi adapter to your GT-P5210 and run aircrack-ng/airmon-ng/airodump-ng through Linux on Android.

[...]

Once you have downloaded and verified Mod57's rom, open up the zip and replace boot.img with this one:
https://www.dropbox.com/s/9gfucdzsadciy66/boot.zip
MD5: 4dd95a78c78550586cf3c2f7953978ab boot.img

Quote:
Originally Posted by r2d23cpo

@Max4000 Do you realize that what Daniel-TAz00 original article is about!
He is showing us a way to run Aircrack-ng in a Ubuntu VNC session with our TAB3 wifi turned off but with a external USB WIFI Dongle!!!!.
He also suggest it will be nice if somebody, created the modification on our own TAB3 10.1 driver sources and compiled it in a new kernel. It was just a suggestion. Then a few commented but no buddy gave the final answer.

I did not follow his steps. I do not even understood why he start with a new TAB3 rom! And a new boot.img. I guess he gave that as a reference as how he did it.

I get it. He offers a kernel and tells to place it in an flashable zip of an other firmware.
This is not a new firmware, it's just a kernel.

Maybe someone can create a flashable zip of the kernel he has linked to. So I would try to flash it separately.
8th March 2015, 09:54 PM |#9  
OP Junior Member
Thanks Meter: 18
 
Donate to Me
More
Quote:
Originally Posted by Max4000

Maybe someone can create a flashable zip of the kernel he has linked to. So I would try to flash it separately.

I'll upload a complete zip for you, it's just gonna take a little while ....
The Following 2 Users Say Thank You to Daniel-TAz00 For This Useful Post: [ View ] Gift Daniel-TAz00 Ad-Free
9th March 2015, 05:11 AM |#10  
Senior Member
Thanks Meter: 187
 
More
OHH BOY!

This is Daniel-TAz00 thread, so he know what he is finally offering you when he said.
Quote:
Originally Posted by Daniel-TAz00

I'll upload a complete zip for you, it's just gonna take a little while ....

Now what will be this "complete zip" he is offering! I hope is your desired kernel.

Quote:
Originally Posted by Max4000

I get it. He offers a kernel and tells to place it in an flashable zip of an other firmware.
This is not a new firmware, it's just a kernel...

Max4000 In your quote
Quote:

This kernel/rom lets you connect an RT8187 USB Wifi adapter to your GT-P5210 and run aircrack-ng/airmon-ng/airodump-ng through Linux on Android.

You are just looking in "This kernel/rom" at the beginning. While I am trying to tell you to look at the end "through Linux on Android."

So yes that kernel may have the "external RT8187 USB Wifi adapter driver" but in order to run "aircrack-ng/airmon-ng/airodump-ng" you need to run it through Linux....

Clearly the best approach is to use our internal wifi and some how run "aircrack-ng/airmon-ng/airodump-ng" without the need of "Linux" chrooted on Android.

@ Jacker31 I answered in your thread
http://forum.xda-developers.com/show...24&postcount=2
The Following User Says Thank You to r2d23cpo For This Useful Post: [ View ] Gift r2d23cpo Ad-Free
9th March 2015, 07:28 AM |#11  
OP Junior Member
Thanks Meter: 18
 
Donate to Me
More
Here: https://www.dropbox.com/s/q27inuf6jm...ustom.zip?dl=0 942MB

It's what has been running on my tablet since I made the topic. If your tablet turns into a magic mushroom, it wasnt my fault
The Following 3 Users Say Thank You to Daniel-TAz00 For This Useful Post: [ View ] Gift Daniel-TAz00 Ad-Free
Post Reply Subscribe to Thread

Tags
aircrack-ng, gt-p5210, rt8187, tab310

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes