FORUMS

XPrivacy for Android Lollipop – XDA Xposed Tuesday

Have you ever been on the Google Play Store and saw an app that you wanted to … more

How a HTC Droid Eris Changed a Members Life

Rarely can a member say that Android development or XDA had a profound effect on … more

XDA Office Space: Frankenstein’s Perfect IM Client?

The portal’s decentralized XDA office lies in a Hangouts chatroom, where … more

Which IM Client on Android is best?

With so many different messengers to choose from, it can be tough to find the best one for you and … more
Post Reply Subscribe to Thread Email Thread

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

20th August 2013, 07:28 PM |#1  
Thunder07's Avatar
OP Recognized Contributor / Recognized Developer
Thanks Meter: 2,054
 
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; 30th April 2015 at 08:39 PM.
The Following 89 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: 2,054
 
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
  • 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 by Thunder07; 10th March 2015 at 05:11 PM.
The Following 65 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: 2,054
 
Donate to Me
More
Downloads


Extras(deprecated)
Archieve
Last edited by Thunder07; 30th April 2015 at 08:38 PM.
The Following 42 Users Say Thank You to Thunder07 For This Useful Post: [ View ]
20th August 2013, 07:34 PM |#4  
Member
Toronto
Thanks Meter: 13
 
More
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: 921
 
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: 369
 
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: 713
 
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: 2,054
 
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: 713
 
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: 2,054
 
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