Contents ...
udn網路城邦
cross compile IgH ethercat master for forlinx am5718 am57x
2020/09/17 17:58
瀏覽367
迴響0
推薦0
引用0
unzip IgH special version for linux kernel#4
./bootstrap
./configure --with-linux-dir=/home/gcat/0907/OK5718-SDK-V1.0/OK57xx-linux-kernel --disable-8139too --host=arm-linux-gnueabihf
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules
//----
On forlinx am5718
insmod ec_master.ko main-devices=FC:69:47:51:43:F9 backup_devices=
insmod ec_generic.ko
//--check master status
./ethercat master
//---
root@ok5718-idk:~/ecat# ./ethercat slave
0  0:0  PREOP  +  NEXTW_16IO BOARD (Digital 16-Input/16-Output)
//---
root@ok5718-idk:~/ecat# ./ethercat reg_read -p 0 -t uint16  0x1000                               
0xffff 65535
全站分類:不分類 不分類
自訂分類:linux_cc
上一則: [CC build] audio-tool
下一則: build tree on ubuntu 14

限會員,要發表迴響,請先登入