yashsingh1/xdaforums huggingface dataset:
[HTC One X] HebeGuess:
First of all, always remembered the rule of thumb for edeavoru users: We cannot write anything to boot partition without fastboot / pc.

So Mr. Thunder07 now gave us a smart solution for this particular issue, kernel lighther.

It is a kernel that stored in boot partition. Whenever phone start booting, kernel inside boot partition will be boot.

This "kernel lighther"s kernel will boot, however will NOT continuing to load the android on top of it.

So what is it doing afterward? It load user's desired kernel from outside boot partition into memory,

then to commit suicide using kexec command, while kexec command has been instructing to boot into another kernel placed in memory BUT not running yet.

After rebooting we will now running on our desired kernel which is NOT originally store on boot partition.

Now consider the lighter has done it's job well.
[HTC One X] munjeni:
Kernel source code (kexec modification) git?
[HTC One X] HebeGuess:
From my understanding, Thunder07 achieving it through some modification on Ramdisk..
[HTC One X] Thunder07:
i dont see the point of having a git just for this...

but i should probably update the up with the links to the kernel i used (Alex-V) and hardboot-patch.

i did edit the ramdisk to load up the kernel on boot,

im just calling kexec right at boot, avoiding booting into android then doing it, much handier way to do it if you ask me.
[HTC One X] munjeni:
Hardboot patch? So thats not only ramdisk modification, you done modification to the kernel source code and compiled new one but without releasing source code of the modified kernel?
[HTC One X] Thunder07:
Yes.

Sent from my HTC One X
[HTC One X] munjeni:
Well. Do you mind to put them to git or at least provide right kernel patch file in your thread?
[HTC One X] Thunder07:
As I said,

Will do when I get the chance.

Sent from my HTC One X
[HTC One X] munjeni:
I see now, thanks! Want to buy an Qualcomm phone but after analysing msm kernel failed to see soft reboot function so from these reason I posted in your thread! Your patch will be of a good help to my future hoby device. If you need any help let me know!
[HTC One X] Thunder07:
op, updated.

Sources:

​

Alex-V 1.7 Kernel Thanks To Alex-V

Hardboot patch Thanks To Tasssadar
​

note this isn't a soft reboot, as a soft reboot-- reboots the OS and not the hardware or kernel.

it's a hard reboot to reset the hardware.

http://xdaforums.com/showthread.php?t=2104706

do note that all of these 3 files are tegra specific, so you'd need to find those related to your device and edit them manually

arch/arm/mach-tegra/reset.c

arch/arm/mach-tegra/common.c

arch/arm/mach-tegra/Kconfig

arch/arm/kernel/relocate_kernel.S <-- contains tegra 2/3 specific lines

arch/arm/mach-tegra/include/mach/memory.h

to name but a few edits that you need, memory.h contains a "if defined(CONFIG_MACH_GROUPER)" which will need to be modified to your device

just as well memory.h contains few memory addresses which might be device specific, so you'd need to experiment a bit

for e.g change to KEXEC_HB_PAGE_ADDR to 1mb before ram_console address (to find "cat /proc/iomem")(mine is beb00000 thus i used bea00000)
[HTC One X] munjeni:
I know that all since finished mini bootloader aka multiboot aka boot menu, see -> http://xdaforums.com/showthread.php?t=2418241
[HTC One X] Thunder07:
looks like an interesting project...

im planning on progressing to multiboot soon aswell, except im trying to work out the logic which is killing me :(

quick question, is your sdcard formatted fat or ext??
[HTC One X] munjeni:
Its fat. All multirom partitions is file based ext4 partitions :)
[HTC One X] munjeni:
HTC One X seems is not tegra? You not provided right patch?
[HTC One X] Thunder07:
The international one x which is the one associated with this form is a tegra 3 device,

The American version which is the HTC One XL isn't....

And why wouldn't I provide you with the proper patch!

Sent from my HTC One X
[HTC One X] munjeni:
Removed
[HTC One X] Thunder07:
I know, please report me!

Sent from my HTC One X
[HTC One X] patensas:
Wow another wannabe "mod" that obviously read the forum rules. Or is it a personal battle against Thunder? Does 90 days mean anything to you?

Obviously you should also know better than start flaming threads instead of just report things to a mod and let him handle it..........

Verstuurd van mijn HTC One X met Tapatalk
[HTC One X] dragonesdenano:
1+:)
[HTC One X] munjeni:
Lol please don't kill me! I don't thinked to f*uck our thread, simple wanted to help, thinked to give One X multiboot menu backported from my Xperia project, not thinked anything bad... :good: Maybe I will give you Boot Menu in 90 days but thats only maybe thing ;)
[HTC One X] makes2068:
What about changing a whole ROM?

Using ViperX with kexec and alex-v kernel.

Try to test ProBam.

What do i have to do?

-Flash stock 10.2 kernel (from Kexec-Thread) via App

-Install ROM via Recovery

-Flash stock 10.2 kernel (from Kexec-Thread) via Recovery

-boot

-flash ProBam kernel via App (where to find?)

Thats it, right?

Thanks.
[HTC One X] Basian Mile:
iam on ViperX and have flashed this Kernel.

But i really have Problems with the Buttons Light. It stays on most of the Time. No matter if i turn the phone to sleep by pressing the power Button or if i wait till it goes out after the DisplayTimeout.

Is there any way to fix that?
[HTC One X] HebeGuess:
Seriously? don't make me laugh.

You flashed this, you should know what is this by now. It had nothing to do with it, because you're not using this kernel on ViperX.

Meanwhile, are you on alex-v's kernel? It should be related to it, I had seen people reporting. Go to corresponding thread and search.
[HTC One X] Basian Mile:
Oh man i think i just was on the wrong Tab. Sorry to bother you guys here.
[HTC One X] Thunder07:
wrong time to make a wrong post on the wrong thread :p

no need for the 1st step since you'll flash the same file via recovery.

ProBam kernel will be within it's rom.zip, just "Browse" the zip through the App and flash kernel & ramdisk (without the modules)

DONT FLASH THE ZIP USING THE ALL option, it will most likely cause bootloop.

multiboot will eventually come, im just looking for a way to do it :p

if so my apologies...

but i've already quoted myself once before and ill do it for one final time

why?? because i just took alex kernel and applied a patch to it. (and it's pointless for me reuploading a kernel source which is 150mb big for a patch which is no bigger than 5kb )

most of the magic comes from my ramdisk tweak (which isn't GPL) which isn't even encrypted..

anyone can unpack it and see what i've done and the rest is done through the app.

-------------------

on a different topic, next update will bring /system /sdcard support <-- i've already added that to the kernel but i need to work on the app...

also, i've started college so most updates will come on the weekends (if i get the time :/ :p)
[HTC One X] munjeni:
http://xdaforums.com/showpost.php?p=44965573&postcount=10

thats what I wonted to know, but seems you not provided these info! Ok mate, you no need to provide these info, I will figure out them for sure when I get my msm device, just thinked to start development before I get phone but seems I need to wait for them first. Ok, In any way good luck in your future projects !

Bye!
[HTC One X] Drefsab:
thanks for this :)
[HTC One X] makes2068:
Cool, thank you.

And when i´d like to go back: Flash the VipeX Kernel and Ramdisk via APP ==> restore Nand ==> o.k?
[HTC One X] maxilick:
Great stuff, works well here.

Forget about it...I leave this thread forever.
[HTC One X] Thunder07:
back to what??

stock VipeX while keeping the kernel.

yes if the nand is ran stock VipeX.

????

:)
[HTC One X] makes2068:
Back to ViperX under Alex-V 2.1

So i´am wrong. Have to flash Alex-V Kernel boot and Ramdisk (and the modules?) and then the Nand. Understand.
[HTC One X] Thunder07:
if you want to keep this kernel and flash alex on top,

1) create flashable zip through the app from Alex Zip.

2) restore nand.

3) flash the newly created zip.

otherwise if you want to remove this.

1) Nand.

2) Alex original module zip.

3) flash alex kernel through fastboot.
[HTC One X] mido.fayad:
u need to flash the rom normally then flash the kernel to install the modules

because when u install a new rom, it wipes system and so it will delete the modules so u need to flash kernel zip again after the rom as any other rom

there is no changes in steps at all since day 1 of one x
[HTC One X] makes2068:
Like to keep kexec.

But, once i thought i understand the magic of the tool... you wrote this.

Whats the difference by creating a zip from a kernel-zip-file instead of using this kernel-zip-file directly?

confused...
[HTC One X] Thunder07:
the zip created by the app will have zimage and ramdisk of that kernel which will be flashed/copied to /data parition to be booted by the kexec kernel.

it will also bundle the modules with it. <--- so you don't get a mismatch of kernel/modules.

Edit:

as it stands, the booted kernel is booted from /data partition which isn't wiped during rom flash (unless you fully wipe) but even with that,

the kernel might not be the same as that of the modules on the rom.

that's why you must flash the zip after a nand.
[HTC One X] makes2068:
I restore a nand, not installing a rom. The nand should restore the module. Or not?
[HTC One X] Thunder07:
it would... but will it restore the correct kernel to be booted??(that is if the nand actually even has a kernel to boot)

if you've done a nand with kexec kernel installed + another kernel (let say alex).

in this case the kernel will be backed...

otherwise kexec will not find a kernel to boot.
[HTC One X] mido.fayad:
if u make backup of the nand with alex-v kernel installed, then u will restore it with its modules

note that modules is part of the system partition and nand make backup of all partitions so when u restore it, u will have it exactly the same as when u make the backup
[HTC One X] munjeni:
For all who was unable to find hard reset function here is func seems for all msm devices:

ldr r0,hard_reset_addr
mov r1, #1
str r1, [r0]

hard_reset_addr:
.word 0xfa001040
[HTC One X] Thunder07:
that should probably go here.

except if you think like me...

and only backup data... as whats the point of system when you alwasy have the rom.zip around :p
[HTC One X] maxilick:
Go back in this thread and check out the abusive guy who soft bricked his HOX , then you'll understand my comment. Lol

Sent from my mind, eyes and fingers.
[HTC One X] Thunder07:
haha fair enough, i thought we had another incidence like :p
[HTC One X] Drefsab:
I tried this and had it booting great using alex's 2.1 sense 5 kernel.

Though then I tried to flash a new version of my rom. I clean wiped then it wouldn't boot until I reflashed alex's kernal via the pc. Is this normal I was under the impression as long as the data was left on the sdcard folder it should still boot? If I've gotten it wrong then fair enough I just wanted to be able to swap roms and kernels on the fly ;)
[HTC One X] DeeZZ_NuuZZ:
if you flash another rom with sense 5 you can still boot into and then after that then alex kernel
[HTC One X] Thunder07:
well, the kernel is saved on the /data partition and not the /sdcard.

as per all my recommandations...

always create a flashable zip through the app to flash after rom change.

from time to time, the kexec kernel will fail at booting the new kernel...

you just have to keep restarting the phone until it works.

and as One-X-master said...

it should work with sense 5 rom... but if you're switching to asop you must flash that.

lastly, the coming kernel update will reboot you into recovery if no kernel is found.
[HTC One X] Drefsab:
Yup sadly that was my failure for not reading all the posts properly. I just incorrectly assumed it was in the /sdcard folder. At least I know where I went wrong. Thanks again :)
[HTC One X] drivenby:
Hey thunder, when flashing a rom.zip why is it that selecting all (kernel, module and ramdisk) produces a boot loop?

Is it a bug?

I know you are aware of it, just curious.
[HTC One X] Thunder07:
the zip flasher part was created by user Androguide.fr,

he couldn't get it to work... he explained it due to binary being replaced causes some form of crash that prevent it from continuing...

i've found an error in his work and reported it to him... and he hasn't said if he tried this after or not...

but it's probably mainly due to permission error.... you could go ahead and try... but it's very unlikely it will work.
[HTC One X] makes2068:
Tried to flash trips kernel. (there are no modules in the zip-file!)

Choosed ALL ==> result: com.android.phone process stopped.

Tried to flashed the flashable Zip-file (ViperX with alex-v-kernel) created by the KL-app before done this via recovery==> the same

Only flashing the KL-sense.zip in recovery helps to get my phone started. but now i´am running stock kernel.

How to change? Is this a bug in the 0.3b-version? Should i try with 03a?

EDIT: the zips, provided from the kernel devs, are very different inside. With or without a module folder, module folder in the /lib/modules-path, aso...

How will i know, which selelection in KL-App i should use?
[HTC One X] DeeZZ_NuuZZ:
like the other said if you choose all it is not working..choose the second thing where only kernel and modules will be flashed it is working fine! :)
[HTC One X] Thunder07:
no it's not a bug...

through the app

you must 1st flash "Kernel & Modules" (or even ALL)(Don't reboot)<--- to flash the zimage & modules

then flash "ramdisk only" for sense5.<--- to flash the ramdisk, this is the same as repacking

Reboot.

also, i forget people don't really know as much or think like me..

ill explain the options whenever i get a chance.

it will only work if you already have a ramdisk flashed.... i,e you are already booting through Kexec kernel

TO ALL

guys, i never said flash All causes bootloops...

if it did i would have just removed it...

Flashing a ROM.zip using the flash All option causes bootloops.
[HTC One X] makes2068:
That´s it.

Thank you for this.
[HTC One X] TouchscreenLover1:
A question: Am ATM at ViperX ,want to change to Maximus HD.

In theory i just have to flash the Sense.zip in Recovery,reboot in Recovery,make FullWipe,flash Rom and then just simply reboot,right?

Gesendet von meinem HTC One X mit Tapatalk 4
[HTC One X] Thunder07:
since you'll full wipe...

you'll remove stock kernel from /data...

so it's pointless flashing it through the app...

1)full wipe

2)flash rom

3)flash sense.zip (maybe format cache(ill make that automatic later))<-- through recovery

4)reboot

Also guys,

college work has been more than what i've expected,

i've spend all weekend just trying to catch up,

this week seems more relaxed, so ill try to get an update for this weekend (maybe before).
[HTC One X] TouchscreenLover1:
Oh ok,thank you :) Trying out after backing up my Apps :)

Gesendet von meinem HTC One X mit Tapatalk 4
[HTC One X] TouchscreenLover1:
Tried it but didn't pass the Unlock from the Lockscreen. When i unlock,just HTC appears..

But Viper Could be flashed succesfully

Gesendet von meinem HTC One X mit Tapatalk 4
[HTC One X] Thunder07:
ya, that's what happens after a full wipe, give it few minutes and it should work.
[HTC One X] TouchscreenLover1:
I try again later,have to make ready for school :thumbdown:

Gesendet von meinem HTC One X mit Tapatalk 4
[HTC One X] -Happy Feet-:
Hi I would flash the new cm10.2 Nightly with the new kernel. Can I do this with this app or only with PC?

I have found the solution

Gesendet von meinem HTC One X mit Tapatalk 4
[HTC One X] Thunder07:
through the app, create a zip,

then flash the rom from recovery, flash the zip you created and reboot.
[HTC One X] TouchscreenLover1:
So means (just in case)

Put ROM in sdcard/modules,choose the ROM.zip and then choose create flashable .zip

After this,just go into in Recovery,make FullWipe and flash first the Rom,after that the created .zip and i am good to go,right?

Gesendet von meinem HTC One X mit Tapatalk 4
[HTC One X] Thunder07:
ya that's it.
[HTC One X] TouchscreenLover1:
And in creating the flashable .zip,do i have to choose the option change Ramdisk? If yes,which one?

Gesendet von meinem HTC One X mit Tapatalk 4
[HTC One X] Thunder07:
No, that's only for adanced users....

and only should be used when creating a zip from kernel dev modules zip and not a rom.zip
[HTC One X] TouchscreenLover1:
Oky,thank you very much Thunder :thumbup:

Gesendet von meinem HTC One X mit Tapatalk 4
[HTC One X] TouchscreenLover1:
Tried,but again no success... With flashing boot.img via Fastboot no Problem,but with Kexec it doesnt work for me to flash MaximusHD 21

Gesendet von meinem HTC One X mit Tapatalk 4
[HTC One X] Thunder07:
Since I'm running maximum... It must :p

As I said,

If it freezes before booting the 2nd time,

Force reboot until it works,

Also, format cache (might help).

And do mention the steps you've took,

I might find a mistake!

Sent from my HTC One X
[HTC One X] TouchscreenLover1:
Ok,thats what i've done:

I packed ROM in sdcard/modules,then i choosed the ROM.zip and ticked 'Create Flashable Zip'. Then App asked,if i want to choose other Ramdisk,with which i denied with no.

Then it created a .zip in sdcard/modules.

After that,i rebooted into Recovery, where I made a FullWipe,and then flashed the ROM.zip. After that i just flashed the created .zip and let it boot. It booted in System,but nothing happened from there on,it just showed me those 2Screens: (made them Yesterday) to explain: first shoes me the HTC Logo,but when i lock,then just the Lockscreen appears and when unlocking it,HTC Logo appears again.

I also tried just make fullwipe in Recovery or just in Aroma,but same result....

Gesendet von meinem HTC One X mit Tapatalk 4
[HTC One X] Thunder07:
ok....

1) how long have you left it on the HTC screen, as i said, this is meant to happen!! and it takes a while(maybe 10 mins)

1)a) you said flashing kernel normally works.... why dont you flash the kernel normally through fastboot then flash the KL kernel

2) maybe you could reflash the rom again after a full wipe without a wipe!!

3) for me when i 1st flashed sense 5 i lost cellular networks and nothing fixed it, not even a full wipe....

the only way that i solved it was to use "reset system & data" (or something close to that) from philz recovery

as a full wipe through aroma kept losing the signal.
[HTC One X] TouchscreenLover1:
I waitee about 20mins,nothing happened...

I brought ROM working,by flashing via fastboot,now just have to charge,then I'm gonna flash Kexec again like in beginning.

Reflashing the Rom without wipes didnt brought anything,but now everything is ok,since i got the ROM working now. Now i just have to flash KL and after that,i'm done :))

Thank you for your patience and help:thumbup:

Gesendet von meinem A210 mit Tapatalk 4
[HTC One X] Thunder07:
Grrrr.... i have to run again for the bus.... so no time to test :p

sorry....

Kernel Update

KL App Update

changelog:

disabled kmsg/last_kmsg <--- so you can debug your host kernel

added /system /sdcard support

again i haven't got the change to test the app, but ill do so tonight when i get home
[HTC One X] mido.fayad:
Thanks [MENTION=618483]Thunder07[/MENTION] for the update

But I think that there is small problem in the app when creating flashable Zip to make boot from sd card .

The problem tis that thes zip created by the app to be flashed from recovery on't extract the contents to sd card because the script inside the zip ask it only to extract data partition and doesn't even ask to mount sd in recovery then extracting the contents to it

Waiting for u to fix this problem and thanks for ur great work :)
[HTC One X] Sebby:
really impressive work thunder ..works perfect

thanks alot:good:
[HTC One X] Thunder07:
im working on it right now...

as for the sd, there is no need to mount it,

as there is no way to flash a zip from anywhere but the sd (thus it must be mounted to start with).

i've fixed the script issue already actually,

i just want to test it 1st, so it should be out in the next couple of hours or at worst by the end of the day.
[HTC One X] Sebby:
one quistion thunder

if i remove the app

and flash the original viperx boot.img through fastboot and flash the modules again in recovery again

will there be any leftovers like dirs or anything else from your app in data or system
[HTC One X] Thunder07:
yes, /data/boot/ (/system/boot/ or /sdcard/boot/ if you chose those) contains the live kernel will still be there,

ill make it possible to remove those through the app... and will probably make a recovery img for that too.

Edit:

it wont be in the next update though.
[HTC One X] Sebby:
thanks .... take your time

would it also be possible to select your own dir where we have stored the kernels

and if we then startup the app it stays with that dir

so you can select your own dir

i hope you understand what i mean
[HTC One X] Thunder07:
it's very much do-able, but will complicate things... more so than needed.

(like for clean up, if you decided to remove this app, where will i look for the kernel during boot, ill need to edit the ramdisk to look for an EXTRA file which will point to the kernel.... where will that EXTRA file be?? (that would need a fixed file location which will point to a dynamic, user picked, location (i could still use any of /system/boot etc... but that would kinda defeat the purpose... while making a mess of how the files are located and organised.)))

so the way I worked it was, to 1st check /system/boot then /data/boot then /sdcard/boot for kernel and boots the 1st one that it finds..
[HTC One X] Sebby:
i understand ...thanks...
[HTC One X] Sebby:
now i got a black screen stuck when flashing a other kernel

it flashes then reboots then the screen is black and stuck

must hold powerbutton
[HTC One X] cappuccina:
yes sometimes you have to press 3-5 times to get it booting.

what I experienced is that sometimes the app just doesn't want to work anymore ;)

when I want to create a flashable ZIP it says failed and if I want to flash a kernel it says the zip I selected is not a flashable/valid ZIP file...

Gesendet von meinem HTC One X mit Tapatalk 4
[HTC One X] Sebby:
oke ...
[HTC One X] Thunder07:
it's not the app which isn't working, (though it does need a bit of working on)

sometimes the KL kernel fails to boot the new kernel and freezes,

few hard reboots tends to fix the problem.
[HTC One X] Sebby:
but the strange thing is

if i uninstall the app

and remove the data/boot directory

and i install the app again and flash a other kernel the it works right away ..no freeze

it looks like it does not wipe something correct

tmp or cache or whatever it flashes to
[HTC One X] kfasheldon:
.. Re Seb's issue , had that a few times , app says bad zip or fails on flashing , uninstall then Re install app and it works again. Odd.

.. Re boot issue is only occasional and no big deal

..What would be nice is an option to erase kernals from the 3 locations from within the app.

Cheers Thunder this whole thing has brought the one x back to life , would be great if Rom devs would support flashing kernal from aroma to your locations , or if recovery would support lethal flash to locations.

Keep on developing . Thanks
[HTC One X] Thunder07:
:)

I do plan on adding that from both the app and recovery.
[HTC One X] Thunder07:
Update Beta 4

-KL-Zeus Kernel (the kernel hasn't been updated since this)

-KL Android App 0.4A

changelog:

Kernel:disabled kmsg/last_kmsg <--- so you can debug your host kernel

Kernel:added /system /sdcard support

App:Added The Ability to choose /system & /sdcard for Live kernel location (also applies to creating zips)

App:some bug fixes

OP Also Updated With Links