>-----Original Message----- >From: Jeff Krasky <[email protected]> >To: etherlab-users <[email protected]> >Sent: Tue, Nov 1, 2011 1:08 pm >Subject: [etherlab-users] install on non-PC >... >2) I don’t think I can buildEtherCAT this way. The build machine is Windows >to begin with, and even if Imanaged to compile everything, >the default >scripts wouldn’t work –they’d want to install on the machine they are running >on, the pathswouldn’t be correct, etc. Here's how I recently cross built on x86 Ubuntu 10.04LTS for an ARM system with 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- make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- # ARCH and CROSS_COMPILE redundant here? # I may have run make install as root here? On target as su (I haven't automated these steps yet): mknod /dev/EtherCAT0 c 252 0 vi /etc/sysconfig/ethercat to include generic driver and set MAC addr cd /lib/modules/<kernel_being_run> >... Thanks, Bruno
_______________________________________________ etherlab-users mailing list [email protected] http://lists.etherlab.org/mailman/listinfo/etherlab-users
