Closed GoogleCodeExporter closed 9 years ago
Would you try the attached patch!?
Original comment by penguin.lin
on 30 Aug 2011 at 8:02
Attachments:
patching file mkyaffs2.c
Hunk #1 FAILED at 120.
Hunk #2 FAILED at 811.
2 out of 2 hunks FAILED -- saving rejects to file mkyaffs2.c.rej
patching file unyaffs2.c
Hunk #1 FAILED at 182.
Hunk #2 FAILED at 1285.
2 out of 2 hunks FAILED -- saving rejects to file unyaffs2.c.rej
Patch doesn't apply. In any event your changes were not the problem - the
standard libc devel headers on Ubuntu include some MTD stuff and the headers
you bundle with your project have an overlapping but slightly different set.
Original comment by rogerbinns
on 30 Aug 2011 at 8:16
[deleted comment]
[deleted comment]
[deleted comment]
Dear rogerbinns:
At the latest version, the definition in "yaffs2utils_mtd.h" are useless (in
r23),
and all information about ecc layout are came from "mtd/mtd-user.h";
I think the conflict problem should not occur.
I am still using the old Debian system.
Are there any details available?
Please also tell me which version you used,
the latest version should be "0.2.1" in CHANGES
* others
- Use "mtd/mtd-user.h" instead of "yaffs2utils_ecc.h".
Thanks
Original comment by penguin.lin
on 30 Aug 2011 at 8:56
Note that I no longer have a need for this tool as I found an alternate
workaround for my original problem.
I used the latest version on the download page and am using Ubuntu Natty which
roughly corresponds to Debian testing. There are conflicting definitions in
/usr/include/mtd/mtd-user.h or rather a different subset than the headers you
supply. Between the two sets they end up conflicting.
You will only be able to see and fix the problem by using an Ubuntu setup. You
could use a LiveCD, or make a chroot environment on your system by using
debootstrap or pbuilder.
Original comment by rogerbinns
on 30 Aug 2011 at 3:09
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
Dear rogerbinns:
I still think the previous patch can solve your problem.
In the latest "mtd-user.h", "nand_ecclayout_t" is defined from "struct
nand_ecclayout_user", instead of the old "struct nand_ecclayout". I think it
will be the root cause for this issue. Would you kindly double-check it.
Another question is, which version of Ubuntu is used!?
Would you kindly re-download the latest version and the previous patch to try
again!? The latest one on Download page can be patched and compiled (the
patched one) successfully on my test environment.
Best Regards.
Original comment by penguin.lin
on 30 Aug 2011 at 5:58
I am running Ubuntu 11.04 and I was able to apply the patch and then compile
the code. I used the 21 July snapshot.
Original comment by brett...@gmail.com
on 2 Sep 2011 at 1:24
Dear brettpim:
Thanks for your reply. :D
Dear rogerbinns:
I will use ubuntu 11.04 live cd to make sure everything is right before
committing the new revision.
Original comment by penguin.lin
on 2 Sep 2011 at 3:40
Hi,
I got the same error when mistakenly using patch -p2 (pwd yaffs2utils). Patch
applies with patch -p1 and compiles ok. (Natty)
Original comment by hieronym...@gmail.com
on 3 Sep 2011 at 7:12
hello. i try
.../yaffs2utils$ patch -p1 compile_ubuntu.patch
but it does not work (((
Original comment by gashan.m...@gmail.com
on 7 Sep 2011 at 11:57
Running Linux Mint 11 was able to apply the patch and compile successfully.
Command I used (from inside src directory) `patch
</home/me/compile_ubuntu.patch` for Comment 16
Original comment by bli...@gmail.com
on 10 Sep 2011 at 12:23
This issue should be fixed in the latest version.
I will close it when next minor release.
Original comment by penguin.lin
on 1 Nov 2011 at 2:33
Original comment by penguin.lin
on 18 Nov 2011 at 7:11
Original issue reported on code.google.com by
rogerbinns
on 24 Aug 2011 at 7:39