Related
In flashing roms, I notice that devs are including kernels in the .zip. It appears each dev has their favorites. Without debating which kernel is the "best", my question is can I switch a Zimage (which I assume is the kernel) with another of my liking? Or, if I'm running a particular kernel of my liking, can I flash the Rom without the included Zimage?
.....
Vegasden said:
In flashing roms, I notice that devs are including kernels in the .zip. It appears each dev has their favorites. Without debating which kernel is the "best", my question is can I switch a Zimage (which I assume is the kernel) with another of my liking? Or, if I'm running a particular kernel of my liking, can I flash the Rom without the included Zimage?
.....
Click to expand...
Click to collapse
You should be able to flash a kernel, either through CWM or ODIN without problem.
sk63 said:
You should be able to flash a kernel, either through CWM or ODIN without problem.
Click to expand...
Click to collapse
I realize that. My question was in reference to flashing a rom (which all have a kernel included). Can you switch the Zimage inside the rom .zip prior to flashing...or can I just delete the Zimage inside the rom and flash it without one? I'm trying to avoid the two steps of flashing a rom, then flashing a kernel I prefer.
Ah, I've always just flashed the ROM, then flashed the kernel then rebooted out of CWM. Be nice if there was a utility where you give it kernel and rom and tell it to go, might be a nice feature for ROM Manager to add.
Hi, sory for newb posts. But this all got a bit more complicated since my HTC days!
I managed to get cmod7 working (remove apk to stop looping on boot!).
But what can I flash now with the CM kernel I have?
Or how/what kernel to flash and what ROM for best/stable device?
I see and have the Mooded rom, but do i need to flash kernel first? And baseband etc.?
All gone strange since i last flashed devices!!
Thanks !
there should be a list of suitable kernels in any rom thread. download the ROM zip to your SD card, use fastboot to boot the kernel, enter cwm and wipe data(if necessary), and flash the zip and any modules if required.
sinksterĀ©
Hi guys! Since I am a noob I haven't flashed a custom ROM before I wanna ask you do I need to change my kernel in order to put the amazing Hashcode's JB ROM. I already have a root privileges and TWRP installed. What are the steps then... There is hardly any info about the installation process in the ROM's topic. And how to install google apps - through the TWRP or? Thanks in advance. Waiting for your answers...
ROMS always have the kernel included. Everything is installed from recovery. Just wipe partitions, flash ROM, flash gapps, reboot.
Thanks man, I really appreciate. Will try!
What saved said....the kernel is included In all ROMS.
When life gives you tech....Make use of it.
Please, i know this is nooby and you guys hate these questions, but i have searched, and maybe i typed the wrong thing but i couldn't find anything. Basically i just want to know how to flash another custom rom and kernel on my device. i tried yesterday with a kernel and just got the infinite reset loop again, somehow i fixed it by gettinginto fastboot and reflashing the old kernel but i dont want that happening again. with the roms i heard you can just download the zip to the sd storage and install it via CWM but again, i dont want to take any risks, i did pay $600 for this phone after all. thanks in advance, and sorry for the n00bish questions, i just want to be on the safe side.
also while im here so i dont have to make another topic, i have ARHD 9 installed atm, and it was fine when i first installed it but now the softkeys are always lit up, i cant find an option to turn it off in the Suite tools that came installed with it either.
all custom kernels comes with modules. They are in the zip file.
First you need to flash the kernel through fastboot.
fastboot erase cache
fastboot flash boot boot.img
then go to recovery and flash the zip modules.
Reboot your phone and it should boot up fine.
Don't worry you are not going to brick your phone. Before flashing anything always charge your phone to full.
Flashing rom is simple again. copy the zip in sd card.
copy the boot.img of the rom and put it in fastboot folder.
reboot to bootloader.
again fastboot erase cahce
fastboot flash boot boot.img
reboot to recovery.
wipe data/cache, cache and davik.
install the zip through recovery
Reboot and done
while installing custom kernels you need to flash kernel modules through recovery always.
and read the thread properly what kernels supports what roms.
some roms need repacking, that would be too much to learn at once..
jst do the process step by step and you will be fine.
thanks for the help man, much appreciated
try viperx...it has all the steps there as well
faiz02 said:
while installing custom kernels you need to flash kernel modules through recovery always.
and read the thread properly what kernels supports what roms.
some roms need repacking, that would be too much to learn at once..
jst do the process step by step and you will be fine.
Click to expand...
Click to collapse
If it is mentioned in the thread of the specific rom that repacking a kernel is requried before flashing please tell me if I have got the whole order of things to do wrong, I would really appreciate it.
The specific rom has recommended kernels for trouble free running.
I definitely feel that I have confused myself along the way.
- repack kernel with "Automated Kernel Repack Beta" and download boot-repacked.img to computer
- copy boot-repacked.img to fastboot folder
- fastboot flash boot boot-repacked.img
- fastboot erase cache
- reboot into recovery
- wipe factory data > wipe cache partition > wipe Dalvik cache
- flash kernel.zip for the modules?
- flash rom.zip?
- flash additional gapps.zip (rom specific)
- reboot?
Does this look right to you?
Sorry if this is a troublesome question.
Thank you!
Looks good to me. One thing. Boot your new rom once first before installing Gapps.
Sent from my HTC One X using Tapatalk 2
eyosen said:
Looks good to me. One thing. Boot your new rom once first before installing Gapps.
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
Thank you! I will give it go and will thank you again if all of it works out. Is it possible for the old Gapps to conflict with the new ones I will be flashing. Or will the Factory wipe sort that out.
Also another hypothetical case;
Say the Rom Dev have repacked the recommended kernels, can a problem arise by repacking a kernel with the Rom.zip again? Will the subsequent boot-repacked.img have an issue? And if the modules of the kernel are flashed over modules that the Rom.zip might have, will the modules be overwritten without problems?
Thank you and apologies for the convoluted question!
sidsat20 said:
Thank you! I will give it go and will thank you again if all of it works out. Is it possible for the old Gapps to conflict with the new ones I will be flashing. Or will the Factory wipe sort that out.
Also another hypothetical case;
Say the Rom Dev have repacked the recommended kernels, can a problem arise by repacking a kernel with the Rom.zip again? Will the subsequent boot-repacked.img have an issue? And if the modules of the kernel are flashed over modules that the Rom.zip might have, will the modules be overwritten without problems?
Thank you and apologies for the convoluted question!
Click to expand...
Click to collapse
Gapps, there wont be conflicts.
If you already find them repacked by rom dev, it means that they were tested.so are safer to use. So use them.
As for modules, usually yes. Unless they are on different bases such as 2.6.39 and 3.x.x.x. just do a nandroid backup first, and then try. Enough hypothetical.
I installed a GPE Rom with ART, and it's great. Then I installed the Lunar Kernel on top of that, and the performance isn't quite as good with that kernel.
My question is, what's the best way to get install the kernel from the GPE Rom? I didn't make a NAND backup, so restoring is out of the question.
I'm thinking that I could just reinstall the Rom without wiping and that'll restore the kernel. Is there a better way? perhaps extracting the kernel from the ROM zip file?
Thanks!
ZombiJambi said:
I installed a GPE Rom with ART, and it's great. Then I installed the Lunar Kernel on top of that, and the performance isn't quite as good with that kernel.
My question is, what's the best way to get install the kernel from the GPE Rom? I didn't make a NAND backup, so restoring is out of the question.
I'm thinking that I could just reinstall the Rom without wiping and that'll restore the kernel. Is there a better way? perhaps extracting the kernel from the ROM zip file?
Thanks!
Click to expand...
Click to collapse
AFAIK lunar kernel hasnt been updated for GPE 4.4.4.
NVM the dev said 4.4.3 kernel will work on 4.4.4
if you want to get back to the kernel that was provided you can flash the rom over what you have but i think the dev's script wipes /system so you may loose and settings you have saved right now. maybe ask the dev to package the kernel by its self so you can flash without having to dirty flash the full rom.
synisterwolf said:
AFAIK lunar kernel hasnt been updated for GPE 4.4.4.
if you want to get back to the kernel that was provided you can flash the rom over what you have but i think the dev's script wipes /system so you may loose and settings you have saved right now. maybe ask the dev to package the kernel by its self so you can flash without having to dirty flash the full rom.
Click to expand...
Click to collapse
Awesome man, thanks. There's no easy way to extract the kernel from the rom?
ZombiJambi said:
I installed a GPE Rom with ART, and it's great. Then I installed the Lunar Kernel on top of that, and the performance isn't quite as good with that kernel.
My question is, what's the best way to get install the kernel from the GPE Rom? I didn't make a NAND backup, so restoring is out of the question.
I'm thinking that I could just reinstall the Rom without wiping and that'll restore the kernel. Is there a better way? perhaps extracting the kernel from the ROM zip file?
Thanks!
Click to expand...
Click to collapse
which lunar kernel did you install?
ZombiJambi said:
Awesome man, thanks. There's no easy way to extract the kernel from the rom?
Click to expand...
Click to collapse
im sure there is a way, but i dont know for sure. A kernel dev will have to chime in and let you how.
You have to split the boot.img. One way would be to find the Perl script for doing this and Google the commands (I don't remember them off the top of my head) or use the android kitchen and load the boot in there and use it for splitting the boot and inserting whatever zimage you wanted. Be advised not all ramdisks are the same and not all ramdisks will work with every kernel.
ZombiJambi said:
Awesome man, thanks. There's no easy way to extract the kernel from the rom?
Click to expand...
Click to collapse
Just take the boot.img from the ROM zip, place it in your adb folder. Boot into fastboot. Type: fastboot flash boot boot.img
Once you reboot, take the modules from the ROM zip located in system/lib/modules and place them into that same directory on your phone. Replace all modules with the same name. Make sure they have the same permission as before. Reboot.
That is it.
Or if you are feeling spry, take the boot.img and the modules and place them into a flashable zip. To do so, you will need the updater binary and updater script located in the ROM zip. These are located in the META-INF/com/google/android folder.
Change the updater-script to say this:
Code:
ui_print("Mount /System Folder...");
run_program("/sbin/busybox", "mount", "/system");
ui_print("Extracting System Files...");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
ui_print("Extracting Kernel files...");
package_extract_file("boot.img", "/dev/block/mmcblk0p33");
ui_print("* Kernel Installation Completed! *");
show_progress(0.100000, 0);
Place the modules into a system/lib/modules folder.
Zip those two folders up and flash in recovery.