yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] zyonee:
Ok, so I tried compiling it for my Nexus S. I'm not about to back up my internal SD card just to test partitioning (which I'm not using on my internal SD anyway), but the menu seems to be working. I'd really appreciate it if someone out there either has a spare Desire that they're not using or at least a spare SD card to test this on. :)
[Desire Android Development] allgsmnetwork:
please addeed support partition EXT4 also AMON-RA :(
[Desire Android Development] zyonee:
I'm not sure how to do that. Like I've said earlier, I'm more or less just a porter at this point, I port j_r0dd's source code to other devices.

And on a second note, isn't there already ext4 support in this version?
[Desire Android Development] AlxMAX:
In extendedcommands.c, a partitioning command is first formatted like this:

sprintf(cmd, "sdparted -es %s -ss %s -efs ext3 -s", ext_sizes[ext_size], swap_sizes[swap_size]);

One needs to replace ext3 with ext4 (sdparted is a script which accepts ext4 as parameter in order to format /sd-ext as ext4). If you have kept the function I have sent you the last week, that one should have the change.
[Desire Android Development] zyonee:
Sounds good, I'll take a look at it within a couple of days. :)
[Desire Android Development] zyonee:
Ok, I'm not a great programmer, but I attempted making a menu choice between ext3 and ext4 in partition_sd_card(), so that between selecting ext size and swap size, you'll also get to choose between ext3 and ext4. I think the menu is working, but I won't re-partition my internal SD card on my Nexus S (don't want to make a huge backup), so I need someone with an external SD to test it for me. Does ext3/ext4 selection work?

I'm unsure wether I formatted the sdparted command correctly (see attachment, I've made comments where I added stuff)

Desire_recovery-clockwork-5.0.2.3.111005-j_r0dd_mod.zip

Full source can be viewed on my github repo as usual.
[Desire Android Development] monopoly:
Hello,

whats wrong ?

i download a latest Desire_recovery-clockwork-5.0.2.3.110925-j_r0dd_mod.zip, unpacked an img file from this zip file, run unrevoked app, choose Custom recovery from menu File and connect phone. phone i restarted and booted to Android but when i reboot again to recovery, i have always old version of CWM 3.0.0.5.

How can i upgrade to the newest version please ? I have rooted Desire (by unrevoked) with HBOOT.

thanks
[Desire Android Development] zyonee:
I think you need unrevoked 3.14 and/or run a Sense 2.2 ROM to make it work. Somebody correct me if I'm wrong. I'd try AlphaRev instead, and when you have S-OFF, you can flash img files with fastboot, regardless of what ROM is installed.
[Desire Android Development] AlxMAX:
I have changed some code in the partition_sd_card.txt file that you have posted earlier:

added a new variable, ext_fstype_headers, and modified the call to get_menu_selection in order to show the correct question to the user;

changed the call to sprintf when formatting the sdparted system command.

I have attached the modified function.
[Desire Android Development] zyonee:
Version 5.0.2.6

New version and changelog in the OP. Please test. :)
[Desire Android Development] zyonee:
I just saw your post now. Yup, thanks! I managed to figure it out with a little research on google and did the same changes myself. But I should still thank you for pointing out the possibility to let sdparted use different fs types. The whole thing is compiled and included in the latest version. I tested it a little on the wife's Nexus One, and it seems to work well.

Another question, how does CWR 5.0.2.6 handle backup and restore of sd-ext in ext2, ext3 and ext4? Is it compatible with all types, and does it also restore the correct file systetem according to what was backed up? Because, the only thing I touched was the partitioning bit.
[Desire Android Development] Tseng17:
Download & flash again, it now shows 5.0.2.6

The interface still shows 5.0.2.3.
[Desire Android Development] zyonee:
Weirdness. I'll have to look at it...

Edit: Exactly where do you see the different versions? ROM Manager will probably show an older version. I've looked through the source code and can only find 5.0.2.6. If you're seeing an older version, then it either didn't flash properly or something was wrong when I compiled that version. You can test if it's 5.0.2.6. Go to the Advanced menu, click "Partition SD card". If you get asked which file system (ext2/ext3/ext4), you have the 5.0.2.6. ;)
[Desire Android Development] remalifrank:
Just flash and shows 5.0.2.6.

Also check the Advanced Menu and shows (ext2/ext3/ext4)
[Desire Android Development] caocongcy:
i can‘t download it. can you sent the newest one to my email: caocong_zero@qq.com?

thx
[Desire Android Development] zyonee:
I put it in my 4shared account too. You can download it here.
[Desire Android Development] caocongcy:
i'm sorry. i can't download it either.i'm in china. could you put it to 115 Network hard disk. sorry for my bad english. thx.
[Desire Android Development] zyonee:
I'll e-mail it to you then...
[Desire Android Development] caocongcy:
Received. Thank you very much
[Desire Android Development] yjagota:
Hello Guys,

I am having a problem while backing up. This error is shown after the backup completes:

Error while making a backup image of /sd-ext!

The error occurs after the sd-ext backup progressbar completes. The data seems to get copied too as a file named sd-ext.ext4.tar is also created in the backup.

This is happening everytime I try to take a backup. I am using version 5.0.2.0, Cyanogen 7.1 and Darktremor A2SD. And almost after every try, one or more of my applications which are installed in sd-ext go missing. Also, I tried 4Ext Recovery but the same error occurs in that too.

How can I check my card for errors and fix them?

Any help will be highly appreciated.

EDIT:

The last time I tried to take the backup (to find the exact error to post here) 2 more of my applications went missing. The strange thing is, one got installed, but the second one is showing "Install" button, but when trying to install, tells me that "Application already exists".

2nd EDIT:

I fixed the issue by using adb and e2fsck command. Found a lot of errors in my sd-ext partition. After running e2fsck, the backup is getting done perfectly fine.
[Desire Android Development] zyonee:
That's good to know. I think others have complained about CWM not backing up their sd-ext correctly. Maybe they have the same problem as you did. Good work. :)
[Desire Android Development] AdrianE46:
I installed version 5.0.2.6 of this recovery through unrevoked while re-rooting (after i used a RUU to return to stock) and now i'm haveing a problem. It seems to work perfectly fine, got cm7.1 on it, but I can't get a2sd working on it. Every time I open the GUI app it shows that I have 1.5GB ext partition, then I check all the boxes (and it says reboot is required) and reboot. After rebooting I open the app and the boxes are still ticked and saying reboot is required, but now it displays there is no sd ext (SDEXT: --). I really need some help with this, please.
[Desire Android Development] zyonee:
If the recovery created the ext partition correctly (use a partition editor and a microSD card reader on your computer to look at it), it's not an issue with the recovery itself. Maybe you created an ext4 partition while the kernel only supports ext3? Or maybe your kernel doesn't support ext partitions at all? I don't know, but that's where I'd start looking, provided that you know for sure that the recovery has in fact created a working ext2/3/4 partition.
[Desire Android Development] AdrianE46:
The sdext partition on the sd card was made with amonra recovery and is ext4 i believe. I've used it flawlessly for months and now I went back to stock for warranty reasons and now that I re-rooted I just used the same sd card with it's old partitions intact. So I dont think it's the partition itself to blame.
[Desire Android Development] AdrianE46:
Tried using some AOSP kernels together with CM7.1 and still nothing. Sometimes after i select all the boxes in S2E and reboot it gets stuck on HTC boot logo.

---------- Post added at 09:38 PM ---------- Previous post was at 09:07 PM ----------

Anymore input would be appreciated. Please. :))
[Desire Android Development] zyonee:
Maybe the order of the partitions are the cause? Just a guess.
[Desire Android Development] AdrianE46:
This exact setup worked flawlessly before. Only thing that changed this time was the recovery. Now, the RUU i used previously to return to stock won't work. Wth? :)
[Desire Android Development] zyonee:
No idea then, sorry. :o
[Desire Android Development] Klewe:
Had this problems with this mod:

- SD-EXT seems to not be copied properly in a nandroid

- Problems with writing SD-EXT when installing new Rom (the progress bar stuck on SD-EXT)

- Progress bar stuck at SD-EXT on restoring nandroid

Don't know if I'm the only one, but flashed back to 5.0.2.0 and everything is fine again!

Please check.

My Desire:

- Amoled

- S-OFF mit Alpharev CM7 r2

- HBoot 0.93.1000

Get back to me if you need to know something else! Always ready to help!
[Desire Android Development] zyonee:
Please try this version and see if it works any better.
[Desire Android Development] zyonee:
New version

Version 5.0.2.7 in the OP.
[Desire Android Development] zyonee:
New version

OP updated!
[Desire Android Development] Mr Revhead:
Um, n00b question... But how do you install this?
[Desire Android Development] jimmkind:
would it be possible for you to post a recovery straight from koush. Without any mods?

Tack
[Desire Android Development] zyonee:
Flash it using unrevoked 3.14 or fastboot. Either method is quite simple and are described in this forum. ;)

Here's the official 5.0.2.0 version.
[Desire Android Development] pchtc:
sd-ext4 issues

i have 512 mb ext4

never had issues with amon-ra

installed official 5.0.2.0

could backup but freez at restore sd-ext

restored using amon-ra

then flashed your 5.0.2.7

same issue

can backupno problem

but cant restore sd-ext

it just freezes

would it help if i partition using cwm

my card was originally partitioned using amon-ra

for now ihave reverted to amon-ra 2.0.1

i do like cwm especially the modified 5.0.2.7

is there anything i should do or should i just stick to amon-ra
[Desire Android Development] zyonee:
In my experience with the Nexus One, partitioning did work with CWM, although it was with version 4.x.x.x. I don't know if repartitioning with CWM will do any good, but if you have a spare SD card, you could try it.
[Desire Android Development] god2pac:
can i mount it in root operation with unrevoked? can i choose custom recovery and install it in place of 2.5.0.7?

this question, becouse i will to root it again, and so i think to install last recovery ahead.

Thanks
[Desire Android Development] zyonee:
Installing it as a custom recovery image in unrevoked is certainly one way it can be installed, yes. Provided that unrevoked doesn't complain that you have the wrong firmware version.
[Desire Android Development] sinsnowman:
Hi is there any fake flash version available? I can't flash recovery image coz I've got no S-OFF and will not be getting it.
[Desire Android Development] zyonee:
I don't know how to make one. Maybe someone else can?
[Desire Android Development] teorouge:
Thanks, did you try full wipe with "new" 3.2.0.0? Old 3.2.0.0 didn't work correctly, 3.1.0.1 did.
[Desire Android Development] zyonee:
Haven't tried anything in this version, since I don't own a desire. This is the same 3.2.0.0 that I released earlier this week. Same .img, if that helps.
[Desire Android Development] zyonee:
I edited 4.0.0.2, adding j_r0dd's mods and compiled it. Works well on Nexus One and Nexus S. No more sdcard mounting bug, it's been fixed. Can't test it on any other models myself. Updated first post of this thread.
[Desire Android Development] Nuntius:
Hi,

Firstly, Thanks for the recovery!

Secondly, can anyone tell me when you create an EXT with the recovery:

1. Is it creating an EXT4 or 3?

2. Is it better (recommended) to create an EXT with GParted?

3. EXT 4 or 3?

4. Swap or no swap?

5. If yes, 32Mb is OK?

Sorry for the wee bit off subject question but I read everything and its opposite so if anyone can help me. Huge thanks ;)
[Desire Android Development] tomme45i:
I can confirm that on the new version 4.0.0.2 there is no more sdcard mounting bug :) zyonee thank you for compiling this version with j_r0dd's mods.

I haven't heard before about j_r0dd's mods, but now when I try this version, I love it! Now I don't want a usual version :p zyonee please if you can, make this recovery with j_r0dd's mods up to date.

Cheers
[Desire Android Development] Nuntius:
Well it seems that it's working now (see first post)
[Desire Android Development] zyonee:
Yup, I think all j_r0dd did last 24 hours was to integrate his changes into 4.0.0.2. So this should be about the same thing as his latest "original" version.

Glad to hear it. :)
[Desire Android Development] Ultrakiller:
what about the sdcard mounting bug? :confused:

Today the links do not seem to work :o

Edit: service is back, links are back to work :)
[Desire Android Development] zyonee:
Like I said in the original post, the sdcard mounting bug is now fixed. Thank Koush for that. :)
[Desire Android Development] tomme45i:
Yes I know, as I said...

I talked about his mods, not about the recovery itself, cause I know the bug we was talking is fixed in 4.0.0.2 not by j_r0dd.
[Desire Android Development] keyra74:
updated to 4.0.0.2, no usb mount problem

no : 10x no in menu, wipes are all in same folder

i love that :)
[Desire Android Development] sergmeister:
This version is compatible with restoring older cwm backups? and it will restore all partitions of backup? cos i heard there were problems restoring sd-ext on 4.0.0.2
[Desire Android Development] Nuntius:
Yes I know but what's the difference? (between j_r0dd's mods and zyonee's working recovery?)
[Desire Android Development] zyonee:
Should be no difference now that he's released 4.0.0.2 with his mods.
[Desire Android Development] zyonee:
It should be, but there might be issues with ext4 partitions. Not sure about this yet.
[Desire Android Development] teorouge:
Still not able to full wipe with 4.0.0.2. :(
[Desire Android Development] tommeke19:
How can I install this mod?

Do I have to rename it to PB99IMG?

EDIT: I used Fastboot commander and it worked now :-)
[Desire Android Development] Jinson7:
Could I ask how the key test works?

Is it using the bravo-keypad.kl?

It's just when I do this it gives me strange results for my volume keys...
[Desire Android Development] zyonee:
It's just straight from the Nexus S source, I haven't changed anything.
[Desire Android Development] ayk33:
zyonee thank you SOOOOOOOOOOO MUCH for this great and hard work. it works perfectly for me...please keep doing such good stuff :D
[Desire Android Development] ranasrule:
can this be flashed via recovery ?
[Desire Android Development] ayk33:
try androidflasher...so easy and it works :)
[Desire Android Development] AlxMAX:
Is there a way to get the modified source files?
[Desire Android Development] zyonee:
http://db.tt/hMAZ0Ah
[Desire Android Development] AlxMAX:
Thank you!
[Desire Android Development] sonyboypatrick:
could someone make it cyan like in the originial thread? Would be so nice :p
[Desire Android Development] zyonee:
Even better, j_r0dd's official source code:

https://github.com/j-r0dd/android_bootable_recovery
[Desire Android Development] suiller:
tested backup & restore, both works

tested with latest oxygen (no ext partition), I don't know if it will work with ext partition too... I don't have it so I can't test anymore :D
[Desire Android Development] FreshNClean:
Fellas,

I tried to flash like this:

# /data/local/flash_image recovery /sdcard/clockwork4.img

but i got these errors:

mtd: erase failure at 0x00000000 (I/O error)

mtd: erase failure at 0x00000000 (I/O error)

mtd: skipping write block at 0x00000000

mtd: erase failure at 0x00040000 (I/O error)

mtd: erase failure at 0x00040000 (I/O error)

mtd: skipping write block at 0x00040000

mtd: erase failure at 0x00040000 (I/O error)

mtd: erase failure at 0x00040000 (I/O error)

mtd: skipping write block at 0x00040000

.

.

.

.

error writing recovery: No space left on device

Does anyone have any idea why I could be getting these errors?
[Desire Android Development] k3lcior:
You have to flash recovery.img in fastboot... not in recovery.
[Desire Android Development] FreshNClean:
I'm not in recovery, I'm using a terminal emulator.

I can't flash in fastboot because I can't get S-Off.

Does anyone know what "mtd" stands for? Does it have something to do with the misc partition? Anyone experienced any similar errors?
[Desire Android Development] theooo:
Hey dude, thanx for compiling this recovery for us desire users, but any chance to post md5 checksum for recovery images? Just to make sure no one flashed corrupted file. Thanx again :D
[Desire Android Development] ptr_hamilton:
I tested it with sense rom from baadnwz and ext partition hasn't been restored properly. Some settings have been lost.

Back to 2.5.0.7 and everything is fine. Never had any issues with it :D

Anyone knows if there's a modded version of 2507 with confirmation menu?

Thanks Pete
[Desire Android Development] zyonee:
I'll update all my compiles to 4.0.0.4 tomorrow, and hopully ill also remember the md5 sums. ;)
[Desire Android Development] mihaibuda:
Can i try this on my Desire S? Now i have 3.2.0.0
[Desire Android Development] zyonee:
If CM7 sources support Desire S, I could try to compile a version for it, but the version in this thread won't work on Desire S...

Edit: Couldn't find Desire S as a device when compiling CM7, so I guess it'll have to wait.
[Desire Android Development] zyonee:
OP updated. Version 4.0.0.5.

The recovery shows 4.0.0.4, but it's only cosmetical. Android.mk in the source tree shows version 4.0.0.5.
[Desire Android Development] keyra74:
nope mine shows 4.0.0.5 or i drank...
[Desire Android Development] vnvman:
Link down :(
[Desire Android Development] zyonee:
Weird. My Nexus S compile of the same source code shows 4.0.0.4. However, I can't find the string "4.0.0.4" in the source code itself, so maybe it failed to overwrite my NS recovery.img when compiling. I'll try compiling mine again and will remove the comment about the wrong version number. Thanks. :)

Edit: I did a "make clean" and recompiled mine. Now mine also shows 4.0.0.5. I hope it's only my NS version and that no other compiles were affected by this. Desire version is confirmed then.

The link is working fine here.
[Desire Android Development] bugfix2k:
Back to 4.0.0.2 for me. When I use 4.0.0.5 I can't take nandroid backups, no error message or anything but nothing happens when I click backup in recovery :(
[Desire Android Development] zyonee:
Ouch. Maybe koush changed something in his source that caused this problem. Thanks for testing!
[Desire Android Development] Sebby:
can't restore i get a error can't format ext

back to 3.1.0.1 is the best for me so far

rom incertcoin 1.0.8
[Desire Android Development] suiller:
4.0.0.5 works here (oxygen) thank you ;)
[Desire Android Development] zyonee:
I'm starting to think that all these issues are only sd-ext related. Can anyone without an sd-ext partition (if there are any?) confirm if backup/restore is working on 4.0.0.5? Just so that we can isolate the problem.
[Desire Android Development] vnvman:
Right away sir :)
[Desire Android Development] suiller:
yep you are right

just checked & all works as expected (backup & restore), of course I don't have any ext partition

my setup is very simple: original ox table + latest oxygen without ext partition
[Desire Android Development] vnvman:
Same here, working flawless ;)
[Desire Android Development] bugfix2k:
Then sd-ext is the problem since that's what differs between yours and my setup :)
[Desire Android Development] bmonster:
3.1.0.1 is the newest working version, all the rest are useless.
[Desire Android Development] zyonee:
Useless for you, maybe. The only real issue is ext4 support, which I and especially other (real) developers are looking into. Try to be a bit objective and constructive with your critisism and we should hopefully have everything working soon. ;)
[Desire Android Development] zyonee:
Then it's confirmed, the problem lies with ext partitions. Probably specifically ext4 (and maybe ext3) and not ext2. Will keep searching for solutions. The Desire HD devs seem to have found a way to compile an ext4 compatible recovery. I've asked them for some advice about implementing it in "my" source code.
[Desire Android Development] bugfix2k:
I've got a sd-ext 512MB ext3.
[Desire Android Development] zyonee:
Ok, so maybe it's ext3 and ext4 that are unsupported/buggy. I'm fairly convinced that if we get ext4 working, it will also be backward compatible with ext3.
[Desire Android Development] ceylin45:
how can i load? thanks
[Desire Android Development] mastersheva:
how to install this mod recovery?
[Desire Android Development] suiller:
trough adb, open the zip & rename .img as recovery.img then from adb :

adb flash recovery recovery.img
[Desire Android Development] teorouge:
Don't think it's a minor issue: sd-ext is a part of the system and everything later than 3.1.0.1 can't handle that correctly so I'd agree with the guy saying all post-3.1.0.1 versions are bugged and shouldn't even get released. ;)
[Desire Android Development] zyonee:
Well, this is actually the bleeding edge versions. Maybe I should write in the OP that this is being released for testing and experimenting. I think I'll do that. :)
[Desire Android Development] Meaple:
Prefer this mod to official version. Keep up the nice compiling :D

Is there any bugs at all or have they been ironed out well?
[Desire Android Development] zyonee:
Glad you like it. It's j_r0dd's mod. There are apparently some bugs with ext4 which I hope can be solved soon. :)
[Desire Android Development] keyra74:
can confirm bugs, it doesn't wipe my ext4

it's an ext3 in fact... doesn't change the fact that it doesn't wipe it
[Desire Android Development] ptr_hamilton:
j_r0dd mod of 3.1.0.1 for Desire

Also tried 3.2, 4.0.0.0 and 4.0.0.2 with my rom and sadly they didn't work as expected. Whereas I think that 4.0.0.5 backed up the most of my ext partition though not everthing :(

As almost everbody says 3.1.0.1 is working with sd-ext and I'm on Insertcoin - is there anybody who has an image of 3.1.0.1 with j_r0dd's modification?

Or maybe the sources of it??

Thanks a lot

Pete
[Desire Android Development] k3lcior:
I would like 3.1.0.1 aswell.. :rolleyes:
[Desire Android Development] zyonee:
I don't think j_r0dd compiled any recoveries for Desire. I started doing it with 3.2.0.0, so you probably won't find it.
[Desire Android Development] ptr_hamilton:
Yes and if we'd find the sources of his 3101 mod - would you be able to compile it for desire?

Btw I'm trying to find the sources in the meantime :-)
[Desire Android Development] zyonee:
I guess it should work. I'd simply back up my working directory, empty it, copy the old sources into it and then compile it. Should work, but I'd need the source.
[Desire Android Development] spirol:
As far as i can read from this thread, it should be perfectly fine to use these recoveries, if not having ext partitions on the SD, right??

Also, MD5/SHA1 sums to verify the files would certainly be nice, and (if possible) maybe some screenshots? :)

Having trouble ATM with getting the fastboot drivers working correctly, so sadly i can't test :/

Edit: Off-topic: Is it possible to flash a recovery from the SD in Hboot, just like flashing Hboot images by renaming them PB99IMG??
[Desire Android Development] zyonee:
Should work fine, yes.

MD5 is already included in the latest version zip.

And I don't know about the method you're talking about, haven't tried that myself. I think it will only work with S-OFF, but you can get that with alpharev.

PS, try to find unrevoked 3.14 to flash the recovery, it may work. Otherwise with alpharev.