Post Reply

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

OP Thunder07

20th August 2013, 07:28 PM   |  #1  
Thunder07's Avatar
OP Recognized Contributor / Recognized Developer
Thanks Meter: 1,917
 
1,319 posts
Join Date:Joined: Sep 2007
Donate to Me
More

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.

Quote:
Originally Posted by Wiki

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
its also refered to as Lightning, Thus I came up with the name Kernel Lighter
Lighter= To Set Things On Fire/To Ignite (The Kernel)
Thus this is a kernel igniter

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.

Sources:
Alex-V 1.7 Kernel
Hardboot Patch
Faux Kitkat Kernel
AromaFM KL
Download Link In Post Below

Last edited by Thunder07; 18th August 2014 at 03:38 PM.
The Following 86 Users Say Thank You to Thunder07 For This Useful Post: [ View ]
20th August 2013, 07:29 PM   |  #2  
Thunder07's Avatar
OP Recognized Contributor / Recognized Developer
Thanks Meter: 1,917
 
1,319 posts
Join Date:Joined: Sep 2007
Donate to Me
More
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

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
  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 by Thunder07; 18th August 2014 at 03:39 PM.
The Following 61 Users Say Thank You to Thunder07 For This Useful Post: [ View ]
20th August 2013, 07:29 PM   |  #3  
Thunder07's Avatar
OP Recognized Contributor / Recognized Developer
Thanks Meter: 1,917
 
1,319 posts
Join Date:Joined: Sep 2007
Donate to Me
More
Downloads


Extras
Phase 1:Kexec(Phase 1 Done)
SubPhase 1 Part 1: (Complete)
Boot Kernel Through Kexec

SubPhase 1 Part 2: (Complete)
Create An App To Swap Kernels
Phase 2:Multiboot (Complete)
Last edited by Thunder07; 31st August 2014 at 01:55 AM.
The Following 40 Users Say Thank You to Thunder07 For This Useful Post: [ View ]
20th August 2013, 07:34 PM   |  #4  
Member
Toronto
Thanks Meter: 11
 
59 posts
Join Date:Joined: Sep 2005
Quote:
Originally Posted by Thunder07

& Another One.

Can't wait to try, sound incredible
20th August 2013, 08:07 PM   |  #5  
slebit's Avatar
Senior Member
Thanks Meter: 689
 
1,933 posts
Join Date:Joined: Dec 2010
More
Awesome! Looking forward to try it.

Sent from my Nexus 7 using Tapatalk 4
20th August 2013, 08:40 PM   |  #6  
TouchscreenLover1's Avatar
Senior Member
Flag Weinstadt
Thanks Meter: 364
 
985 posts
Join Date:Joined: Jan 2013
More
Someone tried it?

Never again without Sense 5! *~* <3
20th August 2013, 09:01 PM   |  #7  
Dexxmor's Avatar
Senior Member
Flag near munich
Thanks Meter: 711
 
1,352 posts
Join Date:Joined: May 2011
Donate to Me
More
This i call development, thanks for that solution.
The Following User Says Thank You to Dexxmor For This Useful Post: [ View ]
20th August 2013, 09:11 PM   |  #8  
Thunder07's Avatar
OP Recognized Contributor / Recognized Developer
Thanks Meter: 1,917
 
1,319 posts
Join Date:Joined: Sep 2007
Donate to Me
More
Quote:
Originally Posted by TouchscreenLover1

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

Quote:
Originally Posted by Dexxmor

This i call development, thanks for that solution.

Last edited by Thunder07; 20th August 2013 at 09:15 PM.
The Following 3 Users Say Thank You to Thunder07 For This Useful Post: [ View ]
20th August 2013, 09:35 PM   |  #9  
Dexxmor's Avatar
Senior Member
Flag near munich
Thanks Meter: 711
 
1,352 posts
Join Date:Joined: May 2011
Donate to Me
More
Anyone a Sense 5 Kernel.zip? Kexec boots a descriptet, will try this solution.
20th August 2013, 09:38 PM   |  #10  
Thunder07's Avatar
OP Recognized Contributor / Recognized Developer
Thanks Meter: 1,917
 
1,319 posts
Join Date:Joined: Sep 2007
Donate to Me
More
Quote:
Originally Posted by Dexxmor

Anyone a Sense 5 Kernel.zip? Kexec boots a descriptet, will try this solution.

this works on both sense 5 and 4+
i had this running for almost a week now on sense 4+
and just moved to sense 5 and thought it will be a good time to release this.

The Stock kernel comes from sense 5 ROM

The Following 4 Users Say Thank You to Thunder07 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in One X Original Android Development by ThreadRank