public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* compiling latest CVS
@ 2003-08-01 22:08 Tim Drury
  2003-08-01 22:17 ` Tim Drury
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Drury @ 2003-08-01 22:08 UTC (permalink / raw)
  To: linux-mtd


I got the latest CVS to build, but with a few issues.

patches/patchin.sh ran successfully.  Upon building my kernel
modules I got an error in nand.c that 'i' was undeclared.  So in
mtd/drivers/nand/nand.c, line 936 add 'i' to the int declaration.

Now cross-compiling the kernel and modules worked fine.

I sym-linked mtd/util into the kernel source base as instructed
in the README.  Building failed complaining about something in
crc32.h and I realized that it wasn't finding linux/types.h.
I needed to include the linux kernel include directory to get
past this.  Then it failed trying to find zlib.h.  Added that
then it failed to find libz.so.  

The above can all be done without modifying files:

make CROSS=i386-linux- CFLAGS='-I/path/to/kernel/linux-2.4.21/include
-I/path/to/zlib-1.4.1' \
LDFLAGS=-L/path/to/zlib/lib

and everything cross-compiled to my target system.  Was pointing to
the kernel/include directory bad?

-tim

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: compiling latest CVS
  2003-08-01 22:08 compiling latest CVS Tim Drury
@ 2003-08-01 22:17 ` Tim Drury
  0 siblings, 0 replies; 2+ messages in thread
From: Tim Drury @ 2003-08-01 22:17 UTC (permalink / raw)
  To: linux-mtd


oops - that path to 'zlib-1.4.1' should read 'zlib-1.1.4' - hopefully
you got the point.

-tim

> -----Original Message-----
> From: linux-mtd-bounces@lists.infradead.org 
> [mailto:linux-mtd-bounces@lists.infradead.org] On Behalf Of Tim Drury
> Sent: Friday, August 01, 2003 6:08 PM
> To: linux-mtd@lists.infradead.org
> Subject: compiling latest CVS
> 
> 
> 
> I got the latest CVS to build, but with a few issues.
> 
> patches/patchin.sh ran successfully.  Upon building my kernel 
> modules I got an error in nand.c that 'i' was undeclared.  So 
> in mtd/drivers/nand/nand.c, line 936 add 'i' to the int declaration.
> 
> Now cross-compiling the kernel and modules worked fine.
> 
> I sym-linked mtd/util into the kernel source base as 
> instructed in the README.  Building failed complaining about 
> something in crc32.h and I realized that it wasn't finding 
> linux/types.h. I needed to include the linux kernel include 
> directory to get past this.  Then it failed trying to find 
> zlib.h.  Added that then it failed to find libz.so.  
> 
> The above can all be done without modifying files:
> 
> make CROSS=i386-linux- CFLAGS='-I/path/to/kernel/linux-2.4.21/include
> -I/path/to/zlib-1.4.1' \
> LDFLAGS=-L/path/to/zlib/lib
> 
> and everything cross-compiled to my target system.  Was 
> pointing to the kernel/include directory bad?
> 
> -tim
> 
> 
> 
> 
> ______________________________________________________
> Linux MTD discussion mailing list 
> http://lists.infradead.org/mailman/listinfo/li> nux-mtd/
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-01 22:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-01 22:08 compiling latest CVS Tim Drury
2003-08-01 22:17 ` Tim Drury

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox