[Q] Flashing Boot.img Ubuntu - HTC One X+

Im wondering if anyone has a guide or the command for flashing a Boot.img from terminal to my HOX+ preferably by Fastboot I've tried looking but most ofthe guide are just on setting up ADB, Fastboot or Android SDK.
Im running Xubuntu 13.10 and have no access to Windows as thats how I originally gained root and flashed boot.img using a toolkit.

mackay508 said:
Im wondering if anyone has a guide or the command for flashing a Boot.img from terminal to my HOX+ preferably by Fastboot I've tried looking but most ofthe guide are just on setting up ADB, Fastboot or Android SDK.
Im running Xubuntu 13.10 and have no access to Windows as thats how I originally gained root and flashed boot.img using a toolkit.
Click to expand...
Click to collapse
Oh! An ubuntu fan like myself!
Well I hope you already followed those guides to setup the environment. If so then you should directly write "fastboot devices" and detect your device. If not then re-read those guide and setup the ADB and fastboot first then continue to read my reply.
I am running ubuntu which has the feature that if you drag and drop the file into the terminal it writes the location of the file for you.
So, write the following in terminal "sudo fastboot flash boot "and drag and drop the file into the terminal and press on enter.
IF you do not have such feature then "sudo fastboot flash boot 'LOCATION OF THE FILE' " Then press enter.
IF you get "waiting for devices" error , then re-read the guide and follow what he says about "you need to add an android.rule file in tmp"
Hope it helps, GL!

Ghand0ur said:
Oh! An ubuntu fan like myself!
Well I hope you already followed those guides to setup the environment. If so then you should directly write "fastboot devices" and detect your device. If not then re-read those guide and setup the ADB and fastboot first then continue to read my reply.
I am running ubuntu which has the feature that if you drag and drop the file into the terminal it writes the location of the file for you.
So, write the following in terminal "sudo fastboot flash boot "and drag and drop the file into the terminal and press on enter.
IF you do not have such feature then "sudo fastboot flash boot 'LOCATION OF THE FILE' " Then press enter.
IF you get "waiting for devices" error , then re-read the guide and follow what he says about "you need to add an android.rule file in tmp"
Hope it helps, GL!
Click to expand...
Click to collapse
Worked great thank you

Related

Eris 2.1

Been working on a phone with the build number
2.19.605.1
CL123435 test-keys
Cannot get this to take a custom recovery, It seems to have root in ADB but when I try to flash a recovery it fails.
Any advice?
which method are you using?
I would suggest the fastboot method its a lot easier to do.
Just make sure recovery.img is in the tools directory. Then just follow these directions if you don't have windows just look for fastboot.bin and compile it in linux and it should work.
Code:
WINDOWS USERS
From your tools directory in the sdk do the following command
adb reboot bootloader
You will have FASTBOOT highlighted in red like it is here
Now on your computer do the following
Fastboot flash recovery recovery.img
you should see "sending....ok" then "writing.....ok"
on your command prompt when its done just do
fastboot reboot
that will reboot your phone and then you can either turn it off and reboot
into recovery or run
adb reboot recovery
from the command prompt.
BTW: all commands are run from command prompt.
Hope this helps.

fastboot for mac and linux

Hi all, I did a fastboot-mac that recognize our folio when in fastboot mode.
Just to recall what fastboot mode is: fastboot is an android state useful to flash and/or wipe images/partitions.
All version I tried didn't worked and then I compiled my own starting from the latest android sources.
This version works! Maybe some mac user like me could find it useful.
fastboot-mac.gz
And this is the linux version:
fastboot-linux.gz
Now why would we want to use Mac.... anything
Thanks
sacrilege!!!!
Lappz said:
Now why would we want to use Mac.... anything
Thanks
Click to expand...
Click to collapse
Btw, there is also the linux version...
roglio said:
Hi all, I did a fastboot-mac that recognize our folio when in fastboot mode.
Just to recall what fastboot mode is: fastboot is an android state useful to flash and/or wipe images/partitions.
All version I tried didn't worked and then I compiled my own starting from the latest android sources.
This version works! Maybe some mac user like me could find it useful.
fastboot-mac.gz
And this is the linux version:
fastboot-linux.gz
Click to expand...
Click to collapse
i have a question. i did not quite understand how fastboot will work on linux. or what would the function be?. can you help me explain a little?
gingerboy92 said:
i have a question. i did not quite understand how fastboot will work on linux. or what would the function be?. can you help me explain a little?
Click to expand...
Click to collapse
for me the same... here what I found :
3) Get the latest version of fastboot from the android sdk
4) Boot folio into fastboot (switch on, after toshiba press 3x power and then volume up) and connect to pc via usb
5) go to the directory where the fastboot executable lives and type your command
I have a lot of problems to access my folio under windows. Because I use both mac and linux, for me is more handy to access the fastboot mode via those OSes.
In my understanding the fastboot ditributed with the android sdk does not include the latest code to handle the tegra2 platform; then this is the reason why I recompiled it for both mac and linux starting from the latest git sources.
There is another reason why is worth to use mac or linux : no drivers are needed to access the fastboot mode!
Btw, if your windows setup works, of course you don't need to use neither mac nor linux version.
Just to recap: the fastboot mode give you the ability to erase and write any partition on an android device. Is really easy to do it:
"fastboot devices" will list all android devices attached via usb in fasboot mode
"fastboot erase recovery" will erase the recovery partition
"fastboot flash recovery recovery.img" will flash a new recovery.img in few seconds
I like fastboot mode because is more effective flashing a new distro and for my setup is useful because I do dual boot with ubuntu, replacing the recovery partition with the linux boot image.
I forgot to mention "fastboot -w" to wipe data partition and restore factory default
Moved to proper forum
I Have a folio which is working on the normal android system, but when I tread to install foliomod a few months ago my folio got ****ed.!
i cannot enter recovery mode. This is the reason why i have to use fastboot right?
I'm on a mac and what are the precise instructions on making fastboot work? and what should i do to get my recovery working again?!
This is a part i do not get
'' go to the directory where the fastboot executable lives and type your command'' Directory??
When i run the mac file you provided i simple says : command not found, (while my folio is connected in fastbood mode!)
Please help me out! Thanks alot!
hi, first of all, you must install the android sdk.
go to: sdk and download android-sdk_r15-macosx.zip
then, decompress the zip file and move the created folder to the root of your boot harddisk.
well, now you have to download the basic tools: navigate to /android-sdk-mac_x86/tools and double click android. this will open the android manager
install at least Android SDK tools and Android SDK platform-tools (remove any other predefined download)
now decompress the fastboot-mac executable (from my first post) and move it to /android-sdk-mac_x86/platform-tools
ok; now open a terminal and type: "cd /android-sdk-mac_x86/platform-tools"
then try to type: "./fastboot-mac devices" it should show the list of currently attached devices in fastboot mode. often the device is displayed as "????????" it is ok.
if the last command doesn't work, maybe you need to give it execution permission with this command: "chmod +x fastboot-mac" and retry
try and let me know
once you get your device in fastboot mode, look for a recovery.img and do as follow:
./fastboot-mac erase recovery
./fastboot-mac flash recovery recovery.img
then reboot in recovery mode and install what you want.
I suggest you to download the cwm betelgeuse recovery (cwm=clockworkmod).
Roglio! Thanks in advance,
I'm going to try it out tonight after I finish work!
A quick question:
I haven't got my folio with me but when i try to do this:
ok; now open a terminal and type: "cd /android-sdk-mac_x86/platform-tools"
I get:
MacBook-Pro-van-Willem-Jan-van-Dun:~ willem-janvandun$ /android-sdk-macosx
-bash: /android-sdk-macosx: is a directory
MacBook-Pro-van-Willem-Jan-van-Dun:~ willem-janvandun$ cd/android-sdk-macosx
-bash: cd/android-sdk-macosx: No such file or directory
MacBook-Pro-van-Willem-Jan-van-Dun:~ willem-janvandun$ cd /android-sdk-macosx
Al different commands as you can see. Which is the good one?
Thanks!
Roglio you are an hero!
You made my day!
Great job and keep up the good work! my little nephew will be so glad his tablet is working again!
Thanks!
You're welcome
Glad of being been helpful!
One more question!
I installed foliomod and everything is working great! But how can i backup this complete rom? do i use Rom Manager? and whch clockworkmod should i install then?
THanks!!
Via fastboot you should already installed cwm. If not i suggest v0.3 based on cw 3028.
This recovery already has a backup functionality to save the whole system (data included) to an sd card.
taxandria said:
One more question!
I installed foliomod and everything is working great! But how can i backup this complete rom? do i use Rom Manager? and whch clockworkmod should i install then?
THanks!!
Click to expand...
Click to collapse
links broken !
roglio said:
Hi all, I did a fastboot-mac that recognize our folio when in fastboot mode.
Just to recall what fastboot mode is: fastboot is an android state useful to flash and/or wipe images/partitions.
All version I tried didn't worked and then I compiled my own starting from the latest android sources.
This version works! Maybe some mac user like me could find it useful.
multiupload-com/5EFKZ8IMT0"]fastboot-mac.gz
And this is the linux version:
multiupload-com/91QOOXZHPY"]fastboot-linux.gz
Click to expand...
Click to collapse
I have the 2 operative systems, and the binaries are very useful on both cases, but the links are broken, can you upload them again ?
thank you

Help flashing Kernel for CM10

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!!

Installed wrong ADB and Bootloader, please help

Ok, Im retarted. I got my HTC One and had no clue what I was doing trying to unlock it. Well, I eventually got it unlocked but somehow installed the ADB and Bootloader from my Nexus4 onto it. I cant figure out how I did that or how to get the correct ADB and Bootloader onto the device now.
Can anyone assist me?
HyperM3 said:
Ok, Im retarted. I got my HTC One and had no clue what I was doing trying to unlock it. Well, I eventually got it unlocked but somehow installed the ADB and Bootloader from my Nexus4 onto it. I cant figure out how I did that or how to get the correct ADB and Bootloader onto the device now.
Can anyone assist me?
Click to expand...
Click to collapse
well you dont install ADB to your phone, thats on your computer. You may have installed the wrong boot.img but probably not the bootloader. please give more details. list the files you installed to the One.
Ok, so I went out and bought a new laptop since the one I was using was 8 years old running XP and took 5 minutes to open any program.
Anyway, I downloaded the all-in-one-toolkit on the laptop and did a factory reset on the phone. I installed the correct drivers on the computer(hopefully). The phone is still saying its unlocked when I put it in fastboot mode. I have it connected right now and Im trying to install the TWRP but the CMD prompt is just sitting there saying <waiting for device>.
Im the least techie technophile there is apparently. I usually have a friend do all this set up crap on every phone and then I have no problems installing kernels and ROM's after that. Its this beginning crap I always get lost on.
Im seriously so frustrated that Im debating if I even want to keep the phone anymore.
wait because you can't get it install a recovery your going to rage quit ..... dang
CheesyNutz said:
wait because you can't get it install a recovery your going to rage quit ..... dang
Click to expand...
Click to collapse
If you have had this phone since Friday and have been working on doing this the whole time, wouldnt you be feeling the same way?? Maybe since you have already done all this you might be able to lend a helping hand.
you're seeing waiting for device because you don't have the drivers installed correctly.
are you on windows 8?
get the drivers from http://forum.xda-developers.com/showthread.php?t=2135381
then look at the link to how to use adb and fastboot in my signature
gunnyman said:
you're seeing waiting for device because you don't have the drivers installed correctly.
are you on windows 8?
get the drivers from http://forum.xda-developers.com/showthread.php?t=2135381
then look at the link to how to use adb and fastboot in my signature
Click to expand...
Click to collapse
Now Im on W8, never used this operating system before either so Im trying to figure this out as I go. Im a Mac guy(still on Leopard though, dont get me started).
So I used the CMD prompt to unlock the bootloader in the first place. The all in one toolkit is a POS, it doesnt seem to do anything. Anyway, so I went to your link and installed the drivers. All I want to do is root the device so I can install TWRP or vice versa(again, I always had a friend do this).
HyperM3 said:
Now Im on W8, never used this operating system before either so Im trying to figure this out as I go. Im a Mac guy(still on Leopard though, dont get me started).
So I used the CMD prompt to unlock the bootloader in the first place. The all in one toolkit is a POS, it doesnt seem to do anything. Anyway, so I went to your link and installed the drivers. All I want to do is root the device so I can install TWRP or vice versa(again, I always had a friend do this).
Click to expand...
Click to collapse
once you have the drivers installed
it's simple and all in ones aren't needed really.
I have a mac too and have to do it all by hand.
follow the directions in this thread http://forum.xda-developers.com/showthread.php?t=2182792
I installed cwm then installed the root.zip.
gunnyman said:
once you have the drivers installed
it's simple and all in ones aren't needed really.
I have a mac too and have to do it all by hand.
follow the directions in this thread http://forum.xda-developers.com/showthread.php?t=2182792
I installed cwm then installed the root.zip.
Click to expand...
Click to collapse
Im just extremely computer illiterate apparently. No matter what I do my computer still says device not recognized. When I click on the device manager theres a yellow triangle over "my HTC". I click on it to try to update the drivers and it says they are up to date. I have no clue if thats even important. Im in research overload right now.
Still have access to a Mac? So much easier
gunnyman said:
Still have access to a Mac? So much easier
Click to expand...
Click to collapse
Yeah, Im on the mac for all of this research.
HyperM3 said:
Yeah, Im on the mac for all of this research.
Click to expand...
Click to collapse
install fastboot and adb for the mac and use it instead
commands are the same, no driver BS to worry about
gunnyman said:
install fastboot and adb for the mac and use it instead
commands are the same, no driver BS to worry about
Click to expand...
Click to collapse
I might just have to try that. I went through the whole rigamarole of creating the android folder and in there I put ADB, fastboot, adbwinapi.dll and the TWRP img file. I got the command line open trying to install the TWRP and it just sits there still saying <waiting for device>.
Trust me the mac is much easier
gunnyman said:
Trust me the mac is much easier
Click to expand...
Click to collapse
Ok, I have everything hooked up to the mac. When the phone is powered on I can use android file transfer to see all the folders in the phone. When I disconnect the phone, reboot into bootloader and then reconnect the phone, thats where Im lost. No clue what Im supposed to do next.
I have a folder on the desktop with the fastboot, adb and TWRP file in there. Im able to navigate my command prompt to that folder and then.....no clue what next.
HyperM3 said:
Ok, I have everything hooked up to the mac. When the phone is powered on I can use android file transfer to see all the folders in the phone. When I disconnect the phone, reboot into bootloader and then reconnect the phone, thats where Im lost. No clue what Im supposed to do next.
I have a folder on the desktop with the fastboot, adb and TWRP file in there. Im able to navigate my command prompt to that folder and then.....no clue what next.
Click to expand...
Click to collapse
ok open a command prompt
use spotlight and type terminal
once terminal is open
cd to the directory you put those files in
for example
cd /Users/Gunnyman/Desktop/files
once you're there
type ls and hit enter
this will give you a list of the files in that directory
you should see fastboot and adb and the recovery image
make sure your recovery is unzipped and says somefilename.img
once you've verified the files are there
type ./fastboot devices
you should see a serial number there
if it isn't there make sure you see fastboot when you did the ls command from before
next is installing the recovery
the command is ./fastboot flash recovery nameofrecovery.img
after that completes completely power down your phone
power it back up and when it boots type ./adb reboot bootloader
from there choose recovery and recovery should boot
sometimes this takes a couple of tries to make it stick.
---------- Post added at 03:57 PM ---------- Previous post was at 03:55 PM ----------
gunnyman said:
ok open a command prompt
use spotlight and type terminal
once terminal is open
cd to the directory you put those files in
for example
cd /Users/Gunnyman/Desktop/files
once you're there
type ls and hit enter
this will give you a list of the files in that directory
you should see fastboot and adb and the recovery image
make sure your recovery is unzipped and says somefilename.img
once you've verified the files are there
type ./fastboot devices
you should see a serial number there
if it isn't there make sure you see fastboot when you did the ls command from before
next is installing the recovery
the command is ./fastboot flash recovery nameofrecovery.img
after that completes completely power down your phone
power it back up and when it boots type ./adb reboot bootloader
from there choose recovery and recovery should boot
sometimes this takes a couple of tries to make it stick.
Click to expand...
Click to collapse
installing the root is as simple as dragging the root.zip or whatever it's called onto your phone rebooting to recovery and installing it
gunnyman said:
ok open a command prompt
use spotlight and type terminal
once terminal is open
cd to the directory you put those files in
for example
cd /Users/Gunnyman/Desktop/files
once you're there
type ls and hit enter
this will give you a list of the files in that directory
you should see fastboot and adb and the recovery image
make sure your recovery is unzipped and says somefilename.img
once you've verified the files are there
type ./fastboot devices
you should see a serial number there
if it isn't there make sure you see fastboot when you did the ls command from before
next is installing the recovery
the command is ./fastboot flash recovery nameofrecovery.img
after that completes completely power down your phone
power it back up and when it boots type ./adb reboot bootloader
from there choose recovery and recovery should boot
sometimes this takes a couple of tries to make it stick.
---------- Post added at 03:57 PM ---------- Previous post was at 03:55 PM ----------
installing the root is as simple as dragging the root.zip or whatever it's called onto your phone rebooting to recovery and installing it
Click to expand...
Click to collapse
I was good up until this failed:
Macintosh-2:android HyperM3$ ls
adb openrecovery-twrp-2.5.0.0-m7.img
fastboot
Macintosh-2:android HyperM3$ ./fastboot devices
HT348W907962 fastboot
Macintosh-2:android HyperM3$ ./fastboot flash recovery openrecovery-twrp-2.5.0.0-m7.img
sending 'recovery' (0 KB)...
FAILED (remote: unknown command)
finished. total time: 0.000s
That looks like a bad.download of the recovery. It shouldn't say 0 kb. Your command looks right
gunnyman said:
That looks like a bad.download of the recovery. It shouldn't say 0 kb. Your command looks right
Click to expand...
Click to collapse
I didnt even notice that 0 file size. Just downloaded it again and followed your steps. Totally worked and Im looking at TWRP on my phone right now. Thank you for your patience and rocking ability to walk me through this. Is there anyway I can donate to you for something? I cant click "thank you" for your posts enough.
Happy to help. No donations necessary.

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