[HTC One S] Frodo723:
So I had One S4 with unlocked via HTCdev bootloader, custom recovery and custom ROM, HBOOT 1.09. For several reasons I decided to bring back the stock HTC ROM. So I followed the instructions: flashed stock recovery, locked bootloader (fastboot oem lock) and got "Tampered. Relocked". Then I tried to flash RUU_Ville_U_ICS_40_S_HTC_Europe_2.31.401.5 but came up against 131 error. I found out that my CID was wrong. So I changed it with mcOneSTools from T-MOB101 to SuperCID (11111111). I launched ROM installer again but I got new error - 152. For flashing chronology see attachment 1.

I suppose it has something to do with partition table. As a result I have black HTC screen with triangles around the corners. Hboot, fastboot and recovery not working. Second photo is the best you can gain from bootloader.

In spite of this, I can boot OS with fastboot oem boot command. But as soon as I reboot the phone, I'll be stuck at black screen again. And fastboot refuses to flash any zip or img file so I can neither reflash Hboot or Superuser(Root). Here's commandline log:

D:\Devices\One S\fastboot>fastboot oem rebootruu

...

(bootloader) [ERR] Command error !!!

OKAY [ 0.010s]

finished. total time: 0.010s

D:\Devices\One S\fastboot>fastboot flash zip newboot.zip

sending 'zip' (408 KB)...

OKAY [ 0.222s]

writing 'zip'...

(bootloader) signature checking...

FAILED (remote: 12 signature verify fail)

finished. total time: 0.254s

D:\Devices\One S\fastboot>fastboot flash recovery stock_recovery.img

sending 'recovery' (9480 KB)...

OKAY [ 1.139s]

writing 'recovery'...

(bootloader) signature checking...

FAILED (remote: 12 signature verify fail)

finished. total time: 1.825s

D:\Devices\One S\fastboot>fastboot oem boot

...

(bootloader) Boot/Recovery signature checking...

(bootloader) Boot/Recovery signature checking...

(bootloader) setup_tag addr=0x80400100 cmdline add=0xC02F9E3C

(bootloader) TAG:Ramdisk OK

(bootloader) TAG:skuid 0x2ED00

(bootloader) TAG:hero panel = 0x2940043

(bootloader) TAG:engineerid = 0x0

(bootloader) TAG: PS ID = 0x0

(bootloader) TAG: Gyro ID = 0x0

(bootloader) Device CID is super CID

(bootloader) CID is super CID

(bootloader) Backup CID is empty

(bootloader) setting->cid::11111111

(bootloader) serial number: HT23LW405460

(bootloader) commandline from head: console=ttyHSL0,115200,n8

(bootloader) command line length =697

(bootloader) active commandline: reset_status=0 board_ville.disable_uart3

(bootloader) =0 diag.enabled=0 board_ville.debug_uart=0 userdata_sel=0 an

(bootloader) droidboot.emmc=true androidboot.pagesize=2048 skuid=0 ddt=20

(bootloader) ats=0 androidboot.lb=1 td.td=0 td.sf=1 td.ofs=328 td.prd=1

(bootloader) td.dly=0 td.tmo=300 imc_online_log=0 androidboot.efuse_inf

(bootloader) o=NFSL androidboot.baseband=1.06es.50.02.31 androidboot.cid=

(bootloader) 11111111 androidboot.devicerev=3 androidboot.batt_poweron=go

(bootloader) od_battery androidboot.carrier=ALL androidboot.mid=PJ4010000

(bootloader) androidboot.keycaps

(bootloader) aARM_Partion[0].name=misc

(bootloader) aARM_Partion[1].name=recovery

(bootloader) aARM_Partion[2].name=boot

(bootloader) aARM_Partion[3].name=system

(bootloader) aARM_Partion[4].name=local

(bootloader) aARM_Partion[5].name=cache

(bootloader) aARM_Partion[6].name=userdata

(bootloader) aARM_Partion[7].name=devlog

(bootloader) aARM_Partion[8].name=pdata

(bootloader) aARM_Partion[9].name=fat

(bootloader) aARM_Partion[A].name=extra

(bootloader) aARM_Partion.name=radio

(bootloader) aARM_Partion[C].name=adsp

(bootloader) aARM_Partion[D].name=dsps

(bootloader) aARM_Partion[E].name=wcnss

(bootloader) aARM_Partion[F].name=radio_config

(bootloader) aARM_Partion[10].name=modem_st1

(bootloader) aARM_Partion[11].name=modem_st2

(bootloader) partition number=18

(bootloader) Valid partition num=18

(bootloader) TZ_HTC_SVC_SET_DDR_MPU ret = 0

(bootloader) smem 90005000 (phy 90005000): TZ_HTC_SVC_UPDATE_SMEM ret = 0

(bootloader) TZ_HTC_SVC_LOG_OPERATOR ret = 0

(bootloader) TZ_HTC_SVC_ENC ret = 0

(bootloader) TZ_HTC_SVC_DISABLE ret = 474079232 (0x1C41E000)

(bootloader) jump_to_kernel: machine_id(3751), tags_addr(0x80400100), ker

(bootloader) nel_addr(0x80408000)

(bootloader) -------------------hboot boot time:255437 msec

FAILED (status read failed (Too many links))

finished. total time: 6.220s

D:\Devices\One S\fastboot>

I've seen similar cases but with no solution on how to restore bootloader functionality. Is there anything I can do?