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