debian wheezy 7.11(虚拟机安装选择桥接网卡)
#set ustc source
#apt-get install sudo
#nano /etc/sudoers;add userName ALL=(ALL) ALL
#apt-get install linux-image-3.2.0-4-rt-amd64 linux-headers-3.2.0-4-rt-amd64
#apt-get install mercurial
#hg clone http://hg.code.sf.net/p/etherlabmaster/code ethercat-hg
#cd ethercat-hg
#hg update stable-1.5
#cd ethercat-hg
#apt-get install autoconf
#apt-get install libtool
#./bootstrap
#./configure
#apt-get install g++
#apt-get install make; if unexist
#make
#make modules
#make install
#make modules_install install
#cd /opt/etherlab/
#sudo mkdir /etc/sysconfig/
#sudo cp etc/sysconfig/ethercat /etc/sysconfig/
#sudo ifconfig;get mac address:08:00:27:61:85:xx
#MASTER0_DEVICE="08:00:27:61:85:xx"
#DEVICE_MODULES="generic"
#sudo cp /opt/etherlab/etc/init.d/ethercat /etc/init.d/
#sudo depmod
#sudo /etc/init.d/ethercat start
#sudo ln -s /opt/etherlab/bin/ethercat /usr/local/bin/ethercat
#sudo ethercat sl;get slave for test
#sudo ethercat pdos;get pdos for test··