• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Complete list of hero fastboot commands

Search This thread

adq

Member
Jul 27, 2009
25
3
Hi, here is a complete list of all the fastboot commands supported by the hero. The protocol is as described here, but there are extras..

  • reboot-bootloader -- reboot into bootloader. Standard
  • reboot -- reboot. Standard
  • getvar -- get various specific variables. Standard, but there are new variables.
  • download -- download something into phone memory. Standard
  • erase -- erase a partition. Standard (but wont erase mfg*, misc*). Standard
  • flash -- flash previously downloaded data. HTC's version has various security mode dependant restrictions (e.g. checks signatures if security is enabled). Standard
  • boot -- boot the previously downloaded data as a kernel image. Standard
  • signature -- set the signature for previously downloaded data. Standard
  • setflag -- set a flag, implemented but does nothing on hero.
  • clearflag -- clear a flag, implemented but does nothing on hero.
  • oem -- OEM specific command.

You can download a ZIP or NBH image and tell it to flash using the partition name "zip" or "nbh" instead of a real partition name.

Here's a list of the getvar variables:
  • version
  • version-bootloader
  • version-baseband
  • version-cpld
  • version-microp
  • version-main (or "mainver")
  • serialno
  • product
  • platform
  • mid (or "modelid")
  • cid (or "cidnum")
  • battery-status
  • battery-voltage
  • partition-layout
  • security
  • build-mode
  • boot-mode
  • commitno-bootloader
  • version-tp
  • hbootpreupdate

Here are the OEM commands. Execute with "fastboot oem <command>"
  • keytest
  • heap
  • boot -- boots the image from flash, not the one downloaded into memory.
  • reset
  • powerdown
  • rebootRUU
  • task -- parameter "28"= format userdata, "29" = format system+userdata (only does system if security is off though)
  • rtask
  • h (or ?) -- list the OEM commands.

rtask supports the following hex codes: 0,7,8,9. I'm guessing they'll be the same as documented here, but I've not dared try any yet :) The command 9 isn't listed on that page though..


Hope this helps. I've just got my serial debug cable working :)
 
Last edited:
  • Like
Reactions: rezasony

R3PUBL1K

Senior Member
Jun 7, 2007
1,482
20
ɒzəl.twɪzəl
I am trying to find the command or switch to RM a files from system/media as its read only (of course) I presume its not a fastboot issues but any help appreciated
 

daldroid

Senior Member
May 28, 2009
114
0
I am trying to find the command or switch to RM a files from system/media as its read only (of course) I presume its not a fastboot issues but any help appreciated

adb remount
or
mount -o remount,rw /dev/block/mtdblock3 /system

First one issued from your pc, the second one from a shell on the phone.
You need root access.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Hi, here is a complete list of all the fastboot commands supported by the hero. The protocol is as described here, but there are extras..

    • reboot-bootloader -- reboot into bootloader. Standard
    • reboot -- reboot. Standard
    • getvar -- get various specific variables. Standard, but there are new variables.
    • download -- download something into phone memory. Standard
    • erase -- erase a partition. Standard (but wont erase mfg*, misc*). Standard
    • flash -- flash previously downloaded data. HTC's version has various security mode dependant restrictions (e.g. checks signatures if security is enabled). Standard
    • boot -- boot the previously downloaded data as a kernel image. Standard
    • signature -- set the signature for previously downloaded data. Standard
    • setflag -- set a flag, implemented but does nothing on hero.
    • clearflag -- clear a flag, implemented but does nothing on hero.
    • oem -- OEM specific command.

    You can download a ZIP or NBH image and tell it to flash using the partition name "zip" or "nbh" instead of a real partition name.

    Here's a list of the getvar variables:
    • version
    • version-bootloader
    • version-baseband
    • version-cpld
    • version-microp
    • version-main (or "mainver")
    • serialno
    • product
    • platform
    • mid (or "modelid")
    • cid (or "cidnum")
    • battery-status
    • battery-voltage
    • partition-layout
    • security
    • build-mode
    • boot-mode
    • commitno-bootloader
    • version-tp
    • hbootpreupdate

    Here are the OEM commands. Execute with "fastboot oem <command>"
    • keytest
    • heap
    • boot -- boots the image from flash, not the one downloaded into memory.
    • reset
    • powerdown
    • rebootRUU
    • task -- parameter "28"= format userdata, "29" = format system+userdata (only does system if security is off though)
    • rtask
    • h (or ?) -- list the OEM commands.

    rtask supports the following hex codes: 0,7,8,9. I'm guessing they'll be the same as documented here, but I've not dared try any yet :) The command 9 isn't listed on that page though..


    Hope this helps. I've just got my serial debug cable working :)