* mkfs.jffs on arm
@ 2003-02-07 13:18 Igor Trevisan
2003-02-07 13:54 ` David Woodhouse
0 siblings, 1 reply; 7+ messages in thread
From: Igor Trevisan @ 2003-02-07 13:18 UTC (permalink / raw)
To: linux-mtd
Hi all!
I have to port mkfs.jffs and erase commands on my
EDB7312 board (arm core by CirrusLogic) but I'm having
some problems...
Are there any suggestion to cross-compile mtd utilities
for an arm target?
Thanks inadvance..
Igor.
^ permalink raw reply [flat|nested] 7+ messages in thread
* mkfs.jffs on arm
2003-02-07 13:18 mkfs.jffs on arm Igor Trevisan
@ 2003-02-07 13:54 ` David Woodhouse
2003-02-07 14:18 ` Igor Trevisan
0 siblings, 1 reply; 7+ messages in thread
From: David Woodhouse @ 2003-02-07 13:54 UTC (permalink / raw)
To: linux-mtd
On Fri, 2003-02-07 at 13:18, Igor Trevisan wrote:
> Hi all!
>
> I have to port mkfs.jffs and erase commands on my
> EDB7312 board (arm core by CirrusLogic) but I'm having
> some problems...
> Are there any suggestion to cross-compile mtd utilities
> for an arm target?
> Thanks inadvance..
> Igor.
make CROSS=arm-linux-
--
dwmw2
^ permalink raw reply [flat|nested] 7+ messages in thread
* mkfs.jffs on arm
2003-02-07 13:54 ` David Woodhouse
@ 2003-02-07 14:18 ` Igor Trevisan
2003-02-07 14:29 ` David Woodhouse
0 siblings, 1 reply; 7+ messages in thread
From: Igor Trevisan @ 2003-02-07 14:18 UTC (permalink / raw)
To: linux-mtd
Thanks!
Modifiing Makefile in /utils with the right CROSS definition
and doing make util from /mtd did the job...
but not completely.
I could build almost all the utilities related with JFFS
a part from mkfs.jffs2 (mkfs.jffs is ok).
This is how the compile flow ends...
/home/igortr/arm-tools/gcc-3.2.1/bin/../lib/gcc-lib/arm-
linux/3.2.1/../../../../arm-linux/bin/as -o compr_rtime.o
/home/igortr/tmp/cc0T634m.s
arm-uclibc-gcc -v -I/home/igortr/arm-tools/linux/include -
I/home/igortr/arm-tools/linux/include/linux-O2 -static -Wall -Wstrict-
prototypes -Wshadow -c -o mkfs.jffs2.o mkfs.jffs2.c
Reading specs from /home/igortr/arm-tools/gcc-3.2.1/bin/../lib/gcc-
lib/arm-linux/3.2.1/specs
Configured with: /home/igortr/arm-tools/toolchain/gcc-3.2.1/build/gcc-
3.2.1/configure --target=arm-linux --prefix=/home/igortr/arm-
tools/toolchain/gcc-3.2.1 --exec-prefix=/home/igortr/arm-
tools/toolchain/gcc-3.2.1 --bindir=/home/igortr/arm-tools/toolchain/gcc-
3.2.1/bin --sbindir=/home/igortr/arm-tools/toolchain/gcc-3.2.1/sbin --
sysconfdir=/home/igortr/arm-tools/toolchain/gcc-3.2.1/etc --
datadir=/home/igortr/arm-tools/toolchain/gcc-3.2.1/share --
localstatedir=/home/igortr/arm-tools/toolchain/gcc-3.2.1/var --
mandir=/home/igortr/arm-tools/toolchain/gcc-3.2.1/man --
infodir=/home/igortr/arm-tools/toolchain/gcc-3.2.1/info --with-local-
prefix=/home/igortr/arm-tools/toolchain/gcc-3.2.1/usr/local --
libdir=/home/igortr/arm-tools/toolchain/gcc-3.2.1/lib --
includedir=/home/igortr/arm-tools/toolchain/gcc-3.2.1/include --with-
gxx-include-dir=/home/igortr/arm-tools/toolchain/gcc-3.2.1/include/c++
--oldincludedir=/home/igortr/arm-tools/toolchain/gcc-3.2.1/include --
enable-shared --enable-target-optspace --disable-nls --with-gnu-ld --
disable-__cxa_atexit --enable-languages=c,c++ --program-prefix=arm-
uclibc-
Thread model: posix
gcc version 3.2.1
/home/igortr/arm-tools/gcc-3.2.1/bin/../lib/gcc-lib/arm-linux/3.2.1/cc1 -
lang-c -v -I/home/igortr/arm-tools/linux/include -I/home/igortr/arm-
tools/linux/include/linux-O2 -iprefix /home/igortr/arm-tools/gcc-
3.2.1/bin/../lib/gcc-lib/arm-linux/3.2.1/ -D__GNUC__=3 -
D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=1 -
D__GXX_ABI_VERSION=102 -Dunix -D__gnu_linux__ -Dlinux -
D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__ELF__ -
D__unix -D__linux -Asystem=unix -Asystem=posix -D__NO_INLINE__
-D__STDC_HOSTED__=1 -Acpu=arm -Amachine=arm -
D__ARM_ARCH_4T__ -D__APCS_32__ -D__ARMEL__ -D__arm__
mkfs.jffs2.c -quiet -dumpbase mkfs.jffs2.c -Wall -Wstrict-prototypes -
Wshadow -version -o /home/igortr/tmp/ccJ41T7C.s
ignoring nonexistent directory "/home/igortr/arm-
tools/linux/include/linux-O2"
GNU CPP version 3.2.1 (cpplib) (ARM GNU/Linux with ELF)
GNU C version 3.2.1 (arm-linux)
compiled by GNU C version 2.96 20000731 (Mandrake Linux 8.1
2.96-0.62mdk).
ignoring duplicate directory "/home/igortr/arm-tools/gcc-3.2.1/arm-
linux/include"
ignoring duplicate directory "/home/igortr/arm-tools/toolchain/gcc-
3.2.1/include"
ignoring duplicate directory "/home/igortr/arm-tools/toolchain/gcc-
3.2.1/lib/gcc-lib/arm-linux/3.2.1/include"
ignoring duplicate directory "/home/igortr/arm-tools/toolchain/gcc-
3.2.1/lib/../arm-linux/sys-include"
ignoring duplicate directory "/home/igortr/arm-tools/toolchain/gcc-
3.2.1/lib/../arm-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/home/igortr/arm-tools/linux/include
/home/igortr/arm-tools/gcc-3.2.1/lib/gcc-lib/arm-linux/3.2.1/include
/home/igortr/arm-tools/gcc-3.2.1/arm-linux/sys-include
End of search list.
mkfs.jffs2.c:66:18: zlib.h: No such file or directory
mkfs.jffs2.c: In function `write_dirent':
mkfs.jffs2.c:770: warning: implicit declaration of function `cpu_to_je16'
mkfs.jffs2.c:772: warning: implicit declaration of function `cpu_to_je32'
mkfs.jffs2.c: In function `write_regular_file':
mkfs.jffs2.c:829: warning: implicit declaration of function
`cpu_to_jemode'
mkfs.jffs2.c:884: warning: implicit declaration of function `je32_to_cpu'
mkfs.jffs2.c: In function `write_special_file':
mkfs.jffs2.c:993: `jint16_t' undeclared (first use in this function)
mkfs.jffs2.c:993: (Each undeclared identifier is reported only once
mkfs.jffs2.c:993: for each function it appears in.)
mkfs.jffs2.c:993: parse error before "kdev"
mkfs.jffs2.c:1001: `kdev' undeclared (first use in this function)
make: *** [mkfs.jffs2.o] Error 1
Any ideas about this error?
Thanks again...
Igor.
On 7 Feb 2003 at 13:54, David Woodhouse wrote:
> On Fri, 2003-02-07 at 13:18, Igor Trevisan wrote:
> > Hi all!
> >
> > I have to port mkfs.jffs and erase commands on my
> > EDB7312 board (arm core by CirrusLogic) but I'm having
> > some problems...
> > Are there any suggestion to cross-compile mtd utilities
> > for an arm target?
> > Thanks inadvance..
> > Igor.
>
> make CROSS=arm-linux-
>
> --
> dwmw2
^ permalink raw reply [flat|nested] 7+ messages in thread* mkfs.jffs on arm
2003-02-07 14:18 ` Igor Trevisan
@ 2003-02-07 14:29 ` David Woodhouse
2003-02-10 16:53 ` Igor Trevisan
0 siblings, 1 reply; 7+ messages in thread
From: David Woodhouse @ 2003-02-07 14:29 UTC (permalink / raw)
To: linux-mtd
Please do not place your reply above the quoted text. Place it below,
and quote _only_ what is absolutely necessary when replying.
On Fri, 2003-02-07 at 14:18, Igor Trevisan wrote:
> I could build almost all the utilities related with JFFS
> a part from mkfs.jffs2 (mkfs.jffs is ok).
> This is how the compile flow ends...
> mkfs.jffs2.c:66:18: zlib.h: No such file or directory
You need zlib cross-compiled and installed such that your cross-compiler
can find zlib.h (and libz.so or libz.a).
> mkfs.jffs2.c: In function `write_dirent':
> mkfs.jffs2.c:770: warning: implicit declaration of function `cpu_to_je16'
> mkfs.jffs2.c:772: warning: implicit declaration of function `cpu_to_je32'
It seems to be including the wrong version of linux/jffs2.h. It should
be including the one from '../include/linux', due to the
'CFLAGS += -I../include' in util/Makefile.
--
dwmw2
^ permalink raw reply [flat|nested] 7+ messages in thread
* mkfs.jffs on arm
2003-02-07 14:29 ` David Woodhouse
@ 2003-02-10 16:53 ` Igor Trevisan
2003-02-11 16:45 ` David Woodhouse
0 siblings, 1 reply; 7+ messages in thread
From: Igor Trevisan @ 2003-02-10 16:53 UTC (permalink / raw)
To: linux-mtd
> I could build almost all the utilities related with JFFS
> > a part from mkfs.jffs2 (mkfs.jffs is ok).
> > This is how the compile flow ends...
>
> > mkfs.jffs2.c:66:18: zlib.h: No such file or directory
>
> You need zlib cross-compiled and installed such that your
> cross-compiler can find zlib.h (and libz.so or libz.a).
>
>
> > mkfs.jffs2.c: In function `write_dirent':
> > mkfs.jffs2.c:770: warning: implicit declaration of function
> > `cpu_to_je16' mkfs.jffs2.c:772: warning: implicit declaration of
> > function `cpu_to_je32'
>
> It seems to be including the wrong version of linux/jffs2.h. It should
> be including the one from '../include/linux', due to the 'CFLAGS +=
> -I../include' in util/Makefile.
>
>
Tanks for the suggestions!
Mkfs.jffs2 compiling process took some steps forward but...
it's still ending with errors!
In the following lines you can see the messages...
#include "..." search starts here:
#include <...> search starts here:
../include
/home/igortr/arm-tools/linux/include
/home/igortr/arm-tools/gcc-3.2.1/lib/gcc-lib/arm-linux/3.2.1/include
/home/igortr/arm-tools/gcc-3.2.1/arm-linux/sys-include
End of search list.
compr_zlib.c: In function `jffs2_zlib_compress':
compr_zlib.c:63: structure has no member named `zalloc'
compr_zlib.c:64: structure has no member named `zfree'
compr_zlib.c:66: warning: implicit declaration of function `deflateInit'
compr_zlib.c:78: warning: implicit declaration of function `deflate'
compr_zlib.c:80: warning: implicit declaration of function `deflateEnd'
compr_zlib.c: In function `jffs2_zlib_decompress':
compr_zlib.c:108: structure has no member named `zalloc'
compr_zlib.c:109: structure has no member named `zfree'
compr_zlib.c:111: warning: implicit declaration of function `inflateInit'
compr_zlib.c:122: warning: implicit declaration of function `inflate'
compr_zlib.c:125: warning: implicit declaration of function `inflateEnd'
make: *** [compr_zlib.o] Error 1
[igortr at linuxbw1 util]$
I think it's because it's missing some library created with file
in mtd/lib. I tried to cross-compile mtd/lib content but I had a lot
of problems...
Any new suggestion ?
Thanks a lot in advance...
Igor.
^ permalink raw reply [flat|nested] 7+ messages in thread
* mkfs.jffs on arm
2003-02-10 16:53 ` Igor Trevisan
@ 2003-02-11 16:45 ` David Woodhouse
2003-02-11 17:45 ` Igor Trevisan
0 siblings, 1 reply; 7+ messages in thread
From: David Woodhouse @ 2003-02-11 16:45 UTC (permalink / raw)
To: linux-mtd
On Mon, 2003-02-10 at 16:53, Igor Trevisan wrote:
> compr_zlib.c: In function `jffs2_zlib_compress':
> compr_zlib.c:63: structure has no member named `zalloc'
> compr_zlib.c:64: structure has no member named `zfree'
> compr_zlib.c:66: warning: implicit declaration of function `deflateInit'
> compr_zlib.c:78: warning: implicit declaration of function `deflate'
> compr_zlib.c:80: warning: implicit declaration of function `deflateEnd'
> compr_zlib.c: In function `jffs2_zlib_decompress':
> compr_zlib.c:108: structure has no member named `zalloc'
> compr_zlib.c:109: structure has no member named `zfree'
> compr_zlib.c:111: warning: implicit declaration of function `inflateInit'
> compr_zlib.c:122: warning: implicit declaration of function `inflate'
> compr_zlib.c:125: warning: implicit declaration of function `inflateEnd'
> make: *** [compr_zlib.o] Error 1
> [igortr at linuxbw1 util]$
What version of zlib.h is it including? It looks like it might be
including the kernel's version instead of the one for the userspace
zlib.
--
dwmw2
^ permalink raw reply [flat|nested] 7+ messages in thread
* mkfs.jffs on arm
2003-02-11 16:45 ` David Woodhouse
@ 2003-02-11 17:45 ` Igor Trevisan
0 siblings, 0 replies; 7+ messages in thread
From: Igor Trevisan @ 2003-02-11 17:45 UTC (permalink / raw)
To: linux-mtd
[...]
> > `jffs2_zlib_decompress': compr_zlib.c:108: structure has no member
> > named `zalloc' compr_zlib.c:109: structure has no member named
> > `zfree' compr_zlib.c:111: warning: implicit declaration of function
> > `inflateInit' compr_zlib.c:122: warning: implicit declaration of
> > function `inflate' compr_zlib.c:125: warning: implicit declaration
> > of function `inflateEnd' make: *** [compr_zlib.o] Error 1
> > [igortr at linuxbw1 util]$
>
> What version of zlib.h is it including? It looks like it might be
> including the kernel's version instead of the one for the userspace
> zlib.
Well... forgive my ignorance but...
What does it mean?
Exactly which file have I to try to include and which ones not?
Thanks for the time you (I hope) will spend for me!
:-)
Igor.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-02-11 17:45 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-07 13:18 mkfs.jffs on arm Igor Trevisan
2003-02-07 13:54 ` David Woodhouse
2003-02-07 14:18 ` Igor Trevisan
2003-02-07 14:29 ` David Woodhouse
2003-02-10 16:53 ` Igor Trevisan
2003-02-11 16:45 ` David Woodhouse
2003-02-11 17:45 ` Igor Trevisan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox