[Tutorial] How to flash a new boot.img via Fastboot

Did this tutorial help you?

  • Yes

    Votes: 490 93.9%
  • No (please post why not)

    Votes: 32 6.1%

  • Total voters
    522
Search This thread

salutcemoi

Senior Member
Oct 29, 2012
556
123
Nevermind


I just found the Flash Image GUI app in the Play Store

I flashes the Kernel for the user :D

I tested it and it works !

Thanked your original post fipsib :good:
 

Tyler DeLarge

Senior Member
Mar 4, 2012
534
7
Lamezia Terme
hi why it turn me Waiting for device?
if i do sudo fastboot devices it find my phone but if i move with :cd in the folder which contains boot.img and do it fastboot flash boot.img it turn me winting for device.
in Widows SDK manager doesn't work and i can do nothing
he Phone works only on recoery and bootloader D:
 

mustardman29

Member
Dec 2, 2010
45
6
Do these instructions still apply if I am S-OFF?

I have Htc one s4, HBOOT v1.13, and S-OFF. Do I still need to flash the boot.img separately or will it all get flashed in TWRP when I install a custom ROM?
 
Last edited:

Fofff

Senior Member
Jan 19, 2013
71
13
Do these instructions still apply if I am S-OFF?

I have Htc one s4, HBOOT v1.13, S-OFF Do I still need to flash the boot.img separately or will it all get flashed in TWRP?

You don't need to flash the boot IMG separately if you are s-off. It is flashed automatically from recovery when you flash a new ROM/kernel

Sent from my One S using Tapatalk 2
 
Last edited:
  • Like
Reactions: mustardman29

memorito

Senior Member
Hi, just two things I wanted to mention/ask.
Maybe add as a note that the boot.img should be found inside the ROM.zip file. And, does this have to be done with every subsequent ROM flash? Or is it just once after the HTCdev unlock? Thanks!

- Memo
 

BackSlash_cu

Member
Jan 28, 2010
6
0
Half bricked One S :(

Hi, I'll explain my particular case...

I had CM 10.1 working fine on my One S. To unlock it I should go back to the stock firmware ( T-Mobile ).

After many trys and fails my phono now it's on this stage:

.Keep looping on CyanogenMod loadscreen
.At least I can put it on fastboot mode.

my questions to the experts:
What should I do to install the Stock firmware from fastboot? :eek: ???

I have this RUU: RUU_Ville_U_TMOUS_1.84.531.2_R2_Radio_0.16.31501S.16_2_10.22.31501S.10L_release_263233_signed

it's correct for my phone? how to check this?

thanks in advice
 

zumri

Member
Nov 17, 2011
24
2
Kandy
Hi friend I need your help

I was on htc stock rock I was bootloader unlocked it said Tampered and Unlocked and I was S-Off I had CWM installed I found out that if I fastboot boot.img i could flash custom roms so I downloaded a compatible Cyanogen Mod rom to my htc and then I followed your instructions to fastboot all went well but at the end the device didnt restart it got stuck in the htc screen where it says this build is only for some purpose and if we use it other than that some legal bla bla then i powered off and now my phone wouldnt start is my device bricked pls help me what can i do :(
 

Flashalot

Senior Member
Jun 7, 2012
2,451
2,666
Chicago
Hi friend I need your help

I was on htc stock rock I was bootloader unlocked it said Tampered and Unlocked and I was S-Off I had CWM installed I found out that if I fastboot boot.img i could flash custom roms so I downloaded a compatible Cyanogen Mod rom to my htc and then I followed your instructions to fastboot all went well but at the end the device didnt restart it got stuck in the htc screen where it says this build is only for some purpose and if we use it other than that some legal bla bla then i powered off and now my phone wouldnt start is my device bricked pls help me what can i do :(

It may be dead leave it on the charger then go in to your recovery and wipe davik cache and cache
And reboot and see if that works

Sent from my HTC VLE_U using Tapatalk 2
 

zumri

Member
Nov 17, 2011
24
2
Kandy
It may be dead leave it on the charger then go in to your recovery and wipe davik cache and cache
And reboot and see if that works

Sent from my HTC VLE_U using Tapatalk 2

well friend it has got charge but when i try to enter in to the recovery mode it doesnt work only the softkey lights keep on blinking
 

Flashalot

Senior Member
Jun 7, 2012
2,451
2,666
Chicago
well friend it has got charge but when i try to enter in to the recovery mode it doesnt work only the softkey lights keep on blinking

Hold the power button let till the softkey lights die out then try and goin to the recovery and flash a different Rom

Sent from my HTC VLE_U using Tapatalk 2
 

zumri

Member
Nov 17, 2011
24
2
Kandy
Well friend i tried as u said but it gets stuck at this screen n then it just switches off

Sent from my M9 using XDA Premium HD app
 

Attachments

  • uploadfromtaptalk1378068644427.jpg
    uploadfromtaptalk1378068644427.jpg
    8 KB · Views: 185

rc420head

Senior Member
Jan 14, 2013
3,200
5,002
New Lenox
OnePlus 7 Pro
Google Pixel 6a

zumri

Member
Nov 17, 2011
24
2
Kandy
I kept the phone plugged in charge the whole night and in the morning i tried many key combination power and volume up power and volume down power and volume up and down ultimately i was able to get to recovery and flashed CM 10.2 thanx for your reply friends

Sent from my One S using xda app-developers app
 

huzefaonline

Senior Member
Dec 21, 2012
1,118
260
Karachi
Moto Z Play
Hey Guys,

since I heard many questions lately concerning flashing a boot.img onto the One S I decided to give you a small tutorial! (which should also work on any other device with bootloadermode)
If you have fastboot already installed on your PC it's very quick & easy!

Pls be aware that this could damage your phone & I'm not responsible for this. so only do this if you really feel comfortable with it & you know about the risks!


Here you go!
Quick & easy!

When I helped please press the thanks button!

If you have any suggestions to make it even easier of found a mistake, please tell me, it's already very late in Germany ;)

BE AWARE THAT I'M NOT RESPONSIBLE IF IT DOESN'T WORK OR BREAKS YOUR PHONE! THIS IS JUST THE WAY I UPDATE THE BOOT.IMG ON MY PHONE!



hi, while flashing the new boot.img file the cmd says okay once, next it says writing boot and then failed <remote:not allowed>
whats wrong here?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 422
    Hey Guys,

    since I heard many questions lately concerning flashing a boot.img onto the One S I decided to give you a small tutorial! (which should also work on any other device with bootloadermode)
    If you have fastboot already installed on your PC it's very quick & easy!

    Pls be aware that this could damage your phone & I'm not responsible for this. so only do this if you really feel comfortable with it & you know about the risks!

    First of all you need to have fastboot & adb installed, as well as the drivers for the One S. If you haven't, move on to the second post in this thread!

    If you are on a Sense-based ROM make sure you haven't ticked the fast boot option in the settings!

    Step 0,5
    What is the boot.img?
    -> basically it contains the kernel & the ramdisk. But let's hear what the pros have to say:
    "The boot.img is a small(ish) file that contains 2 main parts, the kernel (the brain of the Android system) and the ramdisk (a core set of instructions and binaries that begins the boot process and controls base aspects of the system, such as mountpoints, memory management and startup services)" Source
    Further information can be found here.


    Do I need to flash the boot.img manually in fastboot?:

    • No, if you're using TWRP and are on a Hboot-version lower than 1.13
    • Yes, if you're using any other recovery (like CWM)
    • Yes, if you're using TWRP and your ville has the Hboot-version 1.13 or higher


    1.Step
    reboot your Phone into the bootloader.
    This can either be done via
    - powering off and keeping volume up & the power-button pressed
    - the extended power-menu (If your ROM has it, just select "reboot" & then "bootloader")
    - via adb, connect your phone with the pc, make sure it says "USB debugging connected", go to Android/platform-tools/ & then press shift while you perform a right click with the mouse, then choose "open prompt here", type
    Code:
    adb reboot-bootloader
    & press enter. Your One S should then reboot into the bootloader

    I personally prefer one of the last two methods, depending which way occurs faster to me at that specific moment.

    2.Step
    make sure it says "Fastboot USB" like in the following picture
    loadera5adad4bJPG.jpg

    (Source = Google)

    3.Step
    Test if it your device has been detected with the following command:
    Code:
    fastboot devices
    if it gives you an answer other than a blank one or an error there you go

    4.Step
    copy the boot.img you want to flash into the folder C:\android\platform-tools\ & then execute the command
    Code:
    fastboot flash boot boot.img
    (if your boot.img is named differently then adjust the last part of the command)
    wait for it to succeed.
    if it says okay two times & the prompt reappears everything should be fine

    5.Step
    reboot your device with
    Code:
    fastboot reboot

    6.Step
    If you want check
    Code:
    Settings -> About phone -> Kernel
    if it matches the boot.img you just flashed

    The whole process should look something like this in your CMD:

    11062696ll.jpg

    Here you go!
    Quick & easy!

    When I helped please press the thanks button!

    If you have any suggestions to make it even easier of found a mistake, please tell me, it's already very late in Germany ;)

    BE AWARE THAT I'M NOT RESPONSIBLE IF IT DOESN'T WORK OR BREAKS YOUR PHONE! THIS IS JUST THE WAY I UPDATE THE BOOT.IMG ON MY PHONE!
    49
    Installing ADB and Fastboot

    It's actually pretty easy!

    1. Step
    download the Android SDK from HERE

    Alternatively you can also download the USB drivers & the runtimes for adb & fastboot as a standalone as provided by Inferi0r in the 4th post:
    [Download carefully, didn't test them for viruses or (mal)function]

    2. Step
    Run the downloaded file & change the extracting-folder directly to C:\
    (..this will take some time...)
    You should then have a folder C:\Android

    3. Step
    If you haven't installed the One S' drivers yet, download HTC Sync (e.g. from here, or here) & install it, which will also install the drivers needed for adb & fastboot to work.
    If you have them installed already, skip this one & proceed to step 4.

    4. Step
    - go to C:\Android again
    - press
    Code:
    Win + R
    on your keyboard to bring up the Run dialog
    - type in
    Code:
    sysdm.cpl
    and hit OK
    - now, the System Properties panel should open. Click on the Advanced tab
    - in the Advanced Tab click on Environment Variables
    - at the Environment Variables window find where it says Path in the Section of System variables, click on it, and press the Edit button
    - when the new window opens, type in
    Code:
    ;C:\Android
    at the very end and klick OK
    - now close all the windows, that's all, you're done!

    5. Step
    - go to C:\Android\platform-tools\ again
    - right-click with your mouse while pressing shift
    - select "open prompt here" & then you're ready to go to.
    - most common adb/fastboot commands:
    - adb commands
    - fastboot commands
    - by entering
    Code:
    adb help
    or
    Code:
    fastboot help



    When I helped please press the thanks button!
    4
    Nice write up so cleanly written.