Help - Search - Members - Calendar
Full Version: Nandlogical Source Code
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
louigi600
I was wondering if anyone knows where to get it now (if it ever was avalible) ?

I did some search but only found broken links.
louigi600
Ok the sources ar in the survive-1.1.0 sources amongst the pdaxrom sources ...
but it will not build on newer kernels:
armv5tel-cacko-linux-gcc -o nandlogical nandlogical.c -O2 -I/usr/src/linux-2.6.20.6/include
In file included from /usr/src/linux-2.6.20.6/include/mtd/mtd-user.h:13,
from nandlogical.c:30:
/usr/src/linux-2.6.20.6/include/mtd/mtd-abi.h:18: warning: no semicolon at end of struct or union
/usr/src/linux-2.6.20.6/include/mtd/mtd-abi.h:18: error: syntax error before '*' token
nandlogical.c:38: error: variable `oob' has initializer but incomplete type
nandlogical.c:38: warning: excess elements in struct initializer
nandlogical.c:38: warning: (near initialization for `oob')
nandlogical.c:38: warning: excess elements in struct initializer
nandlogical.c:38: warning: (near initialization for `oob')
nandlogical.c:38: warning: excess elements in struct initializer
nandlogical.c:38: warning: (near initialization for `oob')
nandlogical.c: In function `scan_logical':
nandlogical.c:135: error: invalid use of undefined type `struct mtd_oob_buf'
nandlogical.c:136: error: invalid application of `sizeof' to incomplete type `mtd_oob_buf'
nandlogical.c: In function `add_logical':
nandlogical.c:164: error: invalid use of undefined type `struct mtd_oob_buf'
nandlogical.c:165: error: invalid application of `sizeof' to incomplete type `mtd_oob_buf'
nandlogical.c: In function `main':
nandlogical.c:279: error: structure has no member named `oobblock'
nandlogical.c:280: error: structure has no member named `oobblock'
nandlogical.c:281: error: structure has no member named `oobblock'
nandlogical.c:292: error: structure has no member named `oobblock'
nandlogical.c:293: error: invalid use of undefined type `struct mtd_oob_buf'
nandlogical.c:300: error: structure has no member named `oobblock'
nandlogical.c:340: error: invalid use of undefined type `struct mtd_oob_buf'
nandlogical.c:341: error: invalid use of undefined type `struct mtd_oob_buf'
nandlogical.c:345: error: invalid application of `sizeof' to incomplete type `mtd_oob_buf'
nandlogical.c:351: error: invalid application of `sizeof' to incomplete type `mtd_oob_buf'
nandlogical.c: At top level:
nandlogical.c:38: error: storage size of `oob' isn't known

Can anyone help ?
BTW: it build fine if I use -I/usr/src/2.6.16/include with the pdaxrom kernel sources
utx
QUOTE(louigi600 @ May 15 2007, 11:20 PM) *
Ok the sources ar in the survive-1.1.0 sources amongst the pdaxrom sources ...
but it will not build on newer kernels:
nandlogical.c:292: error: structure has no member named `oobblock'

Can anyone help ?
BTW: it build fine if I use -I/usr/src/2.6.16/include with the pdaxrom kernel sources


Replacing of oobblock by writesize makes it compile again with kernel-2.6.24. At least read works (I did not test write yet.)
louigi600
QUOTE(utx @ Apr 30 2008, 12:30 AM) *
QUOTE(louigi600 @ May 15 2007, 11:20 PM) *
Ok the sources ar in the survive-1.1.0 sources amongst the pdaxrom sources ...
but it will not build on newer kernels:
nandlogical.c:292: error: structure has no member named `oobblock'

Can anyone help ?
BTW: it build fine if I use -I/usr/src/2.6.16/include with the pdaxrom kernel sources


Replacing of oobblock by writesize makes it compile again with kernel-2.6.24. At least read works (I did not test write yet.)

Long time since I was last able to devote some time to my Z ..... I've even forgotten where I stored all the sources I was fiddling with.

Once I dig them up I'll be giving this hint a try. I could even try a write on my C760.
Current kernel release is 2.6.25.1 ... has there been any work on this.
I see debian is using 2.6.24.4 along with probabbly all OE based distros.
ant
thx utx.

I put a recipe for OpenEmbedded here:

http://bugs.openembedded.net/show_bug.cgi?id=3738
ant
read / write tested abd working.
Compiled against glibc is very big (547K)...will test against klibc!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.