linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* problem compiling linux with ELDK: `bd_t' undeclared
@ 2005-04-29 15:47 Peter Asemann
  2005-04-29 20:55 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Asemann @ 2005-04-29 15:47 UTC (permalink / raw)
  To: linuxppc-embedded

Hi there!

I'm having a problem compiling Linux 2.4.25 as included in ELDK version 
3.1 / Build 2004-11-10.

When trying to compile ppc_8xx/usr/src/linux-2.4.25/drivers/char/flash.c 
it throws an error:

ppc_8xx-gcc -D__KERNEL__ 
-I/opt/asemann/eldk/ppc_8xx/usr/src/linux-2.4.25/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer 
-I/opt/asemann/eldk/ppc_8xx/usr/src/linux-2.4.25/arch/ppc -fsigned-char 
-msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring 
-nostdinc -I /opt/asemann/eldk/usr/lib/gcc-lib/ppc-linux/3.3.3/include 
-DKBUILD_BASENAME=flash  -c -o flash.o flash.c
flash.c: In function `flash_init':
flash.c:446: error: `bd_t' undeclared (first use in this function)
flash.c:446: error: (Each undeclared identifier is reported only once
flash.c:446: error: for each function it appears in.)
flash.c:446: error: `bd' undeclared (first use in this function)
flash.c:446: error: parse error before ')' token
make[3]: *** [flash.o] Error 1

It looks like it misses ppcboot.h or something. Is there something I 
need to select in the kernel configuration to get rid of that error?

Thanks for reading,

Peter Asemann

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

* Re: problem compiling linux with ELDK: `bd_t' undeclared
  2005-04-29 15:47 problem compiling linux with ELDK: `bd_t' undeclared Peter Asemann
@ 2005-04-29 20:55 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2005-04-29 20:55 UTC (permalink / raw)
  To: Peter Asemann; +Cc: linuxppc-embedded

In message <427256F5.8080903@web.de> you wrote:
> 
> I'm having a problem compiling Linux 2.4.25 as included in ELDK version 
> 3.1 / Build 2004-11-10.
> 
> When trying to compile ppc_8xx/usr/src/linux-2.4.25/drivers/char/flash.c 
> it throws an error:

You are using an inappropriate configuration of the Linux kernel.

> It looks like it misses ppcboot.h or something. Is there something I 
> need to select in the kernel configuration to get rid of that error?

Not to select, but to unselect: don't try enabling  the  CONFIG_FLASH
option  if (1) you don't know exactly what you're doing *and* (2) you
are really using on of the boards supported by this driver (which  is
obsolete und unsupported, btw.).

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
A failure will not appear until a unit has passed final inspection.

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

end of thread, other threads:[~2005-04-29 20:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-29 15:47 problem compiling linux with ELDK: `bd_t' undeclared Peter Asemann
2005-04-29 20:55 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).