OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Nandlogical Source Code, anyone know where to get it
louigi600
post May 15 2007, 08:17 AM
Post #1





Group: Members
Posts: 474
Joined: 21-May 06
Member No.: 9,928



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.
Go to the top of the page
 
+Quote Post
louigi600
post May 15 2007, 01:20 PM
Post #2





Group: Members
Posts: 474
Joined: 21-May 06
Member No.: 9,928



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
Go to the top of the page
 
+Quote Post
utx
post Apr 29 2008, 02:30 PM
Post #3





Group: Members
Posts: 135
Joined: 27-June 05
From: Prague, Czech Republic, Europe
Member No.: 7,468



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.)
Go to the top of the page
 
+Quote Post
louigi600
post May 2 2008, 01:07 AM
Post #4





Group: Members
Posts: 474
Joined: 21-May 06
Member No.: 9,928



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.
Go to the top of the page
 
+Quote Post
ant
post Jul 20 2008, 12:41 PM
Post #5





Group: Members
Posts: 163
Joined: 11-March 04
From: IT
Member No.: 2,270



thx utx.

I put a recipe for OpenEmbedded here:

http://bugs.openembedded.net/show_bug.cgi?id=3738
Go to the top of the page
 
+Quote Post
ant
post Aug 2 2008, 01:42 PM
Post #6





Group: Members
Posts: 163
Joined: 11-March 04
From: IT
Member No.: 2,270



read / write tested abd working.
Compiled against glibc is very big (547K)...will test against klibc!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd September 2014 - 12:28 PM