Android - Unlock bootloader using fastboot using Ubuntu/Linux

Linux users: If you're stuck in "waiting for device", make sure you run fastboot as root, such as:

$ sudo ./fastboot oem get_identifier_token  
...  
(bootloader)      
(bootloader) < Please cut following message >  
(bootloader) <<<< Identifier Token Start >>>>  
(bootloader) C8750A7847621A009AAC7949E9B41A52  
...  
(bootloader) 7206C18600834B50AB6FA9F4A9AFC71C  
(bootloader) <<<<< Identifier Token End >>>>>  
OKAY [  0.004s]  
finished. total time: 0.005s

It looks like your HBOOT needs to be upgraded to v1.02.0000 in order to use the HTCdev unlock method. The reason for this is that the Legend's bootloader did not originally ship with unlocking capabilities, so you need to upgrade to the version that added it.

Unfortunately, the HTCdev site will give you an RUU to run, but since it's an .exe file it won't do you much good on Linux (even with wine it probably will balk). However, you can perform a manual flash instead:

  1. Download this LEGEIMG.zip1 file. This is the new 1.02 bootloader packaged as a zip.
  2. Copy the zip file to the root of your SD card (as in, not in any subfolders)
  3. Reboot to your bootloader however you like (adb reboot bootloader works, for example)
  4. When HBOOT starts up it should tell you that it found an upgrade package on the SD card. Check the on-screen prompt and select "Yes" to let it flash the zip.
  5. Reboot your phone into your bootloader again and verify that it's been updated to version 1.02. At this point you can follow the HTCdev unlocking instructions.

1Regarding this file: "eldarerathis", you say, "I'm sure you're a trustworthy chap and all, but how do I know that this Mediafire download is legit?" Well, since your bootloader is currently locked, it will only flash images that have been digitally signed by HTC. Since modifying the contents of the zip file would invalidate the signature, you can rest assured that it is genuine and has not been tampered with.

For complete instructions, including how to actually get the zip from the RUU yourself (which requires Windows), refer to this XDA post.