<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
{font-family:"\@MS Mincho";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Times New Roman";
color:black;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Times New Roman";
color:black;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link="#000000" vlink="#000000">
<div class=Section1>
<div>
<div id="AOLMsgPart_2_54fc710b-e7a9-4453-a339-5b53fa43d8d2">
<div>
<div>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'>Instructions from a previous mail about compiling
for non-x86:<br>
<br>
> Here's how I recently cross built on x86 Ubuntu 10.04LTS for an ARM system
with kernel sources and toolchain <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'>> provided my the chip vendor:<br>
></span></font><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'>>On host:<br>
><br>
>TARG_KERNEL is path to kernel sources for target system<br>
>TARG_FS is path to filesystem of target system<br>
><br>
>In Etherlab source dir:<br>
><br>
> ./configure --prefix=$TARG_FS/opt --with-linux-dir=$TARG_KERNEL \<br>
>
--enable-generic --host=arm-none-linux-gnueabi-<br>
><br>
<br>
<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'>I use buildroot to generate the Linux
kernel for the target board. So then I put etherlabmaster-4adb56c4198d in
a folder on the Linux PC. I went into the folder etherlabmaster-4adb56c4198d
and did this:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>user1@dhcppc15:~/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d>
./bootstrap <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>+ touch ChangeLog<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>+ autoreconf -i<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>libtoolize: putting
auxiliary files in AC_CONFIG_AUX_DIR, `autoconf'.<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>libtoolize: copying file
`autoconf/ltmain.sh'<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>libtoolize: putting macros
in AC_CONFIG_MACRO_DIR, `m4'.<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>libtoolize: copying file
`m4/libtool.m4'<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>libtoolize: copying file
`m4/ltoptions.m4'<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>libtoolize: copying file
`m4/ltsugar.m4'<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>libtoolize: copying file
`m4/ltversion.m4'<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>libtoolize: copying file
`m4/lt~obsolete.m4'<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>configure.ac:45: installing
`autoconf/compile'<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>configure.ac:44: installing
`autoconf/config.guess'<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>configure.ac:44: installing
`autoconf/config.sub'<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>configure.ac:33: installing
`autoconf/install-sh'<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>configure.ac:33: installing
`autoconf/missing'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>examples/dc_user/Makefile.am: installing
`autoconf/depcomp'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>So everything seems ok so far and I saw the
configure file get generate. So filling in the TARG_FS and TARG_KERNEL
values from above suggestion, I then did this:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>./configure
--prefix=/home/user1/buildroot-2011.05/output/target/opt \ <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>--with-linux-dir=/home/user1/buildroot-2011.05/output/build/linux-2.6.33
\<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>--enable-generic
--host=/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'>And this is the output:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>configure: WARNING: if you
wanted to set the --build type, don't use --host.<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> If a
cross compiler is detected then cross compile mode will be used<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for a
BSD-compatible install... /usr/bin/install -c<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking whether build
environment is sane... yes<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-strip...
no<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for strip... strip<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for a thread-safe
mkdir -p... /bin/mkdir -p<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for gawk... gawk<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking whether make sets
$(MAKE)... yes<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-g++...
no<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-c++...
no<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-gpp...
no<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-aCC...
no<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-CC...
no<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-cxx...
no<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-cc++...
no<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-cl.exe...
no<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-FCC...
no<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-KCC...
no<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-RCC...
no<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-xlC_r...
no<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-xlC...
no<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for g++... g++<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking whether the C++
compiler works... yes<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for C++ compiler
default output file name... a.out<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for suffix of
executables... <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking whether we are
cross compiling... no<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for suffix of
object files... o<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking whether we are
using the GNU C++ compiler... yes<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking whether g++ accepts
-g... yes<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking for style of
include used by make... GNU<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking dependency style of
g++... gcc3<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking build system
type... i686-suse-linux-gnu<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>checking host system type...
Invalid configuration
`/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc':
machine
`/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi'
not recognized<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>configure: error: /bin/sh
autoconf/config.sub
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc
failed<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'>Can someone offer a suggestion about how
to improve this so that I can build EtherCAT into the Linux kernel/fs that I
build for the target board?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'>Thanks,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;color:black'>Jeff<o:p></o:p></span></font></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>