[etherlab-users] install on non-PC

babbittner at aol.com babbittner at aol.com
Thu Nov 17 14:29:33 CET 2011


 
Try this:

./configure--prefix=/home/user1/buildroot-2011.05/output/target/opt \ 
--with-linux-dir=/home/user1/buildroot-2011.05/output/build/linux-2.6.33\
--enable-generic--host=arm-unknown-linux-uclibcgnueabi-



 Make sure /home/user1/buildroot-2011.05/output/host/usr/bin/ is in your PATH.

<apologies for my AOL lameness>

 

-----Original Message-----
From: Jeff Krasky <jeff.krasky at dspcg.com>
To: etherlab-users <etherlab-users at etherlab.org>
Sent: Wed, Nov 16, 2011 4:49 pm
Subject: Re: [etherlab-users] install on non-PC





Instructions from a previous mail about compilingfor non-x86:

> Here's how I recently cross built on x86 Ubuntu 10.04LTS for an ARM systemwith kernel sources and toolchain 
> provided my the chip vendor:
>

>On host:
>
>TARG_KERNEL is path to kernel sources for target system
>TARG_FS is path to filesystem of target system
>
>In Etherlab source dir:
>
> ./configure --prefix=$TARG_FS/opt --with-linux-dir=$TARG_KERNEL \
>           --enable-generic --host=arm-none-linux-gnueabi-
>


I use buildroot to generate the Linuxkernel for the target board.  So then I put etherlabmaster-4adb56c4198d ina folder on the Linux PC.  I went into the folder etherlabmaster-4adb56c4198dand did this:
 
user1 at dhcppc15:~/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d>./bootstrap 
+ touch ChangeLog
+ autoreconf -i
libtoolize: puttingauxiliary files in AC_CONFIG_AUX_DIR, `autoconf'.
libtoolize: copying file`autoconf/ltmain.sh'
libtoolize: putting macrosin AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file`m4/libtool.m4'
libtoolize: copying file`m4/ltoptions.m4'
libtoolize: copying file`m4/ltsugar.m4'
libtoolize: copying file`m4/ltversion.m4'
libtoolize: copying file`m4/lt~obsolete.m4'
configure.ac:45: installing`autoconf/compile'
configure.ac:44: installing`autoconf/config.guess'
configure.ac:44: installing`autoconf/config.sub'
configure.ac:33: installing`autoconf/install-sh'
configure.ac:33: installing`autoconf/missing'
examples/dc_user/Makefile.am: installing`autoconf/depcomp'
 
 
 
So everything seems ok so far and I saw theconfigure file get generate.  So filling in the TARG_FS and TARG_KERNELvalues from above suggestion, I then did this:
 
./configure--prefix=/home/user1/buildroot-2011.05/output/target/opt \ 
--with-linux-dir=/home/user1/buildroot-2011.05/output/build/linux-2.6.33\
--enable-generic--host=/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc
 
 
And this is the output:
 
configure: WARNING: if youwanted to set the --build type, don't use --host.
    If across compiler is detected then cross compile mode will be used
checking for aBSD-compatible install... /usr/bin/install -c
checking whether buildenvironment is sane... yes
checking for/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-strip...no
checking for strip... strip
checking for a thread-safemkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets$(MAKE)... yes
checking for/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-g++...no
checking for/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-c++...no
checking for/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-gpp...no
checking for/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-aCC...no
checking for/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-CC...no
checking for/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-cxx...no
checking for/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-cc++...no
checking for/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-cl.exe...no
checking for/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-FCC...no
checking for/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-KCC...no
checking for/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-RCC...no
checking for/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-xlC_r...no
checking for/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc-xlC...no
checking for g++... g++
checking whether the C++compiler works... yes
checking for C++ compilerdefault output file name... a.out
checking for suffix ofexecutables... 
checking whether we arecross compiling... no
checking for suffix ofobject files... o
checking whether we areusing the GNU C++ compiler... yes
checking whether g++ accepts-g... yes
checking for style ofinclude used by make... GNU
checking dependency style ofg++... gcc3
checking build systemtype... i686-suse-linux-gnu
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
configure: error: /bin/shautoconf/config.sub/home/user1/buildroot-2011.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gccfailed
 
 
 
Can someone offer a suggestion about howto improve this so that I can build EtherCAT into the Linux kernel/fs that Ibuild for the target board?
 
 
 
Thanks,
 
 
 
 
Jeff



 
_______________________________________________
etherlab-users mailing list
etherlab-users at etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20111117/b3bfe20b/attachment-0004.htm>


More information about the Etherlab-users mailing list