<font color='black' size='2' face='arial'><font face="arial" color="black" size="2">

<div> 
<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">Try this:<br>
<br>
./configure
--prefix=/home/user1/buildroot-2011.05/output/target/opt \ </span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">--with-linux-dir=/home/user1/buildroot-2011.05/output/build/linux-2.6.33
\</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">--enable-generic
--host=arm-unknown-linux-uclibcgnueabi-</span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black"><br>
</span></font></div>

</div>



<div> <font face="arial" color="black" size="2"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">Make sure /home/user1/buildroot-2011.05/output/host/usr/bin/</span></font></font> is in your PATH.<br>
<br>
<apologies for my AOL lameness><br>
</div>



<div> <br>

</div>



<div style="font-family:arial,helvetica;font-size:10pt;color:black">-----Original Message-----<br>

From: Jeff Krasky <jeff.krasky@dspcg.com><br>

To: etherlab-users <etherlab-users@etherlab.org><br>

Sent: Wed, Nov 16, 2011 4:49 pm<br>

Subject: Re: [etherlab-users] install on non-PC<br>

<br>









<div id="AOLMsgPart_2_51dafb3e-ca27-4f8a-a169-404bd2d0e7ff">






<style>#AOLMsgPart_2_51dafb3e-ca27-4f8a-a169-404bd2d0e7ff td{color: black;}      @font-face  {font-family:"MS Mincho";  panose-1:2 2 6 9 4 2 5 8 3 4;} @font-face  {font-family:"@MS Mincho";}    #AOLMsgPart_2_51dafb3e-ca27-4f8a-a169-404bd2d0e7ff p.MsoNormal,#AOLMsgPart_2_51dafb3e-ca27-4f8a-a169-404bd2d0e7ff  li.MsoNormal,#AOLMsgPart_2_51dafb3e-ca27-4f8a-a169-404bd2d0e7ff  div.MsoNormal  {margin:0in;  margin-bottom:.0001pt;  font-size:12.0pt;  font-family:"Times New Roman";} #AOLMsgPart_2_51dafb3e-ca27-4f8a-a169-404bd2d0e7ff span.EmailStyle18  {mso-style-type:personal;  font-family:"Times New Roman";  color:black;  font-weight:normal;  font-style:normal;  text-decoration:none none;} #AOLMsgPart_2_51dafb3e-ca27-4f8a-a169-404bd2d0e7ff 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;} #AOLMsgPart_2_51dafb3e-ca27-4f8a-a169-404bd2d0e7ff div.Section1  {page:Section1;}  </style>







<div class="Section1">



<div>



<div id="AOLMsgPart_2_54fc710b-e7a9-4453-a339-5b53fa43d8d2">



<div>



<div>



<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><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 </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black">> provided my the chip vendor:<br>


></span></font><font face="Arial" color="black" size="2"><span style="font-size: 10.0pt;font-family:Arial;color:black"></span></font></div>



</div>





<div>



<div class="MsoNormal"><font face="Arial" color="black" size="2"><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>


</span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><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:</span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black"> </span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">user1@dhcppc15:~/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d>
./bootstrap </span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">+ touch ChangeLog</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">+ autoreconf -i</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">libtoolize: putting
auxiliary files in AC_CONFIG_AUX_DIR, `autoconf'.</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">libtoolize: copying file
`autoconf/ltmain.sh'</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">libtoolize: putting macros
in AC_CONFIG_MACRO_DIR, `m4'.</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">libtoolize: copying file
`m4/libtool.m4'</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">libtoolize: copying file
`m4/ltoptions.m4'</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">libtoolize: copying file
`m4/ltsugar.m4'</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">libtoolize: copying file
`m4/ltversion.m4'</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">libtoolize: copying file
`m4/lt~obsolete.m4'</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">configure.ac:45: installing
`autoconf/compile'</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">configure.ac:44: installing
`autoconf/config.guess'</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">configure.ac:44: installing
`autoconf/config.sub'</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">configure.ac:33: installing
`autoconf/install-sh'</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">configure.ac:33: installing
`autoconf/missing'</span></font></div>





<div class="MsoNormal"><font face="Courier New" size="2"><span style="font-size:10.0pt; font-family:">examples/dc_user/Makefile.am: installing
`autoconf/depcomp'</span></font></div>





<div class="MsoNormal"><font face="Courier New" size="2"><span style="font-size:10.0pt; font-family:"> </span></font></div>





<div class="MsoNormal"><font face="Courier New" size="2"><span style="font-size:10.0pt; font-family:"> </span></font></div>





<div class="MsoNormal"><font face="Courier New" size="2"><span style="font-size:10.0pt; font-family:"> </span></font></div>





<div class="MsoNormal"><font face="Courier New" size="2"><span style="font-size:10.0pt; font-family:">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:</span></font></div>





<div class="MsoNormal"><font face="Courier New" size="2"><span style="font-size:10.0pt; font-family:"> </span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">./configure
--prefix=/home/user1/buildroot-2011.05/output/target/opt \ </span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">--with-linux-dir=/home/user1/buildroot-2011.05/output/build/linux-2.6.33
\</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">--enable-generic
--host=/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc</span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black">And this is the output:</span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black"> </span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">configure: WARNING: if you
wanted to set the --build type, don't use --host.</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">    If a
cross compiler is detected then cross compile mode will be used</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for a
BSD-compatible install... /usr/bin/install -c</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking whether build
environment is sane... yes</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-strip...
no</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for strip... strip</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for a thread-safe
mkdir -p... /bin/mkdir -p</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for gawk... gawk</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking whether make sets
$(MAKE)... yes</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-g++...
no</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-c++...
no</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-gpp...
no</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-aCC...
no</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-CC...
no</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-cxx...
no</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-cc++...
no</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-cl.exe...
no</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-FCC...
no</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-KCC...
no</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-RCC...
no</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-xlC_r...
no</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-xlC...
no</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for g++... g++</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking whether the C++
compiler works... yes</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for C++ compiler
default output file name... a.out</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for suffix of
executables... </span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking whether we are
cross compiling... no</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for suffix of
object files... o</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking whether we are
using the GNU C++ compiler... yes</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking whether g++ accepts
-g... yes</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking for style of
include used by make... GNU</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking dependency style of
g++... gcc3</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">checking build system
type... i686-suse-linux-gnu</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">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</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" size="2"><span style="font-size:10.0pt;font-family:">configure: error: /bin/sh
autoconf/config.sub
/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc
failed</span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><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?</span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black">Thanks,</span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="2"><span style="font-size:11.0pt;color:black">Jeff</span></font></div>



</div>



</div>



</div>



</div>



</div>







</div>

 <!-- end of AOLMsgPart_2_51dafb3e-ca27-4f8a-a169-404bd2d0e7ff -->



<div id="AOLMsgPart_3_51dafb3e-ca27-4f8a-a169-404bd2d0e7ff" style="margin: 0px;font-family: Tahoma, Verdana, Arial, Sans-Serif;font-size: 12px;color: #000;background-color: #fff;">

<pre style="font-size: 9pt;"><tt>_______________________________________________
etherlab-users mailing list
<a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a>
<a href="http://lists.etherlab.org/mailman/listinfo/etherlab-users" target="_blank">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a>
</tt></pre>
</div>

 <!-- end of AOLMsgPart_3_51dafb3e-ca27-4f8a-a169-404bd2d0e7ff -->



</div>

</font></font>