* 2.4.18-howto?
@ 2002-05-03 19:47 Robert Schwebel
2002-05-04 13:11 ` 2.4.18-howto? Robert Schwebel
2002-05-07 5:42 ` 2.4.18-howto? Robert Schwebel
0 siblings, 2 replies; 9+ messages in thread
From: Robert Schwebel @ 2002-05-03 19:47 UTC (permalink / raw)
To: linux-mtd
Hi,
can somebody give me a short pointer what has to be done to patch 2.4.18
with the mtd stuff from cvs? I tried to checkout the main branch and the
jffs2-2_4-branch and run patches/patchin.sh, but the kernel breaks. Is
there some kind of a howto? I searched in the repository and the mailing
list but didn't find anything.
Thanks,
Robert
--
+--------------------------------------------------------+
| Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de |
| Pengutronix - Linux Solutions for Science and Industry |
| Braunschweiger Str. 79, 31134 Hildesheim, Germany |
| Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4 |
+--------------------------------------------------------+
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.4.18-howto?
2002-05-03 19:47 2.4.18-howto? Robert Schwebel
@ 2002-05-04 13:11 ` Robert Schwebel
2002-05-04 19:32 ` 2.4.18-howto? Robert Schwebel
2002-05-07 5:42 ` 2.4.18-howto? Robert Schwebel
1 sibling, 1 reply; 9+ messages in thread
From: Robert Schwebel @ 2002-05-04 13:11 UTC (permalink / raw)
To: linux-mtd
On Fri, May 03, 2002 at 09:47:38PM +0200, Robert Schwebel wrote:
> can somebody give me a short pointer what has to be done to patch 2.4.18
> with the mtd stuff from cvs? I tried to checkout the main branch and the
> jffs2-2_4-branch and run patches/patchin.sh, but the kernel breaks. Is
> there some kind of a howto? I searched in the repository and the mailing
> list but didn't find anything.
Somehow today the main branch seems to work (yesterday I got lots of
warnings and the kernel compilation broke...), so I could compile a kernel
with the latest CVS stuff.
Now, I want to compile the utilities. Is it really necessary to copy the
utils to the kernel directory? I tried it with the below patch against
util/Makefile and 'make KERNELDIR=/path/to/my/kernel', but it breaks here:
----------8<----------
ln -sf
/home/robert/embedded/ptxdist-0.1.1/build/linux-2.4.18-rthal5-jffs2/fs/jffs2/compr.c
compr.c
cc
-I/home/robert/embedded/ptxdist-0.1.1/build/linux-2.4.18-rthal5-jffs2/include
-O2 -Wall -Dprintk=printf -DKERN_NOTICE= -c -o compr.o compr.c
compr.c: In function `jffs2_decompress':
compr.c:135: warning: implicit declaration of function `printf'
compr.c:135: `KERN_WARNING' undeclared (first use in this function)
compr.c:135: (Each undeclared identifier is reported only once
compr.c:135: for each function it appears in.)
compr.c:135: parse error before string constant
make: *** [compr.o] Error 1
----------8<----------
... which comes because in compr.c there is no #include <stdio.h> in case
of non-kernel code. The whole thing with -Dprintk=printf looks a little bit
like a hack, so is there a better way to compile the utilities?
Robert
----------8<----------
--- Makefile-orig Sat May 4 15:06:34 2002
+++ Makefile Sat May 4 14:42:12 2002
@@ -3,7 +3,7 @@
# $Id: Makefile,v 1.23 2002/03/03 16:14:24 dwmw2 Exp $
-CFLAGS += -I../include -O2 -Wall
+CFLAGS += -I$(KERNELDIR)/include -O2 -Wall
TARGETS = ftl_format erase eraseall nftldump nanddump doc_loadbios \
nftl_format mkfs.jffs ftl_check nandtest nandwrite mkfs.jffs2 lock unlock
\
@@ -20,7 +20,7 @@
compr_rubin.o: pushpull.h histo_mips.h compr_rubin.h
$(SYMLINKS):
- ln -sf ../fs/jffs2/$@ $@
+ ln -sf $(KERNELDIR)/fs/jffs2/$@ $@
mkfs.jffs2: crc32.o compr_rtime.o compr_rubin.o compr.o mkfs.jffs2.o
compr_zlib.o
$(CC) -o $@ $^ -lz
----------8<----------
--
+--------------------------------------------------------+
| Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de |
| Pengutronix - Linux Solutions for Science and Industry |
| Braunschweiger Str. 79, 31134 Hildesheim, Germany |
| Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4 |
+--------------------------------------------------------+
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: 2.4.18-howto?
2002-05-04 13:11 ` 2.4.18-howto? Robert Schwebel
@ 2002-05-04 19:32 ` Robert Schwebel
0 siblings, 0 replies; 9+ messages in thread
From: Robert Schwebel @ 2002-05-04 19:32 UTC (permalink / raw)
To: linux-mtd
On Sat, May 04, 2002 at 03:11:48PM +0200, Robert Schwebel wrote:
> ... which comes because in compr.c there is no #include <stdio.h> in case
> of non-kernel code. The whole thing with -Dprintk=printf looks a little
> bit like a hack, so is there a better way to compile the utilities?
... meaning that at the moment they do not compile at all. At the moment
I seem to have resolved some of the problem, but I'm stuck here:
----------8<----------
robert@callisto:~/embedded/cvs/mtd/util ! make
KERNELDIR=~/embedded/ptxdist-0.1.1/build/linux-2.4.18-rthal5-jffs2
cc -o mkfs.jffs2 crc32.o compr_rtime.o compr_rubin.o compr.o mkfs.jffs2.o
compr_zlib.o -lz
compr_rubin.o: In function `encode':
compr_rubin.o(.text+0x88): undefined reference to `pushbit'
compr_rubin.o: In function `end_rubin':
compr_rubin.o(.text+0x124): undefined reference to `pushbit'
compr_rubin.o: In function `rubin_do_compress':
compr_rubin.o(.text+0x3ee): undefined reference to `init_pushpull'
compr_rubin.o(.text+0x447): undefined reference to `pushedbits'
compr_rubin.o: In function `rubin_do_decompress':
compr_rubin.o(.text+0x695): undefined reference to `init_pushpull'
compr.o: In function `jffs2_compress':
compr.o(.text+0x1a): undefined reference to `zlib_compress'
compr.o: In function `jffs2_decompress':
compr.o(.text+0xa8): undefined reference to `zlib_decompress'
collect2: ld returned 1 exit status
make: *** [mkfs.jffs2] Error 1
---------->8----------
Where comes pushbit() from? I cannot avoid the impression that I'm doing
something significantly wrong...
Robert
--
+--------------------------------------------------------+
| Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de |
| Pengutronix - Linux Solutions for Science and Industry |
| Braunschweiger Str. 79, 31134 Hildesheim, Germany |
| Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4 |
+--------------------------------------------------------+
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.4.18-howto?
2002-05-03 19:47 2.4.18-howto? Robert Schwebel
2002-05-04 13:11 ` 2.4.18-howto? Robert Schwebel
@ 2002-05-07 5:42 ` Robert Schwebel
2002-05-07 11:19 ` 2.4.18-howto? Thomas Gleixner
1 sibling, 1 reply; 9+ messages in thread
From: Robert Schwebel @ 2002-05-07 5:42 UTC (permalink / raw)
To: linux-mtd
On Fri, May 03, 2002 at 09:47:38PM +0200, Robert Schwebel wrote:
> can somebody give me a short pointer what has to be done to patch 2.4.18
> with the mtd stuff from cvs?
Too trivial...? Should it just work? If I missed a HOWTO please excuse,
I've tried hard to find one :) A short pointer would be great.
Is anybody currently able to compile the utilities?
Robert
--
+--------------------------------------------------------+
| Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de |
| Pengutronix - Linux Solutions for Science and Industry |
| Braunschweiger Str. 79, 31134 Hildesheim, Germany |
| Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4 |
+--------------------------------------------------------+
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.4.18-howto?
2002-05-07 5:42 ` 2.4.18-howto? Robert Schwebel
@ 2002-05-07 11:19 ` Thomas Gleixner
0 siblings, 0 replies; 9+ messages in thread
From: Thomas Gleixner @ 2002-05-07 11:19 UTC (permalink / raw)
To: Robert Schwebel, linux-mtd
On Tuesday, 7. May 2002 07:42, Robert Schwebel wrote:
> On Fri, May 03, 2002 at 09:47:38PM +0200, Robert Schwebel wrote:
> > can somebody give me a short pointer what has to be done to patch 2.4.18
> > with the mtd stuff from cvs?
>
> Too trivial...? Should it just work? If I missed a HOWTO please excuse,
> I've tried hard to find one :) A short pointer would be great.
>
> Is anybody currently able to compile the utilities?
Yep, I just type make in the util directory and they compile without
complains. I get the code out of CVS enter the directory patches, do
.patchin.sh with my kernel directory as argument, then change to util, type
make and that's it.
--
Thomas
___________________________________
autronix automation GmbH
http://www.autronix.de gleixner@autronix.de
^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <81D0D3538E3CD411AE3C00D0B7474C31C8EE37@jadran.hermes.si>]
* Re: 2.4.18-howto?
[not found] <81D0D3538E3CD411AE3C00D0B7474C31C8EE37@jadran.hermes.si>
@ 2002-05-07 13:00 ` Robert Schwebel
2002-05-07 16:16 ` 2.4.18-howto? Robert Kaiser
0 siblings, 1 reply; 9+ messages in thread
From: Robert Schwebel @ 2002-05-07 13:00 UTC (permalink / raw)
To: Ludvik Kumin; +Cc: linux-mtd
Hi Ludvik,
On Tue, May 07, 2002 at 01:31:52PM +0200, Ludvik Kumin wrote:
> I work with 2.4.18, but I don't use the latest SW from CVS (I use the
> original code from the kernel and it works OK - at least the part I need).
I need the ADNP concaternation layer stuff...
> About the HOWTO: do you have "jffs-mtd-HOWTO.txt"?
Yes, but it is nearly one year old.
Robert
--
+--------------------------------------------------------+
| Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de |
| Pengutronix - Linux Solutions for Science and Industry |
| Braunschweiger Str. 79, 31134 Hildesheim, Germany |
| Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4 |
+--------------------------------------------------------+
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: 2.4.18-howto?
2002-05-07 13:00 ` 2.4.18-howto? Robert Schwebel
@ 2002-05-07 16:16 ` Robert Kaiser
2002-05-07 17:34 ` 2.4.18-howto? Robert Schwebel
0 siblings, 1 reply; 9+ messages in thread
From: Robert Kaiser @ 2002-05-07 16:16 UTC (permalink / raw)
To: linux-mtd
Am Dienstag, 7. Mai 2002 15:00 schrieb Robert Schwebel:
> Hi Ludvik,
>
> On Tue, May 07, 2002 at 01:31:52PM +0200, Ludvik Kumin wrote:
> > I work with 2.4.18, but I don't use the latest SW from CVS (I use the
> > original code from the kernel and it works OK - at least the part I
> > need).
>
> I need the ADNP concaternation layer stuff...
Does this part cause any specific trouble ? (if so, which ?)
>
> > About the HOWTO: do you have "jffs-mtd-HOWTO.txt"?
>
> Yes, but it is nearly one year old.
.. which doesn't necessarily mean it's outdated...
I read in an earlier mail that your problem is with compiling the utils (all
of them or is it just mkfs.jffs ?). Note that you don't necessarily need this
program, even if you plan on using jffs2. The only utils you really need are
erase and eraseall.
Anyway, I just did the following:
* pull the latest stuff from the MTD CVS (i.e. "cvs up")
* cd mtd/utils;make
.. and it worked (Suse 7.3).
Rob
----------------------------------------------------------------
Robert Kaiser email: rkaiser@sysgo.de
SYSGO RTS GmbH
Am Pfaffenstein 14 phone: (49) 6136 9948-762
D-55270 Klein-Winternheim / Germany fax: (49) 6136 9948-10
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.4.18-howto?
2002-05-07 16:16 ` 2.4.18-howto? Robert Kaiser
@ 2002-05-07 17:34 ` Robert Schwebel
2002-05-08 10:33 ` 2.4.18-howto? Robert Kaiser
0 siblings, 1 reply; 9+ messages in thread
From: Robert Schwebel @ 2002-05-07 17:34 UTC (permalink / raw)
To: rkaiser; +Cc: linux-mtd
Hi Robert,
On Tue, May 07, 2002 at 06:16:10PM +0200, Robert Kaiser wrote:
> > I need the ADNP concaternation layer stuff...
>
> Does this part cause any specific trouble ? (if so, which ?)
Yes, it doesn't work yet :-)
# cat /proc/mtd
dev: size erasesize name
#
This is also interesting, during boot:
DIL/Net ADNP flash: 0x400000 at 0x2000000
FLASH virtual address: 0xc180d000
CFI: Found no ADNP Flash Bank device at location zero
> > Yes, but it is nearly one year old.
>
> .. which doesn't necessarily mean it's outdated...
<quote>
This document will attempt to describe setting up the MTD (Memory
Technology Devices), DOC, CFI and the JFFS (Journaling Flash File System)
under Linux versions 2.2.x and 2.4.x
</quote>
According to what I've read on the list it looks like it is currently more
like for 2.4 and 2.5? I've found a hint somewhere in the list archive that
ther exists an 2_4-branch, but trying to check it out results in nearly all
files being removed from my working copy.
Is there any possibility to find out for a cvs repository which branches do
exist? However, a hint in the howto would be great how things are meant to
work for 2.4 and for 2.5. If you send me the infos I'll send a patch :-)
This: http://www.linux-mtd.infradead.org/ is also terribly outdated (latest
changelog from 2000). And there's no pointer on this page to David's page
at Red Hat, which contains a nice paper about MTD/JFFS.
> I read in an earlier mail that your problem is with compiling the utils
> (all of them or is it just mkfs.jffs ?). Note that you don't necessarily
> need this program, even if you plan on using jffs2. The only utils you
> really need are erase and eraseall.
Don't ask - some dark magic has blown most of the problems away today, I
can compile the tools now.
Robert
--
+--------------------------------------------------------+
| Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de |
| Pengutronix - Linux Solutions for Science and Industry |
| Braunschweiger Str. 79, 31134 Hildesheim, Germany |
| Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4 |
+--------------------------------------------------------+
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.4.18-howto?
2002-05-07 17:34 ` 2.4.18-howto? Robert Schwebel
@ 2002-05-08 10:33 ` Robert Kaiser
0 siblings, 0 replies; 9+ messages in thread
From: Robert Kaiser @ 2002-05-08 10:33 UTC (permalink / raw)
To: Robert Schwebel; +Cc: linux-mtd
Am Dienstag, 7. Mai 2002 19:34 schrieben Sie:
> Hi Robert,
>
> On Tue, May 07, 2002 at 06:16:10PM +0200, Robert Kaiser wrote:
> > > I need the ADNP concaternation layer stuff...
> >
> > Does this part cause any specific trouble ? (if so, which ?)
>
> Yes, it doesn't work yet :-)
>
> # cat /proc/mtd
> dev: size erasesize name
> #
>
> This is also interesting, during boot:
> DIL/Net ADNP flash: 0x400000 at 0x2000000
> FLASH virtual address: 0xc180d000
> CFI: Found no ADNP Flash Bank device at location zero
It appears you got the chip settings wrong (the (A)DNP mapping driver only
provides the mappings for the flash chip(s), but doesn't directly deal with
the flash. Therefore, you must also make the proper selections in the chip
drivers section. It's been a while since I last did this, but I believe for
an (A)DNP, you need the following:
CONFIG_MTD_CFI=y
CONFIG_MTD_JEDECPROBE=y
Cheers
Rob
--
----------------------------------------------------------------
Robert Kaiser email: rkaiser@sysgo.de
SYSGO RTS GmbH
Am Pfaffenstein 14 phone: (49) 6136 9948-762
D-55270 Klein-Winternheim / Germany fax: (49) 6136 9948-10
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2002-05-08 10:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-03 19:47 2.4.18-howto? Robert Schwebel
2002-05-04 13:11 ` 2.4.18-howto? Robert Schwebel
2002-05-04 19:32 ` 2.4.18-howto? Robert Schwebel
2002-05-07 5:42 ` 2.4.18-howto? Robert Schwebel
2002-05-07 11:19 ` 2.4.18-howto? Thomas Gleixner
[not found] <81D0D3538E3CD411AE3C00D0B7474C31C8EE37@jadran.hermes.si>
2002-05-07 13:00 ` 2.4.18-howto? Robert Schwebel
2002-05-07 16:16 ` 2.4.18-howto? Robert Kaiser
2002-05-07 17:34 ` 2.4.18-howto? Robert Schwebel
2002-05-08 10:33 ` 2.4.18-howto? Robert Kaiser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox