linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* ppc linux kernel 2.4.4 for ppc440/EBony using ELDK 2.0.2?
@ 2003-04-03  1:24 Xiaolong Li
  2003-04-03  7:27 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Xiaolong Li @ 2003-04-03  1:24 UTC (permalink / raw)
  To: linuxppc-embedded


Hello:

I am currently working on IBM's 440GP Ebony evaluation board,
trying to run Linux on it. I installed ELDK 2.0.2 on RedHat 7.1,
and sucessfully compiled ppcboot, which runs smoothly on 440GP.

Now I am trying to build a Linux kernel 2.4.4 (which is included in
ELDK 2.0.2), but I see some errors regarding to mfdcr/DCRN_EXISR.

My question is: have anybody successfully built a Linux 2.4.4 kernel
for ppc 440GP/Ebony board? what changes did you make to the
kernel source to have it work? is there any patch available?

Thanks,

El

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: ppc linux kernel 2.4.4 for ppc440/EBony using ELDK 2.0.2?
  2003-04-03  1:24 ppc linux kernel 2.4.4 for ppc440/EBony using ELDK 2.0.2? Xiaolong Li
@ 2003-04-03  7:27 ` Wolfgang Denk
  2003-04-04  0:45   ` El Topo
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2003-04-03  7:27 UTC (permalink / raw)
  To: Xiaolong Li; +Cc: linuxppc-embedded


In message <009801c2f97f$d8917790$1464a8c0@sjeng3> you wrote:
>
> I am currently working on IBM's 440GP Ebony evaluation board,
> trying to run Linux on it. I installed ELDK 2.0.2 on RedHat 7.1,
> and sucessfully compiled ppcboot, which runs smoothly on 440GP.
>
> Now I am trying to build a Linux kernel 2.4.4 (which is included in
> ELDK 2.0.2), but I see some errors regarding to mfdcr/DCRN_EXISR.

The 2.4.4 LInux kernel as included in this version of the ELDK is not
suitable for 4xx systems. Please use  the  linuxppc_2_4_devel  kernel
tree instead; see http://penguinppc.org/dev/kernel.shtml


Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Randal said it would be tough to do in sed. He didn't say  he  didn't
understand  sed.  Randal  understands sed quite well. Which is why he
uses Perl. :-)         - Larry Wall in <7874@jpl-devvax.JPL.NASA.GOV>

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: ppc linux kernel 2.4.4 for ppc440/EBony using ELDK 2.0.2?
  2003-04-03  7:27 ` Wolfgang Denk
@ 2003-04-04  0:45   ` El Topo
  2003-04-04  7:00     ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: El Topo @ 2003-04-04  0:45 UTC (permalink / raw)
  To: linuxppc-embedded


> The 2.4.4 LInux kernel as included in this version of the ELDK is not
> suitable for 4xx systems. Please use  the  linuxppc_2_4_devel  kernel
> tree instead; see http://penguinppc.org/dev/kernel.shtml
>
>
> Wolfgang Denk

Thanks Wolfgang.

I've got the linuxppc_2_4_devel tree, made config for 440/Ebony,
then when I compiled the kernel, I got this problem:

================= output of "make vmlinux" ====================
ppc_4xx-gcc -D__KERNEL__ -I/home/lxl/linuxppc_2_4_devel/include -Wall -Wstri
ct-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-fra
me-pointer -I/home/lxl/linuxppc_2_4_devel/arch/ppc -fsigned-char -msoft-floa
t -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -Wa,-m405   -nostd
inc -iwithprefix
include -DKBUILD_BASENAME=sched  -fno-omit-frame-pointer -c -o sched.o
sched.c
In file included from /home/lxl/linuxppc_2_4_devel/include/linux/wait.h:13,
                 from /home/lxl/linuxppc_2_4_devel/include/linux/fs.h:12,
                 from
/home/lxl/linuxppc_2_4_devel/include/linux/capability.h:17,
                 from
/home/lxl/linuxppc_2_4_devel/include/linux/binfmts.h:5,
                 from /home/lxl/linuxppc_2_4_devel/include/linux/sched.h:9,
                 from /home/lxl/linuxppc_2_4_devel/include/linux/mm.h:4,
                 from sched.c:23:
/home/lxl/linuxppc_2_4_devel/include/linux/kernel.h:10: stdarg.h: No such
file or directory
In file included from /home/lxl/linuxppc_2_4_devel/include/linux/wait.h:13,
                 from /home/lxl/linuxppc_2_4_devel/include/linux/fs.h:12,
                 from
/home/lxl/linuxppc_2_4_devel/include/linux/capability.h:17,
                 from
/home/lxl/linuxppc_2_4_devel/include/linux/binfmts.h:5,
                 from /home/lxl/linuxppc_2_4_devel/include/linux/sched.h:9,
                 from /home/lxl/linuxppc_2_4_devel/include/linux/mm.h:4,
                 from sched.c:23:
/home/lxl/linuxppc_2_4_devel/include/linux/kernel.h:74: parse error before
`va_list'
/home/lxl/linuxppc_2_4_devel/include/linux/kernel.h:74: warning: function
declaration isn't a prototype
/home/lxl/linuxppc_2_4_devel/include/linux/kernel.h:77: parse error before
`va_list'
/home/lxl/linuxppc_2_4_devel/include/linux/kernel.h:77: warning: function
declaration isn't a prototype
/home/lxl/linuxppc_2_4_devel/include/linux/kernel.h:81: parse error before
`va_list'
/home/lxl/linuxppc_2_4_devel/include/linux/kernel.h:81: warning: function
declaration isn't a prototype
make[2]: *** [sched.o] Error 1
make[2]: Leaving directory `/home/lxl/linuxppc_2_4_devel/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/home/lxl/linuxppc_2_4_devel/kernel'
make: *** [_dir_kernel] Error 2
===============end of output of "make vmlinux" ====================

This is indeed weird, how could ppc_4xx-gcc not find "stdarg.h"? the same
version
still works for the stable linuxppc-2.4.4, and I saw
/home/lxl/linuxppc_2_4_devel/include/linux/kernel.h
also has #include <stdarg.h> but ppc_4xx-gcc has no problem finding
stdarg.h.
I doubt checked and made sure I have stdarg.h at
$(eldk_root)/ppc_4xx/usr/lib/gcc-lib/ppc-linux/2.95.4/include/stdarg.h

Anybody has this problem? or has any idea how I can make it work?

Thanks,

El


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* RE: ppc linux kernel 2.4.4 for ppc440/EBony using ELDK 2.0.2?
@ 2003-04-04  1:41 xiaogeng_jin
  0 siblings, 0 replies; 5+ messages in thread
From: xiaogeng_jin @ 2003-04-04  1:41 UTC (permalink / raw)
  To: ElTopo, linuxppc-embedded


Search EBony and ELDK in this mail list. THis topic has been discussed for several times. A short answer is as follows.

#kbuild_2_4_nostdinc	:= -nostdinc -iwithprefix include
kbuild_2_4_nostdinc	:= -nostdinc $(shell $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')

- Shawn.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: ppc linux kernel 2.4.4 for ppc440/EBony using ELDK 2.0.2?
  2003-04-04  0:45   ` El Topo
@ 2003-04-04  7:00     ` Wolfgang Denk
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2003-04-04  7:00 UTC (permalink / raw)
  To: El Topo; +Cc: linuxppc-embedded


Hi,

in message <005301c2fa43$73a1c690$1464a8c0@sjeng3> you wrote:
>
> I've got the linuxppc_2_4_devel tree, made config for 440/Ebony,
> then when I compiled the kernel, I got this problem:
...
> /home/lxl/linuxppc_2_4_devel/include/linux/kernel.h:10: stdarg.h: No such
> file or directory
...
> This is indeed weird, how could ppc_4xx-gcc not find "stdarg.h"? the same
> version
> still works for the stable linuxppc-2.4.4, and I saw
> /home/lxl/linuxppc_2_4_devel/include/linux/kernel.h
> also has #include <stdarg.h> but ppc_4xx-gcc has no problem finding
> stdarg.h.
> I doubt checked and made sure I have stdarg.h at
> $(eldk_root)/ppc_4xx/usr/lib/gcc-lib/ppc-linux/2.95.4/include/stdarg.h
>
> Anybody has this problem? or has any idea how I can make it work?

This is a known problem. We use the following modification to the top
level makefile  in  our  version  of  the  source  tree  (see  module
linuxppc_2_4_devel on our CVS server):

Index: Makefile
===================================================================
RCS file: /cvsroot/linuxppc_2_4_devel/Makefile,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Makefile	1 Dec 2002 22:42:52 -0000	1.6
+++ Makefile	1 Dec 2002 23:36:15 -0000	1.7
...
@@ -261,7 +263,8 @@
 # 'kbuild_2_4_nostdinc :=' or -I/usr/include for kernel code and you are not UML
 # then your code is broken!  KAO.

-kbuild_2_4_nostdinc	:= -nostdinc $(shell $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')
+kbuild_2_4_nostdinc	:= -nostdinc $(shell $(CC) -print-search-dirs | \
+				sed -ne 's/install: \(.*\)/-I \1include/gp')
 export kbuild_2_4_nostdinc

 export	CPPFLAGS CFLAGS CFLAGS_KERNEL AFLAGS AFLAGS_KERNEL
...


Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Intel told us the Pentium would have "RISK" features...

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2003-04-04  7:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-03  1:24 ppc linux kernel 2.4.4 for ppc440/EBony using ELDK 2.0.2? Xiaolong Li
2003-04-03  7:27 ` Wolfgang Denk
2003-04-04  0:45   ` El Topo
2003-04-04  7:00     ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2003-04-04  1:41 xiaogeng_jin

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).