Thread Closed

[KERNEL][3.0.31][OC, CIFS, TUN]intersectRaven's Kernel 07/31/2012 17:34

OP intersectRaven

9th December 2011, 12:09 AM   |  #1  
OP Recognized Developer
Thanks Meter: 1,013
 
1,965 posts
Join Date:Joined: Mar 2010
Donate to Me
More
This is my personally compiled kernel for the Kindle Fire with a few optimizations.

Acknowledgments:
DooMLoRD - for helping greatly in my initial trials on how to create kernels for the Fire
g1011999 - for providing a working .config
paulobrien - insecure boot image
franciscofranco - for some of the ARM optimizations which I've missed since I stopped modding the N1
hashcode - the 3.0 kernel base

Features:
- compiled using Mjolnir
- CPU overclocking code from OMAPZOOM repositories
- ARM code optimizations

What doesn't work:
same bugs as Hashcode's

Download URL:
http://intersectraven.euroskank.com/kernels/

Latest Changes:
20120730_08XX:
- backported cleancache and zcache improvements from 3.4

20120709_1619:
- added further tweaks to interactive scheduler
- rebased experimental optimization to minimize chance of faulty merge

20120703_1041:
- rebased to hashcode's 3.0.31 kernel with support for the touchscreen filter
- added an experimental optimization which in theory should make the kernel a bit more responsive...at least in theory...

20120619_2251:
- numerous ARM optimizations (most from the 2.6 series)
- ported CM's changes to the interactive governor and low memory killer
- GPU driver is compiled into the kernel

20120601_1145:
- integrated latest BFQ release 4 for selection (not default) in SetCPU

20120513_1557:
- integrated shutdown fix from hashcode

20120512_2044:
- first 3.0 release with almost all my tweaks

20120216_1740:
- final fix for TUN without module (if it still doesn't work, going to module in next release)
- UTF8 support for file systems
- some optimizations

20120211_1219:
- minor update for fixing OpenVPN based VPNs

20120207_19XX:
- unification release (unified all my modifications with my Galaxy Nexus kernel and restarted from scratch)
- ARM optimizations
- OC without thermal control
- compiler optimizations
- CIFS and TUN enabled
- now based on 2.6.35.14
- now in zip version for easier flashing

***DEPRECATED***
Instructions (stock WiFi driver):
1.) Boot to fastboot
2.) Test first using fastboot boot command

Instructions (custom WiFi driver):
1.) Turn off WiFi.
2.) Use adb push command to push tiwlan_drv.ko to /sdcard/
3.) Using root explorer, rename tiwlan_drv.ko from /system/etc/wifi to tiwlan_drv.ko.bak.
4.) Usring root explorer, copy tiwlan_drv.ko from /sdcard/ to /system/etc/wifi. Make sure permissions are same with other files in directory together with owner and group being set to root.
5.) Reboot to fastboot and TEST FIRST using fastboot boot command

Detailed instructions are on the next post.
***DEPRECATED***

GitHub:
http://www.github.com/intersectRaven/kindle-kernel
Last edited by intersectRaven; 31st July 2012 at 10:34 AM.
The Following 38 Users Say Thank You to intersectRaven For This Useful Post: [ View ]
9th December 2011, 12:09 AM   |  #2  
OP Recognized Developer
Thanks Meter: 1,013
 
1,965 posts
Join Date:Joined: Mar 2010
Donate to Me
More
Detailed Instructions:

Turn off your device's WiFi.
From your command prompt issue the ff. commands:

Code:
adb shell
su
idme bootmode 4002
reboot
This will cause your kindle to reboot to fastboot mode. Issue the ff. commands:

Code:
fastboot -i 0x1949 boot bootnew.img
This will cause the Kindle to boot TEMPORARILY to the new kernel which I assume you downloaded from me.
If it doesn't boot normally, you can turn off your Kindle by holding down the power button for at least 10 seconds then turn it on again.
This will boot your Kindle to fastboot mode again.

If the kernel didn't work:

Code:
fastboot -i 0x1949 oem idme bootmode 4000
fastboot -i 0x1949 reboot
This will reboot your Kindle back to normal.

If the kernel worked, here's how to flash it permanently:

Code:
fastboot -i 0x1949 flash boot bootnew.img
fastboot -i 0x1949 oem idme bootmode 4000
fastboot -i 0x1949 reboot
This should boot up with the new kernel.

Once you've booted up properly, issue the ff. commands to replace your stock WiFi driver with the new one.

Code:
adb push tiwlan_drv.ko /system/etc/wifi/
adb shell
su
cd /system/etc/wifi
chmod 644 tiwlan_drv.ko
Ensure that the permissions, owner and group settings for the new WiFi driver are correct by issuing:

Code:
ls -l
Turn on your WiFi.
Last edited by intersectRaven; 31st December 2011 at 05:28 AM.
The Following 12 Users Say Thank You to intersectRaven For This Useful Post: [ View ]
9th December 2011, 12:11 AM   |  #3  
OP Recognized Developer
Thanks Meter: 1,013
 
1,965 posts
Join Date:Joined: Mar 2010
Donate to Me
More
Partition Backup Instructions:

From your command prompt, issue the ff. commands:

Code:
adb shell
su
This should give you superuser command prompt on your Kindle Fire. To confirm,
you should see a # as your command prompt. Next, issue the ff. commands to backup the smaller partitions to your sdcard. Make sure that the sdcard isn't mounted on your computer so that it is accessible to the Kindle Fire.

Code:
dd if=/dev/block/mmcblk0p1 of=/sdcard/xloader.bin
dd if=/dev/block/mmcblk0p2 of=/sdcard/bootloader.bin
dd if=/dev/block/mmcblk0p3 of=/sdcard/dkernel.bin
dd if=/dev/block/mmcblk0p4 of=/sdcard/dfs.bin
dd if=/dev/block/mmcblk0p5 of=/sdcard/recovery.bin
dd if=/dev/block/mmcblk0p6 of=/sdcard/backup.bin
dd if=/dev/block/mmcblk0p7 of=/sdcard/boot.bin
After executing those commands, you can now mount the sdcard through USB and copy those files to your HD for backup purposes. The remaining partitions through 8 - 11 can be backed up as well but I'll leave that to your own discretions. These partitions were chosen because they're either critical or unreplicable.

You can also use adb to pull the images above directly to your PC. Here're the commands to do so:

Code:
adb pull /dev/block/mmcblk0p1 xloader.bin
adb pull /dev/block/mmcblk0p2 bootloader.bin
adb pull /dev/block/mmcblk0p3 dkernel.bin
adb pull /dev/block/mmcblk0p4 dfs.bin
adb pull /dev/block/mmcblk0p5 recovery.bin
adb pull /dev/block/mmcblk0p6 backup.bin
adb pull /dev/block/mmcblk0p7 boot.bin
Last edited by intersectRaven; 31st December 2011 at 11:05 AM.
The Following User Says Thank You to intersectRaven For This Useful Post: [ View ]
9th December 2011, 12:25 AM   |  #4  
JackpotClavin's Avatar
Recognized Developer
New York
Thanks Meter: 2,762
 
888 posts
Join Date:Joined: Feb 2011
Donate to Me
for stock only?
The Following User Says Thank You to JackpotClavin For This Useful Post: [ View ]
9th December 2011, 12:27 AM   |  #5  
OP Recognized Developer
Thanks Meter: 1,013
 
1,965 posts
Join Date:Joined: Mar 2010
Donate to Me
More
Quote:
Originally Posted by JackpotClavin

for stock only?

Yeah. There's still a couple of glitches though. Seems connecting USB crashes everything.
The Following User Says Thank You to intersectRaven For This Useful Post: [ View ]
9th December 2011, 12:45 AM   |  #6  
Veritass's Avatar
Senior Member
Flag Albany
Thanks Meter: 42
 
232 posts
Join Date:Joined: Nov 2011
More
And wifi doesn't work? O.o

Sent from my Kindle Fire using xda premium
9th December 2011, 12:49 AM   |  #7  
OP Recognized Developer
Thanks Meter: 1,013
 
1,965 posts
Join Date:Joined: Mar 2010
Donate to Me
More
Quote:
Originally Posted by Veritass

And wifi doesn't work? O.o

Sent from my Kindle Fire using xda premium

Yup. That's why it's marked INCOMPLETE in the title.
9th December 2011, 05:56 AM   |  #8  
OP Recognized Developer
Thanks Meter: 1,013
 
1,965 posts
Join Date:Joined: Mar 2010
Donate to Me
More
Stock Wifi works now!

*a bit flaky though...drops every now and then...still fixing...
Last edited by intersectRaven; 9th December 2011 at 06:15 AM.
9th December 2011, 08:27 AM   |  #9  
DooMLoRD's Avatar
Recognized Developer
Flag Noida
Thanks Meter: 38,866
 
13,117 posts
Join Date:Joined: Jul 2010
great work mate!!!

have u uploaded sources to git?

also can u please send link of correct toolchain to use?
9th December 2011, 08:37 AM   |  #10  
Senior Member
Thanks Meter: 16
 
145 posts
Join Date:Joined: Mar 2007
More
Question
Have you tried to compile the bluetooth module? I still believe that the Kindle has Bluetooth support

Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Kindle Fire Android Development by ThreadRank