* Problems making jffs2 utils
@ 2003-04-07 18:50 John Burch
2003-04-07 19:18 ` Earl Manning
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: John Burch @ 2003-04-07 18:50 UTC (permalink / raw)
To: 'Mtd'
I'm running into compiler errors when trying to build the jffs2
utilities for a 2.4.17/mips target. I've checked out the latest mtd
code according to www.linux-mtd.infradead.org, then have followed the
instructions in the mtd/util/README file (copied mtd/util contents to
directory under linux root and changed $CROSS as necessary since I'm
cross-compiling to mips). I cd to <mips-kernel-path>/linux/utils and do
a make, but get errors immediately, which typically include the
following (depending on which util I'm trying to make)...
.../libc.so.6: undefined reference to 'no symbol'
.../mips-linux-ld: cannot find -lz
I'm really only after 'erase' and maybe 'jffs2reader' for use on my mips
embedded target; I already have mkfs.jffs2 as an x86 binary for my x86
development platform. Any ideas, or better place for me to post this
question?
John
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problems making jffs2 utils
2003-04-07 18:50 Problems making jffs2 utils John Burch
@ 2003-04-07 19:18 ` Earl Manning
2003-04-09 17:19 ` John Burch
2003-04-07 19:53 ` Jörn Engel
2003-04-08 8:10 ` David Woodhouse
2 siblings, 1 reply; 10+ messages in thread
From: Earl Manning @ 2003-04-07 19:18 UTC (permalink / raw)
To: linux-mtd
[-- Attachment #1: Type: text/plain, Size: 1287 bytes --]
Hi John,
I have a similar system, embedded mips based, and here is the changed Makefile for the util directory that I used. I hope this helps.
Earl Manning
On Mon, 7 Apr 2003 14:50:49 -0400
"John Burch" <jburch@vincisystems.com> wrote:
> I'm running into compiler errors when trying to build the jffs2
> utilities for a 2.4.17/mips target. I've checked out the latest mtd
> code according to www.linux-mtd.infradead.org, then have followed the
> instructions in the mtd/util/README file (copied mtd/util contents to
> directory under linux root and changed $CROSS as necessary since I'm
> cross-compiling to mips). I cd to <mips-kernel-path>/linux/utils and do
> a make, but get errors immediately, which typically include the
> following (depending on which util I'm trying to make)...
>
> .../libc.so.6: undefined reference to 'no symbol'
> .../mips-linux-ld: cannot find -lz
>
> I'm really only after 'erase' and maybe 'jffs2reader' for use on my mips
> embedded target; I already have mkfs.jffs2 as an x86 binary for my x86
> development platform. Any ideas, or better place for me to post this
> question?
>
> John
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
[-- Attachment #2: Makefile --]
[-- Type: application/octet-stream, Size: 1072 bytes --]
# -*- sh -*-
# $Id: Makefile,v 1.1.1.1 2003/03/26 20:58:27 earl Exp $
HOSTCC := gcc
CROSS=mipsel-linux-
CC := $(CROSS)gcc
HOSTCFLAGS += -I../include -O2 -Wall -Wstrict-prototypes -Wshadow
CFLAGS += -I../include -Wall -Wstrict-prototypes -Wshadow -Wl,-Bstatic
TARGETS = ftl_format erase eraseall nftldump nanddump doc_loadbios \
nftl_format mkfs.jffs ftl_check mkfs.jffs2 lock unlock \
einfo mtd_debug fcp nandwrite jffs2dump #jffs2reader
SYMLINKS = crc32.h crc32.c compr_rtime.c
all: $(TARGETS)
clean:
rm -f *.o $(TARGETS) $(SYMLINKS)
mkfs.jffs2.o eraseall.o crc32.o: crc32.h
$(SYMLINKS):
ln -sf ../fs/jffs2/$@ $@
# mkfs.jffs2: crc32.o compr_rtime.o mkfs.jffs2.o compr_zlib.o
# $(CC) $(LDFLAGS) -o $@ $^ -lz
# eraseall: crc32.o eraseall.o
# $(CC) $(LDLAGS) -o $@ $^ -lz
# jffs2reader: jffs2reader.o
# $(CC) $(LDFLAGS) -o $@ $^ -lz
mkfs.jffs2: crc32.c compr_rtime.c mkfs.jffs2.c compr_zlib.c
$(HOSTCC) $(HOSTCFLAGS) $(LDFLAGS) -o $@ $^ -lz
eraseall: crc32.o eraseall.o
$(CC) $(LDLAGS) -o $@ $^
jffs2reader: jffs2reader.o
$(CC) $(LDFLAGS) -o $@ $^
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problems making jffs2 utils
2003-04-07 18:50 Problems making jffs2 utils John Burch
2003-04-07 19:18 ` Earl Manning
@ 2003-04-07 19:53 ` Jörn Engel
2003-04-07 22:54 ` mtd irc Charles Manning
2003-04-09 13:09 ` Problems making jffs2 utils John Burch
2003-04-08 8:10 ` David Woodhouse
2 siblings, 2 replies; 10+ messages in thread
From: Jörn Engel @ 2003-04-07 19:53 UTC (permalink / raw)
To: John Burch; +Cc: 'Mtd'
On Mon, 7 April 2003 14:50:49 -0400, John Burch wrote:
>
> I'm running into compiler errors when trying to build the jffs2
> utilities for a 2.4.17/mips target. I've checked out the latest mtd
> code according to www.linux-mtd.infradead.org, then have followed the
> instructions in the mtd/util/README file (copied mtd/util contents to
> directory under linux root and changed $CROSS as necessary since I'm
> cross-compiling to mips). I cd to <mips-kernel-path>/linux/utils and do
> a make, but get errors immediately, which typically include the
> following (depending on which util I'm trying to make)...
>
> .../libc.so.6: undefined reference to 'no symbol'
> .../mips-linux-ld: cannot find -lz
You need the common zlib patch, it should be on www.kernel.org
somewhere under people/dwmw2.
Jörn
--
Data expands to fill the space available for storage.
-- Parkinson's Law
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: mtd irc
2003-04-07 19:53 ` Jörn Engel
@ 2003-04-07 22:54 ` Charles Manning
2003-04-07 23:35 ` Conn Clark
2003-04-09 13:09 ` Problems making jffs2 utils John Burch
1 sibling, 1 reply; 10+ messages in thread
From: Charles Manning @ 2003-04-07 22:54 UTC (permalink / raw)
To: 'Mtd'
Has this moved?
I can no longer connect to irc.openprojects.net
Thanx
-- CHarles
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: mtd irc
2003-04-07 22:54 ` mtd irc Charles Manning
@ 2003-04-07 23:35 ` Conn Clark
0 siblings, 0 replies; 10+ messages in thread
From: Conn Clark @ 2003-04-07 23:35 UTC (permalink / raw)
To: manningc2; +Cc: MTD Mailing List
Hi Charles,
The server "irc.openprojects.net" is no more. Most if not all irc
channels there moved to this server "irc.freenode.net"
Charles Manning wrote:
> Has this moved?
>
> I can no longer connect to irc.openprojects.net
>
> Thanx
>
> -- CHarles
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
>
Have fun,
Conn Clark
--
*****************************************************************
If you live at home long enough, your parents will move out.
(Warning they may try to sell their house out from under you.)
*****************************************************************
Conn Clark
Engineering Stooge clark@esteem.com
Electronic Systems Technology Inc. www.esteem.com
Stock Ticker Symbol ELST
"clark@esteem.com" Copyright 2000 By Electronic Systems Technology
This email address may be used to communicate to Conn Clark
provided it is not being used for advertisement purposes, unless
prior written consent is given. This email address may not be
sold under any circumstances. All other rights reserved.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problems making jffs2 utils
2003-04-07 18:50 Problems making jffs2 utils John Burch
2003-04-07 19:18 ` Earl Manning
2003-04-07 19:53 ` Jörn Engel
@ 2003-04-08 8:10 ` David Woodhouse
2 siblings, 0 replies; 10+ messages in thread
From: David Woodhouse @ 2003-04-08 8:10 UTC (permalink / raw)
To: John Burch; +Cc: 'Mtd'
On Mon, 2003-04-07 at 19:50, John Burch wrote:
> .../mips-linux-ld: cannot find -lz
You need zlib compiled for the target and available in the toolchain sys-root.
--
dwmw2
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Problems making jffs2 utils
2003-04-07 19:53 ` Jörn Engel
2003-04-07 22:54 ` mtd irc Charles Manning
@ 2003-04-09 13:09 ` John Burch
2003-04-09 13:21 ` Jörn Engel
1 sibling, 1 reply; 10+ messages in thread
From: John Burch @ 2003-04-09 13:09 UTC (permalink / raw)
To: 'Jörn Engel'; +Cc: 'Mtd'
Several questions...
1. Even to build 'erase' only, one still needs zlib?
2. I can't seem to track down the 'common zlib patch' you refer to. Is
this a special patch in support of mtd, or a general patch for zlib
(such that if I get the latest zlib I wouldn't need the patch)?
3. Is the patch particular to a specific version of zlib?
4. Can my target zlib version differ from the host zlib version without
causing problems?
Thanks,
John
> -----Original Message-----
> From: linux-mtd-bounces@lists.infradead.org
> [mailto:linux-mtd-bounces@lists.infradead.org] On Behalf Of Jörn Engel
> Sent: Monday, April 07, 2003 2:53 PM
> To: John Burch
> Cc: 'Mtd'
> Subject: Re: Problems making jffs2 utils
>
>
> On Mon, 7 April 2003 14:50:49 -0400, John Burch wrote:
> >
> > I'm running into compiler errors when trying to build the jffs2
> > utilities for a 2.4.17/mips target. I've checked out the
> latest mtd
> > code according to www.linux-mtd.infradead.org, then have
> followed the
> > instructions in the mtd/util/README file (copied mtd/util
> contents to
> > directory under linux root and changed $CROSS as necessary
> since I'm
> > cross-compiling to mips). I cd to
> <mips-kernel-path>/linux/utils and
> > do a make, but get errors immediately, which typically include the
> > following (depending on which util I'm trying to make)...
> >
> > .../libc.so.6: undefined reference to 'no symbol'
> > .../mips-linux-ld: cannot find -lz
>
> You need the common zlib patch, it should be on
www.kernel.org somewhere under people/dwmw2.
Jörn
--
Data expands to fill the space available for storage.
-- Parkinson's Law
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problems making jffs2 utils
2003-04-09 13:09 ` Problems making jffs2 utils John Burch
@ 2003-04-09 13:21 ` Jörn Engel
0 siblings, 0 replies; 10+ messages in thread
From: Jörn Engel @ 2003-04-09 13:21 UTC (permalink / raw)
To: John Burch; +Cc: 'Mtd'
On Wed, 9 April 2003 09:09:54 -0400, John Burch wrote:
>
> 1. Even to build 'erase' only, one still needs zlib?
No, that shouldn't be the case.
> 2. I can't seem to track down the 'common zlib patch' you refer to. Is
> this a special patch in support of mtd, or a general patch for zlib
> (such that if I get the latest zlib I wouldn't need the patch)?
Dammit! I was stupid, confused or worse and didn't read the work
"utils" in your mail. Others got it right, so I hoped this would go
unnoticed. You didn't have to rub it in.
Forget the common zlib, you only need it for the kernel.
> 3. Is the patch particular to a specific version of zlib?
> 4. Can my target zlib version differ from the host zlib version without
> causing problems?
see above. Sorry about that.
Jörn
--
And spam is a useful source of entropy for /dev/random too!
-- Jasmine Strong
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Problems making jffs2 utils
2003-04-07 19:18 ` Earl Manning
@ 2003-04-09 17:19 ` John Burch
2003-04-10 6:23 ` Holger Schurig
0 siblings, 1 reply; 10+ messages in thread
From: John Burch @ 2003-04-09 17:19 UTC (permalink / raw)
To: 'Earl Manning', linux-mtd
>
> I have a similar system, embedded mips based, and here is the
> changed Makefile for the util directory that I used. I hope
> this helps.
>
> Earl Manning
Two things...
1. Your makefile helped, but the static 'erase' binary is nearly 2MB
(0.5MB stripped); I need this for the target and can't afford that much
space. When I add '-shared' to CFLAGS, 'erase' is down to a manageable
size, but then I see that the libc.so.6 (libc-2.2.5.so) that it needs is
over 5MB (1.6M stripped). Still too big. Are there other solutions for
erasing or for library?
2. Also, I'm still getting...
"undefined reference to: 'cpu_to_je16'" and
"undefined reference to: 'cpu_to_je32'"
errors when building eraseall.c. It seems it uses these, but the only
place I see them defined (as macros) is in mkfs.jffs2.c. I could always
just duplicate those from mkfs.jffs2 and put them into eraseall, but I'm
wondering if there are other issues involved.
John
>
> On Mon, 7 Apr 2003 14:50:49 -0400
> "John Burch" <jburch@vincisystems.com> wrote:
>
> > I'm running into compiler errors when trying to build the jffs2
> > utilities for a 2.4.17/mips target. I've checked out the
> latest mtd
> > code according to www.linux-mtd.infradead.org, then have
> followed the
> > instructions in the mtd/util/README file (copied mtd/util
> contents to
> > directory under linux root and changed $CROSS as necessary
> since I'm
> > cross-compiling to mips). I cd to
> <mips-kernel-path>/linux/utils and
> > do a make, but get errors immediately, which typically include the
> > following (depending on which util I'm trying to make)...
> >
> > .../libc.so.6: undefined reference to 'no symbol'
> > .../mips-linux-ld: cannot find -lz
> >
> > I'm really only after 'erase' and maybe 'jffs2reader' for use on my
> > mips embedded target; I already have mkfs.jffs2 as an x86
> binary for
> > my x86 development platform. Any ideas, or better place for me to
> > post this question?
> >
> > John
> >
> >
> > ______________________________________________________
> > Linux MTD discussion mailing list
> > http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problems making jffs2 utils
2003-04-09 17:19 ` John Burch
@ 2003-04-10 6:23 ` Holger Schurig
0 siblings, 0 replies; 10+ messages in thread
From: Holger Schurig @ 2003-04-10 6:23 UTC (permalink / raw)
To: linux-mtd
> over 5MB (1.6M stripped). Still too big. Are there other solutions for
> erasing or for library?
Try another library but glibc, e.g. uclibc
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-04-10 7:21 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-07 18:50 Problems making jffs2 utils John Burch
2003-04-07 19:18 ` Earl Manning
2003-04-09 17:19 ` John Burch
2003-04-10 6:23 ` Holger Schurig
2003-04-07 19:53 ` Jörn Engel
2003-04-07 22:54 ` mtd irc Charles Manning
2003-04-07 23:35 ` Conn Clark
2003-04-09 13:09 ` Problems making jffs2 utils John Burch
2003-04-09 13:21 ` Jörn Engel
2003-04-08 8:10 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox