[HTC One S] Mixz1890:
So few days ago my One S C2 ran out of battery and wouldnt turn back on anymore. It got stuck in bootloop, it loaded the animation (sometimes it was extremely laggy) and then restarted. I was running Viper Rom 5.1.0 with S-OFF(moonshine). I tried reinstall my rom and even wiping all partitions and it still didn't help. Then I tried folowing this guide http://xdaforums.com/showthread.php?t=2164783 and when I performed "fastboot oem lock" I got this:

C:\ADB>fastboot oem lock
...
<bootloader> Lock successfully...
<bootloader> TZ_HTC_SVC_DISABLE ret = -131073 <0xFFFDFFFF>
FAILED <status read failed <Too many links>>
finished. total time:1.075s

I dont know if its ok but I said "RELOCKED" in bootloader. Then I downloaded http://xdaforums.com/showthread.php?p=40284214#post40284214 (My CIDs matched) and performed firmware update:

C:\ADB>adb reboot oem-78

C:\ADB>fastboot flash zip firmware.zip
sending 'zip' (27598 KB)...
OKAY [ 3.473s]
writing 'zip'...
(bootloader) zip header checking...
(bootloader) shift signature_size for header checking...
(bootloader) zip info parsing...
(bootloader) checking model ID...
(bootloader) checking custom ID...
(bootloader) start image[hboot] unzipping for pre-update check...
(bootloader) start image[hboot] flushing...
(bootloader) [RUU]WP,hboot,0
(bootloader) [RUU]WP,hboot,100
(bootloader) ...... Successful
FAILED (remote: 90 hboot pre-update! please flush image again immediately)
finished. total time: 7.599s

C:\ADB>fastboot flash zip firmware.zip
sending 'zip' (27598 KB)...
OKAY [ 3.474s]
writing 'zip'...
(bootloader) zip header checking...
(bootloader) shift signature_size for header checking...
(bootloader) zip info parsing...
(bootloader) checking model ID...
(bootloader) checking custom ID...
(bootloader) start image[adsp] unzipping & flushing...
(bootloader) [RUU]UZ,adsp,0
(bootloader) [RUU]UZ,adsp,12
(bootloader) [RUU]UZ,adsp,25
(bootloader) [RUU]UZ,adsp,37
(bootloader) [RUU]UZ,adsp,50
(bootloader) [RUU]UZ,adsp,62
(bootloader) [RUU]UZ,adsp,75
(bootloader) [RUU]UZ,adsp,90
(bootloader) [RUU]UZ,adsp,100
(bootloader) [RUU]WP,adsp,0
(bootloader) [RUU]WP,adsp,100
(bootloader) ...... Successful
(bootloader) start image[boot] unzipping & flushing...
(bootloader) [RUU]UZ,boot,0
(bootloader) [RUU]UZ,boot,12
(bootloader) [RUU]UZ,boot,24
(bootloader) [RUU]UZ,boot,34
(bootloader) [RUU]UZ,boot,49
(bootloader) [RUU]UZ,boot,60
(bootloader) [RUU]UZ,boot,73
(bootloader) [RUU]UZ,boot,87
(bootloader) [RUU]UZ,boot,100
(bootloader) [RUU]WP,boot,0
(bootloader) [RUU]WP,boot,99
(bootloader) [RUU]WP,boot,100
(bootloader) ...... Successful
(bootloader) start image[pg2fs_spcustom] unzipping & flushing...
(bootloader) [RUU]UZ,pg2fs_spcustom,0
(bootloader) [RUU]UZ,pg2fs_spcustom,99
(bootloader) [RUU]UZ,pg2fs_spcustom,100
(bootloader) ...... Successful
(bootloader) start image[recovery] unzipping & flushing...
(bootloader) [RUU]UZ,recovery,0
(bootloader) [RUU]UZ,recovery,10
(bootloader) [RUU]UZ,recovery,23
(bootloader) [RUU]UZ,recovery,33
(bootloader) [RUU]UZ,recovery,43
(bootloader) [RUU]UZ,recovery,55
(bootloader) [RUU]UZ,recovery,73
(bootloader) [RUU]UZ,recovery,86
(bootloader) [RUU]UZ,recovery,98
(bootloader) [RUU]UZ,recovery,100
(bootloader) [RUU]WP,recovery,0
(bootloader) [RUU]WP,recovery,99
(bootloader) [RUU]WP,recovery,100
(bootloader) ...... Successful
(bootloader) start image[rpm] unzipping & flushing...
(bootloader) [RUU]UZ,rpm,0
(bootloader) [RUU]UZ,rpm,100
(bootloader) [RUU]WP,rpm,0
(bootloader) [RUU]WP,rpm,100
(bootloader) ...... Successful
(bootloader) start image[sbl1] unzipping & flushing...
(bootloader) [RUU]UZ,sbl1,0
(bootloader) [RUU]UZ,sbl1,100
(bootloader) signature checking...
(bootloader) [RUU]WP,sbl1,0
(bootloader) [RUU]WP,sbl1,100
(bootloader) ...... Successful
(bootloader) start image[sbl2] unzipping & flushing...
(bootloader) [RUU]UZ,sbl2,0
(bootloader) [RUU]UZ,sbl2,100
(bootloader) [RUU]WP,sbl2,0
(bootloader) [RUU]WP,sbl2,100
(bootloader) ...... Successful
(bootloader) start image[sbl3] unzipping & flushing...
(bootloader) [RUU]UZ,sbl3,0
(bootloader) [RUU]UZ,sbl3,100
(bootloader) [RUU]WP,sbl3,0
(bootloader) [RUU]WP,sbl3,100
(bootloader) ...... Successful
(bootloader) start image[tz] unzipping & flushing...
(bootloader) [RUU]UZ,tz,0
(bootloader) [RUU]UZ,tz,100
(bootloader) [RUU]WP,tz,0
(bootloader) [RUU]WP,tz,100
(bootloader) ...... Successful
(bootloader) start image[radio] unzipping & flushing...
(bootloader) [RUU]UZ,radio,0
(bootloader) [RUU]UZ,radio,9
(bootloader) [RUU]UZ,radio,18
(bootloader) [RUU]UZ,radio,27
(bootloader) [RUU]UZ,radio,36
(bootloader) [RUU]UZ,radio,45
(bootloader) [RUU]UZ,radio,50
(bootloader) [RUU]UZ,radio,59
(bootloader) [RUU]UZ,radio,68
(bootloader) [RUU]UZ,radio,77
(bootloader) [RUU]UZ,radio,86
(bootloader) [RUU]UZ,radio,91
(bootloader) [RUU]UZ,radio,99
(bootloader) [RUU]UZ,radio,100
(bootloader) [RUU]WP,radio,0
(bootloader) [RUU]WP,radio,72
(bootloader) [RUU]WP,radio,100
(bootloader) ...... Successful
(bootloader) start image[rcdata] unzipping & flushing...
(bootloader) [RUU]UZ,rcdata,0
(bootloader) [RUU]WP,rcdata,0
(bootloader) ...... Successful
OKAY [ 37.189s]
finished. total time: 40.663s

Then I reboot into bootloader and it still said "RELOCKED" not "LOCKED" and was also still S-OFF. I then unlocked the bootloader and flashed TWRP recovery 2.6.3.0:

C:\ADB>fastboot flash unlocktoken Unlock_Code.bin
sending 'unlocktoken' (0 KB)...
OKAY [ 0.143s]
writing 'unlocktoken'...
(bootloader) unlock token check successfully
OKAY [ 0.009s]
finished. total time: 0.152s

C:\ADB>fastboot flash recovery twrp.img
sending 'recovery' (6420 KB)...
OKAY [ 1.291s]
writing 'recovery'...
OKAY [ 1.391s]
finished. total time: 2.683s

C:\ADB>

And then I flashed the OTA with the updater-script edit so it would work. It had problems mounting /data partition but after few wipes retries it finally mounted it but when I tried to install the rom again, phone rebooted. And then I tried to install the rom again. It went smoothly but in the end it gave and error about not understanding "firmware" command. But still the phone was stuck in bootloop. I tried installing Viper Rom again but nothing. Installed stock and forgot to flash the boot and for some reason it finally booted but since the Wifi, BT and a lot of other things werent working I tried to flash stock boot and it got stuck in the bootloop AGAIN.

Is there anything else I can try? Im currently low on money and it would be great if I could get the phone working.