yashsingh1/xdaforums huggingface dataset:
[HTC Desire S] amidabuddha:
Corrupted cache can be fixed with a simple wipe. In your case the flash memory has to be replaced. No other options, sorry
[HTC Desire S] bharattp:
Htc advised me that as I have no warranty, I will be charged for all thingd. they can make a try 2 update but if no success, they can do only PCB change. No flash memory change.

Now, I am in search of eMMC from my local telecom market.

Can u advice me, which devices eMMC can be replaced to my Desire S eMMC? So that I can advice to local telecom to search for that scrap devices.
[HTC Desire S] amidabuddha:
[DISCLAIMER]: I would like to state that my knowledge is limited to the software part of Android only. I am not a technician so the information given by me has to be verified by a knowledgeable source before taking it for true.

[/DISCLAIMER]

From the information that I have your best option is Sandisk iNAND eMMC chip (serial:SEM04G), part number: SDIN5C2-4G.

Good luck
[HTC Desire S] bharattp:
Thanx a lot...

I will ask it to our local telecom. Will post here if success.
[HTC Desire S] RolF2:
There is one big problem. You can't replace empty new eMMC to DS . There must be preprogramed first stage boot loader to enable jtag in DS . Only then you can flash you DS trough jtag.

I wonder why Chinese guys with eMMC duplicators is not selling already preprogrammed eMMC for DS. There is so many dead DS , and no one is selling preprogrammed eMMC for us. Strange ...

and here is known eMMC ID in bootloader :

eMMC_ID : SAMSUNG_EMMC_4G_4_4_ID........
eMMC_ID : SANDISK_EMMC_8G_4_3_ID........
eMMC_ID : SANDISK_EMMC_8G_4_4_ID........
eMMC_ID : HYNIX_EMMC_4G_4_4_ID..........
eMMC_ID : HYNIX_EMMC_8G_4_4_ID..........
eMMC_ID : SAMSUNG_EMMC_8G_4_4_ID........
eMMC_ID : SANDISK_EMMC_4G_4_4_ID........
eMMC_ID : KINGSTON_EMMC_4G_4_4_ID.......
card info end
[HTC Desire S] amidabuddha:
Hey thank you for the info! Finally someone that can give some light to this issue.

I am gathering information from other threads (that is why I included a disclaimer in my previous post). But an user opumps (he was the one who related the "fried" eMMC to the "cannot mount cache" error and caused great panic in this forum) is describing in this thread that he purchased a second hand eMMC from the local market and he managed to fix the problem. But most probably it was already programmed as you say, because it belonged to another HTC device. Just guessing though.

Anyway finding a second hand Desire S with a broken screen or something like will give the wanted eMMC...(there were 2 more devices with the same chip)
[HTC Desire S] n0elite:
Good news I guess? Just this email, no call so I think they replaced pcb for free....
[HTC Desire S] RolF2:
Yeh , I have here my own DS with dead eMMC (stuck on HTC logo) and already tried to replace new empty eMMC ... With fried eMMC i can connect to phone through jtag without any problems , but i can't write to eMMC anything as it is fried... and with new eMMC jtag is disabled as there is no FSBL (first stage boot loader)

from riff box manual :

HTC Desire S boards have JTAG interface disabled
(that is enable MARM JTAG Fuse is blown in the MSM8255 chip).
In this case the JTAG may be enabled only by firmware itself.
This is done by the FSBL loader.
Please note, if your phone has the FSBL loader damaged
and MCU has JTAG FUSE blown then there is no way
to resurrect your phone via JTAG interface.

So as you can see - here we have catch 22 :D
[HTC Desire S] enigmaamit:
So (in non-geek), basically that means if your eMMC is dead, you're fu**ed, right?
[HTC Desire S] RolF2:
Only solution then is secondhand eMMC from another DS, or new eMMC + dedicated flash programmer (to program eMMC before soldering)...
[HTC Desire S] n0elite:
When I get my Desire S with new PCB in a few days, how can I prevent another fried eMMC chip in the future?

1. Never pull battery

2. Leave fastboot on (?)

3. Format in EXT4

Are there any other things?
[HTC Desire S] amidabuddha:
Fastboot should be unchecked (off) in settings. Do not confuse this option with the fastboot command. It keeps processes in memory to make booting faster so your device is never completely switched off. In this case if you want to change the SIM card/Sdcard or battery you can "fry" your chip....
[HTC Desire S] n0elite:
And do you know what is the safest way nowadays to S-OFF my phone?
[HTC Desire S] amidabuddha:
Sounds possible. The bootloader is searching for dedicated partition on the internal memory (mmcblk0) if you can trick it somehow to search on the sdcard (mmcblk1) like mounting /system there using linux commands it can work, why not.
[HTC Desire S] RolF2:
good idea would be hack bootloader to first try mmcblk0 and then mmcblk1 (something like boot priority )

:)
[HTC Desire S] skr44:
when i use adb i get message

Failed to get card ready i = 126736

<6>[ 25.046539] mmc0: Worked around bug 1535304

<6>[ 25.053100] mmc0: reinit card

<4>[ 25.053192] mmc0: Starting deferred resume

<6>[ 27.093902] mmc0: Deferred resume failed

my card was fried or not ?
[HTC Desire S] amidabuddha:
How do you think??
[HTC Desire S] n0elite:
Got my phone today. Apparently it's a whole new phone? The phone I send them had a invisibleshield protector on it. The new phone has a different serial number and IMEI. Got a note saying they replaced the PCB, but it seems like 1) they gave me a new phone. 2) Gave me a refurbished phone. It looks like new, no scratches on the screen/phone, came without sdcard,battery.
[HTC Desire S] bharattp:
Hey sorry for this stupid question, but if this may help me,

Can we mount cache on ext of SD card? Any last hope...
[HTC Desire S] skr44:
i gave it to special telephone service they say problem was a software problem etc. they say they can fix nearly 10$ :)

offical htc service say 394 TL it approximately 180$.

i know my emmc card fried. i will watch and see :)
[HTC Desire S] amidabuddha:
OK that sounds interesting :) Let's see what will be the outcome. Maybe this service has some hidden tricks...

10 $ is nothing compared to the official repair cost, so it is worth trying. Can't wait to hear the result, I hope it will be positive and then I will have to change the guide :)
[HTC Desire S] basementcat:
Lucky! I had to buy a new one :rolleyes:
[HTC Desire S] skr44:
absolutely they cant do any thing it just waste of time :mad:

third service find the problem emmc card was fried they changed it but they cant set up frimware :S i will be crazy i think i forgive this phone and i will buy a new one. if there is some topic about to step by step...

i can try to fix it by myself.
[HTC Desire S] RolF2:
@skr44

http://xdaforums.com/showthread.php?t=1543310

R.
[HTC Desire S] nuts engineer:
Sounds very interesting. Let us know what comes out :)
[HTC Desire S] Lolic:
Well, I`am a pro noob, I`m on S-ON, and hboot 0.85, and I don't think I didn't check the usb debugging on the phone and I think I`m fried so to speak ... So what can I do? And from the adb I get:

D:\platform-tools>adb shell

adb server is out of date. killing...

ADB server didn't ACK

* failed to start daemon *

error:
[HTC Desire S] kibril:
Here is tread with ROM for breaker Desire S: http://xdaforums.com/showthread.php?t=1756287
[HTC Desire S] sda2:
Try updating your Android SDK / tools

EDIT: Shame on me // thought it was another thread in HTC One S developement. Sorry
[HTC Desire S] draken101:
Thanks

Thanks that is good to know
[HTC Desire S] jagdeepmarahar:
help with xolo q700

can anyone help me to restore my ph its not booting stuck at xolo bootimage.

When i boot it into cwm recovery got errors E : can't mount /cache/recovery/log

: can't open /cache/recovery/log

: can't mount /cache/recovery/last_log

: can't open /cache/recovery/last_log

When trying to wipe data and factory reset got errors

: format_volume: make_extf4fs failed on /emmc@cache
[HTC Desire S] knockratos:
Cant use adb command .

No access to recovery .

Emmc- boot ??

Stuck on boot loop
[HTC Desire S] mdamaged:
You need to work on your haiku.

But yeah, not sure what you're trying to say.
[HTC Desire S] knockratos:
Please read my post

http://xdaforums.com/showthread.php?t=2763653

Big issue
[HTC Desire S] Kuldeep1971:
I m getting this error

Failed to mount/cache(invalid argument)

And some more errors and then at last give up!

I almost tried everything..even flashing from flash tool..but it dint worked..so shud i opt for replacement of emmc? Or not?
[HTC Desire S] clubbtraxx:
Nah, didn't flash anything not belonging to this phone.

Like I said, I got the /cache errors after swapping an SD so I figure mine does have a smoked eMMC chip. I have no clue why else it will not power up. Last time when t worked I was in CWM trying to format /cache which failed.

Powered it off after that and never can power it back on.
[HTC Desire S] amidabuddha:
Ok, my bad. This is the first case of this error caused by SD for me. The only thing that comes in mind from my experience is not an Android but Linux issue. The Linux systems (which Android is based on) has the nasty feature to screw the partition when you unplug a device (HDD or flash drive) when something is writing on it. If in your case your fastboot (in phone Settings -> Power) was on, switching off the phone was not actually powered it down but went into a "hybernation" mode but some running processes was still active. Unplugging the battery probably caused corruption on /cache or /system or /data, or all of them that were in use. This can be fixed eventually, but you need an access to adb, which you do not have as far as I understood. So in your case I am afraid that your option is the repair center. The good part is that your phone cannot be turned on so the technicians will probably not know that there is a custom software on it and the repair can go under your warranty as a hardware issue...
[HTC Desire S] morial:
recovery-failure

hey there,

when i try to get into recovery mode via my bootloader, the phone vibrates and show the htc-logo all the time. what can i do?
[HTC Desire S] amidabuddha:
I need some info first :)

1) is your phone branded

2) what is your hboot version

3) what you did to get the HTC logo

4) can you detect it with adb or fastboot (while in bootloader or HTC screen)
[HTC Desire S] spankranger:
I have almost the same problem.

http://xdaforums.com/showthread.php?p=18497514#post18497514

Unplugging the battery probably caused corruption on /cache or /system or /data, or all of them that were in use. This can be fixed eventually, but you need an access to adb.

I hoped that you can give me more info about this?

I tried your adb manual of page 1: To restore one of the following has to be done

But i get this message:

C:\android-tools>adb shell

~ # dd if=/dev/block/mmcblk0p18 of=/sdcard/backup.img

dd if=/dev/block/mmcblk0p18 of=/sdcard/backup.img

dd: /dev/block/mmcblk0p18: I/O error
[HTC Desire S] amidabuddha:
If adb is giving the I/O error there are two possibilities: pull the battery and try again, or try fastboot:

fastboot devices

your serial number should appear

then (warning: this command will alter your bootloader, do not make typing mistakes, copy and paste from here!))

fastboot oem mb 8d08ea0c 1 30

then run the RUU from your computer
[HTC Desire S] Tectas:
Would be nice if someone could make this a sticky, that the read lazy can find it too^^

Swyped from my HTC Desire S
[HTC Desire S] spankranger:
This is what i see:

C:\android-tools>fastboot devices

HT13KTJ34311 fastboot

C:\android-tools>fastboot oem mb 8d08ea0c 1 30

...

(bootloader) [ERR] Command error !!!

OKAY [ 0.018s]

finished. total time: 0.018s

Then i try to run ruu on my pc: RUU_Saga_HTC_Europe_1.47.401.4_Radio_20.28I.30.085AU_3805.06.02.03_M_release_199410_signed

I see the actual information of my phone for the first time.

Image-version: 1.47.401.4

I choose to update the curent rom-version.

Then i see: confirm you want too update your rom-version

From image-version 1.47.401.4 to image-version 1.47.401.4

I choose yes en press next.

The update proces starts en says the bootloader is being restarted.

This goes on for about an hour en nothing else happens ?
[HTC Desire S] amidabuddha:
reboot to bootloader and paste here the output of:

fastboot oem h

or

fastboot oem ?

while in bootloader make sure that you are in FASTBOOT USB mode and try the RUU again.

additional, will be used later: while i the RUU screen, open your windows explorer, go to your C drive and use the search to find rom.zip
[HTC Desire S] spankranger:
I tried above, but now i cant come into fastboot anymore.

I press volume down - power

i come in the white -Revolutionary- hboot screen

i press fastboot (the hboot screen says in red highlight "FASTBOOT USB")

now i put in my usb cable to connect with my pc

i hear the one sound that he's connected

now i start up the command screen as administator

i change the directory to C:\android-tools (enter) (this is the map with the adb.exe & fastboot.exe)

Then i write: fastboot oem h (enter)

i see < waiting for device > but nothing happens...
[HTC Desire S] amidabuddha:
ok. now comes the tricky part

1) if you still have an output on the "fastboot devices" command run the RUU again

2) if not take the rom.zip (if you do not have it, run the RUU without your phone connected to PC, do not close the RUU screen and search in your C drive for rom.zip. Copy it to another location and close RUU). Then rename it to PG88IMG.zip and copy it to your SDcard. Reboot to bootloader and press power to go to hboot. Wait until it finishes. This has two possible outcomes: 1) you will be back on stock, 2) there will be a error message. Post here what happened
[HTC Desire S] spankranger:
I did option 2.

reboot bootloader

in the upper right corner there was a progress meter.

He went slowly from 0 to 100% en then i saw in green font:

Parsing... [SD ZIP]

[1] BOOTLOADER

[2] BOOT

[3] RECOVERY

[4] SYSTEM

EN SO ON TILL [9] RADIO_CUST

Do you want to start update?

<VOL UP> Yes

<VOL DOWN> No

i choose yes.

i see: Update is in progress...

Do not power off the device!

Can not roll back hboot version

I think he then stopped the update proces because nothing happend anymore.
[HTC Desire S] amidabuddha:
hmm, outcome No2

delete PG88IMG.zip form the SDcard. After that repeat the same procedure with the PG88IMG.zip that contains the engHBOOToverARX (you have it already I suppose)
[HTC Desire S] spankranger:
Yes i got that file and placed it on my sdcard, when reboot into -revolutionary- hboot is says:

Parsing... [SD ZIP]

[1] BOOTLOADER - Updating

Do you want to start update?

<VOL UP> Yes

<VOL DOWN> No

i choose yes.

i see the same mesage as before:

Update is in progress...

Do not power off the device!

The phone is in this state for longer then an hour by now...
[HTC Desire S] fbcyborg:
Wouldn't be useful to change the recovery, installing 4EXT in place of ClockWorkMod?
[HTC Desire S] amidabuddha:
Yes it is written in the recommendations in the first post. Unfortunately people are starting to read after they mess things...
[HTC Desire S] amidabuddha:
Leave it like this over the night or until something pops up. Plug it into a charger of course. The next try will be to run revolutionary over it, if it works we will start over. But since the things we have tried already are not working you have two options:

1) bring it for a repair, but with this hboot you will probably have to pay it.

2) try to brick the phone completely and claim a hardware failure to get a repair under warranty...
[HTC Desire S] spankranger:
Your right, i read that and also tried to instal 4EXT, but i dont know how to.

I only have acces to the -Revolutionary- hboot and adb

Sorry for being so noob but i'm realy desperate and thought there were diferent options beside 4EXT.

Can you tell me how to instal 4EXT from -Revolutionary- hboot or adb ?

Maybe that wil solve the puzzel.
[HTC Desire S] amidabuddha:
You can flash it as zip (download here) from the SDcard directly from ClockworkMod (your recovery) then reboot to recovery and is has to be 4EXT

P.S.: you do not need to apologize to be a noob. This happened to a lot of people, including myself several times (but luckily for me I had the 0.98.2000 bootloader and solved it simply by RUU)

P.P.S.: how is the hboot going. Still updating?
[HTC Desire S] spankranger:
Thank you very much! the hboot is still updating, so i will wait some more and hope that everything is going to be alright. I'll keep you informed about the proces.
[HTC Desire S] siimmaivel:
I have exactly the same problem. I've ran through all of the steps as you have and I'm pretty much desperate as well. Maybe to add something to the background... I've also tried to update hboot and even install 4EXT Recovery v2.2.7 RC5, but unsuccessfully.

I always get the I/O error on adb.

C:\Users\E6410>adb shell

~ # su

su

/sbin/sh: su: not found

~ # dd if=/dev/block/mmcblk0p18 of=/sdcard/backup.img

dd if=/dev/block/mmcblk0p18 of=/sdcard/backup.img

dd: /dev/block/mmcblk0p18: I/O error

~ # dd if=/sdcard/hboot.img of=/dev/block/mmcblk0p18

dd if=/sdcard/hboot.img of=/dev/block/mmcblk0p18

dd: can't open '/sdcard/hboot.img': No such file or directory

~ # dd if=/sdcard/hboot.img of=/dev/block/mmcblk0p18

dd if=/sdcard/hboot.img of=/dev/block/mmcblk0p18

dd: writing '/dev/block/mmcblk0p18': I/O error

1+0 records in

0+0 records out

0 bytes (0B) copied, 4.734085 seconds, 0B/s

~ #

This occurs when I try to update hboot.

If I try to flash hboot.img or recovery.img through fastboot, it tells me:

C:\Windows\system32>fastboot flash boot ..\hboot.img

error: cannot load '..\hboot.img'

C:\Windows\system32>fastboot flash boot ..\recovery.img

error: cannot load '..\recovery.img'

I'm running out of ideas. Please help!
[HTC Desire S] amidabuddha:
Have you tried the fastboot oem command (several posts above) and immediately after it (without rebooting) fastboot flash hboot (engineering, 0.98.2000 for example).
[HTC Desire S] spankranger:
Just reboot my phone because it did not work.

It's been on all night without any progress.

I just tried 4EXT Recovery, but excacly like siimmaive without succes.

After al i tried the last four days, now i start to realise that it's imposible to install something with your internal storage partitions screwed up.

Because al the error i'm getting en a lot of other people are related to this.

What can do the trick is to fix the partitions somehow.
[HTC Desire S] siimmaivel:
I did that. Did not work. I even tried to update it through hboot again, but unsuccessfully. It seems though that hboot crashes very often when either rebooting from menu or when flashing an update. Also, the same happens when flashing RUU.

I don't want to give up hope, but just in case, is there an effective way to brick your phone for warranty service?
[HTC Desire S] amidabuddha:
You can try one more thing. Keep in mind that your phone is bricked, so don not blame me if it breaks completely (this can be ever better, because you can give it for a repair under warranty, they will never know that you have custom software on it).

If you are agree with the above. Continue with the following:

Download the archive from here and extract it.

Put the sdparted folder on your C: drive (you will have C:\sdparted)

make sure that you have adb connection, open cmd and type or better paste from here:

cd C:\sdparted
adb push e2fsck /sbin/
adb push mke2fs /sbin/
adb push parted /sbin/
adb push resize2fs /sbin/
adb push sdparted /sbin/
adb push tune2fs /sbin/
adb shell
cd /sbin
chmod 0755 e2fsck
chmod 0755 mke2fs
chmod 0755 parted
chmod 0755 resize2fs
chmod 0755 sdparted
chmod 0755 tune2fs

then type:

parted /dev/block/mmcblk0p25 mkfs 1 ext3
parted /dev/block/mmcblk0p26 mkfs 1 ext3
parted /dev/block/mmcblk0p27 mkfs 1 ext3

after each command there will be a confirmation prompt.

If this works, then you will have restored partitions and you can try to install PG88IMG.zip from your SDcard again
[HTC Desire S] amidabuddha:
Try the "parted" command posted above.

You can brick the phone if you flash a component that do not belongs to it. Like a hboot or a radio for another region
[HTC Desire S] amidabuddha:
Also since there is a chance that the "fastbot oem" command unlocked you hboot for overwriting you can try to flash the hboot again:

by the "dd" command in the adb shell

or if still getting the I/O error in adb put the PG88IMG.zip from the first post in you SDcard and go to hboot menu in bootloader. But this time before flashing open the archive and change in the android-info.txt the number from 1.28.401.1 to 1.47.401.4
[HTC Desire S] siimmaivel:
Step 1 did not work, I got the same I/O error again.

When I tried to install the modified PG88IMG.zip, the bootloader showed "Parsing... PG88IMG.zip" and then it went back to the menu, like nothing had happened.

But it would be even difficult to brick my half-bricked phone, as I cannot flash any component, not to mention the wrong ones.
[HTC Desire S] amidabuddha:
Ok :). Then you will definitely try the following with the hboot.img from the first post:

fastboot erase hboot
fastboot flash hboot hboot.img
fastboot reboot bootloader

this commands have to be made together, no reboot between. Result if works: total brick or new bootloader
[HTC Desire S] siimmaivel:
I tried that as well. It seems that I don't have the permission for that action.

C:\Windows\system32>fastboot erase hboot

erasing 'hboot'...

FAILED (remote: partition is not allowed to be erased!)

finished. total time: 0.007s

C:\Windows\system32>fastboot flash hboot hboot.img

error: cannot load 'hboot.img'
[HTC Desire S] amidabuddha:
maybe your sdcard is not mounted

in adb shell type:

mount /sdcard

or

mount /dev/block/mmcblk1p1 /sdcard

and try the "dd" command again
[HTC Desire S] amidabuddha:
also (a wild guess) but try:

fastboot boot hboot.img

in the folder where your hboot.img from the first post is extracted

also tell me what is happening when you type

fastboot oem rebootRUU
[HTC Desire S] siimmaivel:
It seems that I might have problems with accessing the SD card via adb or fastboot.

I tried mounting SD card through adb with both provided commands and in both cases I got this:

After the command "fastboot oem rebootRUU" I got this:

and it did not do anything for a while.

After "fastboot boot hboot.img" I got:

However, when I tried the command in first post

it had created the backup.img on my SD although it said it cannot write.
[HTC Desire S] fbcyborg:
What ls /dev/block/ returns?
[HTC Desire S] siimmaivel:
C:\Windows\system32>adb shell
~ # ls /dev/block/
ls /dev/block/
loop0 loop7 mmcblk0p14 mmcblk0p20 mmcblk0p27 mmcblk0p8
loop1 mmcblk0 mmcblk0p15 mmcblk0p21 mmcblk0p28 mmcblk0p9
loop2 mmcblk0p1 mmcblk0p16 mmcblk0p22 mmcblk0p3 mmcblk1
loop3 mmcblk0p10 mmcblk0p17 mmcblk0p23 mmcblk0p4 platform
loop4 mmcblk0p11 mmcblk0p18 mmcblk0p24 mmcblk0p5
loop5 mmcblk0p12 mmcblk0p19 mmcblk0p25 mmcblk0p6
loop6 mmcblk0p13 mmcblk0p2 mmcblk0p26 mmcblk0p7
[HTC Desire S] fbcyborg:
Well, mmcblk1p1 is not listed. Here's why you cannot mount it.

Maybe because it is not partitioned, since I can see only mmcblk1.
[HTC Desire S] siimmaivel:
How could it be partitioned?
[HTC Desire S] fbcyborg:
This should be simple enough.

You should have both mmcblk1p1 and mmcblk1.

To make the partition on the sdcard you can do it using a flash card reader and format under windows as FAT32 (as usual you do "format disk") or under Linux using fdisk or cfdisk or parted or gparted to create the partition and finally:

mkfs.vfat /dev/mmcblk1p1
[HTC Desire S] siimmaivel:
Thanks! I'm going to try this out later in the evening, but where should I enter this code you mentioned? To adb or fastboot?
[HTC Desire S] fbcyborg:
Neither in adb nor in fastboot.

They are common Linux applications.

Are you using Linux or Windows?

The partitioning/formatting operations doesn't have anything to do with adb and fastboot.
[HTC Desire S] amidabuddha:
Great! What is the size of the backup.img - if it is different than zero (has to be about 1 MB) upload it somewhere and post link here please. And is your booloader still 6.98.1002 or different?