rtnet config script with xeno-3.0.4
Hi all,
which is the correct way with xeno-3.0.4 to configure rteth0 ?
I am using rtnet for an ethercat based application using SOEM.
The modules needed are : rtnet rt_e1000e/rt_igb rtpacket
For the last couple of years I've used ec_rtnet_2.6.x.sh script to setup the network interfaces, now the switch to 3.0.x gives me more troubles.
I wish to maintain the possibility to load/unload rtnet modules and reconfigure interfaces just starting or stopping it as a service.
Sometimes happens that the script hangs in this way
+++
embedded@nuc-i7:~$ sudo ./ec_rtnet_solo.sh restart [sudo] password for embedded: [info] DeConfigure rtnet. . ok [info] Configure rtnet. ifdown enp62s0 load rtnet modules ifup rteth0
Message from syslogd@nuc-i7 at May 16 01:24:52 ...
kernel:[ 3212.144639] NMI watchdog: BUG: soft lockup - CPU#1 stuck for
22s! [NetworkManager:375]
Message from syslogd@nuc-i7 at May 16 01:25:20 ...
kernel:[ 3240.144756] NMI watchdog: BUG: soft lockup - CPU#1 stuck for
22s! [NetworkManager:375]
---
or on another machine give me kernel BUG at drivers/pci/msi.c:366! (see attached kernel trace).
TIA
Alessio
Signature · 85 lines
ISTITUTO ITALIANO DI TECNOLOGIA Alessio Margan Chief Technician Advanced Robotics Department [email protected] Via Morego 30, 16163 Genova Tel. +39 010 71781-754 www.iit.it Legal Disclaimer This electronic message contains information that is confidential. The information is intended for the use of the addressee only. If you are not the addressee we would appreciate your notification in this respect. Please note that any disclosure, copy, distribution or use of the contents of this message is prohibited and may be unlawful. We have taken every reasonable precaution to ensure that any kind of attachment to this e-mail has been swept for viruses. However, we cannot accept liability for any damage sustained as a result of software viruses and would advise you to carry out your own virus checks before opening any attachment. Avvertenza legale Questo messaggio Email contiene informazioni confidenziali riservate ai soli destinatari. Qualora veniate in possesso di tali informazioni senza essere definito come destinatario vi reghiamo di leggere le seguenti note. Ogni apertura, copia, distribuzione del contenuto del messaggio e dei suoi allegati è proibito e potrebbe violare le presenti leggi. Abbiamo attivato ogni possibile e ragionevole precauzione per assicurare che gli allegati non contengano virus. Comunque non assumeremo alcuna responsabilità per ogni eventuale danno causato da virus software e simili in quanto è onere del destinatario verificarne l’assenza in ogni allegato attuando propri indipendenti controlli. -------------- next part -------------- A non-text attachment was scrubbed... Name: ec_rtnet_solo.sh Type: application/x-shellscript Size: 1844 bytes Desc: not available URL: <http://xenomai.org/pipermail/xenomai/attachments/20170516/98f5b19b/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: ec_rtnet_2.6.x.sh Type: application/x-shellscript Size: 2298 bytes Desc: not available URL: <http://xenomai.org/pipermail/xenomai/attachments/20170516/98f5b19b/attachment-0001.bin> -------------- next part -------------- [ 855.654443] RTnet: no one cared for packet with layer 3 protocol type 0x0800 [ 879.329219] RTnet: no one cared for packet with layer 3 protocol type 0x0800 [ 897.191655] RTnet: unregistered rteth0 [ 897.191687] ------------[ cut here ]------------ [ 897.194154] kernel BUG at drivers/pci/msi.c:366! [ 897.196691] invalid opcode: 0000 [#1] SMP [ 897.199255] Modules linked in: rtpacket kvm_amd kvm radeon irqbypass crct10dif_pclmul crc32_pclmul hmac drbg ansi_cprng i2c_algo_bit ttm aesni_intel drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm nfsd auth_rpcgss nfs_acl lockd grace sunrpc rt_e1000e rtnet aes_x86_64 lrw gf128mul sg serio_raw evdev edac_mce_amd button wmi glue_helper ablk_helper cryptd edac_core autofs4 ext4 crc16 mbcache jbd2 sd_mod ata_generic hid_generic usbhid hid ohci_pci crc32c_intel ahci pata_atiixp libahci psmouse xhci_pci xhci_hcd i2c_piix4 ohci_hcd ehci_pci ehci_hcd libata e1000e usbcore scsi_mod r8169 ptp usb_common mii pps_core [ 897.212109] CPU: 1 PID: 1311 Comm: ec_rtnet.sh Not tainted 4.4.43-xeno-ipipe-4.4.43 #3 [ 897.215517] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./960GM/U3S3 FX, BIOS P1.20 05/21/2012 [ 897.219019] task: ffff8800cfa750c0 ti: ffff880206dd8000 task.ti: ffff880206dd8000 [ 897.222583] RIP: 0010:[<ffffffff8133bf80>] [<ffffffff8133bf80>] free_msi_irqs+0x50/0x180 [ 897.226226] RSP: 0018:ffff880206ddbd40 EFLAGS: 00010286 [ 897.229884] RAX: ffff8802076b8000 RBX: 0000000000000000 RCX: 00000000fffffffa [ 897.233603] RDX: 0000000000000000 RSI: 000000000000001f RDI: 0000000000000000 [ 897.237345] RBP: ffff88021488b140 R08: ffff880215800008 R09: ffff880215800128 [ 897.241130] R10: 0000000000000000 R11: 0000000000000005 R12: ffff8802149b0298 [ 897.244934] R13: ffff8802149b0000 R14: fffffffffffffff2 R15: ffff880206ddbf20 [ 897.248762] FS: 00007fcf59c72700(0000) GS:ffff880216300000(0000) knlGS:0000000000000000 [ 897.252667] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 897.256606] CR2: 0000556304845f18 CR3: 0000000214e05000 CR4: 00000000000406e0 [ 897.260587] I-pipe domain Linux [ 897.264586] Stack: [ 897.268577] ffff880206d80220 ffff8802149b0000 0000000000000000 ffff880206d80000 [ 897.272716] fffffffffffffff2 ffffffffc039729f ffff880206d80220 ffffffffc039873e [ 897.276875] ffff8802149b0098 ffff8802149b0000 ffffffffc03a6080 ffffffffc03a60e8 [ 897.281068] Call Trace: [ 897.285251] [<ffffffffc039729f>] ? e1000e_reset_interrupt_capability+0x1f/0x60 [rt_e1000e] [ 897.289561] [<ffffffffc039873e>] ? e1000_remove+0xee/0x170 [rt_e1000e] [ 897.293883] [<ffffffff8132a9a4>] ? pci_device_remove+0x44/0xd0 [ 897.298189] [<ffffffff813f201a>] ? __device_release_driver+0x9a/0x140 [ 897.302476] [<ffffffff813f20e9>] ? device_release_driver+0x29/0x40 [ 897.306737] [<ffffffff813f0900>] ? unbind_store+0x110/0x160 [ 897.310974] [<ffffffff8127ea66>] ? kernfs_fop_write+0x146/0x190 [ 897.315204] [<ffffffff8120a7a3>] ? __vfs_write+0x33/0x110 [ 897.319401] [<ffffffff8155d565>] ? _cond_resched+0x5/0x30 [ 897.323597] [<ffffffff8122897f>] ? __fd_install+0x3f/0x100 [ 897.327814] [<ffffffff812287ed>] ? __alloc_fd+0x3d/0x160 [ 897.332071] [<ffffffff8155d565>] ? _cond_resched+0x5/0x30 [ 897.336366] [<ffffffff8120b1a1>] ? vfs_write+0xb1/0x1a0 [ 897.340687] [<ffffffff8120bee4>] ? SyS_write+0x64/0xe0 [ 897.344987] [<ffffffff815611d2>] ? entry_SYSCALL_64_fastpath+0x16/0x1b [ 897.349329] Code: 10 85 ff 74 28 8b 45 14 85 c0 74 21 31 db eb 0a ff c3 39 5d 14 76 16 8b 7d 10 01 df e8 aa e0 d7 ff 48 83 b8 b0 00 00 00 00 74 e5 <0f> 0b 48 8b 6d 00 49 39 ec 75 c8 49 8b bd 88 02 00 00 48 85 ff [ 897.358909] RIP [<ffffffff8133bf80>] free_msi_irqs+0x50/0x180 [ 897.363601] RSP <ffff880206ddbd40> [ 897.368312] ---[ end trace 9015980a12fa3f55 ]---