yashsingh1/xdaforums huggingface dataset:
[HTC Pico (Explorer)] munirshah77:
I would like to explain my problem here. Almost two weeks ago I guess I flashed sense 4 build 7 by derefas and I guess i had a nand burn. No rom flashed at that time like cm10 roms. cm9 rom flashed but there were a lot of FC's at startup so I couldn't use them. Xenon rom and Ateeq rom only worked for me at that time but internal memory was very large and there was only 40 mb free space. Then I followed this guide by cute_prince

Ok guys, here I am posting NAND Recovery Procedure:

Download the following attachment.. Rename flash_erase.txt to flash_erase ( Its actually a binary file )

Copy this file to /system/xbin directory using Root Explorer. Set permission as 755

Make sure Root Access is enabled for both Apps and ADB in Developer settings

Connect phone to PC .. Now open a terminal ( I am using Ubuntu ) and type the following:

Code:

adb shell

su

cd /system/xbin

./flash_erase -N /dev/mtd/mtd2 0 0

./flash_erase -N /dev/mtd/mtd4 0 0

./flash_erase -N /dev/mtd/mtd5 0 0

Note: when you execute above command you may get an IO error.. Its OK, dont get panic

Now disconnect phone from PC.. Remove battery and reinsert it ..

Goto recovery and:

format /boot

format /system

wipe data / factory reset

Now install your favourite ROM

Once the ROM is booted, goto storage settings.. Everything should be fine now and you should get around 140MB free depending on your ROM

and then then the less internal memory problem at boot and fc's in cm9 rom, these problems were solved but the problem that cm10 roms don't flash and error appears like this one

"symlinks failed

file at bla bla bla couldn't be flashed

status 7"

This problem still persists while installing any jelly bean rom not for ics and sense roms flash but they simply bootloop. At htc beats audio screen they don't go any further.

Here is the full error

" Installing '/sdcard/cm-10-2013031

Checking for MD5 file...

Skipping MD5 check:no MD5 file

symlink: some symlinks failed

E:Error in /sdcard/cm-10-2013031

(Status 7)

Error flashing zip '/sdcard/cm-10-2013031

Updating partition details "

I have done the fix by cute_prince more than a dozen times but to no use. There might be one problem though. In cmd in windows for "su" command there comes an error " 'su' not found." I don't know how to get it working. The other commands execute successfully. Check the screenshot.

The rom I am trying to flash is cm10 beta 6. Same error occurs with aokp rc3, Provision or any jelly bean rom or cm10 based rom but doesn't appear for any sense roms. Not even sense 4 roms but none of them gets past the beats audio screen.

I tried to execute command "erase_image system" and error came that " not erasing bad block at 0x0ea00000 ". Check the screenshot.

The screenshot of disk usage app is taken on mini cyanamod 9.

please help me. I am stuck with this problem now for weeks now. Someone please end my misery.
[HTC Pico (Explorer)] DanceOff:
Follow these steps

take cm9 Rom zip file

Open it

Go to /system/apps

Delete waste apks like appolo browser wallpapers etc.

Flash it dont flash gapps

Boot it

Download terminal emulator from play store

Follow cute_prince method again

Make sure to put that file in correct place

Type su

type the commands in terminal emulator
[HTC Pico (Explorer)] DanceOff:
Easy method to detect burnt nand:

Flash cm9 :thumbup: go to apps and look for yourself :)

And df shows used space and free space in all partitions ...
[HTC Pico (Explorer)] BleedingIris:
How will this work?

Terminal emulator is in /data and Android is running in /system

And can you wipe like that,while the phone is running?

Have you tried? Will it shutdown /force close etc?

PS. Screenshot of your /system,please.

"If it's not now, then it's when"?

LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E
[HTC Pico (Explorer)] DanceOff:
I have fixed my nand on phone itself

it stays normal for few secs then goes back to boot animation and I guess it won't boot and you need to flash a new ROM

I didn't wait to see what happened and cm10 build 6 uses 60 mb dalvik cache at first boot you can't make out with it us you are using ;)
[HTC Pico (Explorer)] BleedingIris:
Just couldn't keep my hands off...

Tried in terminal emulator on phone

Flash_erase worked, but still couldn't erase that 30 MB out.

But I could type only one mtd ..

With that ~a meter went off fast from 0 to 100%..terminal closed and system automatically rebooted..- flashed Rom again.., booted.. same profile.

Tell me,

When you attempted in terminal, did you get any errors?

"If it's not now, then it's when"?

LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E

---------- Post added at 05:22 PM ---------- Previous post was at 05:19 PM ----------

Bro, I think cute prince missed this here..

But you should Flash erase mtd3 also.

Just add this @ the end

./flash_erase -N /dev/mtd/mtd3 0 0

Do it in adb or terminal .derefas Flash erased 3,4 and 5. But cute prince 2,4 and 5 and 2 is boot (not sure why though?)

"If it's not now, then it's when"?

LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E
[HTC Pico (Explorer)] munirshah77:
ptcpayme !!! u r simply incredible. U solved my problem finally. I really want to thank u for ur co-operation. I tried the command "./flash_erase -N /dev/mtd/mtd3 0 0" by adding it at the end of other ones and the status 7 error is gone and cm10 finally flashed and booted on my phone. Hats off to u!!!!!
[HTC Pico (Explorer)] BleedingIris:
Thanks :)

Good to know you finally fixed your phone.

Can you also post your /system and /data diskusage screenshot here now.

And did you get a lot of errors, while doing the Flasherase on mtd3?

"If it's not now, then it's when"?

LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E
[HTC Pico (Explorer)] munirshah77:
Sorry for the delay. Here r the screenshots. I have a query actually. Status 7 error still exists for apex rom v1 and mini paranoid rom. Don't know why... Should I also try mtd1 I mean this command./flash_erase -N /dev/mtd/mtd1 0 0.Would it be dangerous.
[HTC Pico (Explorer)] BleedingIris:
Which Rom are you using now? And what script?

Can you install more apps?

mtd1 is recovery..

You can easily know, which mtd is what by typing

mount

in terminal emulator.

Or look here

http://xdaforums.com/showthread.php?p=38974618

Since your probleM is system data(?bad blocks ) filled up in /system

,I told you to wipe system (mtd3)

"If it's not now, then it's when"?

LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E
[HTC Pico (Explorer)] munirshah77:
The screenshots were taken on minicm9. No sd-ext script was used by me. Yes I can install new apps in this rom.
[HTC Pico (Explorer)] BleedingIris:
This is your present Rom right? If it is, then I think you burnt it again

Try filling up your data partition with apps

Does your settings look like this?

http://xdaforums.com/showthread.php?p=38941663

"If it's not now, then it's when"?

LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E
[HTC Pico (Explorer)] munirshah77:
Yes I burnt it again so I have used those commands in adb again and hopefully it will be fine again. Actually I am not using this rom.I installed that rom only for screenshots so that u can see them. I am trying to install sense 4 roms. Sense 4 build 6 booted fine but build 7 bootloops. Fly rom v3 boots fine but with patch one it boot loops. Bulletsense fx also bootloops and apex rom v1 doesn't install(status 7 error).
[HTC Pico (Explorer)] munirshah77:
You wanted to see how \system looks like when my phone is in normal state. So here r the screenshots when flyrom v3 is installed and flyrom script is also installed
[HTC Pico (Explorer)] zgintasz:
took this from dmesg, does this means burnt nand?
[HTC Pico (Explorer)] BleedingIris:
saks log didn't look like that.. but not sure

『Moved by touch™』 ?

LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E
[HTC Pico (Explorer)] DanceOff:
If I am not wrong you are telling this in reference to cute_prince method well first you need to copy the file in specified location as mentioned by him.
[HTC Pico (Explorer)] wsdyleon:
it seemed that this method is easier than cuteprince's
[HTC Pico (Explorer)] Muhammad Talha:
nand burnt

yes i am also following your procedure..and doing this by using recovery TWR and i m also getting same problem

mtd : not erasing bad block at 0*.........

please help me
[HTC Pico (Explorer)] Sachin Thomas:
Try cute_prince's procedure first
[HTC Pico (Explorer)] Muhammad Talha:
thanks

can u guide me??how to mount sd card via adbshell???and how to place those files in system/xbin ????
[HTC Pico (Explorer)] Sachin Thomas:
SD card should be mounted from recovery. Are you using TWRP? Also mount system and place those files in system/xbin using TWRP's file manager
[HTC Pico (Explorer)] Muhammad Talha:
yes i am using TWRP ...
[HTC Pico (Explorer)] Sachin Thomas:
Ok, then mount System and SD card (USB Storage)

Place the file on the root of your SD card and use file manager in Advanced > File Manager to move them into system/xbin then follow the rest of the procedure (setting permission etc)
[HTC Pico (Explorer)] nitshanu:
In advanced i am not having any terminal......what i have is

reboot recovery

wipe dalvik cache

wipe battery stats

report error

key test

show log

partition sd card

fix permissions

go back

please help :(
[HTC Pico (Explorer)] Sachin Thomas:
You're using cwm dude :(
[HTC Pico (Explorer)] DanceOff:
Any people dont know cwm is buggy, just tell them to be on some other recovery :p
[HTC Pico (Explorer)] mmk.dr:
Well I had burnt my nand again. But this time when I try cuteprince's method, I get the following error in CMD.

C:\A310E>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
~ # ←[6n su
su
/sbin/sh: su: not found
~ # ←[6n cd /system/xbin
cd /system/xbin
/system/xbin # ←[6n ./flash_erase -N/dev/mtd/mtd2 0 0
./flash_erase -N/dev/mtd/mtd2 0 0
unknown option -- /unknown option -- dunknown option -- eunknown option -- vunkn
own option -- /unknown option -- munknown option -- tunknown option -- dunknown
option -- /unknown option -- munknown option -- tunknown option -- dunknown opti
on -- 2flash_erase: error!: no erase block count specified
flash_erase: error!: Try `--help' for more information
/system/xbin # ←[6n ./flash_erase -N/dev/mtd/mtd3 0 0
./flash_erase -N/dev/mtd/mtd3 0 0
unknown option -- /unknown option -- dunknown option -- eunknown option -- vunkn
own option -- /unknown option -- munknown option -- tunknown option -- dunknown
option -- /unknown option -- munknown option -- tunknown option -- dunknown opti
on -- 3flash_erase: error!: no erase block count specified
flash_erase: error!: Try `--help' for more information
/system/xbin # ←[6n flash_erase chmod 755
flash_erase chmod 755
/sbin/sh: flash_erase: not found
/system/xbin # ←[6n

I've copied and pasted the binary in the right folder and also chmod 755 it in recovery.

Update: After trying a lot of times I finally succeeded in erasing the partitions. However even now I'm not able to flash any Sense Roms!

Any ideas?
[HTC Pico (Explorer)] DanceOff:
Why can't you flash any sense roms ? Whats the problem of doesn't boot or doesn't flash ?
[HTC Pico (Explorer)] mmk.dr:
No, man! None boots. :( Not even stock Rom nor any GB Sense Roms!

And I succeeded in booting CM9 Xperia Fusion Rom and then when I flashed stripped gapps, it bootloops.

And you know what, I had to wipe nand every time I've to flash a new Rom whether it boots or not. Or else the next Rom doesn't cross htc splash screen!

I've no idea really. I mean there are no I/O errors while erasing. But CM9 boots without gapps only after I recover the nand!
[HTC Pico (Explorer)] DanceOff:
So problem is out of 245 mb maybe 30+ mb is burnt :/ try cute princes method again and again
[HTC Pico (Explorer)] mmk.dr:
Come on dude! I've followed that method for nearly 30 times now. No luck.

Do you think if I take it to HTC Service Center, they could do something about it? Of course it might be costly, but still.

---------- Post added at 07:36 PM ---------- Previous post was at 07:34 PM ----------

Or did you mean I've to repeat those commands around 10times in a single go??

EDIT: booted Xperia Fusion CM9 without gapps and took some screenshots. Hope they're helpful!!
[HTC Pico (Explorer)] rootdefyxt320:
The reason why PLL2 overclock burns nands

Hello, I own a Motorola Defy Mini XT320 (MSM 7225A-1 Chipset)

We overclock using the PLL2 overclock and one of the XT320 users and some HTC Explorer users have burnt their NAND.

Here's an explanation why this happens:

PLL2 overclock can be compared to FSB overclocking in computers i.e locked multiplier overclocking in the BIOS. FSB overclocking involves overclocking of the PC buses such as the Memory Bus, PCI/ PCI-Express bus and AGP buses (older computers) and the CPU. It works out by XXXXMHz multiplied by X multiplier and that will give the CPU speed. PLL2 overclock does the same thing because PLL2 controls the bus speeds (exists in the SOC). It overclocks the memory buses, SOC clock, internal storage (database IO) speed and of course the CPU. It works out by XX multiplied by 19/2 and that gives the CPU speed. That's why PLL2 on 800MHz is faster in performance than PLL4 on 800MHz . Therefore that's the reason why people complain of burnt NANDs on HTC Explorer and Motorola Defy Mini XT320/321.

PLL4 overclock can be compared to unlocked multiplier overclocking where you adjust the multiplier in the BIOS and it will automatically adjust the clock speed depending on the multiplier of the CPU. Therefore this only overclocks the CPU. PLL4 overclock only overclocks the CPU and NOT the buses so it can go at much higher frequencies than PLL2 overclock. PLL4 overclock does NOT adjust bus speeds so therefore it is much safer to overclock and it doesn't burn out your SOC.

Dunno why Qualcomm disabled it in the MSM7225A chipset, probably to avoid people overclocking. :(
[HTC Pico (Explorer)] Sachin Thomas:
MSM7225AA used in Xperia Tipo has PLL4 :(

What happens during PLL0 overclocking? Any idea?
[HTC Pico (Explorer)] rootdefyxt320:
It gives you a faster 480MHz frequency. We have to change the SOC ID and move it to PLL4 to enable higher clock speeds. Here is the table of Qualcomm MSM chipset IDS: http://xdaforums.com/showpost.php?p=39584319&postcount=1131
[HTC Pico (Explorer)] Sachin Thomas:
So you mean that our SoC also includes PLL4 but it's just disabled?
[HTC Pico (Explorer)] rootdefyxt320:
Yes, that's correct. You have to make a new kernel with the SoC id of MSM7225AA and enable PLL4 in the kernel. :)

Pros:

PLL4 is enabled

Phone can achieve a higher overclock without burning NAND.

Cons:

Can't use current custom ROMS

Can't use stock ROM
[HTC Pico (Explorer)] Sachin Thomas:
Why wouldn't the kernel work with current custom ROMs?

And if PLL4 can be enabled on MSM7225A what's the difference between this and MSM7225AA? And why did Qualcomm/HTC/Motorola disable it in the first place if developers can enable it?
[HTC Pico (Explorer)] rootdefyxt320:
The kernel contains SOC ID information. If we flash it over the custom ROM, the ROM won't boot as it requires the SOC ID of 96 so it won't detect the board.

Otherwise the CPU will become 800MHz and that's what HTC/Qualcomm/Motorola doesn't want.

EDIT: Found that MSM7225AA, MSM7225AB chipsets have a QCT 7x27a surf CPU while MSM7225A has a QCT 7625a ffa cpu. PLL4 is not disabled but it is absent form the CPU.
[HTC Pico (Explorer)] cute_prince:
[MENTION=4799442]Sachin Thomas[/MENTION]

You cannot enable PLL4 on MSM7225A SoC. PLL4 is ONLY available for MSM7225AA and MSM7225AB variants. See the following code section from our acpuclock-7201.c:

if (!cpu_is_msm7x27() && !cpu_is_msm7x25a()) {
do {
pll4_l = readl_relaxed(PLL4_L_VAL) &
soc_pll[ACPU_PLL_4].l_val_mask;
cpu_relax();
udelay(50);
} while (pll4_l == 0);

You can see a check is performed to decide whether the current cpu is msm7x25a or not. PLL4 is read if and only if current cpu is NOT

msm7x25a ( !cpu_is_msm7x25a() ).

As [MENTION=4880538]rootdefyxt320[/MENTION] suggested you can try to bypass this check by assigning a different SoC ID but still it won't work. I already tried this months before. What happens is that, when you bypass this check, execution will enter the do..while loop. But the while condition ( while (pll4_l == 0) ) will never returns false as pll4_l will be always 0 in our case because our SoC doesn't have it. Thus you will end up in infinite loop and kernel hangs :)
[HTC Pico (Explorer)] Sachin Thomas:
But I had found something related to PLL4 in that datasheet which we got from that Chinese site. I don't remember the exact thing but found it when I searched for "PLL4"
[HTC Pico (Explorer)] cute_prince:
It may be either MSM7225A-AA / MSM7225A-AB
[HTC Pico (Explorer)] Sachin Thomas:
This is what I found:

PLL4 isn't mentioned anywhere else
[HTC Pico (Explorer)] vijayz:
means how to write afer every cammand press enter?nd what will b shown after this in recovery any thing like succesfull nd how to format 3 partition

:mad:

---------- Post added at 06:31 PM ---------- Previous post was at 06:18 PM ----------

am having doughts means

affter typeing every cammand v need to press enter?

how to wipe 3 partition

when i tried to erase image system it came like not erasing bad block at 0x whts it
[HTC Pico (Explorer)] Sachin Thomas:
If you have PC access you should always try cute_price's method first. And, yes you should press enter after every command
[HTC Pico (Explorer)] vijayz:
cant do cute prince recovery coz cant boot into roms coz the whole 150 mb is used and how to reformat 3 partitions

thax
[HTC Pico (Explorer)] Sachin Thomas:
You can do it from recovery too. Use TWRP's file manager to place the flash_erase file in system and do the rest of the procedure

Wiping the 3 partitions can also be done from recovery
[HTC Pico (Explorer)] vijayz:
wipe 3 partition means ?? super wipe ??

---------- Post added at 06:37 PM ---------- Previous post was at 06:27 PM ----------

nd bro just in system na or bin? nd whats this any directory nd after coying flash erease what command i want to give cute_prince one or yours that 3 iteams flash erease system ...cache ...

---------- Post added at 06:39 PM ---------- Previous post was at 06:37 PM ----------

nd bro just in system na or bin? nd whats this any directory nd after coying flash erease what command i want to give cute_prince one or yours that 3 iteams flash erease system ...cache ...
[HTC Pico (Explorer)] Sachin Thomas:
Flash TWRP recovery if you don't have it

Reboot into recovery, mount SD card and system from it

Place the flash_erase file on your SD card

Use TWRP file manager (in advanced menu) to move the file into system

Now continue cute_prince method (setting permissions and typing those commands - given by him)

Then wipe everything except SD card from recovery and install your favorite ROM
[HTC Pico (Explorer)] vijayz:
copying flash erase in system only na or in bin nd after that what command i need to give cute prince or yours that 3command nd whats this "select any directory "means

---------- Post added at 07:20 PM ---------- Previous post was at 06:53 PM ----------

bro for cute prince methord v need to enter "su"na but its saying like not found
[HTC Pico (Explorer)] Sachin Thomas:
Place it in system only

No need to type su when you are doing this from recovery

After typing adb shell you also need to type:

This will change the current directory to system

Then give cute price's commands
[HTC Pico (Explorer)] vijayz:
bro 1 problem when i typed its saying flash erase not found dont know y ?
[HTC Pico (Explorer)] Sachin Thomas:
Did you place flash_erase in system and type "cd system" in adb shell before typing those commands?
[HTC Pico (Explorer)] vijayz:
placed in system only whats in adb shell v need to give commands in terminal command na ?
[HTC Pico (Explorer)] Sachin Thomas:
By typing adb shell you get access to phone's terminal on PC. Didn't you see that in cute_price's recovery procedure?
[HTC Pico (Explorer)] vijayz:
bro i need to do it with out pc coz i dont have pc nd not a pro dats

y could u plz give u r phone number
[HTC Pico (Explorer)] vijayz:
means i want to do with in phone is that possible
[HTC Pico (Explorer)] Sachin Thomas:
If you can type such long commands without errors on a touchscreen then you can definitely do that on your phone
[HTC Pico (Explorer)] vijayz:
bro if so do u guide me how to do this in pc plz

---------- Post added at 03:57 PM ---------- Previous post was at 03:07 PM ----------

plz dude i want to make my phone working:banghead:
[HTC Pico (Explorer)] Sachin Thomas:
Where are you stuck, exactly?
[HTC Pico (Explorer)] vijayz:
means as like u said i put every things through twrp but i was trying every thing via twrp but itz not working so i want to make it work with pc so i want to know all details about it
[HTC Pico (Explorer)] Sachin Thomas:
Did you place the flash_erase in system using TWRP file manager?
[HTC Pico (Explorer)] vijayz:
yea
[HTC Pico (Explorer)] Sachin Thomas:
Now connect it to PC and type "adb shell" in command prompt or terminal if you're not already in adb shell
[HTC Pico (Explorer)] vijayz:
bro now am in collage so

could u plz give u r number

---------- Post added at 04:36 PM ---------- Previous post was at 04:33 PM ----------

so for pc need of sdk or java run time nd all????!
[HTC Pico (Explorer)] Sachin Thomas:
Bro, no one is going to help you if you don't read what others have already posted

cute_prince has already said that you need HTC Sync and adb for this
[HTC Pico (Explorer)] vijayz:
bro i know that nd i have read all those stuff out der nd i installed every thing before but it didnt helped me thatz y i tried through phone
[HTC Pico (Explorer)] Sachin Thomas:
The only thing that you need to do is mount system in recovery and type 'cd system' just before typing that flash_erase command. Then you'll not get any 'flash_erase not found' error. And su is not necessary
[HTC Pico (Explorer)] BleedingIris:
It happened to me too.I know it's strange, but recovery didn't consider flash erase binary as a command or some thing like that. Every other command in the same system/xbin worked,except this one, though its 755¡®d or 777¡®d. only thing that helped is booting a small Rom - and executing the same commands from terminal emulator on device. Some said using derefas¡®s flash-erase binary helped. Some said copying to system/bin helped instead of xbin.But it really didn't work by normal methods.not sure why though?
[HTC Pico (Explorer)] Sachin Thomas:
I think you too had forgot to cd to the correct path. Binaries placed in system/xbin and system/bin get detected within android from all paths. But this is not true in the case of recovery. The dot at the start of the command indicates the current directory. If flash_erase is not in the current directory it won't get detected
[HTC Pico (Explorer)] BleedingIris:
I doubt that, since I tried about 10 times each time making sure of the correct commands-then again, its been a long time and I don't remember and could've made that mistake. However, I'm sure I was able to execute all the other commands from terminal emulate in twrp recovery -like cat ,busybox commands -but only flash_erase gave me flash erase not found.
[HTC Pico (Explorer)] Sachin Thomas:
You're probably right. I think the binaries in system/bin can be invoked from any path. Even if you launch TWRP's file manager without mounting system the system/bin directory is visible. So the recovery might be considering it as something special

[MENTION=4771724]vijayz[/MENTION] try placing the flash_erase file in system/bin and enter those commands
[HTC Pico (Explorer)] vijayz:
bro i tried that nd then it came like mnt mnt2 command not found
[HTC Pico (Explorer)] Sachin Thomas:
You might have entered them incorrectly. If you're using PC then just copy paste them or if you're on phone be careful when you enter them. There's nothing called mnt2 it's mtd2
[HTC Pico (Explorer)] vijayz:
i miss spelled it here could u plz give procegre for do it in pc plz