[etherlab-users] Newbie: EtherCAT Master 1.5.2 with Ubuntu - modules installation problem

Ravi Shankar ravishankar.rgit at gmail.com
Thu Jun 2 11:42:13 CEST 2016


Hi Jakub,

  I was able to resolve sock_create_kern by changing it to:

ret = sock_create_kern(&init_net, PF_PACKET, SOCK_RAW,
htons(ETH_P_ETHERCAT),

            &dev->socket);

 Not sure if this will fix your issue.

Thanks

-Ravi Shankar R



On Wed, Jun 1, 2016 at 7:22 PM, <j.sikorski at utwente.nl> wrote:

> 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
> etherlab-users at etherlab.org
> http://lists.etherlab.org/mailman/listinfo/etherlab-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20160602/6508796b/attachment-0004.htm>


More information about the Etherlab-users mailing list