[etherlab-users] ethercat : modules_install error

Christoph Schroeder christoph.schroeder at helmholtz-berlin.de
Tue Dec 13 10:13:29 CET 2016


Hi Roman,

the modules are installed into "/lib/modules/${version}". Your kernel doesn't match the configured kernel (4.4.0-21-generic) so all you might have to do is to call ./configure (with all options needed by your application) and make again.

The directory "/etc/sysconfig" is where the ethercat config is put on RedHat based Linux distributions. On Debian based distributions like Mint you may put it into "/etc/default" or just make a "/etc/sysconfig". If you don't put it into sysconfig you have to alter ETHERCAT_CONFIG in the init.d script.

Best Regards,
Christoph


On 12/12/2016 12:10 PM, Roman Thiessen wrote:
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



_______________________________________________
etherlab-users mailing list
etherlab-users at etherlab.org<mailto:etherlab-users at etherlab.org>
http://lists.etherlab.org/mailman/listinfo/etherlab-users



________________________________

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Dr. Karl Eugen Huthmacher, stv. Vorsitzende Dr. Jutta Koch-Unterseher
Geschäftsführung: Prof. Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

http://www.helmholtz-berlin.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20161213/210158b1/attachment-0004.htm>


More information about the Etherlab-users mailing list