yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] jwchips:
latest log here. Thanks for taking the time to look into this.
[HD2 Android NAND Development] kokotas:
Thank you. Now I know the Why:good:

Your ext partition has a Label set too and that was causing the problem.

Consider it solved! I think it needs a small patch so that TWRP will handle better this cases.

Regards!
[HD2 Android NAND Development] jonas2295:
it gets started by AD Recovery option right ?

or AD SD...?!

Will flash it as soon as i can :D

Thank you soo much,waited for this all time since i read first about the original project..thx
[HD2 Android NAND Development] arif-ali:
what were you doing? how did you get this error? what were your steps?

I am not a mind reader, where I know exactly what you have done.

Please explain what you did to get this error

thanks.
[HD2 Android NAND Development] arif-ali:
i've not tried magldr, I only tested on cLK

The main thing was to get the buttons working correctly with the recovery, and then i released it

So this is untested by me.
[HD2 Android NAND Development] jonas2295:
Okay i see i will have to switch to clk...thanks ;)
[HD2 Android NAND Development] clio94:
it works in magldr from the usual "ad recovery" menu.But i didnt keep it because of power button use
[HD2 Android NAND Development] siddharth singh:
Here are some errors I observed... Fix permission gets stuck... And sd ext partition can't be restored
[HD2 Android NAND Development] TheInVisibleGoD:
I agree, the end button should be remapped...
[HD2 Android NAND Development] haysnamrip:
i dont know how to explain but here the result:

C:\android-sdk-windows\platform-tools>adb shell flash_image recovery /sdcard/rec

overy-twrp-leo-1.1.0.img

flashing recovery from /sdcard/recovery-twrp-leo-1.1.0.img

mtd: successfully wrote block at 0

mtd: successfully wrote block at 20000

mtd: successfully wrote block at 40000

mtd: successfully wrote block at 60000

mtd: successfully wrote block at 80000

mtd: successfully wrote block at a0000

mtd: successfully wrote block at c0000

mtd: successfully wrote block at e0000

mtd: successfully wrote block at 100000

mtd: successfully wrote block at 120000

mtd: successfully wrote block at 140000

mtd: successfully wrote block at 160000

mtd: successfully wrote block at 180000

mtd: successfully wrote block at 1a0000

mtd: successfully wrote block at 1c0000

mtd: successfully wrote block at 1e0000

mtd: successfully wrote block at 200000

mtd: successfully wrote block at 220000

mtd: successfully wrote block at 240000

mtd: successfully wrote block at 260000

mtd: successfully wrote block at 280000

mtd: successfully wrote block at 2a0000

mtd: successfully wrote block at 2c0000

mtd: successfully wrote block at 2e0000

mtd: successfully wrote block at 300000

mtd: successfully wrote block at 320000

mtd: successfully wrote block at 340000

mtd: successfully wrote block at 360000

mtd: successfully wrote block at 380000

mtd: successfully wrote block at 3a0000

mtd: successfully wrote block at 3c0000

mtd: successfully wrote block at 3e0000

mtd: successfully wrote block at 400000

failed with error: -1

error writing recovery

C:\android-sdk-windows\platform-tools>

i manually copy image file to sdcard and run second command..
[HD2 Android NAND Development] arif-ali:
What size is your recovery partition, it needs to be at least 4.7M
[HD2 Android NAND Development] seanyuan62:
Looks very interesting. Will test and report back
[HD2 Android NAND Development] haysnamrip:
idk which one is recovery partition :)

boot yboot|ro 5M

system ya 150M

cache ya 10M
[HD2 Android NAND Development] arif-ali:
can you run the following command, and send the output

adb shell cat /proc/mtd
[HD2 Android NAND Development] haysnamrip:
dev: size erasesize name

mtd0: 00100000 00020000 "misc"

mtd1: 00420000 00020000 "recovery"

mtd2: 00500000 00020000 "boot"

mtd3: 09600000 00020000 "system"

mtd4: 00a00000 00020000 "cache"

mtd5: 0fac0000 00020000 "userdata"
[HD2 Android NAND Development] arif-ali:
your recovery partition is too small for this to work, It is recommended as for CWR and TWRP for the recovery to be 5M, for future proof.

If you could redo you magldr, and set the size of the recovery to 5M, then it should work
[HD2 Android NAND Development] haysnamrip:
how to change the size to be 5M

sorry for my stupidity :D
[HD2 Android NAND Development] ceylin45:
Is camcorder 720p working?

Thanks
[HD2 Android NAND Development] siddharth singh:
This is a recovery... Not a rom it is like clockwork recovery mod

@arif... Are the problem I stated before genuine or am I only facing it I have not restored anything... But the restore partition option doesn't allow me to do so
[HD2 Android NAND Development] tomoffel:
Hey guys,

what about a charging animation? or the percentage as a "fullscreen-text" at the screen, will its in "off-mode charging"? I think thats really nice, like the old nokias and co. :) maybe activating/deactivating the screen with the home button?

just a suggestion ;)
[HD2 Android NAND Development] siddharth singh:
That would be good but it is a lot of work.. Have to write code for displaying the image of a battery n. All.... And btw... Off mode charging is working
[HD2 Android NAND Development] arif-ali:
Like I mentioned earlier, I have tested nothing other than bringing it up and going through the menus.

The whole point of putting it on here as beta, is for testing and then to start fixing things

I don't have all the time in the world to test everything. So testing done by you guys is very valuable for me then to check what works and what doesn't so that I can concentrate on fixing the problems

thanks for testing
[HD2 Android NAND Development] jwchips:
Great news =). The last thing I don't understand is the quote below - isn't my sd-ext at mmcblk0p2?
[HD2 Android NAND Development] kokotas:
Oh!Scratch that...

I hadn't yet realized the problem.:o

Now testing a new version to handle such partitions (with a Label).

If everything will be fine, I will upload later an update.

Thank you for your feedback.

Maybe this issue should be passed to mainline TWRP, since it has to do with the default way of getting the file-system type.

Here is rev4 of latest TWRP:

1st attempt to fix TWRP's fs-check when a partition has a label.

Changed how TWRP handles the ext partition(s) when parsing the recovery.fstab.

Regards!
[HD2 Android NAND Development] Suhaib10:
I have no luck with the sd version just shows HTC for few seconds and reboots

edit I am using Magldr anyone else have any luck
[HD2 Android NAND Development] jwchips:
Just tried it - no joy. Got a new error e:unable to mount 'dev/block/mmcblk0p2' => '/sd-ext' as 'ext3'

Actual block device:' dev/block/mmcblk0p2', current file system: 'ext3'

New log here
[HD2 Android NAND Development] sunitknandi:
I tried rev 3. But I still have my previous problems.

Will try rev 4 and report. I have got labels on both /sdcard and /sd-ext

UPDATE:

rev 4 is working for me. Successfully created a backup. :) I guess the problem was indeed because of labelled partitions. Thanks kokotas. :)

Dark_Avenger, here's the recovery log for the rev 4 recovery. Maybe you can get an idea by comparing with the old rev 2 recovery's log.

Sent with love from me to you via HTC HD2
[HD2 Android NAND Development] farafr:
+1

I have exactly the same problem.
[HD2 Android NAND Development] kokotas:
Sorry guys. I didn't test the SD version. Basically it is useful for MAGLDR(AD Recovery) and WM(haret) usage. cLK doesn't support it. Don't know how to help you unless I switch to MAGLDR for testing this...

Yes, I thought that too and I'm glad we found the root of the problem.

,

Your log is as expected, except for the /sd-ext mounting error.

Can you mount it by running 'mount /dev/block/mmcblk0p2 /sd-ext' in TWRP's terminal?

Regards!
[HD2 Android NAND Development] ratelutz:
+1 i'm also created a backup successfully with .rev4
[HD2 Android NAND Development] serverless:
Best recovery ever. I tried the sd version (rev4) and it works flawlessly! A lot of options specifically designed for our hd2, just great.
[HD2 Android NAND Development] zexmunze:
Confirmed rev4 fix mounting error.
[HD2 Android NAND Development] pathologo:
kokotas, would it be possible to included additional time zones?
[HD2 Android NAND Development] g.andy:
Great work. It is possible to have a tutorial for all menu of this fantastic recovery!!!

There are many menù that in the touch recovery.

Edit: i try backup rom in sdext and work great!!!

Inviato dal mio multiboot HD2
[HD2 Android NAND Development] pioterek2666:
Winmo version is not working for me phone reboots after htc logo... But thx anyways for making this recovery.
[HD2 Android NAND Development] Sebgti42:
Hello

Same for me with win mobile and haret reboot after black and green htc logo.

Thank you for your job.
[HD2 Android NAND Development] jwchips:
I think so, the command doesn't return any errors but the checkbox to mount sd-ext in mount menu disappears and I still don't get any options for DataOnExt.

latest log.
[HD2 Android NAND Development] kokotas:
SD version works for you? Are you using MAGLDR? If you are using WM and haret you could help out the other guys who can't make it boot.

Possible yes, but there is no need for more, is it?

<object type="listbox">
<placement x="%listbox_x%" y="%row1_y%" w="%listbox_width%" h="%listbox_tz_height%" />
<icon selected="radio_true" unselected="radio_false" />
<background color="%listbox_background%" />
<font resource="font" spacing="%listbox_spacing%" color="%text_color%" />
<data name="tw_time_zone_guisel" />
<listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
<listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
<listitem name="(UTC -9) Alaska">AST9;ADT</listitem>
<listitem name="(UTC -8) Pacific Time">PST8;PDT</listitem>
<listitem name="(UTC -7) Mountain Time">MST7;MDT</listitem>
<listitem name="(UTC -6) Central Time">CST6;CDT</listitem>
<listitem name="(UTC -5) Eastern Time">EST5;EDT</listitem>
<listitem name="(UTC -4) Atlantic Time">AST4;ADT</listitem>
<listitem name="(UTC -3) Brazil, Buenos Aires">GRNLNDST3;GRNLNDDT</listitem>
<listitem name="(UTC -2) Mid-Atlantic">FALKST2;FALKDT</listitem>
<listitem name="(UTC -1) Azores, Cape Verde">AZOREST1;AZOREDT</listitem>
<listitem name="(UTC 0) London, Dublin, Lisbon">GMT0;BST</listitem>
<listitem name="(UTC +1) Berlin, Brussels, Paris">NFT-1;DFT</listitem>
<listitem name="(UTC +2) Athens, Istanbul, South Africa">WET-2;WET</listitem>
<listitem name="(UTC +3) Moscow, Baghdad">SAUST-3;SAUDT</listitem>
<listitem name="(UTC +4) Abu Dhabi, Tbilisi, Muscat">WST-4;WDT</listitem>
<listitem name="(UTC +5) Yekaterinburg, Islamabad">PAKST-5;PAKDT</listitem>
<listitem name="(UTC +6) Almaty, Dhaka, Colombo">TASHST-6;TASHDT</listitem>
<listitem name="(UTC +7) Bangkok, Hanoi, Jakarta">THAIST-7;THAIDT</listitem>
<listitem name="(UTC +8) Beijing, Singapore, Hong Kong">TAIST-8;TAIDT</listitem>
<listitem name="(UTC +9) Tokyo, Seoul, Yakutsk">JST-9;JSTDT</listitem>
<listitem name="(UTC +10) Eastern Australia, Guam">EET-10;EETDT</listitem>
<listitem name="(UTC +11) Vladivostok, Solomon Islands">MET-11;METDT</listitem>
<listitem name="(UTC +12) Auckland, Wellington, Fiji">NZST-12;NZDT</listitem>
</object>

Ok, there is definitely a problem with the mounting command. Last attempt for this year:D Try the new version below :fingers-crossed:

Here is a new version to hopefully fix any mounting errors and a bonus feature;)

HD2's Extended TWRP 2.3.3.0 rev5 changes:

1st attempt to fix mounting problem(s) related to ext partition.

TWRP is now able to restore backups that were made using a CWM Recovery.

All you have to do is copy the entire backup folder (i.e. 2012-08-20.09.12.38) from /sdcard/clockworkmod/backup to /sdcard/TWRP/BACKUPS/htcleo

Regards!
[HD2 Android NAND Development] pathologo:
The time zone list is scrollable!:D

In some older version, I think it was v2.1.0, I couldn't scroll the list.
[HD2 Android NAND Development] jwchips:
Same issue with new version - after mounting using mount checkbox to mount sd-ext disappears and still no option for DataOnExt. I can however browse sd-ext in the file manager. Screen shots and log below:

latest log

Have a great new year!
[HD2 Android NAND Development] Daekin:
that is because you do not have correctly formatted SDEXT...

I have seent this too...

all options and buttons are dynamic based on the device: if you have no EXT partition, some options will not show up - just like mount SDEXT command

btw. where ca I find updater-binary that is compatible with this recovery? my old zips are not working anymore since it is JB recovery API level 3 and older binaries suppor level 2 max?
[HD2 Android NAND Development] jwchips:
When I boot into TWRP and enter 'mount' menu, the option to mount SD-EXT is there. When I click it, it disappears. I have a sd-ext partition, you can see me browsing it in the screenshot.
[HD2 Android NAND Development] cajunflavoredbob:
Easiest way is to simply replace it with the update-binary from the JB gapps package you're using.
[HD2 Android NAND Development] kokotas:
As you may have noticed from the log I've added a triple check for mounting /sd-ext. It did get mounted eventually(with the 3rd attempt) and you were able to see its contents with the file manager but if the checkbox disappeared then I think something must be wrong with the ext3 partition. I will check again the code but if it was something wrong with the code then there should be more cases like this.

This is something that crossed my mind from the first time (reformatting your ext partition with TWRP).

However, this is a problem that I'd like to be handled automatically from TWRP if possible...

jwchips, have you run e2fsck for mmcblk0p2?

You can use the one included in the provided zip since it is compatible. Or take this one linked from TWRP's page.

Regards!
[HD2 Android NAND Development] Sebgti42:
good evening.

i try last nativesd version and it's the same.

it reboot after black screen with green htc logo.

i'm sorry for your big effort for try to help us.

i hope you won't stop your developpement.

keep courage.

by sebgti42
[HD2 Android NAND Development] jwchips:
Okay, I ran e2fsck three times - dump here. Each run came back clean. If I put the sd card in another hd2 running twrp I get the same behaviour, and I can get the DataOnExt box up by inserting a different card in either hd2.
[HD2 Android NAND Development] kokotas:
Reviewing the last logs you provided, I noticed that /sd-ext's size changed and because of succeeding in mounting it,

the 'Used', 'Free' and 'Backup Size' are not null. It should be working ok...:confused:

OK. The specific card and TWRP have an issue. Wouldn't you agree?

Is this card working ok with CWM recovery?

If you have reverted to CWM recovery could you post a log from that?

Regards!
[HD2 Android NAND Development] jwchips:
Agreed. It's worth noting that I've backed up the card and downloaded sd formatter from the sd association. So I can format using that before recreating the partitions using twrp. The only reason I haven't done this yet is to provide you with as much info/logs about my card in its current state as you feel necessary.

Cwm log here. Cwm touch b8 rc1 mounted/unmounted sd-ext without reporting any errors.

[edit] I don't know if it's expected behaviour but I was unable to run e2fsck from TWRP's terminal. It gave an error about needing a terminal connection for interactive repairs. [/edit]
[HD2 Android NAND Development] g.andy:
Up please!!!

Inviato dal mio multiboot HD2
[HD2 Android NAND Development] NYLimited:
One small thing.. I was using an earlier version of TWRP extended (perhaps rev 2, not sure now) to install rev 5 and the installation aborted because of an invalid ZIP file. I did have zip file checking turned on.

I checked and double checked the zip on the PC and it was fine. Recopied it to the sd card and TWRP once again flagged it to be a bad zip.

I went ahead and installed it anyway and, of course, it installed and is working fine, no zip problems.

I have not tried to reinstall it again using rev 5 yet. If you don't see anything obvious in that code I can try it again with rev 5 and save you the log. Let me know.

[ EDIT ] Rev 5 has the same issue. Trying to install the known good zip file claims zip file is damaged and will not install.

Have a great New Year, everyone!
[HD2 Android NAND Development] Kajoe:
Is it possible to make a simple tutorial for making a recovery partition bigger than 5MB (6MB)?

I have read and searched a lot, but don't know how to do that. Thank you very much.
[HD2 Android NAND Development] NYLimited:
It depends on what you are using - cLK or Magldr. I think cLK can do it directly while Magldr would do it through DAF.EXE. In either case you should make sure you have a good Nandroid backup since the process will likely wipe the device! Sorry, can't come up with more at the moment (from a mobile).

---

Be yourself; everyone else is already taken... (via Tapatalk)
[HD2 Android NAND Development] Kajoe:
Thanks. I use Magldr. Now my setting with flash.cfg is the following:

misc ya 1M

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

boot yboot|ro 5M

system ya 320M

cache ya 5M

userdata ya|asize|hr allsize

what do I have to change or have to do? Thanks for your quick reply.
[HD2 Android NAND Development] NYLimited:
This one is easy since I also use Magldr (sorry Kokotas!)

On the second line of the flash.cfg file the word "filesize" makes the partition the same size as the recovery-leo.img file is. I changed it to 8 MB - but you can use any (reasonable) value instead - so I can install various size recovery files:

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

You can also change the file name to be flashed (note mine is different) so it will match your img file or the other way (as long as the names match).

Incidentally, I also increased the size of my boot partition (I use DataOnExt so have plenty of NAND space). No particular reason other than possibly bad blocks in the future. My actual flash.cfg file looks like this:

misc ya 1M
recovery rrecov|ro|nospr 8M recovery-raw.img
boot yboot|ro 10M
system ya 399M
cache ya 3M
userdata ya|asize|hr allsize

​

Wow! Super |<ool! Thanks! (I already clicked the thanks button so you have to settle for the image on the left)

Seems I missed that part when I first looked at your notes!
[HD2 Android NAND Development] Kajoe:
Hi ny_limited

Happy New year for all and I wish everyone a healthy lucky 2013.

Thank you very much. So it it's easier than I thought.:good:

I allready have installed it. Thank you very much for your great help.
[HD2 Android NAND Development] gtbluesky:
Hi gus,you can use this SD version(HD2_Extended_TWRP_2.3.3.0_rev5).I have tested it with magldr and it works well!

You can download it here.http://pan.baidu.com/share/link?shareid=230426&uk=2166115920
[HD2 Android NAND Development] pathologo:
No need to quote the full opening post.
[HD2 Android NAND Development] Suhaib10:
Hey great job just tried it works!!!
[HD2 Android NAND Development] Burag:
Kokotas, do you have any plans to still work on NTFS support?

I'm getting 32 GB mSD soon, and I'm really not 'okay' with 4 GB limit :(

The other idea: maybe we could just abandon this idea, and format whole sdcard as one, big ext3 / ext4 partition, and mount /sdcard and /data here (or whole /system in case of NativeSD)?
[HD2 Android NAND Development] kokotas:
The zip file I've provided is not signed so it is normal for the installation to abort if you have turned 'zip...verification' on.

To be honest I never turn on that optional-check, cause I never sign my flashable zips.

To see if it works properly install a signed zip.

In any case I will look into it..:)

Come on man. Quoting the entire 1st post? What's wrong with "Quick Reply"? Please edit you're post and remove the whole quote.

Regarding the SD Version...

I still don't have a clear answer.. Does the one I provided work for MAGLDR? I don't ask for WM+haret since the feedback is clear.

I've added some test code in TWRP that would in theory add ntfs support, but since I'm missing the binaries it cannot be really tested.

Just need to figure out how to compile native binaries to run on the device.

Regards!

PS: Will post later a new rev6 to fix a bug with CWM sd-ext.%fs%.tar restoring.

PPS: Happy New Year to All!!!
[HD2 Android NAND Development] NYLimited:
Oh, never mind. I misunderstood. I thought it was a simple zip integrity check and the zip directory as well as the individual files in it passed.

Oh well, happy 13 - back to work...

---

Be yourself; everyone else is already taken... (via Tapatalk)
[HD2 Android NAND Development] jwchips:
So am I OK to format my wonky sd card or do you want me to supply any more logs? Did you ever work out why I can mount sd-ext in cwm but have issues in twrp?
[HD2 Android NAND Development] kokotas:
Thank you for helping with the logs. Without your feedback the bug with the partition label would still be present. However, I still don't know the reason of your other issue.

Just one last favor...try the "Check SD Card" option under "Settings" in the new version and upload the log before you go ahead and format your card..

Here is rev6 of v2.3.3.0(For people who are using different theme... UI.XML is changed!):

Fixed a problem when restoring an sd-ext backup that was made with CWM Recovery.

Added an option to run some filesystem checks on the sd-card under "Partition SD Card" button inside "Advanced".

Enabled power key to lock the screen.

NO SD Version since (a)I can't test it(cLK user) and (b)I get no feedback other than "it is not working".

Regards!

EDIT: Re-uploaded the zip cause of bad file name. Thank Dark_Avenger below:good:
[HD2 Android NAND Development] Dark_Avenger:
kokotas, the zip is not flashable... the image file inside zip is called "recovery.img" instead "recovery-leo.img". In the ui.xml you added ONLY the option to check the SD card... isn't it? Or there are other changes?

BTW the option to check the SD card is under "Advanced"... not "Settings" ;)
[HD2 Android NAND Development] Suhaib10:
i am not really sure about how to log it but i used MAGLDR and tried the SD version you posted previously and Magldr would read it like kernel and stuff but after that it would just show a screen with the HTC logo and just reboot. The one posted by gtbluesky on the previous page works with SD maybe check with him for a fix.
[HD2 Android NAND Development] kokotas:
Fixed it just now. Thanks for noticing it.

Yes, just added that option.

Yeap, corrected that too.

Thnx for the suggestion. Will consider it.

Regards!
[HD2 Android NAND Development] NYLimited:
Beat me to it! :) I was about to post that as well...
[HD2 Android NAND Development] Dark_Avenger:
Updated theme for rev6...
[HD2 Android NAND Development] g.andy:
Flash via recovery?

Thanks

Inviato dal mio multiboot HD2
[HD2 Android NAND Development] Dark_Avenger:
No... Copy in folder "/sdcard/TWRP/theme".
[HD2 Android NAND Development] serverless:
Please make a sd version, I have magldr and I have successfully tested every sd version you released.
[HD2 Android NAND Development] kokotas:
Don't know how you were the exception but here is another try. This time I changed the ueventd per marco.palumbi's post :

Lets see if that was it...:fingers-crossed:

Regards!
[HD2 Android NAND Development] NYLimited:
Using the original rev 6 binary Fix Permissions fails. The SD check looked ok before that. If I did it right log should be at link below:

http://db.tt/FCBHFbtA

---

Be yourself; everyone else is already taken... (via Tapatalk)
[HD2 Android NAND Development] Herobs:
Hi,happy new year guys.I have a problem in using sd version.

I translate it into Chinese, and thread it on DFT forum.But we all cant boot the SD version with Magldr.I extrat the twrp folder to the root of my sdcard, but it reboot when my hd2 display "HTC".Can u give me some advices, or both Nand and SD cant support the mag?Will it fix in next updata??

thx for ur great working.Im sorry for my poor English.