[etherlab-users] Cross Compile Ethercat Master generic device error

paluan.luca at tiscali.it paluan.luca at tiscali.it
Thu Jul 26 16:48:08 CEST 2012


Hello everybodyI'm trying to cross compile Ethercat master on linux x86 machine for a linux arm xenomai patched target.
I set up both the target linux kernel and the xenomai library.
Here is my script configuration



export TOOCHAIN_PATH=/home/user/Works/CrossGcc/arm-2007q1export PATH=${TOOCHAIN_PATH}/bin:$PATHexport CC=arm-none-linux-gnueabi-gccexport CXX=arm-none-linux-gnueabi-g++export AS=arm-none-linux-gnueabi-asexport AR=arm-none-linux-gnueabi-arexport NM=arm-none-linux-gnueabi-nmexport LD=arm-none-linux-gnueabi-ldexport RANLIB=arm-none-linux-gnueabi-ranlib
./configure --build=i686-pc-linux-gnu --host=arm-linux --with-linux-dir=/home/user/Works/LinuxArm/gp/RT/linux-2.6.30 --disable-8139too --with-generic --disable-e100 --with-xenomai-dir=/home/user/Works/LinuxArm/gp/RT/release/xenomai/usr/xenomai
makemake modulesmake DESTDIR=/home/user/Works/LinuxArm/gp/etherlabmaster-1798bcdaa8d0/dest installmake DESTDIR=/home/user/Works/LinuxArm/gp/etherlabmaster-1798bcdaa8d0/dest modules_install
As it can be seen I'm only trying to make the generic Ethercat driver Everything works fine until I start making modules: it seems the configurator can't understand which is the target architecture and where to find its headers.The first error I got is:
make -C "/home/user/Works/LinuxArm/gp/RT/linux-2.6.30" M="/home/user/Works/LinuxArm/gp/etherlabmaster-1798bcdaa8d0" modulesmake[1]: Entering directory `/home/user/Works/LinuxArm/gp/RT/linux-2.6.30'  CC [M]  /home/user/Works/LinuxArm/gp/etherlabmaster-1798bcdaa8d0/devices/generic.oIn file included from include/linux/kernel.h:17,                 from /home/user/Works/LinuxArm/gp/RT/linux-2.6.30/arch/x86/include/asm/system.h:10,                 from /home/user/Works/LinuxArm/gp/RT/linux-2.6.30/arch/x86/include/asm/processor.h:17,                 from include/linux/prefetch.h:14,                 from include/linux/list.h:6,                 from include/linux/module.h:9,                 from /home/user/Works/LinuxArm/gp/etherlabmaster-1798bcdaa8d0/devices/generic.c:36:include/linux/ipipe_base.h:28:28: error: asm/ipipe_base.h: Nessun file o directory
It seems the build process is looking for a file pipe_base.h which is target dependent and doesn't know where to get it, I've also tried to make a symbolic link to the asm folder of the arm headers but I got other errors as if the procedure is still believing to manage an x86 architecture.Can anyone help me to try to correctly configure or patch to successfully build the package?Thank in advance.Best Regards Luca

Invita i tuoi amici e Tiscali ti premia! Il consiglio di un amico vale più di uno spot in TV. Per ogni nuovo abbonato 30 € di premio per te e per lui! Un amico al mese e parli e navighi sempre gratis: http://freelosophy.tiscali.it/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20120726/338bc5b0/attachment-0002.htm>


More information about the Etherlab-users mailing list