wufuyue / yaffs2utils

Automatically exported from code.google.com/p/yaffs2utils
GNU General Public License v2.0
1 stars 3 forks source link

I can't seem to unpack my yaffs2 img files #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

I compile yaffs2utils by running "make", I get binaries that I can run. When I 
try to use these binaries to unpack my yaffs2 img files, they tell me that the 
unpacking is complete, but they say that there's "total objects: 1" and no 
files show up. This happens also when I run the binaries as root.

What is the expected output? What do you see instead?

I expect to see a bunch of files and some extracting going on, but instead it 
completes instantly with the following -v log:

# ./unyaffs2 -v system.yaffs2.img system/
unyaffs2-0.2.8: image extracting tool for YAFFS2
scanning image 'system.yaffs2.img'... [done]
scanning complete, total objects: 1
building fs tree ... [done]
building complete, total valid objects: 1
extracting image into 'system/'

modify files attributes... [done]

operation complete
files are extracted into 'system/'

What version of the product are you using? On what operating system?

Latest snapshot, Apr 24, 2012, Ubuntu 12.04

Please provide any additional information below.

I haven't had the possibility to try other img files with yaffs2 than these 
ones (they are android backups made by clockworkmod recovery), but all three of 
them (cache, system and data) give the same error.

Any additional info on how to access these files (I can't seem to mount them 
either) would also be highly appreciated.

Original issue reported on code.google.com by linusag...@gmail.com on 23 Jun 2012 at 2:51

GoogleCodeExporter commented 8 years ago
1. Try enabling "-D_HAVE_ANDROID" compile flag in the Makefile.
2. Make sure the page size (-p size) and spare size (-s size) is valid for your 
image, these information are available from your vendor or by 'mtd_debug' tool 
by command on the target : mtd_debug info /dev/mtd$(MTDNUM).
3. Send the image to me, I will glad to solve your problem.

Original comment by penguin.lin on 27 Jun 2012 at 6:39

GoogleCodeExporter commented 8 years ago
Any response?

In the latest version (0.2.9), no any Android specified compile flags;
You can use the option '--yaffs-ecclayout' to make/extract a image.

Thanks a lot.

Original comment by penguin.lin on 6 Jul 2012 at 3:02

GoogleCodeExporter commented 8 years ago
Should automatically try that when no objects are found, or not? Most people 
who want to use this will probably attempt to unpack nandroid backups with it ;)

Original comment by empee584 on 14 Jul 2012 at 3:59

GoogleCodeExporter commented 8 years ago
Any news on this?

Had the same issue several months ago. Digged up some old version for windows 
(yuck) and used that. It somewhat got my files back (not all files have 
characters compatible with windows' filesystem :)).

Anyways build the code again now (gentoo ~amd64) and still can't extract. Got 
the latest tarball.

freaky@flaptoppy /run/media/freaky/Ext-Secure/Galaxy S/External 
SD/clockworkmod/backup/2012-08-05.19.44.14 $ /tmp/latest/unyaffs2 -v 
datadata.yaffs2.img /var/tmp/portage/
unyaffs2 0.2.9_20120726: image extracting tool for YAFFS2.
warning: non-root users.

scanning image 'datadata.yaffs2.img'... [done]
scanning complete, total objects: 1

building fs tree ... [done]
building complete, total objects: 1

extracting image into '/var/tmp/portage/'
object 1: [ DIR] ''.

modify files attributes... [done]

operation complete,
files were extracted into '/var/tmp/portage/'.

Would be really awesome if I could extract nandroid backups with this. It did 
work on windows at some point :D (haven't searched for it now).

Original comment by freaky2000@gmail.com on 6 Aug 2012 at 8:41

GoogleCodeExporter commented 8 years ago
Hmm just recall that I saw a message a couple of days ago on titanium backup or 
appextractor that it could now handle deduplicated yaffs images from the new 
CWM.

Not sure if that's relevant...

Original comment by freaky2000@gmail.com on 6 Aug 2012 at 8:42