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

Status
Not open for further replies.
Search This thread

intersectRaven

Senior Member
Mar 13, 2010
2,260
1,558
www.intersectraven.net
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:

intersectRaven

Senior Member
Mar 13, 2010
2,260
1,558
www.intersectraven.net
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:

intersectRaven

Senior Member
Mar 13, 2010
2,260
1,558
www.intersectraven.net
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:
  • Like
Reactions: Mattd2

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,191
39,709
Pune
great work mate!!!

have u uploaded sources to git?

also can u please send link of correct toolchain to use?
 

N23

Senior Member
Mar 29, 2007
180
22
Have you tried to compile the bluetooth module? I still believe that the Kindle has Bluetooth support :D
 

intersectRaven

Senior Member
Mar 13, 2010
2,260
1,558
www.intersectraven.net
great work mate!!!

have u uploaded sources to git?

also can u please send link of correct toolchain to use?

I'm still thinking of how to quickly upload to git. :p
As for the toolchain, anything should work. I've fixed my source to use Mjolnir though since I need it for some planned compiler fixes I want to use. :)

Have you tried to compile the bluetooth module? I still believe that the Kindle has Bluetooth support :D

Not yet. I was quite busy with fixing the WiFi module loading (since it's a pain to build) so I haven't looked at that. Also, even if I enable it, there's no support in the stock ROM so we need CM7 (or 9) to work as well. :)
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,191
39,709
Pune
I'm still thinking of how to quickly upload to git. :p
As for the toolchain, anything should work. I've fixed my source to use Mjolnir though since I need it for some planned compiler fixes I want to use. :)



Not yet. I was quite busy with fixing the WiFi module loading (since it's a pain to build) so I haven't looked at that. Also, even if I enable it, there's no support in the stock ROM so we need CM7 (or 9) to work as well. :)

no problems mate :)

btw seems one of the kernels i posted yesterday boots, atleast for one user ;) :
http://forum.xda-developers.com/showthread.php?p=20130507#post20130507


regarding wifi, do u have any idea which model of TI chipset is there?

i have the following repo for patched TI modules for Xperia 2011 devices... give it a shot if it works for Kindle Fire...
https://github.com/DooMLoRD/Xperia-2011-TI-WLAN
 

intersectRaven

Senior Member
Mar 13, 2010
2,260
1,558
www.intersectraven.net
no problems mate :)

btw seems one of the kernels i posted yesterday boots, atleast for one user ;) :
http://forum.xda-developers.com/showthread.php?p=20130507#post20130507


regarding wifi, do u have any idea which model of TI chipset is there?

i have the following repo for patched TI modules for Xperia 2011 devices... give it a shot if it works for Kindle Fire...
https://github.com/DooMLoRD/Xperia-2011-TI-WLAN

Thanks for the info! I'll try that later. Fyi, I tried the one in Amazon's release and it didn't work but maybe I did something wrong. I am quite unfamiliar with compiling modules outside of the kernel tree. :)

*Seems you modified it heavily to prevent reliance in outside export commands. :p
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,191
39,709
Pune
Thanks for the info! I'll try that later. Fyi, I tried the one in Amazon's release and it didn't work but maybe I did something wrong. I am quite unfamiliar with compiling modules outside of the kernel tree. :)

*Seems you modified it heavily to prevent reliance in outside export commands. :p

me too :)

hahahha... yes i had to got bored with long commands ;)

just the msm_env.bash is changed...
 

jcatt

Senior Member
Apr 29, 2007
53
3
Forgot to mention that the WiFi is wl1283. :)

On the Wifi chip, a quick look at Chipworks indicates that not only does the WL1283 have bluetooth, but also GPS. Providing that its wired up right inside, should we also be able to get GPS working as well? Or is it missing the GPS antenna to make it work?
 
E

ECOTOX

Guest
On the Wifi chip, a quick look at Chipworks indicates that not only does the WL1283 have bluetooth, but also GPS. Providing that its wired up right inside, should we also be able to get GPS working as well? Or is it missing the GPS antenna to make it work?

Might have to add the GPS antenna if anything, but bluetooth could be possible. We just dont know if it has to be enabled in software or if it cant due to the hardware
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,191
39,709
Pune
On the Wifi chip, a quick look at Chipworks indicates that not only does the WL1283 have bluetooth, but also GPS. Providing that its wired up right inside, should we also be able to get GPS working as well? Or is it missing the GPS antenna to make it work?

interesting... the TI driver i have (for Xperia 2011 devices) is WL1273... i have talked to a developer friend and he told me that WL12xx drivers are unified so we can try those drivers too...
 

Hashcode

Senior Recognized Developer
Sep 3, 2011
3,426
23,731
Downloading the source here in a bit, but I had a few questions.

Can you check the gpu config? I believe its 1.7 pvr driver but the 3d memory has been cut down a bit. I'm not sure if it'd be possible to move some of that back w/o affecting other optimizations in the kernel. The reason I ask, is that I know ICS/tablet apps would run better with a bit more dedicated 3d mem.

I noted that CM7 was having some audio issues, is the kernel using a stock SoC/Alsa config? Or did they do something odd?

Lastly, I applaud you guys for grinding this out, it's always best to start from the ground up. Great work!

Sent from my DROID3 using XDA App
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 38
    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
    12
    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. :)
    9
    What gorvernment r u using?

    Sent from my LG-P500 using xda premium

    Communism.
    8
    Minor kernel release! Added interactive CPU governor. :)
    8
    Unification Release! :)

    This marks a complete restart of my kernel modifications! Branch modifications have now been back/forward-ported to/from this and my Galaxy Nexus source tree! Also, this marks a return to the roots of why I began modifying kernels! Focus is on energy consumption, compiler optimizations and code changes for more efficient processing! Also, only OC which is endorsed by the manufacturer is going to be integrated into the kernel. :D