[Kernel][Kexec][aromaKLflasher] Kernel Lighter (KL) Beta 11[Change Kernel WITHOUT PC]

Thunder07

Recognized Contributor / Inactive Recognized Devel
Sep 22, 2007
1,541
2,415
0

Please Don't Quote This Post,
It's Just way too big and would make any comment look stupid,
Thanks


Just When You Thought Your Favourite Dev Is Out Of Ideas... He Comes Up With This :)

ok so alot are complaining how we can't flash kernel away from the pc among other things (which ill get to later :) ), (mostly @One-X-master)
so i looked for a way to get around this and found Kexec as the answer.

Wiki said:
In computing, kexec (kernel execution) is a mechanism of the Linux kernel that allows "live" booting of a new kernel "over" the currently running kernel. kexec skips the bootloader stage (hardware initialization phase by the firmware or BIOS) and directly loads the new kernel into memory, where it starts executing immediately. This avoids the long times associated with a full reboot,and can help systems to meet high-availability requirements by minimizing downtime.

however, with that comes managing online hardware which is somewhat problematic,
thus that prompted few people to come up with an ingenious solution called Kexec-hardboot.

Kexec-hardboot:
This works by loading the kernel into memory and force restarting the phone with new kernel.​

All of that with some ramdisk tweak allowed me to set a kernel at boot and restart to it,
avoiding having to flash it in the 1st place :)

Updating the kernel is called flashing..
A Flash is also what precedes Thunder :p
its also refered to as Lightning, Thus I came up with the name Kernel Lighter :p
Lighter= To Set Things On Fire/To Ignite (The Kernel)
Thus this is a kernel igniter :D

I Know, i've got to much time on my hand.

If you have a smart name, please do suggest.​

Special Thanks:
@Tasssadar: For His N7 Port, which made this port a breeze and for his help in debugging.
@Alex-V: Currently using his kernel as Base Kexec Kernel.
@Androguide.fr: For his recovery-less flash method.
@amarullz: For His AromaFM Source Code.
@LlabTooFeR: For His Stock Kernel.
@faux123: For His Kernel Source.
@mkasick: For The Original Port.​




Download Link In Post Below

 
Last edited:

Thunder07

Recognized Contributor / Inactive Recognized Devel
Sep 22, 2007
1,541
2,415
0
Always have a backup.

Attachement & How-TO
ALL THE STEPS MUST BE FOLLOWED.


Requirements
  • S-off/Unlocked Bootloader
  • Android App & Recovery App
  • Fastboot flash boot Zeus.img
  • For ZeusKL.v10.img (New Layout) You must first switch to the new layout



Flashing Kernels Though Recovery

  1. Boot Into Recovery
  2. Flash AromaFM-KL.zip
  3. Select Kernel Zip To Flash
  4. Choose Flash Location
  5. Choose Boot.img
  6. Yes/No To Flash Zip (useful for flashing modules)
  7. Reboot

Flashing Kernels Though Android(deprecated)

  1. Start KL Android App
  2. Choose Kernel Zip*
  3. Kernel & Ramdisk
  4. Reboot To Recovery --> Flash Modules
  5. Reboot
* For zips to be listed, they must be placed in /sdcard/modules/
* otherwise click browse and happy hunting​


Something Went Wrong:
Let say the phone wouldnt boot during kernel update after using the app,
the best solution would be to go back to stock kernel, look at the recovery flashable zips in Extras section,
If none seem to fit, try another custom kernel

if you still had no luck booting, you should try flashing that kernel through fastboot and see if it makes any difference.​

Warning!!
Note: All the zips provided are flashable through both The App & Recovery... but I recommend recovery
BUT DON'T FLASH THE KEXEC (KL.Zeus.img) KERNEL THROUGH THE APP or Recovery,
as it will continuously boot itself over and over and over again.​

Download Link In Post Below
 
Last edited:

Thunder07

Recognized Contributor / Inactive Recognized Devel
Sep 22, 2007
1,541
2,415
0
Downloads



Extras(deprecated)

Archieve
 
Last edited:

Thunder07

Recognized Contributor / Inactive Recognized Devel
Sep 22, 2007
1,541
2,415
0
Someone tried it?:)

Never again without Sense 5! *~* <3
i made a small typo in one of the files..
after flashing zip
do this

adb shell
mount /data -o rw
echo /data/boot/Kernels/Stock/boot.img-zImage>/data/boot/kernel
echo /data/boot/Kernels/Stock/boot.img-ramdisk.gz>/data/boot/ramdisk

Will Fix Zip soon

Edit: FIXED

This i call development, thanks for that solution.
:)
 
Last edited:

Dexxmor

Senior Member
May 20, 2011
1,320
706
0
near munich
I know, but back to 4.1.1 is not a solution for me (Sense 5 is the dealbreaker with AOSP ROMs ;) )

Another Question, if i change to AOSP, it will work too? or must we flash (an not realeased) Kexec AOSP kernel? (i ask not for me, i ask for everyone on AOSP with ORD xD )
 

Thunder07

Recognized Contributor / Inactive Recognized Devel
Sep 22, 2007
1,541
2,415
0
I know, but back to 4.1.1 is not a solution for me (Sense 5 is the dealbreaker with AOSP ROMs ;) )

Another Question, if i change to AOSP, it will work too? or must we flash (an not realeased) Kexec AOSP kernel? (i ask not for me, i ask for everyone on AOSP with ORD xD )
you dont have to go back to 4.1.1, this will work with sense 5 rom

if you want to use AOSP you must follow the custom kernel guide.
 

Dexxmor

Senior Member
May 20, 2011
1,320
706
0
near munich
Ahh, (my english is bad..) i think we misunderstand each other, i asked for an Sense 5 kernel.zip to try your "Flash kernel in Recovery" Solution, it exists not so many Kernel.zip with the "Flash Kernel Script" to flash the kernel in recovery... I hope its clear what i mean :D
 

Thunder07

Recognized Contributor / Inactive Recognized Devel
Sep 22, 2007
1,541
2,415
0
Ahh, (my english is bad..) i think we misunderstand each other, i asked for an Sense 5 kernel.zip to try your "Flash kernel in Recovery" Solution, it exists not so many Kernel.zip with the "Flash Kernel Script" to flash the kernel in recovery... I hope its clear what i mean :D
im not 100% sure, but if you're looking for the zip, its in the 2nd post

the 1st time you must flash the kernel through fastboot AND zip through recovery,
later i will make an app that will work to replace kernels.

but even that all will require 1 flash through fastboot.

NOTE:
the zip contains to kernel, one that you flash in fastboot
one that will be copied to /data/boot/
the 1st is kexec which will boot the one in /data/boot/
 
Last edited:

Dexxmor

Senior Member
May 20, 2011
1,320
706
0
near munich
Not clear enough xD, this (the kernel.zip) was not a request to you, it was an request to somebody to make me a flashable kernel zip, as an example repacked Alex-V kernel for Sense 5, to test this.

Its late here, so my explanation will suffer, sorry for that.
 

Thunder07

Recognized Contributor / Inactive Recognized Devel
Sep 22, 2007
1,541
2,415
0
Not clear enough xD, this (the kernel.zip) was not a request to you, it was an request to somebody to make me a flashable kernel zip, as an example repacked Alex-V kernel for Sense 5, to test this.

Its late here, so my explanation will suffer, sorry for that.
ok that was clear enough,

so far as far as i hear,
only trips kernel work with sense 5
 
Last edited:
  • Like
Reactions: Dexxmor