Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,888 Members 53,307 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
Thunder07
Old
(Last edited by Thunder07; 25th May 2014 at 02:07 PM.)
#1  
Thunder07's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 1845
Posts: 1,301
Join Date: Sep 2007

 
DONATE TO ME
Default [Kernel][Kexec][aromaKLflasher] Kernel Lighter (KL) Beta 6 [Change Kernel WITHOUT PC]


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
Link In Post Below

The Following 84 Users Say Thank You to Thunder07 For This Useful Post: [ Click to Expand ]
 
Thunder07
Old
(Last edited by Thunder07; 23rd May 2014 at 06:35 PM.)
#2  
Thunder07's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 1845
Posts: 1,301
Join Date: Sep 2007

 
DONATE TO ME
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.
Link In Post Below
The Following 59 Users Say Thank You to Thunder07 For This Useful Post: [ Click to Expand ]
 
Thunder07
Old
(Last edited by Thunder07; 25th May 2014 at 02:04 PM.)
#3  
Thunder07's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 1845
Posts: 1,301
Join Date: Sep 2007

 
DONATE TO ME
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)

Device: HTC One X

My Work
[AIO]One X One Click | Thunder's Online Kernel Repacker | Zeus Kernel Lighter
OTA Creator V1.1 | ARHD 9.x (Base 2.17) & CD-Tool Battery Mods | Battery Mods Creator V1.1 |APK (Game) Modder v1.0 Beta


 

SkyDragonİ AIO Team Member



If I got a euro for each thanks I received... Well... Ill have ALOT of Euros
Click Thanks Or Hit That Donate Button.
The Following 39 Users Say Thank You to Thunder07 For This Useful Post: [ Click to Expand ]
 
maxstep
Old
#4  
Junior Member
Thanks Meter 4
Posts: 19
Join Date: Sep 2005
Location: Toronto
Quote:
Originally Posted by Thunder07 View Post
& Another One.
Can't wait to try, sound incredible
 
slebit
Old
#5  
slebit's Avatar
Senior Member
Thanks Meter 632
Posts: 1,845
Join Date: Dec 2010
Awesome! Looking forward to try it.

Sent from my Nexus 7 using Tapatalk 4
Phone: LG G2

Tablet: LG G Pad 8.3
 
TouchscreenLover1
Old
#6  
TouchscreenLover1's Avatar
Senior Member
Thanks Meter 364
Posts: 985
Join Date: Jan 2013
Location: Weinstadt
Someone tried it?

Never again without Sense 5! *~* <3
 
Dexxmor
Old
#7  
Dexxmor's Avatar
Senior Member
Thanks Meter 710
Posts: 1,352
Join Date: May 2011
Location: near munich

 
DONATE TO ME
This i call development, thanks for that solution.

Device History: Xperia x8, Galaxy Ace, Xperia Pro, HTC One X, Galaxy Tab 2
and then
|
V
Xperia Z1
Galaxy Note 8" N5100 / CM11 / TWRP


Firmwares for all Devices i have
you want an Firmware? PM me
The Following User Says Thank You to Dexxmor For This Useful Post: [ Click to Expand ]
 
Thunder07
Old
(Last edited by Thunder07; 20th August 2013 at 09:15 PM.)
#8  
Thunder07's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 1845
Posts: 1,301
Join Date: Sep 2007

 
DONATE TO ME
Quote:
Originally Posted by TouchscreenLover1 View Post
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 View Post
This i call development, thanks for that solution.
The Following 3 Users Say Thank You to Thunder07 For This Useful Post: [ Click to Expand ]
 
Dexxmor
Old
#9  
Dexxmor's Avatar
Senior Member
Thanks Meter 710
Posts: 1,352
Join Date: May 2011
Location: near munich

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

Device History: Xperia x8, Galaxy Ace, Xperia Pro, HTC One X, Galaxy Tab 2
and then
|
V
Xperia Z1
Galaxy Note 8" N5100 / CM11 / TWRP


Firmwares for all Devices i have
you want an Firmware? PM me
 
Thunder07
Old
#10  
Thunder07's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 1845
Posts: 1,301
Join Date: Sep 2007

 
DONATE TO ME
Quote:
Originally Posted by Dexxmor View Post
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: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes