Hello Everyone,
I am working on Ubuntu 16.04. I try to install EtherCAT Master 1.5.2 following the instructions in Chapter 9 of this documentation : http://www.etherlab.org/download/ethercat/ethercat-1.5.2.pdf During the installation, I encountered a few errors trying to build the modules with generic driver ("sudo make modules" in 9.2). To overcome them, I introduced two modifications in the devices/generic.c file: 1. I changed alloc_netdev(sizeof(ec_gen_device_t *), &null, ether_setup); to alloc_netdev(sizeof(ec_gen_device_t *), &null, NET_NAME_UNKNOWN, ether_setup);? as stated in here: http://lists.etherlab.org/pipermail/etherlab-dev/2014/000435.html 2. I also had a problem with sock_create_kern(PF_PACKET, SOCK_RAW, htons(ETH_P_ETHERCAT), &dev->socket); which required a different number of arguments, the first one being of type struct net* . I tentatively (not sure if I am right) fixed it by changing it to: sock_create_kern(dev->netdev, PF_PACKET, SOCK_RAW, htons(ETH_P_ETHERCAT), &dev->socket); This allowed me to build the modules without any further errors. I proceeded with the installation, until executing "sudo make modules_install" from 9.4 I ended up receiving this : sudo make modules_install make -C "/usr/src/linux-headers-4.4.0-22-generic" M="/home/big_mag/ethercat-1.5.2" \ INSTALL_MOD_DIR="ethercat" modules_install make[1]: Entering directory '/usr/src/linux-headers-4.4.0-22-generic' INSTALL /home/big_mag/ethercat-1.5.2/devices/ec_generic.ko At main.c:222: - SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 sign-file: certs/signing_key.pem: No such file or directory INSTALL /home/big_mag/ethercat-1.5.2/examples/mini/ec_mini.ko At main.c:222: - SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 sign-file: certs/signing_key.pem: No such file or directory INSTALL /home/big_mag/ethercat-1.5.2/master/ec_master.ko At main.c:222: - SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 sign-file: certs/signing_key.pem: No such file or directory DEPMOD 4.4.0-22-generic make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-22-generic' Nevertheless I tried to continue with next steps. After "sudo /etc/init.d/ethercat start" I receive the following: Starting EtherCAT master 1.5.2 modprobe: FATAL: Module ec_master not found in directory /lib/modules/4.4.0-22-generic failed The file "ec_master.ko" is located in /lib/modules/4.4.0-22-generic/ethercat/master/ I am essentially stuck here, so I will be grateful about any explanation what is going on. Thanks in advance for any help. Jakub SIkorski ?
_______________________________________________ etherlab-users mailing list [email protected] http://lists.etherlab.org/mailman/listinfo/etherlab-users
