[Android General] MasterX1987:
Hello everyone....

i have a few little update form my side...

But first, my englisch is not the best, i'm sorry for it ^^

1. The is Important for every one how work at the end with aircrack... Then you need to get to patch the mac80211 data (channel-negative-one-maxim.patch and mac80211.compat08082009.wl_frag+ack_v1.patch from aircrack), otherwise you get at the end a fixed channel -1 problem in aircrack.... ;) of which more later

Here now My litte Upgrade to build a another Kernel because CM10... For this session I use the Kernel form Yank555.lu on JB 4.1.2!

First you need to get the Kernel von GitHub. "github /yank555-lu/SGS3-JB/archive/Update11.zip"

After you extracte the kernel into your Kernel-Folder go in it.

cd ../path/to/kernel

########## 1. You need to edit the Makefile to beware for compile errors. ##########

nano Makefile

Search at the line 571:

-- KBUILD_CFLAGS += -fdiagnostics-show-option -Werror \

++ KBUILD_CFLAGS += -fdiagnostics-show-option \

Search at line 373:

-- -mcpu=cortex-a9 -mfpu=neon -mtune=cortex-a9 -fno-pic \

-- -munaligned-access

++ -mtune=cortex-a9

Now go to line 693:

++ #

++ # Edit by Mastaaa

++ #

++ KCONFIG_CFLAGS += -w

Save the file and Close it....

################ 2. Download and Patch the Wireless Patches. ################

For the negative-channel fix you need to get the Patches.

wget patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch &&

wget patches.aircrack-ng.org/channel-negative-one-maxim.patch

Now patch it...

patch ./net/mac80211/tx.c mac80211.compat08082009.wl_frag+ack_v1.patch &&

patch ./net/wireless/chan.c channel-negative-one-maxim.patch

################### 3. make .config and edit menuconfig. ####################

Ceate a Basic .config File with:

make Yank555.lu_v3.x_series_defconfig

Now Edit the Menuconfig:

make menuconfig

Here the Basic edit's (i think) you get to need:

1. Edit the Kernel Info (to what you want...):

General setup --->

(...) Local version - append to kernel release (Hit Enter to edit this...)#

2. Turn On the mac80211 driver:

[*] Networking support ---->

-*- Wireless ---->

< > Generic IEEE 802.11 Networking Stack (Mark to <*>)

[ ] Enable mac80211 mesh networking (pre-802.11s) support (Mark to [ * ]

3, Mark the additional usb drivers:

Device Drivers ---->

.....[*] Network device support ---->

..........[*] Wireless LAN ---->

...............(Mark <m> or <*> waht you need.... Here a few examples:)

...............<*> Atmel at76c503/at76c505/at76c505a USB cards

...............<*> Realtek 8187 and 8187B USB support

...............<*> Atheros Wireless Cards ----->

...............<*> Ralink driver support ----->

....................<*> Ralink rt2500 (USB) support

....................<*> Ralink rt2501/rt73 (USB) support

....................<*> Ralink rt27xx/rt28xx/rt30xx (USB) support

....................[ * ] rt2800usb - Include support for rt33xx devices

....................[ * ] rt2800usb - Include support for rt35xx devices (EXPERIMENTAL)

....................[ * ] rt2800usb - Include support for rt53xx devices (EXPERIMENTAL)

....................[ * ] rt2800usb - Include support for unknown (USB) devices

4. Mark the OTG support on !:

Device Drivers ---->

.....[*] USB support ---->

..........[ ] OTG support ............................................................(Mark it to [*])

..........< > Enable Wireless USB extensions (EXPERIMENTAL) ..(Makr it to <*>)

5. Make Kernel hacking:

Kernel hacking ---->

.....(1024) Warn for stack frames larger than (needs gcc 4.4) (Edit this to 1032)

######################### 4. compile the Kernel. ###########################

make ARCH=arm CROSS_COMPILE=$CCOMPILER -j6

(with make -i ... you can ignor errors, but i think thats not good ^^)

########################## 5. make ramdisk.gz. ###########################

mkdir ramdisk-new

cp -ax ramdisk ./ramdisk-new

#clear git repositories in ramfs

find ramdisk-new -name .git -exec rm -rf {} \;

#remove empty directory placeholders

find ramdisk-new -name EMPTY_DIRECTORY -exec rm -rf {} \;

rm -rf ramdisk-new/tmp/*

#remove mercurial repository

rm -rf ramdisk-new/.hg

#copy modules into ramfs

mkdir -p ramdisk-new/lib/modules

find -name '*.ko' -exec cp -av {} ramdisk-new/lib/modules/

#make ramdisk.gz

mkbootfs ./ramdisk-new | gzip > ramdisk.gz

########################### 6. make boot.img. ############################

./mkbootimg --kernel arch/arm/boot/zImage --ramdisk ramdisk.gz --board smdk4x12 --base 0x10000000 --pagesize 2048 --ramdiskaddr 0x11000000 -o boot.img

################ 7. make modules.tgz for your chroot Linux. ###################

tar -czf modules.tgz `find . | grep ko$`

(... This modules.tgz you have to copy to sdcard0,

then go into chrootet (after you have flashed the new Kernel!) Linux and make: )

cd /lib/modules

mkdir `uname -r`

cd *

tar -zxf /sdcard0/modules.tgz

depmod -a

now turn the usb-wlan on S3 and make:

modprobe <your-driver>

example:

modprobe rt73usb

Now your Wifi-USB must be Online...

Soooo that was it from my self... :)

(For any Questions, you have. I'm on my Position... :)

Bye bye,

Master X