yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] Panda_Face:
@Arif-Ali

Can "recovery_5.0.2.3_leo_CWR.zip" be flashed via 4.0.1.4? I tried getting to 4.0.1.4 through 3.0.0.5 but it didn't install and screwed up 3.0.0.5 so I couldn't get into CWM. I just wanted to check before I attempted.

(I would flash from a computer but I won't be in front of one for awhile)

Sent from my HD2 from XDA app
[HD2 Android NAND Development] seadersn:
hi,

this was answered already :) but: compare filesizes ;) if 5.x .img is only a byte bigger than 4.x .img file, it may not work :(

good luck :)
[HD2 Android NAND Development] tobiascrystal:
Can someone please either make a new thread or update this one to show that there is a new cwm version. I would do it but I have no ties and don't want to take any credit for something I have nothing to do with. Thank you all for the update.
[HD2 Android NAND Development] Panda_Face:
Where is it? I've looked but couldn't find it.
[HD2 Android NAND Development] arif-ali:
As we have been working together, the nightlies are build by me, and I release them as is, and therefore not tested and stable, and therefore this doesn't get updated, until people in the community are sufficiently happy that it is working

Unless people want a nightly release thread for this, then sure, I can start this off.

Check my sig, you'll will the results of nightly builds of CWM there
[HD2 Android NAND Development] tobiascrystal:
Thanks, either way works for me. I just thought it would be easier for people to see if it were updated or put in a new thread.

Is there a newer one that is more stable or has more features than the one in the op?

Did you see what I wrote a while back about the new teamwin recovery 2.0? Is it possible for our phones?
[HD2 Android NAND Development] Panda_Face:
That's why I couldn't find it, it's not a forum thread! Thanks Arif-Ali
[HD2 Android NAND Development] arif-ali:
i will have a look, and see if I can get it compiled, and see where I get, give me about a week or so
[HD2 Android NAND Development] Panda_Face:
Thanks Seadersn, it worked just fine :)
[HD2 Android NAND Development] tobiascrystal:
Take your time, I just thought it looked cooler than cwm so other people as well as myself would want to give it a go :-) thanks for the reply.
[HD2 Android NAND Development] arif-ali:
Here's a new thread for it, just finished porting it

http://xdaforums.com/showthread.php?t=1292146
[HD2 Android NAND Development] Lit:
5.0.2.6-20111009_leo.img still not boot on HD2

Latest working release is 5.0.2.3
[HD2 Android NAND Development] cmhtcleo:
K, thanks, will investigate
[HD2 Android NAND Development] Kameirus:
ok noob questions coming lol

i just upgraded from 3.0.2.5 to 5.0.2.3

and when i installed a rom it automatically rebooted my phone after the install was finished is this normal with 5023

also is there a changelog anywhere so i can look at it and maybe not have to ask anymore noob questions lol

Thanks
[HD2 Android NAND Development] padibuz:
QUick question.

On a european HD2 with all the requirements met (HSPL, Magldr, etc) I cannot use CWR for the following reason:

- no matter what version I installed (tied from version 1.2 to version 4.0), after I enter CWR and select ANY option, doesn't matter which, I remain stuck on a screen with the hat logo. I can't back out of this screen, and I need to remove the battery.

Needless to say, I cannot use this method to install any roms.

Does anyone know why this happens ?
[HD2 Android NAND Development] chris10230:
I have seen that freeze on mine but if you wait it tends to show the next screen. Then again I have never seen it on all of the options chosen, only ever going back from the advanced menu
[HD2 Android NAND Development] padibuz:
I've left it on that screen for at least 10 minutes, no effect.
[HD2 Android NAND Development] siddharth singh:
Looks like recovery partition had some bad blocks... Please increase your recovery partition size to 10 mb.. If using magldr... Edit the flash cfg.. Make recovery =10

If clk... Switch to latest beta build and residential recovery by fill comands..

Fastboot oem part-resize recovery:10

Fastboot oem part-commit
[HD2 Android NAND Development] scariola:
Is 5.0.2.6 working yet?
[HD2 Android NAND Development] padibuz:
Thank you for trying to help.

Unfortunately it doesn't work :(

I've edited the .cfg file as per your instructions, but the behavior remained the same. Maybe I'm doing it wrong, can you help me out with a .cfg example ?

Also, I've tried every option available in CWR, and I did find 2 that work, and do not remain stuck on the hat logo. Those are:

- reboot system now

- wipe data / factory reset

These 2 work, the rest do not.

Any ideas ?

edit.

Some more info.

I'm in the recovery menu, and if I select any option and DO NOT press the call button, but press Home or the "windows" key instead, I also remain stuck in the hat logo screen, but if I press any button I can return to the recovery menu.

If I do this and then I select any option and then I press the call button, the hat logo appears, but I do not remain stuck, and can return.

If I press the call button the first time I enter the recovery menu ( I don't touch home or win key) I remain stuck with no other option but to remove the battery.

All of this applies for using CWR via Magldr, I didn't touch CLK so far.
[HD2 Android NAND Development] siddharth singh:
Why don't you try team win recover. Arif posted the link to the new thread..try flashing that..not sure if it works with magldr must probably it will work

As far as the cfg is concerned..you just have to replace the 5 with 10 near recovery
[HD2 Android NAND Development] arif-ali:
nope, I haven't had the time to diagnose what the problem is yet

will have a look at it prob this weekend
[HD2 Android NAND Development] padibuz:
Can't do that either :(

In order to install TWR I need to have CWR flashed. However, also in order to install TWR I need a working android rom. Since I can only flash DAF roms, both exclude each other. If I have a DAF rom installed and then flash CWR, I'll loose the ROM. If I have CWR installed and after that install a DAF rom, I loose CWR.

Basically, in order to use this program I need to have a rom flashed via CWR, which is exactly what I can't do in the first place :(
[HD2 Android NAND Development] arif-ali:
You can inatsll CWR/TWRP at the same time you install a DAF rom

you need to replace some of the params in the flash.cfg, similar to below

misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro filesize boot.img
system ya|rw filesize+10M system.img
cache ya 10M
userdata ya|asize filesize data.img

where you can replace the recovery-raw.img file with anything you want
[HD2 Android NAND Development] padibuz:
In the meantime I've installed it via the CLK method.

IT WORKS !!

FINALLY after all this time I can flash proper roms like everyone else.

Thank you man, you have brought new life to my phone.

Thank you.
[HD2 Android NAND Development] seadersn:
give him a click on thanks button ;)
[HD2 Android NAND Development] arif-ali:
5.0.2.6 fnally working

Hey guys,

I have been working on trying to get the 5.0.2.6 working

finally it is!!! :) :) :)

for some reason koush changed the way it was building, but managed to fix it

It should be all working now

good luck in testing

Edit: Downloads available in the normal places

* RM

* dropbox site, link in my signature
[HD2 Android NAND Development] scariola:
5.0.2.6 working well, backup restore fine from 5.0.2.3
[HD2 Android NAND Development] mpis:
5.0.2.6 it also works well for me.

And what are the differences compared to 5.0.2.3?
[HD2 Android NAND Development] clyder:
Does backup/restore of sd-ext works fine now?

Last time I tried 5.0.2.3. I couldn't restore sdext because in backup it was in tar format and restore needed img.
[HD2 Android NAND Development] arif-ali:
You may need to do anoter backup before it may work,

let me know how it goes if yo try it
[HD2 Android NAND Development] clyder:
No it does not work.

It still doing backup for sd-ext in .tar format and when doing restore (full or just sd-ext) it expects .img and throws an error:

sd-ext.img not found. Skipping restore of /sd-ext.
[HD2 Android NAND Development] mpis:
backup created in 5.0.2.3 also works correctly in 5.0.2.6.
[HD2 Android NAND Development] clyder:
Do you use a2sd....More correctly do you have ext partition on SD?

My comments are based only on that.
[HD2 Android NAND Development] mpis:
Of course, I have 1 gigabyte ext3 partition.
[HD2 Android NAND Development] clyder:
Hm. I have a reiserFS partition.But I dont think that is the problem because restore clearly thrown an error because of missing .img file.

When you do a backup, what format you get for sd-ext, tar or img?

@arif

I have several settings files in ClockworkMod folder. Could it be that old settings files are giving me issues? I will try again later with 5.0.2.6 and will delete entire ClockworkMod folder before that, but just to check your thoughts on that.
[HD2 Android NAND Development] mpis:
in ClockWorkMode 4.0.1.4 - ext3 as .img

in ClockWorkMode 5.0.2.3 - ext3 as .tar

in ClockWorkMode 5.0.2.6 - ext3 as .tar
[HD2 Android NAND Development] clyder:
Nope, settings file dont have anything to do with the issue.

I just deleted CWM folder from SD card, installed 5.0.2.6 again, did another backup.

And again in full restore and only sd-ext restore I get an error for missing sd-ext.img file.

I dont think tar format is the problem because android.secure is also saved like that and it restores withouth any error.

Only thing that I see now as possible cause is the reiserFS.

But on 4.0.1.4 I have no issues at all.

Also there is always chance that I may be doing something wrong, but I have no idea what.
[HD2 Android NAND Development] arif-ali:
Reiserfs may not be supported officially by cwm, will try to see where in the code needs to be changed for it to work for you.
[HD2 Android NAND Development] clyder:
Ok, thanx. If it's too much hastle dont botter with it. I can switch back to ext4. While I feel that reiserFS has slightly better performances, difference is not very big. Maybe it is in my head only :)
[HD2 Android NAND Development] pyrorob:
i had a question.. would anyone know, hypothetically, if you had internal nand formatted as ext4 would cwm still recognize it?
[HD2 Android NAND Development] ph03n!x:
...and can CWM be made to format NAND in EXT4? :)

Swyped from my HTC HD2 running CM7 (Gingerbread 2.3.7)
[HD2 Android NAND Development] pyrorob:
yes, yes it can [EXT4 CONVERSION]
[HD2 Android NAND Development] clio94:
magldr or clk support nand partitioning in ext4; Ιt wouldnt be easier if during the partitioning procedure instead of yaffs2 filesystem,bootloader would format in ext4;
[HD2 Android NAND Development] TheInVisibleGoD:
I'm afraid that's not so simple as that, well... at least for our HD2 NAND!

As I slightly remember, during the initial MAGLDR development, the primary FS that Cotulla tried to implement was EXT, but for some reason, was not possible by that time.

I hope I'm wrong and that Cotulla is working for EXT support in his new MAGLDR version now... :cool:
[HD2 Android NAND Development] pyrorob:
hmm.. well magldr wont come much into play here on nand roms, concerning ext4, since it loads the boot partition, which would stay at raw, and the kernel and initrd then loads the system, as long as the kernel has ext4 support and the init.rc is set to mount the ext4 partitions i would think it would be fine.. im all ready to attempt this, i can modify the init.rc to have the correct strings to mount ext4 and i know most kernels support it (if not all..) i just would like to know that if i try to install a rom with cwm, would it see the ext4 formatted partitions so it could install...
[HD2 Android NAND Development] MarkAtHome:
Well, I must have misunderstood. RM just reverted me to 3.1.0.0. Should I be telling RM that I have a phone other than an HD2? :(
[HD2 Android NAND Development] TheInVisibleGoD:
I might be seeing things in a very wrong way but, how MAGLDR (or cLK) won't come much into play here? At least we need something added to bootloader, so it can recognize and boot a different FS, I'm I wrong? To be honest, I hope I'm wrong...

Give it a try, we're all anxious about the results...
[HD2 Android NAND Development] arif-ali:
Not to worry, the re-creation of the config file that displays the version is not the same as before. We are figuring out how to fix this. But it is still the version you downloaded

it's nothing to do with the bootloader, as the init.rc in the ramdisk mounts the /system and partitions. It would need to have some kind of dynamic way to do this. But it is possible.

It also depends on what CWM script has in formatting the /system, /cache and /data. So there are a lot of variables
[HD2 Android NAND Development] mpis:
In RM are only these versions or 3.1.0.0.
[HD2 Android NAND Development] arif-ali:
Go into ROM Manager

Touch Download ROM

Touch CWR Unofficial

Now Touch CWR 5.0.2.6
[HD2 Android NAND Development] TheInVisibleGoD:
Glad to read that... ;)

So... who's going to test that for us all? :D
[HD2 Android NAND Development] arif-ali:
The new recovery_5.0.2.6_leo_CWR.zip, under http://cyanogenmod.arif-ali.co.uk/recoveries changes the version of CWM in the database as well, so when you go into RM, you will see the correct version

enjoy !!! :)

I will change the rest soon
[HD2 Android NAND Development] 10507:
Does the new recovery work with reiserFS ext partition?

thanks
[HD2 Android NAND Development] arif-ali:
Correct me if i am wrong; I'm pretty sure it worked before, I don't see why it wouldn't now
[HD2 Android NAND Development] 10507:
Thank you for your clarification.
[HD2 Android NAND Development] MarkAtHome:
Thanks, arif-ali. Has the IMG vs TAR issue been resolved?

--
[HD2 Android NAND Development] kantjer:
After flashing the new recovery_5.0.2.6_leo_CWR.zip the version in RM wasn't changed. After running the extracted change_version.sh in GScript the correct version is now shown in RM.

Thanks.
[HD2 Android NAND Development] kaiserlein:
For me flashing the zip was sufficient.
[HD2 Android NAND Development] duhhh:
try to flash 5.0.2.6 but got error
[HD2 Android NAND Development] 10507:
flashed the new recovery and everything works fine. thanks
[HD2 Android NAND Development] D3LTA:
+1 Same here
[HD2 Android NAND Development] arif-ali:
Can you get me the recovery log to exactly what the error was

is your recovery partition 5M?
[HD2 Android NAND Development] duhhh:
yes my recovery is 5M
[HD2 Android NAND Development] seadersn:
what's the result when you do the flash_image method from inside android? all blocks successfully written or aborting after ~ 12-15 blocks? when aborting, your boot partition is too small ;) you have to reflash magldr then, with fixed boot partition size of 5mb. you can do a backup first and restore it to the new partition layout and then flash new recovery.
[HD2 Android NAND Development] arif-ali:
That shows that your recovery partition is not 5M, can you send me the result of "cat /proc/mtd"
[HD2 Android NAND Development] duhhh:
Sry for noob question,but where I can take this :(
[HD2 Android NAND Development] arif-ali:
adb shell cat /proc/mtd

With your phone connected to pc
[HD2 Android NAND Development] duhhh:
Oh,I don't use adb.tomorrow I'll flash new rom and reflash everything then see what happened with recovery 5.0.2.6
[HD2 Android NAND Development] arif-ali:
You could run it in terminal as well
[HD2 Android NAND Development] duhhh:
and here is my flash.cfg
[HD2 Android NAND Development] clyder:
change this line

recovery rrecov|ro|nospr filesize recovery-raw.img

to

recovery rrecov|ro|nospr 5M recovery-raw.img

And reflash recovery from magldr. You wont have problems like this after that.
[HD2 Android NAND Development] duhhh:
ok I'll try,but tomorrow ;)
[HD2 Android NAND Development] MarkAtHome:
I, too, was unable to flash the CWR via MAGDLR.

Extracting the IMG to my PC and running DAF along with my flash.cfg did the trick.

Backup & restore work as they should.

What does the above change do?

--
[HD2 Android NAND Development] arif-ali:
It makes the size of the recovery to a fixed 5M, rather than dynamic wrt the size of the recovery image
[HD2 Android NAND Development] arif-ali:
This has indicated that your recovery is at 4.2, and not 5M, and that is why the recovery didn't flash; and nothing to do with bad blocks
[HD2 Android NAND Development] MarkAtHome:
You lost me, but I'll search a bit. Thanks.

--
[HD2 Android NAND Development] duhhh:
ok I got it :)

1.Task29

2.Flash MAGLDR

3.Flash Recovery 5.0.2.3 with recovery rrecov|ro|nospr 5M recovery-raw.img

4.Flash Recovery 5.0.2.6

thank you guys ;)
[HD2 Android NAND Development] MarkAtHome:
Hi arif-ali -- Ok, so you want me to make this change:

(Currently)

misc ya 1M

recovery rrecov|ro|nospr filesize recovery-raw.img

boot yboot|ro 5M

system ya 180M

cache ya 5M

userdata ya|asize|hr allsize

(Change To?)

misc ya 1M

recovery rrecov|ro|nospr 5M recovery-raw.img

boot yboot|ro 5M

system ya 180M

cache ya 5M

userdata ya|asize|hr allsize

I have no problem following your lead, but would appreciate it if you would tell me in simple terms how I might see the resultant benefit? :confused:

I certainly appreciate your patience with me!
[HD2 Android NAND Development] seadersn:
jep, your change is correct, mark :)

benefit is bigger recovery partition with fixed size of 5mb, which ensures the ability to flash future recoveries that may be bigger than 4,2mb (which was your previous partition size).

(if i understood you correctly reg. "resultant benefit" :))
[HD2 Android NAND Development] MarkAtHome:
Thanks, seadersn. Yes, you understood what I was asking. ;-)

--
[HD2 Android NAND Development] lorezz:
is it possible to have the multiboot functionality on HD2 like the one in Nexus One thread....?
[HD2 Android NAND Development] MarkAtHome:
Is it possible to convert this to ext4?

--
[HD2 Android NAND Development] dude0316:
Clk 1.6.5de allows sdboot meaning you can run a rom from sdcard look through this thread and u will find everything u need cheers
[HD2 Android NAND Development] B.Maximenko:
Installed 5.0.2.7 on cLK.

sd-ext seems to be working, though I just made a test backup/restore, didn't see if it really restored data.

The point of post is - "Advanced Restore" menu item doesn't work, it says it can't find any backups, while "Backup" and "Restore" items do work.
[HD2 Android NAND Development] seadersn:
this might be connected to new internal / external sdcard feature. might... because normal restoring is working; strange :D

so, for now, 5.0.2.6 is working, even in terms of being able to restore sdext partition? when some peoples are confirming this, i will update first post with it as latest stable version :)
[HD2 Android NAND Development] clyder:
5.0.2.6 works fine with full restore and individual sd-ext restore with ext4. I guess that it works well with ext3 alsso, but havent tried it. Doesn't work with reiserFS. Maybe that should be mentioned in OP.
[HD2 Android NAND Development] Rick_1995:
Uhm guys, can the /proc/cmdline flag which triggers off-mode charging be changed to the standard "androidboot.mode=charge" instead of the "androidboot.battchg_pause=true" being used currently ?

This will not break anything with magldr, and instead of changing the condition to launch the charging daemon, you can use a OR flag until later versions of clk are stable enough ?

This will also help lateron when we merge our codebase with caf or cm in future if possible or required.
[HD2 Android NAND Development] MarkAtHome:
I can confirm that.

--
[HD2 Android NAND Development] arif-ali:
Not sure what and where it is being set, as I have just grepped through the whole of CM source code to find the relevant parts, but nothing. It could be that the offmode charging binaries have them in.

Will continue to investigate
[HD2 Android NAND Development] Rick_1995:
Yes arif, that has to be changed in the offmode charging binary.

You might find this thread useful :]

Also you could hold a vote in this thread and see if people prefer the current method of just the led or the idea of powering up the display and showing some info like battery charge, estimated time left for complete charge etc... and if required instead of using the panel to show that info, we could use different led color or blink rate to output the current battery level.
[HD2 Android NAND Development] B.Maximenko:
Well that would be better than just red led, but this is the last thing worth your time imo :)
[HD2 Android NAND Development] lorezz:
idem....

btw 5.0.2.6 seems to work properly....
[HD2 Android NAND Development] ph03n!x:
@arif - is it possible to have a recovery that can format the NAND in EXT4 (instead of YAFFS2)? I remember seeing this being asked, but not sure if anything came out of it...
[HD2 Android NAND Development] seadersn:
nope, it isn't possible for now because of nand vs (e)mmc, as i understood :( my testimonials with ext2/3 in kernel and recovery stuff were unsuccessful, too :(

i will change first post now to latest 5.0.2.6 version now; and quit the developing of android for hd2 now :) it's enough; RL is catching me and i really need my energy there. i will assist hyperdroid team in future, too, but not that way it was the last three / four months. assisting for this device, which is getting only older, is done for me :(

have fun @ all :D maybe we will see us again in the sensation or sgs2 or ... section again; but earliest in 5-6 months ;)
[HD2 Android NAND Development] YZ:
Thanks you so much for all the developing you have done for the hd2! Without devs like you.. the htc hd2 would be a sucky winmo 6.5 device..

Thanks again Seader! :)
[HD2 Android NAND Development] seadersn:
k, first post changed :)

but nope: the real work was done by ppl like cotulla, hastarin, charan and many more; i grabbed it and changed it, and added some stuff :)

damn, i need a new keyboard again...
[HD2 Android NAND Development] Bologna:
:(

++++++++++++++1!!

Thanks fol all Seadersn!!

Also for releasing your kernel!
[HD2 Android NAND Development] LordDeath:
I need to change my partition layout because my current CWR partition is too small for the 5.0.2.6 release.

Afair CWR 5.x is using a new file format for nandroid backups. Can I still restore my CWR 4.0.1.4-backups with CWR 5.0.2.6?
[HD2 Android NAND Development] anthnhlt:
Blue Txt

I installed this version from a post in another thread. When I installed it I noticed that the text was blue, is that true for everyone? It is hard to read with the black background. Thx!
[HD2 Android NAND Development] Bologna:
blue for everyone yes, but easy to read here...I love blue color :p
[HD2 Android NAND Development] habitat22:
Installed v5.0.2.6 via CWM and everything is working, thanks!

Blue color is cool : ) and better to read!
[HD2 Android NAND Development] tkpamorn:
Thank alot for new CWM
[HD2 Android NAND Development] rashidkn:
:D:D:D:D:D:D:D+1
[HD2 Android NAND Development] tmihai20:
Did anyone encounter a problem with deleting the Dalvik cache? I had problems booting my HD2 after trying to update the Spirit FM radio app and only 2 things changed in my environment: I flashed CWM 5.0.2.6 and I tried to update Spirit FM radio app. I noticed that there was no Dalvik cache folder on my EXT partition. I cleared my Dalvik cache (even in Recovery log there was a message that the folder could not be found). The missing Dalvik cache folder appeared not to be created after trying to update Spirit FM. I don't know what was responsible for this, I asked the developer of the app as well.
[HD2 Android NAND Development] seadersn:
sounds like rom related problem; or script thinfy; or sdcard messup, or... but not recovery ;)