<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: Unable to build ELDK 4.0 </TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>-----Original Message-----<BR>
From: Wolfgang Denk [<A HREF="mailto:wd@denx.de">mailto:wd@denx.de</A>]<BR>
Sent: Thu 8/31/2006 11:58 AM<BR>
To: Mathews, Phil<BR>
Cc: Linuxppc-embedded@ozlabs.org<BR>
Subject: Re: Unable to build ELDK 4.0<BR>
<BR>
Dear Phil,<BR>
<BR>
in message <3E8081396F6B524BA2854E7FA3F16438042EB1DB@mail.innocon.com> you wrote:<BR>
><BR>
> I am attempting to build the ELDK kernel using the directions in<BR>
> /home/mathews/ELDK/ppc_6xx/usr/src/linux-2.6.15/README. The makefile is<BR>
<BR>
Please also RTFM: <A HREF="http://www.denx.de/wiki/DULG/Manual?stickboard=yosemite">http://www.denx.de/wiki/DULG/Manual?stickboard=yosemite</A> ,<BR>
especially section "6.2. Kernel Configuration and Compilation":<BR>
<A HREF="http://www.denx.de/wiki/view/DULG/LinuxConfiguration#Section_6.2">http://www.denx.de/wiki/view/DULG/LinuxConfiguration#Section_6.2</A>.<BR>
<BR>
Note that I selected the DULG-version for a board for which 2.6<BR>
kernel support is available.<BR>
<BR>
> trying to execute powerPC code (fixdep) on my Pentium box. Where can I<BR>
> get a X86 version of this program?<BR>
<BR>
This is a consequence of wrong make commands.<BR>
<BR>
> ##### Make attempt:<BR>
> mathews@mathews:~/ELDK/ppc_6xx/usr/src/linux-2.6.15> make<BR>
> O=/home/name/build/kernel menuconfig<BR>
<BR>
You must pass correct ARCH= and CROSS_COMPILE= arguments when running<BR>
make, i. e.<BR>
<BR>
make ARCH=ppc CROSS_COMPILE=ppc_6xx- ... menuconfig<BR>
<BR>
etc. Also make sure to start from a clean source tree, i. e. run<BR>
"make mrproper" to clean up before configuring your board.<BR>
<BR>
Best regards,<BR>
<BR>
Wolfgang Denk<BR>
<BR>
--<BR>
Software Engineering: Embedded and Realtime Systems, Embedded Linux<BR>
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de<BR>
A modem is a baudy house.<BR>
<BR>
====================<BR>
------Follow Up-----<BR>
====================<BR>
<BR>
After doing "make mrproper" and again following the README file that came with ELDK:<BR>
<BR>
env | grep -e ARCH -e COMPILE<BR>
ARCH=ppc<BR>
CROSS_COMPILE=ppc_6xx-<BR>
<BR>
mathews@mathews:~/ELDK/ppc_6xx/usr/src/linux-2.6.15> make O=/home/name/build/kernel menuconfig<BR>
HOSTCC scripts/basic/fixdep<BR>
In file included from /home/mathews/ELDK/usr/../ppc_6xx/usr/include/sys/socket.h:35,<BR>
from /home/mathews/ELDK/usr/../ppc_6xx/usr/include/netinet/in.h:24,<BR>
from /home/mathews/ELDK/usr/../ppc_6xx/usr/include/arpa/inet.h:23,<BR>
from /home/mathews/ELDK/ppc_6xx/usr/src/linux-2.6.15/scripts/basic/fixdep.c:115:<BR>
/home/mathews/ELDK/usr/../ppc_6xx/usr/include/bits/socket.h:304:24: error: asm/socket.h: No such file or directory<BR>
make[2]: *** [scripts/basic/fixdep] Error 1<BR>
make[1]: *** [scripts_basic] Error 2<BR>
make: *** [menuconfig] Error 2<BR>
</FONT>
</P>
</BODY>
</HTML>