Any custom Rom and unable to flash a different kernel. Help please... - HTC One X

I am currently running Leedroid and I sometimes switch to Paranoid Android just to see how things are developing there. Great rom but I cant do without sense camera and like the decent weather app with all its animations.
Back to reason, sorry, I cant change my kernel on neither rom. Just gets stuck on boot animation/loop. Knew problem because I used to be able to change kernels but now just cant. Any idea's to why. Much appreciated - I feel handicapped...

Well, did you repack the kernels AND flash modules?

tomascus said:
Well, did you repack the kernels AND flash modules?
Click to expand...
Click to collapse
Cheers for quick response. :good:Yes, as I said I used to be able to try different kernels but just stopped last dozen attempts. Have tried repacking boot image several times, via online repacker but had no joy. Am i doing something wrong.

veroby said:
Cheers for quick response. :good:Yes, as I said I used to be able to try different kernels but just stopped last dozen attempts. Have tried repacking boot image several times, via online repacker but had no joy. Am i doing something wrong.
Click to expand...
Click to collapse
You put the original boot.img in the source img, correct?
Then repacked, flashed the kernel, erased cache and then rebooted to recovery to flash modules?

tomascus said:
You put the original boot.img in the source img, correct?
Then repacked, flashed the kernel, erased cache and then rebooted to recovery to flash modules?
Click to expand...
Click to collapse
Correct. I have tried erasing cache via command line and I have tried erasing cache via cwm as well. Still no joy
Actually because of desperation I have tried everything in different orders as well. Example- flashing boot image before after flashing kernel. Still doesnt boot and eventually after long wait just loops. This problem is with both roms.

Stock kernel works right?

tomascus said:
Stock kernel works right?
Click to expand...
Click to collapse
Yeap, have had to restore to backups everytime. And they function fine but even tho I am a believer in "if it aint broke don't fix it", I cant help but try and fix wat aint broke. If you know what i mean.....

veroby said:
Yeap, have had to restore to backups everytime. And they function fine but even tho I am a believer in "if it aint broke don't fix it", I cant help but try and fix wat aint broke. If you know what i mean.....
Click to expand...
Click to collapse
Maybe a dumb answer, but i had the same problem. Do you flash in the right order? Do you flash your kernel before or after your rom flash? And you're flashing using fastboot?

KaiseRRUby said:
Maybe a dumb answer, but i had the same problem. Do you flash in the right order? Do you flash your kernel before or after your rom flash? And you're flashing using fastboot?
Click to expand...
Click to collapse
No not dumb, i really appreciate attempt in help. As to right order, have tried right order, fastboot flash boot boot.img with repack and original image to kernel but nothing is working. Just will not allow change kernel. Have tried re-flashing boot image after flash kernel as well. Have tried erasing cache partition with wiping dalvik cache together but no go. Have tried erasing nothing but still boot loop. Any ideas:crying:

veroby said:
No not dumb, i really appreciate attempt in help. As to right order, have tried right order, fastboot flash boot boot.img with repack and original image to kernel but nothing is working. Just will not allow change kernel. Have tried re-flashing boot image after flash kernel as well. Have tried erasing cache partition with wiping dalvik cache together but no go. Have tried erasing nothing but still boot loop. Any ideas:crying:
Click to expand...
Click to collapse
So this is your order:
- Backup
- full wipe
- flash rom
- flash kernel
- flash modules
- restart
?

doesn't matter what order you flash the boot.img, as long as you flash the modules after you flash the ROM.
btw, try another ROM.

ARHD 11.1 jellybean smooth and sense camera full package

tomascus said:
doesn't matter what order you flash the boot.img, as long as you flash the modules after you flash the ROM.
btw, try another ROM.
Click to expand...
Click to collapse
Ok here's what I did, full wipe, Flashed knew copy of Leedroid ( i know you said try another rom but hadnt thought it to be necessary because I was having same problem with Leedroid and Paranoid Android jellybean), kinda custom the rom a little with mods and tweaks. Got a bit ahead of myself because I then fastboot faux kernel boot image and flashed the modules. Gutted BOOt-LooPED...:crying:
Have gone back to my backup Leedroid. At least I know its not the full wipe. Any more ideas welcome.
Forgot to mention I did not repack the boot image until after boot loop. Still did not work.

KaiseRRUby said:
So this is your order:
- Backup
- full wipe
- flash rom
- flash kernel
- flash modules
- restart
?
Click to expand...
Click to collapse
Ok here's what I did, full wipe, Flashed knew copy of Leedroid, kinda custom the rom a little with mods and tweaks. Got a bit ahead of myself because I then fastboot faux kernel boot image and flashed the modules. Gutted BOOt-LooPED...
Have gone back to my backup Leedroid. At least I know its not the full wipe. Any more ideas welcome.
Forgot to mention I did not repack the boot image until after boot loop. Still did not work.

veroby said:
Ok here's what I did, full wipe, Flashed knew copy of Leedroid, kinda custom the rom a little with mods and tweaks. Got a bit ahead of myself because I then fastboot faux kernel boot image and flashed the modules. Gutted BOOt-LooPED...
Have gone back to my backup Leedroid. At least I know its not the full wipe. Any more ideas welcome.
Forgot to mention I did not repack the boot image until after boot loop. Still did not work.
Click to expand...
Click to collapse
Well, the best way to do it as far as i know is:
-boot.img flash (the one included in rom)
-wipe
-flash rom
-reboot
-wait for 10 minutes
-rebooten (full reboot again)
-reboot to fastboot
-boot.img flashen (custom kernel)
-modules flashen (custom kernel)
That 's how things work by me, you can try this?

KaiseRRUby said:
Well, the best way to do it as far as i know is:
-boot.img flash (the one included in rom)
-wipe
-flash rom
-reboot
-wait for 10 minutes
-rebooten (full reboot again)
-reboot to fastboot
-boot.img flashen (custom kernel)
-modules flashen (custom kernel)
That 's how things work by me, you can try this?
Click to expand...
Click to collapse
Yeah understand, I used to be able to just fastboot flash kernel boot image, flash kernel modules via cwm and bobs ya uncle. Done. But no more. Guess I'll have to wait until i jump ship and update firmware to 1.28 for JB roms and re-format or something. Cheers anyways..

Related

Trying to install CM9 stable, stuck at boot logo.

My friend is currently running Arconium ICS on his Xperia, and now when I tried to install CM9 (Did full wipe > install CM > install gapps in CWM) it just gets stuck at the boot logo (SONY). After recovering the backup of Arconium in CWM it boots up fine again.
Since the boot logo didn't change, I'm thinking CM9 maybe didn't install a new kernel or something? Is there something I can do to make sure that CM9 fits as well as possible? If kernel switching is on the table I'd like to be able to do this from CWM.
Thank you!
bajsmumsaren said:
My friend is currently running Arconium ICS on his Xperia, and now when I tried to install CM9 (Did full wipe > install CM > install gapps in CWM) it just gets stuck at the boot logo (SONY). After recovering the backup of Arconium in CWM it boots up fine again.
Since the boot logo didn't change, I'm thinking CM9 maybe didn't install a new kernel or something? Is there something I can do to make sure that CM9 fits as well as possible? If kernel switching is on the table I'd like to be able to do this from CWM.
Thank you!
Click to expand...
Click to collapse
you must install the kernel "boot.img" through flashtool
is inside the zip file
krattos said:
you must install the kernel "boot.img" through flashtool
is inside the zip file
Click to expand...
Click to collapse
Do I have to do this via flashtool? No way to do it from inside CWM? Please excuse if this is a stupid question, I'm not still a 100 % sure what boot.img, recovery, kernel and all these are and how they fit together.
bajsmumsaren said:
Do I have to do this via flashtool? No way to do it from inside CWM? Please excuse if this is a stupid question, I'm not still a 100 % sure what boot.img, recovery, kernel and all these are and how they fit together.
Click to expand...
Click to collapse
Yes, through the FlashTool is safer.
For all your doubts see this link, is a little extended but very complete.
http://forum.xda-developers.com/showthread.php?t=1133650
bajsmumsaren said:
Do I have to do this via flashtool? No way to do it from inside CWM? Please excuse if this is a stupid question, I'm not still a 100 % sure what boot.img, recovery, kernel and all these are and how they fit together.
Click to expand...
Click to collapse
Boot.img is the kernel in a compiled file, which needs to be installed via fastboot. Flashtool includes fastboot aswell, so you can install the kernel(boot.img) using it.
Recovery is a certain 'program' used to install custom stuff, make full backups(Nandroid backup) and restore them, wipe/format partitions and some other stuff. Recovery can be included already inside the kernel, but there is also possibility to install it on /system partition for those who can't unlock bootloader and/or install custom kernel.
My recommendation - Don't do it if you don't understand anything. You should go and learn about the whole Android first, get yourself familiar with how to recover the phone(install stock firmware etc), what are the terms that we use, what is what etc, then come back. Else...you might get yourself a nice (temporary) brick and then you have another problem, how to get back the phone.
bajsmumsaren said:
My friend is currently running Arconium ICS on his Xperia, and now when I tried to install CM9 (Did full wipe > install CM > install gapps in CWM) it just gets stuck at the boot logo (SONY). After recovering the backup of Arconium in CWM it boots up fine again.
Since the boot logo didn't change, I'm thinking CM9 maybe didn't install a new kernel or something? Is there something I can do to make sure that CM9 fits as well as possible? If kernel switching is on the table I'd like to be able to do this from CWM.
Thank you!
Click to expand...
Click to collapse
Obviously you didnt flash the kernel..and before doing that u need to make sure if ur bootloader is unlocked..if it is unlocked then only you can proceed with flashing the kernel and then installing the ROM.
Same Here!!
but Nothin seems to b workin for me!! Ive Done everything as per da instructions!
I flashed the boot.img file which i unzipped from the cm9 nozomi.zip file!!
I formatted the data, the cache and the dalvik cache and then installed the cm9 and gapps files as well and then when i reboot my device from the recovery menu it just gets stuck at the boot screen of free xperia!!
(
pleasehelp!!
Assistere said:
Same Here!!
but Nothin seems to b workin for me!! Ive Done everything as per da instructions!
I flashed the boot.img file which i unzipped from the cm9 nozomi.zip file!!
I formatted the data, the cache and the dalvik cache and then installed the cm9 and gapps files as well and then when i reboot my device from the recovery menu it just gets stuck at the boot screen of free xperia!!
(
pleasehelp!!
Click to expand...
Click to collapse
Dude, nozomi is only for Xperia S device. You installed the wrong ROM!
Go check the supported devices list to find your device's codename.
Someguyfromhell said:
Dude, nozomi is only for Xperia S device. You installed the wrong ROM!
Go check the supported devices list to find your device's codename.
Click to expand...
Click to collapse
Dude mine is Xperia s is only!!
sorry i frgt to mention bout my phone earlier!!!
Assistere said:
Dude mine is Xperia s is only!!
sorry i frgt to mention bout my phone earlier!!!
Click to expand...
Click to collapse
Then you are at wrong forum.

Multiple Roms/Kernels

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.

[Q] Flashing a rom...

Extract Rom and grab the boot.img
Make a Full Wipe (Factory Reset,System,Cache,and Davlik Cache)
Install ROM
Fastboot flash boot boot.img
REBOOT
Enjoy!!!
With these instructions *i've never flashed a rom before* I should download the rom, extract the boot.img where I have the fastboot.exe on my computer, do full wipe, put the zip file on my sd card and install in recovery, reboot and go into fastboot mode and flash the image, and then reboot again right? Or am I missing something? Sorry, as I said i've never done this before.
Yeah that's right but flash the kernel (boot.img) first ...because you may get stuck in a bootloop ...so flash kernel first
Ya too bad each step has very specific things you need to do and it takes quite a bit of time sifting through these forums to understand just wtf is going on.
This might help flashing if you've rooted already:
http://www.youtube.com/watch?v=qNR84FST1KQ&feature=plcp
donhashem.dh said:
Yeah that's right but flash the kernel (boot.img) first ...because you may get stuck in a bootloop ...so flash kernel first
Click to expand...
Click to collapse
atonz said:
Ya too bad each step has very specific things you need to do and it takes quite a bit of time sifting through these forums to understand just wtf is going on.
This might help flashing if you've rooted already:
http://www.youtube.com/watch?v=qNR84FST1KQ&feature=plcp
Click to expand...
Click to collapse
Thanks for your help. I actually went ahead and tried mine first, to see because i'm impatient and it worked totally. Thanks everyone!!!
Ok, I'm having issues with this installing ROMs/kernels.
I entered fastboot
I flashed the boot.img for the kernel I want
I toggled to hboot
I went into recovery (twrp 2.2.0)
I did wipe -> Factory Reset, Cache, Dalvik Cache, System
I installed the zip for ROM I want to use [found here]
I flashed the zip for the kernel I want to use (to install the libs) [found here]
wiped dalvik/cache again
reboot system
Now my phone just bootloops. Not sure what I did wrong.
I should mention I did get it to boot once back when I first installed the ROM because I did a normal reboot not a reboot into fastboot (was doing the install the ROM then the boot.img approach at the time) and hadn't installed any boot.img (still had the stock) but ever since I overwrote it all i get is bootloops.
Also, I even tried the same steps using the boot.img included with the ROM as opposed to the other one.
To make things worse, backups are almost useless because with the phone being S-ON even if the boot.img is being backed up, it not getting restored. A point made extremely obvious by the fact that it still bootloops after restoring my backup.
I am currently running the RUU but am hesitant to try and install any ROMs without some idea of what I did wrong.
Any help is appreciated.
-----EDIT------
Ok, I think the problem was the recovery I used. I installed the CDMA TWRP from the OneV tool, and one linked in the cdma development thread and a couple CWM version found there as well. But what seemed to work was getting TWRP straight from the source. After running the RUU I installed version 2.3.1.0 and repeated the steps using the boot.img included in the ROM and it worked. If I'm feeling adventurous later I'll try my luck with the other kernel lol.

[Q] Kernel related question

I have never flashed any kernels, just custom roms. From what I have read it goes down the same way, just flash the zip from SD in recovery and wipe cache. Correct?
Also, if I want to go back to stock kernel can I flash back to a JOP40C ( this one http://forum.xda-developers.com/showthread.php?t=1992483 ) even though my build is JOP40D ?
Robert00001 said:
I have never flashed any kernels, just custom roms. From what I have read it goes down the same way, just flash the zip from SD in recovery and wipe cache. Correct?
Also, if I want to go back to stock kernel can I flash back to a JOP40C ( this one http://forum.xda-developers.com/showthread.php?t=1992483 ) even though my build is JOP40D ?
Click to expand...
Click to collapse
just flash it in your recovery(if its a flashable zip). dont wipe a single thing, dalvik and cache have nothing to do with kernels. worst case scenario, it doesnt boot. then just reflash your rom in your recovery to fix it.
simms22 said:
just flash it in your recovery(if its a flashable zip). dont wipe a single thing, dalvik and cache have nothing to do with kernels. worst case scenario, it doesnt boot. then just reflash your rom in your recovery to fix it.
Click to expand...
Click to collapse
Ok thanks. Yes its a flashable zip, im going for the franco kernel.
Robert00001 said:
Ok thanks. Yes its a flashable zip, im going for the franco kernel.
Click to expand...
Click to collapse
franco is a good kernel. but most his kernels are in a img form, need fastboot for that. if its a zip, then flash it in your recovery, dont wipe a thing.
simms22 said:
franco is a good kernel. but most his kernels are in a img form, need fastboot for that. if its a zip, then flash it in your recovery, dont wipe a thing.
Click to expand...
Click to collapse
Yes I am sure this is a flashable zip. I found the img files and the zip files on the franco thread.
What about going back to stock? I just want to know if something goes wrong. Does flashing my rom get me the stock kernel back?
Robert00001 said:
Yes I am sure this is a flashable zip. I found the img files and the zip files on the franco thread.
What about going back to stock? I just want to know if something goes wrong. Does flashing my rom get me the stock kernel back?
Click to expand...
Click to collapse
It gets you whatever kernel was originally in the ROM.
063_XOBX said:
It gets you whatever kernel was originally in the ROM.
Click to expand...
Click to collapse
Okay thanks for the replies.
Robert00001 said:
Ok thanks. Yes its a flashable zip, im going for the franco kernel.
Click to expand...
Click to collapse
Even the .IMG files are easy enough to handle, OK so perhaps it might cost you a little money but within the Franco app (I don't know about others as not tried them) but you can simply just choose to restore a .IMG kernel file be it stock (which I have a copy of if you wanted it?) So you can swap and change as you wanted and the plus side of flashing this way is that you avoid the long reboot time dues to catch building again due to ram disk changes. I really think this is the best way of flashing kernels and certainly the easiest way if you wanted to carry on back to the OTA update route from Google.
For instance, I'm running stock takju rom 4.2.1 rom with Franco kernel and I have the stock boot loader and baseband and recovery and to install an OTA I just need to delete just one file and restore back to stock kernel that OTA update will install without troubles
Sent from my Galaxy Nexus

[Q] Switching Kernels

I flashed Paranoid Android 3 and kept that same kernel for awhile. I tried to branch out and try other kernels such as "Franco" and "AK Rubik", and am displeased with both (most likely because I don't know what I'm doing). How do I get back to the kernel Paranoid Android 3 had?
Thankyou in advance!
Oh I did a Nandroid backup using cwm, but that file got messed so I cant recover.
extract boot.img from the PA3 zip and fastboot flash it.
Zepius said:
extract boot.img from the PA3 zip and fastboot flash it.
Click to expand...
Click to collapse
How do I go about doing that?
Just flash the ROM again. It should give you the kernel that comes with it.
EDIT: Just to clarify...boot into CWM, wipe cache and dalvik (just to be safe), flash PA, reboot. You MIGHT need to flash gapps again. I dont know how PA works. Might as well flash them too just in case. You shouldnt lose anything.
jsgraphicart said:
Just flash the ROM again. It should give you the kernel that comes with it.
EDIT: Just to clarify...boot into CWM, wipe cache and dalvik (just to be safe), flash PA, reboot. You MIGHT need to flash gapps again. I dont know how PA works. Might as well flash them too just in case. You shouldnt lose anything.
Click to expand...
Click to collapse
Thankyou! I thought I'd mess it up again if I reflashed it. Do you think I should factory reset the phone just in case the other Kernels didnt leave anything on the phone. (Also, should I delete the kernels if I'm not going to use them?
Osyris214 said:
Thankyou! I thought I'd mess it up again if I reflashed it. Do you think I should factory reset the phone just in case the other Kernels didnt leave anything on the phone. (Also, should I delete the kernels if I'm not going to use them?
Click to expand...
Click to collapse
Nah. You should be fine. When you flash a ROM, it usually replaces what needs to be replaced. Unless you start seeing issues down the line, I wouldnt worry about it. And no need to keep the kernel files on your phone if you arent going to use them.

Categories

Resources