Custom Kernel 4.1 JB

vampirefo.

Senior Member
Developer
Nov 8, 2011
3,836
1,394
Use at your own risk.

This kernel is complied from current JB source.
The kernel performs same as stock, but more power, all bench tests on this kernel will be higher than stock kernel.
If you are happy with stock kernel stick with it, if you want more power than stock, give my kernel a try.

It's best to bench test your kernel, before you try my kernel, that way, you will know how much this kernel, has or has not increased your performance.

Below are some bench tests results.

average bench

quadrant 4600

Antutu 14200 *note all the highest bench tests posted are from this kernel, my kernel currently holds all the top spots in this test for the a2109.

Epic Citadel 49

Linpack 125.00

schedulers

deadline
row
cfq
sio
vr

governors

smartass2
lagfree

This is the kernel I use on my dual boot, it's a work in progress, I only add what I like in the kernel.


This is a first release so this should be considered beta.

will list more details about kernel as time permits, right now getting ready for the The Bible (TV series)

Dev-Host - vampirefo_jb_kernel.zip - The Ultimate Free File Hosting / File Sharing Service


Below is my build script, I make my own scripts, to build kernels.

Code:
#!/bin/bash
#variables
initramfs=/media/b3c1b0c9-f22f-4de2-b8ee-32179fa3e787/vampirefo/lenovo/jb_sd_boot.img-ramdisk_FILES
modules=/media/b3c1b0c9-f22f-4de2-b8ee-32179fa3e787/vampirefo/lenovo/jb_sd_modules/system/lib/modules
makeboot=/media/22ce18ab-d780-4388-a21a-57d2c2464bc7/home/vampirefo/Desktop/Lenovo/custom_kernel
inv_mpu=/media/b3c1b0c9-f22f-4de2-b8ee-32179fa3e787/vampirefo/lenovo/A2109-JB_GPL_RC1_227/drivers/misc/inv_mpu
drivers=/media/b3c1b0c9-f22f-4de2-b8ee-32179fa3e787/vampirefo/lenovo/A2109-JB_GPL_RC1_227/drivers
net=/media/b3c1b0c9-f22f-4de2-b8ee-32179fa3e787/vampirefo/lenovo/A2109-JB_GPL_RC1_227/net
tegra=/media/b3c1b0c9-f22f-4de2-b8ee-32179fa3e787/vampirefo/lenovo/A2109-JB_GPL_RC1_227/arch/arm/mach-tegra
crypto=/media/b3c1b0c9-f22f-4de2-b8ee-32179fa3e787/vampirefo/lenovo/A2109-JB_GPL_RC1_227/crypto
bcm=/media/b3c1b0c9-f22f-4de2-b8ee-32179fa3e787/vampirefo/lenovo/A2109-JB_GPL_RC1_227/drivers/net/wireless/bcmdhd_fxn_125_120
zImage=/media/b3c1b0c9-f22f-4de2-b8ee-32179fa3e787/vampirefo/lenovo/A2109-JB_GPL_RC1_227/arch/arm/boot/zImage
cc=/home/vampirefo/x-tools/arm-lenovo-linux-gnueabi/bin/arm-lenovo-linux-gnueabi-

#setup kernel
export CROSS_COMPILE=$cc
export ARCH=arm
cd A2109-JB_GPL_RC1_227
#cd A2109N_GPL_kernel_570
make distclean
#make ics_tegra3_android_defconfig
make jb_tegra3_android_defconfig
make xconfig
make modules

#Copy modules to jb initramfs
rm -r $modules/*
cp $inv_mpu/mpu6050/mpu6050b1.ko $modules
cp $inv_mpu/compass/inv_mpu_ak89xx.ko $modules
cp $net/wireless/cfg80211.ko $modules
cp $net/wireless/lib80211.ko $modules
cp $net/mac80211/mac80211.ko $modules
cp $tegra/baseband-xmm-power2.ko $modules
cp $inv_mpu/accel/inv_mpu_kxtf9.ko $modules
cp $inv_mpu/mpu3050/mpu3050.ko $modules
cp $inv_mpu/compass/inv_mpu_ak8975.ko $modules
cp $drivers/usb/serial/baseband_usb_chr.ko $modules
cp $drivers/net/usb/raw_ip_net.ko $modules
cp $drivers/scsi/scsi_wait_scan.ko $modules
cp $crypto/tcrypt.ko $modules
cp $bcm/bcmdhd.ko $modules

make -j5 

cd $makeboot
rm -rf ./zImage_jb_sd
rm -rf ./jb_sd_gboot.img

#build boot.img
cp $zImage $makeboot/zImage_jb_sd
./repack-bootimg.pl ./zImage_jb_sd $initramfs ./jb_sd_gboot.img
 
Last edited:

flashallthetime

Senior Member
Dec 28, 2012
499
235
So just flash it in recovery? of course dalvik and cache should be wiped, I will give it a go. Note, I guess updater script is set up for your dual boot scenario, so the zip flashes but doesn't inject kernel , so I just replaced the boot IMG in my ROM zip and I am know running your kernel, looks like a nice jump in antutu score:D, nice work, I'll test it for awhile and would love to use this in my ROM?
Also looks like multi-touch is working far better, the keyboard works fanatastic know, camera works, WiFi works, Bluetooth turns on

Sent from my IdeaTabA2109A using Tapatalk HD
 
Last edited:

vampirefo.

Senior Member
Developer
Nov 8, 2011
3,836
1,394
So just flash it in recovery? of course dalvik and cache should be wiped, I will give it a go. Note, I guess updater script is set up for your dual boot scenario, so the zip flashes but doesn't inject kernel , so I just replaced the boot IMG in my ROM zip and I am know running your kernel, looks like a nice jump in antutu score:D, nice work, I'll test it for awhile and would love to use this in my ROM?
Also looks like multi-touch is working far better, the keyboard works fanatastic know, camera works, WiFi works, Bluetooth turns on

Sent from my IdeaTabA2109A using Tapatalk HD

Thanks, I changed update script, should now work, Yes you can use in your rom, LOL your rom is what I am using to do my tests.:cool:
 

vampirefo.

Senior Member
Developer
Nov 8, 2011
3,836
1,394
Great, fast as heck now I guess a simple update is in order, thanks and I will give you credit

Sent from my IdeaTabA2109A using Tapatalk HD

Thanks, I think your rom and my kernel compliment each other, on my tablet they both work great together.
 

vampirefo.

Senior Member
Developer
Nov 8, 2011
3,836
1,394
Sweet! How's battery life with this? Any noticeable difference?
I haven't really used stock kernel much to compare. I used stock kernel to set benchmarks, then worked on custom kernel to beat them. To get the best from this kernel install flashallthetime's rom. He has included kernel in his latest rom.
 

doomboss

Senior Member
Jan 17, 2013
252
47
I know that you will post your custom JB kernel soon after your post the information about JB kernel source!! :) Thank you so much for making us a custom kernel!! :D I really really appreciate your work :D :D
 

vampirefo.

Senior Member
Developer
Nov 8, 2011
3,836
1,394
I use row for scheduler, For the governors I use Performance for bench tests, and games, for battery, I use conservative or Interactive.

Those are just my choices, I sometimes switch and try other governors, but for the most part, I just use the two above.
 

stal2k

Member
Dec 13, 2012
35
11
Harm I was playing around with em I ran a bunch of benches I seemed to get by and fire highest score 500+ I/o with that vr scheduler. Haven't ever seen it before. Govs were close but smartass topped me out. Could that just be mine? I couldn't top 1400 but got 13600. Didn't oc. But using the ROM / kernel all day man its smooth. The whole reason ppl flash is hoping their device runs like this.

What's the deal with that glow ball by the way didn't you have it running at one point? Its kinda the forbidden fruit I'm sure it prob sucks but I won't lie I tried it haha.

Sent from my IdeaTabA2109A using Tapatalk HD
 

vampirefo.

Senior Member
Developer
Nov 8, 2011
3,836
1,394
What ever combo works best for your setup, is fine. I have turned up the power slightly on the kernel I am working on right now. As far as glowball that's not kernel specific. That's lib problem, I have contacted lenovo techs, and requested they fix it.
 
Last edited:

Linsalata28

Senior Member
Dec 24, 2012
155
47
Very glad to see this. I'll give it a try later when I have time.
Thanks for your work and time you put into this.
 
Top