etherlab-users-boun...@etherlab.org wrote on 11/02/2011 10:37:24 AM: > >-----Original Message----- > >From: Jeff Krasky <jeff.kra...@dspcg.com> > >To: etherlab-users <etherlab-users@etherlab.org> > >Sent: Tue, Nov 1, 2011 1:08 pm > >Subject: [etherlab-users] install on non-PC
> >... > >2) I don?t think I can build EtherCAT this way. The build machine > is Windows to begin with, and even if I managed to compile > everything, >the default scripts wouldn?t work ? they?d want to > install on the machine they are running on, the paths wouldn?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> > Left out the command to start the master: /etc/init.d/ethercat start > > >... > > Thanks, > Bruno_______________________________________________ > etherlab-users mailing list > etherlab-users@etherlab.org > http://lists.etherlab.org/mailman/listinfo/etherlab-users
_______________________________________________ etherlab-users mailing list etherlab-users@etherlab.org http://lists.etherlab.org/mailman/listinfo/etherlab-users