[etherlab-users] ethercat : modules_install error

Roman Thiessen thiessen at tecodrive.com
Mon Dec 12 12:10:42 CET 2016


Hello everybody!

I use Linux Mint 18 Cinnamon and want to install a module on my
4.4.0-53-generic x86_64 kernel.
I try to run Ethercat as discription of instalation in the script, for that
I use the command $ sudo make modules_install and get the following error
message:

~/ethercat-1.5.2 $ sudo make modules_install
make -C "/usr/src/linux-headers-4.4.0-21-generic"
M="/home/ro/ethercat-1.5.2" \
INSTALL_MOD_DIR="ethercat" modules_install
make[1]: Verzeichnis „/usr/src/linux-headers-4.4.0-21-generic“ wird betreten
INSTALL /home/ro/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/ro/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/ro/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-21-generic
make[1]: Verzeichnis „/usr/src/linux-headers-4.4.0-21-generic“ wird
verlassen


Here are all programs / libraries, which I have additionally loaded and
updated:

$ sudo apt-get install build-essential libssl-dev libelf-dev libqt4-dev
libncurses-dev libncurses5-dev libqt4-dev g++ cpufrequtils libnuma-dev htop
samba sysfsutils git rt-tests inxi numactl insserv bin86 kernel-package
pkg-config linux-headers-$(uname -r) mercurial

 

 

Also I´ve made some changes in two files:

 

ethercat-1.5.2/devices/generic.c:

                

fixed

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

                              &dev->socket);

original Z215,SP.11

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

                              &dev->socket);

 

 

fixed

                               dev->netdev =
alloc_netdev(sizeof(ec_gen_device_t *), &null, NET_NAME_UNKNOWN,
ether_setup);

original Z152

                               dev->netdev =
alloc_netdev(sizeof(ec_gen_device_t *), &null, ether_setup)

 

 

ethercat-1.5.2/master/ethernet.c

 

fixed

                               if (!(eoe->dev = alloc_netdev(sizeof(ec_eoe_t
*), name, NET_NAME_UNKNOWN, ether_setup))) {

original Z151

                               if (!(eoe->dev = alloc_netdev(sizeof(ec_eoe_t
*), name, ether_setup))) {



Also in my version the path /etc/sysconfig/ doesn´t exist. Which path I have
to use after modules_install is working? I would be grateful for any help!

 

Roman

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20161212/f21ff39e/attachment-0002.htm>


More information about the Etherlab-users mailing list