Author Topic: Nandlogical Source Code  (Read 7654 times)

louigi600

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
Nandlogical Source Code
« on: May 15, 2007, 12:17:09 pm »
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.
Regards
David

SL-c760*  pdaXrom latest
SL-c860    pdaXrom latest ;-)
SL-c1000  pdaXrom Latest
Acer Aspire One running slackware and Clash
Toshiba AC100 running ARMedslack and Clash

*with some hardware problems but good for testing

louigi600

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
Nandlogical Source Code
« Reply #1 on: May 15, 2007, 05:20:44 pm »
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
« Last Edit: May 15, 2007, 05:21:16 pm by louigi600 »
Regards
David

SL-c760*  pdaXrom latest
SL-c860    pdaXrom latest ;-)
SL-c1000  pdaXrom Latest
Acer Aspire One running slackware and Clash
Toshiba AC100 running ARMedslack and Clash

*with some hardware problems but good for testing

utx

  • Full Member
  • ***
  • Posts: 135
    • View Profile
    • http://www.penguin.cz/~utx/zaurus/
Nandlogical Source Code
« Reply #2 on: April 29, 2008, 06:30:29 pm »
Quote from: louigi600
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

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
Nandlogical Source Code
« Reply #3 on: May 02, 2008, 05:07:46 am »
Quote from: utx
Quote from: louigi600
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.
Regards
David

SL-c760*  pdaXrom latest
SL-c860    pdaXrom latest ;-)
SL-c1000  pdaXrom Latest
Acer Aspire One running slackware and Clash
Toshiba AC100 running ARMedslack and Clash

*with some hardware problems but good for testing

ant

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • http://
Nandlogical Source Code
« Reply #4 on: July 20, 2008, 04:41:53 pm »
thx utx.

I put a recipe for OpenEmbedded here:

http://bugs.openembedded.net/show_bug.cgi?id=3738

ant

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • http://
Nandlogical Source Code
« Reply #5 on: August 02, 2008, 05:42:29 pm »
read / write tested abd working.
Compiled against glibc is very big (547K)...will test against klibc!