Help flashing Kernel for CM10 - HTC One X+

Hi guys please help.
Dont know if I posted it in the right placed.
I cant post it in the relevant thread since it is a dev thread and i'm a noob
So this is my first android so i'm basically super noob (my technical record was to Jailbreak an iPhone)
My error seem pretty simple but I could not figure it out.
I'm trying to flash the CM10 ROM according to this:
http://forum.xda-developers.com/showthread.php?t=2027304
What i have managed to do:
Unlock bootloader.
root with RootBoot V5.
install SU and flashed TWRP recovery for Intl version with the amazing Hasson2000 all-in-one tool.
Where I got stuck:
now i downloaded the CM rom zip file and the its specific kernel.
changed the kernel name to: boot.img
placed the file in the kernel folder (of the tool).
hit the flash kernerl (marked the 'with this command').
the CMD window opened, and showed this error:
error: cannot load 'Kernels/boot.img'
picture - http://sdrv.ms/YtPHoU
triple checked the file name and the right directory
I would appreciate any help!
Thanks
My device:
HTC One X+ international unbranded
1.14.401.16

I think your making things too complicated using this kernel flasher software.
Just download and install the Android SDK. Once installed find the platform-tools folder, copy your kernel .img to that folder, connect your phone in fastboot mode. Then hold shift and right click, choose open command window from the contex menu. Then just type into the prompt "fastboot flash boot boot.img" (or the name of the .img).
Done
Sent from my HTC One X+ using Tapatalk 2

ummmm why are you adb pushing?? the command is:
just put it in the folder where ever fastboot and adb is
fastboot flash boot boot.img

Lloir said:
ummmm why are you adb pushing?? the command is:
just put it in the folder where ever fastboot and adb is
fastboot flash boot boot.img
Click to expand...
Click to collapse
AndroHero said:
I think your making things too complicated using this kernel flasher software.
Just download and install the Android SDK. Once installed find the platform-tools folder, copy your kernel .img to that folder, connect your phone in fastboot mode. Then hold shift and right click, choose open command window from the contex menu. Then just type into the prompt "fastboot flash boot boot.img" (or the name of the .img).
Done
Sent from my HTC One X+ using Tapatalk 2
Click to expand...
Click to collapse
Thank you guys for helping me.
I tried both methods and recieved the same error in both of them in CMD:
error: cannot load boot.img
Lloyr method:
4 files in fastboot folder:
adb
AdbWinApi.dll
fastboot
boot.img
entered fastboot from device ----> plug in to pc (debugging is on by default) ----> run CMD from this folder----> writing command "fastboot flash boot boot.img" -----> error message
AndroHero method:
download the Android SDK (zip file named adt-bundle-windows-x86) and exract it to desktop.
in the folder adt-bundle-windows-x86, i went to "sdk" and then "platform tools".
copied the boot.img file to "platform tool" folder and ran the CMD from this folder.
typed the command "fastboot flash boot boot.img" and boom ----> error: cannot load boot.img
thanks again

>.< you NEED to be in bootloader
type in adb reboot bootloader and make sure you are in fastboot usb (select it if it's not already done for you)
then
fastboot flash boot boot.img

Lloir said:
>.< you NEED to be in bootloader
type in adb reboot bootloader and make sure you are in fastboot usb (select it if it's not already done for you)
then
fastboot flash boot boot.img
Click to expand...
Click to collapse
Sorry if I didn't mention that.
i was on fastboot USB.
showed fastboot USB on a red backround.
I tried once again with both methods and i recieved another error message in the SDK methos:
error: cannot load 'boot.img': Unknown error
I attached file with step by step screen shot for the whole process (both methods).

Just thought...did you rename it boot.img? If so and file extensions are hidden then it will be boot.IMG.IMG so remove .IMG and it should work fine
Sent from my HTC One X+ using xda app-developers app

Make sure you installed HTC Sync (htc site) and the drivers will come with it. (you can later remove sync, drivers will stay)
Then enter fastboot trough vol down + power > choose fastboot ... plug your phone to PC and wait sec for driver install.
Make sure u see Fastboot USB in fastboot
Go prompt admin mode and go to your c:/fastboot map (put boot.img in there)
And type
Code:
fastboot flash boot boot.img
After that install recovery and rom and boot.

Lloir said:
Just thought...did you rename it boot.img? If so and file extensions are hidden then it will be boot.IMG.IMG so remove .IMG and it should work fine
Sent from my HTC One X+ using xda app-developers app
Click to expand...
Click to collapse
WORKED!!!!!!!
Lloir YOU R the best!!
flashed the kernel
then followed instruction how to backup and flash from the TWRP
running joyfully your CM10 ROM right now.
It's Amazing!
Thank you thank you thank you!!

Related

[Q] Error when installing new CWM recovery

So I was able to easily unlock the bootloader but when trying to install recovery I get the following: "error cannot load recovery.img" Any idea what I'm doing wrong? I have fastboot and recovery.img in same folder so I'm not sure what the problem is. Any help would be greatly appreciated as I'd really like to install Kens rom and restore my phone to my liking.
First not a major issue your just not typing something right or not placed right
Lets do this !
2nd Please Remove install_recovery.sh located in your /system/etc/ ,so that the recovery will not be overwrite to stock one.
you dont HAVE to it will still work just wont have the stock recovery.
1st make sure the moto-fastboot or fastboot (they both work i have tested )file is in your c:\
you have to cd the drive first so make sure its in c:\ the commands on the guide for cwm needs
to be updated this will help you out.FYI make sure all the files are in one folder not the root drive
so name a folder (whatever) then cd that folder from cmd.
Dont use " " just showing you commands
Then go to cmd
"cd c:\moto-fastboot" or fastboot
click enter
then type "moto-fastboot flash recovery recovery-en-goapk-0630-1029.img" or fastboot
click enter
Should say writing\sending
Once your done and it completes
type moto-fastboot reboot or fastboot
enter
P.S. Depending on if your using fastboot or moto-fast boot
commands would be
"fastboot flash recovery recovery-en-goapk-0630-1029.img" Fastboot
"moto-fastboot flash recovery recovery-en-goapk-0630-1029.img" moto-fastboot
And if you were wondering
Moto-fastboot is for bigger files
fastboot is for smaller files
They both work because the recovery is in
the middle in size for both fastboots.

Paranoid Android won't boot past PA screen

i searched, and couldn't find anything. so sorry ahead of time if this has been answered. I flashed Paranoid Android on my HTC E4GLTE and can't get it to boot past the "Paranoid Android" screen. it's been stuck there for about 10 minutes. I've already wiped and tried reflashing. No luck.
Try wiping boot partition
fastboot erase boot
Then extract the boot image and put it in adb folder
fastboot flash boot boot.img
om4 said:
Try wiping boot partition
fastboot erase boot
Then extract the boot image and put it in adb folder
fastboot flash boot boot.img
Click to expand...
Click to collapse
I'm not a complete NOOB when it comes to rootingn but I'm kinda stuck here. Sooooo... I wipe the boot partition through TWRP? Or through command prompt? How do I extract the image and where is the ADB folder? Sorry for asking so many questions but thanks ahead of time!
randmc562 said:
I'm not a complete NOOB when it comes to rootingn but I'm kinda stuck here. Sooooo... I wipe the boot partition through TWRP? Or through command prompt? How do I extract the image and where is the ADB folder? Sorry for asking so many questions but thanks ahead of time!
Click to expand...
Click to collapse
http://db.tt/zyPbGmtO use this, to extract the kernel open the zip and drag it anywhere, it will extract the file and you place it in the adb folder
om4 said:
http://db.tt/zyPbGmtO use this, to extract the kernel open the zip and drag it anywhere, it will extract the file and you place it in the adb folder
Click to expand...
Click to collapse
ok so I downloaded the file. i can't get the phone to boot though so how do I get it on there?
randmc562 said:
ok so I downloaded the file. i can't get the phone to boot though so how do I get it on there?
Click to expand...
Click to collapse
you open it on your pc, boot phone to bootloader and start up fastboot
extract adb folder any where on pc
extract boot image and place it in adb folder
connect phone to pc
type fastboot devices to make sure phone is connected
type fastboot erase boot to wipe the boot partition, this helps
type fastboot flash boot boot.img
restart phone
om4 said:
you open it on your pc, boot phone to bootloader and start up fastboot
extract adb folder any where on pc
extract boot image and place it in adb folder
connect phone to pc
type fastboot devices to make sure phone is connected
type fastboot erase boot to wipe the boot partition, this helps
type fastboot flash boot boot.img
restart phone
Click to expand...
Click to collapse
so I downloaded the ADB tools. extracted the files. can't find BOOT image. My phone is connected. i tried doing the "fastboot erase boot" and I get a "FAILED (remote not allowed)" message.
randmc562 said:
so I downloaded the ADB tools. extracted the files. can't find BOOT image. My phone is connected. i tried doing the "fastboot erase boot" and I get a "FAILED (remote not allowed)" message.
Click to expand...
Click to collapse
well thats odd lol I'm probably confusing the commands again, you dont need to wipe boot anyways, its just a way to make sure you start clean. open the paranoid rom and pull the boot.img file and put that in the adb folder
Did you make sure to type fastboot devices to make sure PC is connected to device via fastboot?
from my flying AOKP'd Evo LTE and xda premium

HELP!!! I think i bricked my phone!!

OK so I have the Sprint EVO 4G LTE with 1.22.651.3 on it, rooted, S-ON. I have the Team Win Recovery Project v.2.1.8 on it as well with hboot 1.15. I tried loading the newest rooted software 2.13.651.1 710RD and voila.... paperweight. I tried reloading 1.22.651.3 and nothing. I can still boot to the bootloader and TWRP recovery, but nothing seems to work and now because sprint screwed up and removed my total equipment protection service from my plan, I don't have insurance on the phone. PLEASE HELP!!!
You just need to flash the kernel, extract it from the Rom (boot.img) and place it in adb folder, connect phone I'm bootloader and type fastboot flash boot boot.img
You can also flash meanrom, it has a working kernel installer, just let it sit because the kernel installer does take awhile 5-10 minutes
om4 said:
You just need to flash the kernel, extract it from the Rom (boot.img) and place it in adb folder, connect phone I'm bootloader and type fastboot flash boot boot.img
You can also flash meanrom, it has a working kernel installer, just let it sit because the kernel installer does take awhile 5-10 minutes
Click to expand...
Click to collapse
Can you explain how to do this in greater detail? I'm experienced only enough to be dangerous to myself lol
This program should install the kernel that you need. If not you are supposed to be able to swap boot.img files that it will install.
http://forum.xda-developers.com/showthread.php?t=1917106
http://forum.xda-developers.com/showthread.php?t=1752270
This is for the One S but it's the same process for our phones also.
Sorry I've been in a low coverage area and just got home. Open the Rom, extract the boot.img, open adb folder or SDK, hold shift and right click, select open command window here, connect phone in fastboot and type fastboot flash boot boot.img
So I tried to use that program to flash the boot.img from the fastboot screen but the computer wouldnt connect to the phone... now what?
Boot from system into hboot and fast boot while plugged in via USB. Helps your PC determine drivers.
Also, if you need a guide for setting up adb/fastboot, Google a YouTube vid by qbking77 on how to unlock galaxy nexus bootloader, it links to a great tutorial.
from my flying AOKP'd Evo LTE and xda premium
do you have SDK installed on your computer? If not install it. Go through the setup (set up your your environment variables) for fastboot.
Make a copy of the boot.img from a ROM of your choice. Place it in a folder on your desktop name the folder (android) leave the folder open.
Open cmd
Type cd Desktop press enter
Type cd android press enter
Type fastboot flash boot boot.img
After that it should say sending then OK
After that go into recovery then flash the ROM
you should be good to go then...
Sent from my EVO using xda app-developers app
The full SDK is not necessary, just the debug tools
ADB Tools
Also you can directly open the command prompt from within the folder by holding shift and opening the context menu (shift+right click) then select open command window here
i keep getting a message in windows "usb device not recognized" so i switched usb cables and finally got that program to load the boot.img file, then flashed a rom in bootloader but its still not booting... any ideas?
Did you make sure to wipe the phone first? What rom are you trying to flash?
wiped phone first and now trying to flash 2.13.651.1 after loading boot.img thru that program
you have to find a way to update your twrp to version 2.2.0 cause this is the culprit that gave you the issues. did you make a backup try doing a restore to get back up and running then download goomanager from the google play store and install the latest twrp here is a video to update to the latest twrp through goomanager.
twrp downloads I dont know if you have to be s-off to install in bootloader or not. maybe someone could clarify that
ok so i tried flashing twrp 2.2.2.0 and got a message saying "main verison is older" then it said "update failed!" which is weird since i had version 2.1.8.0 to begin with i think.
anyone? any ideas? I feel like my only resort is to have it replaced
You could fastboot flash the recovery image. Thats how I usually do it
So download the recovery image from twrp website and place it in your a dB folder. I don't have my PC but I think the command is fastboot flash recovery "recovery image"
Sent from my EVO using xda premium
corcgaigh said:
You could fastboot flash the recovery image. Thats how I usually do it
So download the recovery image from twrp website and place it in your a dB folder. I don't have my PC but I think the command is fastboot flash recovery "recovery image"
Sent from my EVO using xda premium
Click to expand...
Click to collapse
this should be the correct code to type
fastboot flash recovery openrecovery-twrp-2.1.8-jewel.img
Or
fastboot flash recovery openrecovery-twrp-2.2.2-jewel.img
Depending on how twrp names their recovery image
Sent from my EVO using xda app-developers app
Ok so i updated the twrp by changing the txt file to the proper software number.... then i flashed the lastest software version and NOW IT STARTS!!! WOOOHOOO!!!! Thanks everyone!!

[Q] What gives? Can't ADB bootimg

OK so for reasons beyond me, I can't flash any sense 4.0 roms due to constant boot up as if kernel is not installing, even tho sense 3.6 kernels and roms install just fine. Also I can lock and unlock bootloader thru ADB and well and flash recovery, but if I try flashing bootimg I get an error "device not found" message??? I am s-on, on global firmware and prior to this problem was running cm9. I've RUUed back to stock several times with the problem still continuing. ALL, and I do all help is appreciated.
You try adb devices?
Did you try to fastboot flash boot nameofimage.img?
Sent from my ADR6425LVW using xda app-developers app
Squirrel1620 said:
You try adb devices?
Did you try to fastboot flash boot nameofimage.img?
Sent from my ADR6425LVW using xda app-developers app
Click to expand...
Click to collapse
You cant do it in adb. You must be in fastboot. Make sure the device is seen by typing "fastboot devices" while in fastboot. Then flash the boot.img with "fastboot flash boot boot.img"
cslingerland said:
You cant do it in adb. You must be in fastboot. Make sure the device is seen by typing "fastboot devices" while in fastboot. Then flash the boot.img with "fastboot flash boot boot.img"
Click to expand...
Click to collapse
I'll try that and report back. Still what could have cause the problem I wonder
Sent from my ADR6425LVW using xda premium
ghostt021 said:
I'll try that and report back. Still what could have cause the problem I wonder
Sent from my ADR6425LVW using xda premium
Click to expand...
Click to collapse
Not sure... boot your phone to bootloader by using "adb reboot bootloader" then see if it shows up when you type "fastboot devices". if it does then you should be good to go
cslingerland said:
Not sure... boot your phone to bootloader by using "adb reboot bootloader" then see if it shows up when you type "fastboot devices". if it does then you should be good to go
Click to expand...
Click to collapse
Got " fastboot devices" is not recognized as an internal or external command, operable program or batch file.
Sent from my ADR6425LVW using xda premium
ghostt021 said:
Got " fastboot devices" is not recognized as an internal or external command, operable program or batch file.
Sent from my ADR6425LVW using xda premium
Click to expand...
Click to collapse
You have to download it seperately... I cant look right now but a quick google search on rezound fastboot should do it. It isnt included with adb
Edit: got a chance to look it up. here you go. put the boot.img file in the same directory that this is installed and then do the previously mentioned steps.
http://www.mediafire.com/?4dx982z93w8z7wk
cslingerland said:
You have to download it seperately... I cant look right now but a quick google search on rezound fastboot should do it. It isnt included with adb
Edit: got a chance to look it up. here you go. put the boot.img file in the same directory that this is installed and then do the previously mentioned steps.
http://www.mediafire.com/?4dx982z93w8z7wk
Click to expand...
Click to collapse
Easiest way I find to get the right directory is to browse on your computer to the folder where fastboot.exe is located. For me it's C:\Android SDK\platform-tools
In other words when I open that platform tools folder the contents are adb.exe, fastboot.exe, good stuff like that.
So my exact steps are press start button in windows, choose "computer" from the start menu. Double click the C driver, double click Android SDK and then I'll see platform tools.
**Here's the important part**
Hold down shift, right click on "platform tools" and then choose the option "Open Command Window Here" from the right click dialog box. Holding shift gives you those extra options. I would have my boot.img file inside the platform tools folder because that's where fastboot.exe is located.
So shift and right click on platform tools, then click on "Open Command Window Here" and then make sure the phone is in fastboot-usb mode (boot to hboot and if it doesn't say fastboot USB at the top in bright red, you need to select fastboot from the list), and type the command "fastboot flash boot boot.img" without the quotes and press enter. When It's done writing use the command fastboot reboot or manually reboot and you should be good to go.
CharliesTheMan said:
Easiest way I find to get the right directory is to browse on your computer to the folder where fastboot.exe is located. For me it's C:\Android SDK\platform-tools
In other words when I open that platform tools folder the contents are adb.exe, fastboot.exe, good stuff like that.
So my exact steps are press start button in windows, choose "computer" from the start menu. Double click the C driver, double click Android SDK and then I'll see platform tools.
**Here's the important part**
Hold down shift, right click on "platform tools" and then choose the option "Open Command Window Here" from the right click dialog box. Holding shift gives you those extra options. I would have my boot.img file inside the platform tools folder because that's where fastboot.exe is located.
So shift and right click on platform tools, then click on "Open Command Window Here" and then make sure the phone is in fastboot-usb mode (boot to hboot and if it doesn't say fastboot USB at the top in bright red, you need to select fastboot from the list), and type the command "fastboot flash boot boot.img" without the quotes and press enter. When It's done writing use the command fastboot reboot or manually reboot and you should be good to go.
Click to expand...
Click to collapse
Think I've figured out the problem. It's not fastboot, but somewhere in the installation of the kernel. Kernel installs but the only kernels that will boot are 3.6 ones. All others regardless of kernel or Rom combo simply continuously boots or bootloops. Also computer see device in fastboot.... I'm clueless at this point.
Sent from my ADR6425LVW using xda premium

new to rooting, Why can't I open the TWRP.img file. wants to burn to cd

Hello, I have a H-901 v-10 That I've successfully unlocked the bootloader and am ready to flash TWRP recovery but every time I try to open the file my computer wants to burn it to a cd/disc.
What am I doing wrong?
hank1948 said:
Hello, I have a H-901 v-10 That I've successfully unlocked the bootloader and am ready to flash TWRP recovery but every time I try to open the file my computer wants to burn it to a cd/disc.
What am I doing wrong?
Click to expand...
Click to collapse
Stop trying to OPEN the image file. You should be on a command line using the fastboot flash command to flash the .img file directly to the recovery partition. You need to do some more reading because it sounds to me like you haven't yet installed the android developers kit which contains the adb and fastboot commands you will need to communicate with your phone.
Start by doing what you should have tried first...a google search for "How do I install TWRP on my phone?"...the first result is https://www.howtogeek.com/240047/how-to-flash-twrp-recovery-on-your-android-phone/
I've setup adb and fastboot, opened the twrp folder and have opened a command prompt window by typing shift + right click and entered fastboot flashing recovery recovery image then it showed some code on the command prompt but it didn't flash the twrp what do I do

Categories

Resources