how can i flash boot.img on a mac - HTC One X

hey guys anone knows how to flash a boot.img using a mac
im currently on ARHD by mike
i know i have to be in fastboot mode but what do i do next

Flash the boot image?
./fastboot-mac flash boot (name of boot image / e.g. boot_1.2.3.img)

thanks for the reply but when i type it it says (no such file or directory)
any ideas?

you have the image.img and fasthboot in same folder?
Be sure that you are typing the image name right.

Related

how to flash a zimage

please if some one knows how to flash a zimage kernel with adb shell????
kaokollaa said:
please if some one knows how to flash a zimage kernel with adb shell????
Click to expand...
Click to collapse
You can't do it with adb. The only way is to use fastboot from the android sdk (same folder that adb is located in) and use:
Code:
fastboot flash zimage zImage (where the second zImage is the filename)
kaokollaa said:
please if some one knows how to flash a zimage kernel with adb shell????
Click to expand...
Click to collapse
To flash a zImage:
1. Place the zImage you want to flash inside your AndroidSDK\tools folder
2. Reboot your phone into FASTBOOT/bootloader mode
3. Run the following commands (from your AndroidSDK\tools PATH):
Code:
fastboot devices -- Should pull up serial #
Code:
fastboot boot zImage -- Your phone will automatically reboot
The command above will only temporarily boot the new zImage, meaning you can test and do whatever you want, but after you reboot your phone again -- your previous zImage will be reloaded, removing the current one you were testing (Recommended method for testing, until you're sure you want to permanently flash).
If you want to make the new zImage you're trying to flash permanent, enter this command instead:
Code:
fastboot flash zimage zImage
Fastboot might hang so just turn the power off on your Evo then put it back into “fastboot” mode by pressing on the Power button WHILE holding down the Volume down button. Then press Power button once more to enter “fastboot” mode. You should see the image flashing now. Just reboot after that.
I'm trying to flash a zImage and I first got this error with the 0.97 bootloader
Code:
writing 'zImage'... FAILED (remote: not allowed)
And with the eng bootloader the error says
Code:
writing 'zImage'... FAILED (remote: unknown fail)
Anybody have any ideas to fix this? I searched for a while and turned up nothing.
do you have eng .76 bootloader? it is the one needed for clockworkmod. also, instead of the second zimage, type the name of your file. are you on a mac or a pc? if you are on a mac, you will need the mac fastboot file. pm me if you need it.
dkdude36 said:
do you have eng .76 bootloader? it is the one needed for clockworkmod. also, instead of the second zimage, type the name of your file. are you on a mac or a pc? if you are on a mac, you will need the mac fastboot file. pm me if you need it.
Click to expand...
Click to collapse
I flashed the eng bootloader and that's when I started getting the "remote: unknown fail" error when trying to flashe the zimage.
The file IS named zImage so that's right.
Plot thickens- now it will only boot into fastboot. I tried restoring my nandroid and it will still only boot into fastboot. I can get into the bootloader and recovery no problem but the phone reboots into fastboot every time.
I tried to flash a stock PC36IMG file and during the install process next to boot it says Fail-PU.
Now it says "Partition update fail!"
Please tell me I didn't just brick my phone.
EDIT: Ok, I flashed the PC36IMG file again and now it's booting again. My question is this- is the kernel stored on the boot partition? Would wiping the boot partiton and then flashing the zImage work? What commands would I use to do that?
http://tinypic.com/r/2q9ifir/7
dont know what to do...
Replay
MishXT said:
****tinypic****/r/2q9ifir/7
dont know what to do...
Click to expand...
Click to collapse
I am a ubuntu user,
but you need root permissions,
Try what you get when you type : fastboot devices
When you get an error with no permissions. Get root acces (in ubuntu sudo -s)
try export the fastboot directory path and run fastboot devices again.
Then when that is working, try your thing again. There will be no errors
Murakuchi said:
I am a ubuntu user,
but you need root permissions,
Try what you get when you type : fastboot devices
When you get an error with no permissions. Get root acces (in ubuntu sudo -s)
try export the fastboot directory path and run fastboot devices again.
Then when that is working, try your thing again. There will be no errors
Click to expand...
Click to collapse
I'm pretty sure he figured this out already as his question is close to 2 years old.
Evilone69tmg said:
I'm pretty sure he figured this out already as his question is close to 2 years old.
Click to expand...
Click to collapse
+1 lolz
HipKat said:
+1 lolz
Click to expand...
Click to collapse
haha bless him he actually thought he was helping rofl hehe xx
KernelDev101 said:
haha bless him he actually thought he was helping rofl hehe xx
Click to expand...
Click to collapse
Hello, another post added to a year old thread.
I am getting trouble trying to flash a custom compiled HTC amaze x715e. (unbranded, S-off, unlocked, SuperCID)
I cross-compiled the kernel source and now have the zImage in my /arch/arm/boot folder.
fastboot flash zimage zImage
results in 'FAILED (remote: not allowed)'
fastboot boot zImage
results in 'FAILED (remote: reproduce boot image with on-flash ramdisk error)'
How am I suppose to flash this?
Is there a thread for this?
Thanks in advance.

[Q] Fastboot Problem on Mac Osx 10.6.8

Hi guys!
I've a problem with the flash of the zip or img file from the terminal on my Mac Osx 10.6.8!
When I try to flash with this command: "fastboot-mac flash boot boot.img" it write "Cannot load "boot.img".
The devices is online with fastboot usb.
The image below rappresent my problem!
Someone can help me please?
You should have the boot.img within the fastboot folder. (In the same folder as the fastboot files)
Are you root? On linux at least you need root to use fastboot.
Sent from my HTC One X using xda app-developers app
Yes the image file or the zip that i would to flash is always in the fastboot folder. I've also tried to flash with the root users but nothing. (image)

[Q] Noob Flashing Venom ??

Hi can anyone help me pls and tell me how exactly and what exactly does: Extract boot.img from ROM zip and flash it using ‘fastboot flash boot boot.img’.
Use 'fastboot erase cache' to avoid boot issues.
I mean what do i have to do I know that these are commands in cmd but what do I have to have on my computer .I`m sorry if this question is answered somewhere but i looked for it for 2 hours and did not find it.
Thx in advance for your help
Once you download the VenomRom.zip file.. you need to open it with winrar/winzip/7zip and extract the boot.img file from it...
Extract the boot.img file in your fastboot folder... Now boot your phone into fastboot mode and connect it to your PC.
Open the fastboot folder where you had extracted the boot.img file and right click anywhere in the window along with pressing the shift key... in the menu, click on "Open Command Window Here"
Now run the following code:
Code:
fastboot erase cache
fastboot flash boot boot.img
fastboot erase cache
You can download the fastboot folder from here : http://www.mediafire.com/?cm2famr3xd2cnom
vin4yak said:
Once you download the VenomRom.zip file.. you need to open it with winrar/winzip/7zip and extract the boot.img file from it...
Extract the boot.img file in your fastboot folder... Now boot your phone into fastboot mode and connect it to your PC.
Open the fastboot folder where you had extracted the boot.img file and right click anywhere in the window along with pressing the shift key... in the menu, click on "Open Command Window Here"
Now run the following code:
Code:
fastboot erase cache
fastboot flash boot boot.img
fastboot erase cache
You can download the fastboot folder from here : http://www.mediafire.com/?cm2famr3xd2cnom
Click to expand...
Click to collapse
And what do I have to have in the fastboot folder apart from the zip and the boot.img?Thx for the previous answer
Saw it thx
You don't need the zip file in your fastboot folder... You only need the boot.img file so that you can flash it using the above command!
Copy the zip file on to your phone... you flash that in recovery...
fastboot folder has has 4 files... fastboot.exe, adb.exe and couple of dll files...
vin4yak said:
You don't need the zip file in your fastboot folder... You only need the boot.img file so that you can flash it using the above command!
Copy the zip file on to your phone... you flash that in recovery...
fastboot folder has has 4 files... fastboot.exe, adb.exe and couple of dll files...
Click to expand...
Click to collapse
Thx alot for ur help.One more question though,If i want to flash another kernel how do I do it?
and sorry for beeing ssuch a noob
You flash the boot.img from the downloaded kernel.zip and then install the .zip file in the recovery like a rom. Wipe the dalvik cache and the cache from the partition (all in the recovery) and reboot
In the case of Venom.. you don't need to repack the kernel...
so...
1. Flash the boot.img (of the kernel)
2. Go into recovery and delete cache/dalvic
3. flash the modules.zip file in recovery...
4. Reboot

[Q] fastboot

does fastboot need to be enabled or disabled on phone before fastboot mode to flash a recovery?
xda___ said:
does fastboot need to be enabled or disabled on phone before fastboot mode to flash a recovery?
Click to expand...
Click to collapse
actually, let me be more specific...
on primou one v-
currently running cwmr, planning to switch to twrp-
so, i have the fastboot question, but also:
*if i already am on a custom recovery, what do i re-name the file for the image (recovery.image?)
.blob is for switching from stock to custom recovery, yes?
where do i put the .image file (platform tools folder?)
and what command prompt the regular (Fastboot flash recovery recovery.img?)
thank you.
xda___ said:
actually, let me be more specific...
on primou one v-
currently running cwmr, planning to switch to twrp-
so, i have the fastboot question, but also:
*if i already am on a custom recovery, what do i re-name the file for the image (recovery.image?)
.blob is for switching from stock to custom recovery, yes?
where do i put the .image file (platform tools folder?)
and what command prompt the regular (Fastboot flash recovery recovery.img?)
thank you.
Click to expand...
Click to collapse
it can be any name
fastboot flash recovery whateveryounamedtherecovery.img

[Q] Flash Stock Recovery Problem

Hi there,
I have a rooted HTC one M8 in Australia and I'm trying to flash stock recovery with fastboot in command centre. I'm having a problem because it keeps failing to flash the recovery as its more than 18mb and the command centre says "target reported max download size of 1830477824"
Is there a way to make the max file size bigger? so i can flash stock recovery, update the phone and then flash TWRP again?
Im a beginner so even just a little help would be amazing! THANKS SO MUCH!
What command are you typing?
I'm going to guess they're trying to flash it in RUU mode
BenPope said:
What command are you typing?
Click to expand...
Click to collapse
First they said to open the folder 'fast boot'
right click in folder whilst holding shift and click open command window here
then type 'adb reboot bootloader'
then after its in boot mode i typed in 'fastboot flash recovery "stock recovery.img"
after that it starts trying to send to my phone but then says that max file transfer is 18mb and this stock recovery is 24mb.
Rename stock recovery.img to recovery.img
then use command fastboot flash recovery recovery.img

Categories

Resources