kernel/modules repacking? - HTC One X

Hi,
I've been an avid guest on this forum for about a week now. I got the HTC One X international version running rd-miui 2.8.3 CM9 version and used this awesome forum to learn all the unlocking bootloader, rooting, and custom rom business all pretty fast. I'm trying to pick up kerneling but need some help.
1. it's my understanding that the kernel resides within the boot.img?
2. what exactly are modules (that sometimes comes along with certain kernels??) Is it absolutely necessary to install the modules in recovery after flashing the boot.img in fastboot?
3. I want to use the ncx-v.0.65 kernel with the rd-miui 2.8.3 CM9 rom but there isn't a repack for this rom. I found a nice tutorial of how to do this in windows but still a little confused on some things.
to repack the ncx-v.0.65 kernel for rd-miui 2.8.3 CM9 version --- can I just unpack my rom's boot.img, then replace the boot.img-kernel with the boot.img-kernel inside the boot.img of the ncx-v.0.65. Then repack and flash the new boot.img (with the ncx-v.0.65's boot.img-kernel inside)??
would I need modules???
4. is there a tool/app to easily repack kernels for other roms?
5. what's the best kernel out there for htc one x? Does that depend on which rom you're running? I'm mainly trying to improve my battery life but wouldn't want to sacrifice stability for it.
Thanks for your help guys.
PS. what does "OP" stand for?
Also, is anyone else experiencing problems with the volume rocker wake on RD-MIUI 2.8.3?? It would work for like 5-10 sec after phone sleeps but anytime after that it won't work...then sometimes it would work after a long standby/sleep.

misterpho06 said:
Hi,
I've been an avid guest on this forum for about a week now. I got the HTC One X international version running rd-miui 2.8.3 CM9 version and used this awesome forum to learn all the unlocking bootloader, rooting, and custom rom business all pretty fast. I'm trying to pick up kerneling but need some help.
1. it's my understanding that the kernel resides within the boot.img?
2. what exactly are modules (that sometimes comes along with certain kernels??) Is it absolutely necessary to install the modules in recovery after flashing the boot.img in fastboot?
3. I want to use the ncx-v.0.65 kernel with the rd-miui 2.8.3 CM9 rom but there isn't a repack for this rom. I found a nice tutorial of how to do this in windows but still a little confused on some things.
to repack the ncx-v.0.65 kernel for rd-miui 2.8.3 CM9 version --- can I just unpack my rom's boot.img, then replace the boot.img-kernel with the boot.img-kernel inside the boot.img of the ncx-v.0.65. Then repack and flash the new boot.img (with the ncx-v.0.65's boot.img-kernel inside)??
would I need modules???
4. is there a tool/app to easily repack kernels for other roms?
5. what's the best kernel out there for htc one x? Does that depend on which rom you're running? I'm mainly trying to improve my battery life but wouldn't want to sacrifice stability for it.
Thanks for your help guys.
PS. what does "OP" stand for?
Also, is anyone else experiencing problems with the volume rocker wake on RD-MIUI 2.8.3?? It would work for like 5-10 sec after phone sleeps but anytime after that it won't work...then sometimes it would work after a long standby/sleep.
Click to expand...
Click to collapse
1: yes.
2: They help the kernel work. They are necessary.
3: You need to flash the modules from the thread and repack the kernel, using
4: this
5: There isn't really a 'best' all round. You'd have to try each kernel and choose which one you want.
PS: OP stands for original post or original poster.

so after I repack the boot.img with the kernal I want then flash it in fastboot..then I still gotta install the modules in recovery?
just use the module from the OP even though it wasn't been repacked for my specific rom? (Do modules need repacking??)

i noticed that sometimes (not always) the module .zip contains a folder named "kernel" with a boot.img inside it.]
is that kernel folder necessary? Do the modules need to be repacked?

Related

[KERNEL] Extracted from Vision_HTC_WWE_1.34.405.5

Here's the Desire Z Kernel,
Extracted from boot.img from Vision_HTC_WWE_1.34.405.5 (euro version)
Extracted with dsixda's Andoird Kitchen
thanks gtab,
Now we can revert east back to stock kernel after the overclock....
I have noticed that the new overclock does not report battery as well as it should. Thete is definitely a few problems to be ironed out with the overclock
JD
JupiterDroid said:
thanks gtab,
Now we can revert east back to stock kernel after the overclock....
I have noticed that the new overclock does not report battery as well as it should. Thete is definitely a few problems to be ironed out with the overclock
JD
Click to expand...
Click to collapse
This is just the kernel portion of the boot.img
What I did was strip (unpack) the boot.img into its components (ramdisk and kernel) and posted the kernel alone
To revert to stock kernel you'd better fllash the EZDZ ROM Update zip I posted (assuming you still have the stock core and not a custom ROM or G2's)
That update includes the stock boot.img (immculate kernel, but pants down = S-OFF'ed ), Superuser, Busybox and the OC module.
I will prepare another simpler "resuce" Update zip with just the boot.img without any added modules or apps
(also with the pants down, of course )

Why repacked kernel needed?

I'm new to HTC stuff. I was confused about HOX's repacked kernel? Can someone explain me about the following questions?
1. when do i need repacked kernel?
2. Why do I need repacked kernel?
3. Can Repacked kernel for ROM A work on ROM B?
Thanks
gerrard_ss said:
I'm new to HTC stuff. I was confused about HOX's repacked kernel? Can someone explain me about the following questions?
1. when do i need repacked kernel?
2. Why do I need repacked kernel?
3. Can Repacked kernel for ROM A work on ROM B?
Thanks
Click to expand...
Click to collapse
1. When you are using custom kernel on custom rom but maintaining ramdisk tweaks to the said rom
2. as answer 1
3. i don't think so, always read the kernel developers instructions in full.

[Q] understand kernel repacking operation

Ok guys, I've been around for a while and now I need some help for kernel repack, please...
well...was trying to get the aosp build work with ncx kernel...
so I flashed the kernel....the rom...modules and gapps...and it stucked at bootlogo with sw buttons light on
then...I tried a repacking operation with one-click tool...I repacked the ncx kernel with the rom's ramdisk (from the boot.img in the rom) and ncx modules...reflashed everything, result: no connection, like if I haven't flashed the modules...
now, I heard that repacking's purpose is to combine custom kernel with rom's ramdisk, for compatibility problems...and the modules of course...
why doesn't work?? :/
www.nibble.cc/repack
You can't go wrong with that tool.
Just make sure to first flash the ROM and then the modules.
TToivanen said:
www.nibble.cc/repack
You can't go wrong with that tool.
Just make sure to first flash the ROM and then the modules.
Click to expand...
Click to collapse
oooouh yess!!! you're the man! many thanks, this is much better, just up the two kernels and ready to go.
+1 thx!

[Q] RenovatePLUS rom help! + kernel/etc questions

Hi guys I have just flashed this ROM (http://forum.xda-developers.com/showthread.php?t=1705334) however it is not the renovatePLUS version, how do I flash with the PLUS version, need it since it has mods and tweaks which I will need, auto-inverted rotating screen is driving me nuts!
FYI: I downloaded the plus zip but I dont know what to do with it, do I just extract into my phone? Because that did not work.
Also, I saw this guy, username(csec) with this signature (Phone: Renovated Endeavoru, F4, XM-Kernel #296 (Most fantastic combo in my entire experience with HOX)). I want to use have those thing stated, already have Renovate(will flash PLUS once I know how), and there is F4, anyone knows what that is? and finally XM-Kernel #296, which I believe is this (http://forum.xda-developers.com/showthread.php?t=2136731), can anyone please confirm is that is a similar one that I can use? Sorry for asking so many question, I finally decided to go deeper with flashing kernels and stuff and I require some professional advice, so please help! Thank you!
SwtVengeance said:
Hi guys I have just flashed this ROM (http://forum.xda-developers.com/showthread.php?t=1705334) however it is not the renovatePLUS version, how do I flash with the PLUS version, need it since it has mods and tweaks which I will need, auto-inverted rotating screen is driving me nuts!
FYI: I downloaded the plus zip but I dont know what to do with it, do I just extract into my phone? Because that did not work.
Also, I saw this guy, username(csec) with this signature (Phone: Renovated Endeavoru, F4, XM-Kernel #296 (Most fantastic combo in my entire experience with HOX)). I want to use have those thing stated, already have Renovate(will flash PLUS once I know how), and there is F4, anyone knows what that is? and finally XM-Kernel #296, which I believe is this (http://forum.xda-developers.com/showthread.php?t=2136731), can anyone please confirm is that is a similar one that I can use? Sorry for asking so many question, I finally decided to go deeper with flashing kernels and stuff and I require some professional advice, so please help! Thank you!
Click to expand...
Click to collapse
if u read the thread it will answer all ur Questions
flash the Renovate Plus through recovery <<< in the rom thread
if u want a banner with renovate check its thread
F4 stands for final 4
my advice gain some experience before flashing kernels u may brick ur device!
if u dont know what u are doing
Thanks!
The5alodi said:
flash the Renovate Plus through recovery <<< in the rom thread
Click to expand...
Click to collapse
It doesnt seem to state on that thread that I have to do it through recovery. But thanks anyway!
For kernels I have one more question. Can I just use the kernel as provided? Of course checking that it is meant for my device 1st. Because there seems to be this confusing thing called repacking...
SwtVengeance said:
It doesnt seem to state on that thread that I have to do it through recovery. But thanks anyway!
For kernels I have one more question. Can I just use the kernel as provided? Of course checking that it is meant for my device 1st. Because there seems to be this confusing thing called repacking...
Click to expand...
Click to collapse
I RUINED my device before with kernels i didn't know how to use them and obviously i bricked my device so please dont try anything unless u gain experience
Repacking is like making peanut and jam sandwich its like making the kernel work with ur rom if u are using renovate u dont need to repack for XM kernels
Sent from my HTC One X using xda premium
If there are no Ramdisc tweaks in the ROM, you don't need to repack the kernel... Mostly kernel repacking isn't needed for Sense roms... So you just have to flash the boot.img from the kernel's zip and then flash the modules from recovery...
AOSP/AOKP Roms need kernel repack each and every time before flashing!
vin4yak said:
If there are no Ramdisc tweaks in the ROM, you don't need to repack the kernel... Mostly kernel repacking isn't needed for Sense roms... So you just have to flash the boot.img from the kernel's zip and then flash the modules from recovery...
AOSP/AOKP Roms need kernel repack each and every time before flashing!
Click to expand...
Click to collapse
Sense roms these days are a lot so i suggest repacking as it will not do any harm!
Sent from my HTC One X using xda premium
Help once more!
Hi, so after researching a little bit more, I decided change my kernel to the XM kernel(original non-repacked), tried it for a few days, noticed that it response quite slowly compared to default kernel, things like slow display of lock screen upon power on, less smooth transition when. Could I have done it wrongly? Other than the slow response everything else seems fine, I noticed one of the features is S2W, I tried that on my buttons and it worked, however fast charge usb and usb mass storage isnt working, is there somewhere I can enable it or do you have an idea where I can find a guide for XM kernels that describes its features and functionality? Sorry for asking so many questions, thank you!
You have rather detailed instruction how to deal with fast charge and USB mass storage in XMister's thread (first one or two posts).
I suggest you install some of the kernel manageent applications:
- trickster MOD
- Set CPU
... There are many. Choose one that fits you (I am personally using Trickster).
There you will be able to play with your governors and scheduler, and thus achieve better performance or battery life. Or both. Check Q&A, there are few very educative threads about it.
You seem to be on a good way. Keep reading.
:good:

Blade ROM, flashing Alex's kernel

Dear All,
After reading a lot in xda, and flashing several roms and kernels, I was very happy with Blade Elite v2.0, but now my battery is suffering and thought about trying a different kernel. I understand that Blade v2 ROM can only use the stock kernel, or alex-v kernel, though when I try to flash alex's kernel I am having some very bizarre problems.
There are several options within alex's latest kernel, i.e. new s2w, old s2w, without s2w etc. None of these boot.img files flash properly.
After flashing the kernel in fastboot and installing the modules in recovery, upon reboot the screen is upside down, inverse colours and a mirror image. It is very very odd.
Am I doing anything wrong, incompatible kernel/ROM/radio etc?
Any advice would be much appreciated, thank you
Personally I've been using Alex last kernel for a long time on Blade Rom without any issues. Lately lyapotas lm kernel is running great and getting ongoing development. I would go for that one. Make sure to fastboot erase cache before reboot.
Thanks for the tip, i've managed to flash lyapota with no problems - reading from old posts I thought only alex or stock kernels would work. Thanks very much - especially now I have s2w!!
:good:

Categories

Resources