All of lore.kernel.org
 help / color / mirror / Atom feed
* Installing RTnet
@ 2020-02-10 13:10 Kloock, Lennard
  2020-02-10 13:27 ` Jan Kiszka
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Kloock, Lennard @ 2020-02-10 13:10 UTC (permalink / raw)
  To: xenomai

Hello all,

i have succesfully installed Xenomai 3.0.5 with linux 4.9.90, but I am having trouble installing RTnet on an i218-lm.

I followed these steps:
1) ifconfig eth0 down
2) rmmod e1000e
3) configured /usr/xenomai/etc/rtnet.conf according to https://gitlab.denx.de/Xenomai/xenomai/-/wikis/RTnet
4) modprobe rtpacket
5) modprobe rtnet
6) modprobe rt_e1000e

But now if I try to run rtnet with  ./rtnet start I get the following errors:

ioctl: No such device
ioctl: No such device
ioctl: No such device
ioctl: No such device
ioctl (add): No such device
ioctl (add): No such device
ioctl (add): No such device
ioctl (add): No such device
vnic0: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
vnic0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
Waiting for all slaves...ioctl: No such device
ioctl: No such device

./rtifconfig only show the local loopback but not rteth0

Dmesg shows that rtnet and the driver are being loaded

[  391.184595]
               *** RTnet for Xenomai v3.0.5 ***

[  391.184596] RTnet: initialising real-time networking
[  400.034853] rt_e1000e: Intel(R) PRO/1000 Network Driver - 1.5.1-k-rt
[  400.034854] rt_e1000e: Copyright(c) 1999 - 2011 Intel Corporation.

But with lspci -knn it shows that the NIC doesn't pick up the real time driver:

00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection I219-LM [8086:156f] (rev 21)
                Subsystem: Gigabyte Technology Co., Ltd Ethernet Connection I219-LM [1458:e000]
                Kernel modules: e1000e

Did I do something wrong or is my I219-LM NIC not supported by RTnet?

Many Thanks

Lennard Kloock


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Installing RTnet
  2020-02-10 13:10 Installing RTnet Kloock, Lennard
@ 2020-02-10 13:27 ` Jan Kiszka
  2020-02-10 14:08   ` AW: " Kloock, Lennard
  2020-02-11  9:45 ` Lange Norbert
  2020-02-11 16:59 ` g.strobbe
  2 siblings, 1 reply; 6+ messages in thread
From: Jan Kiszka @ 2020-02-10 13:27 UTC (permalink / raw)
  To: Kloock, Lennard, xenomai

On 10.02.20 14:10, Kloock, Lennard via Xenomai wrote:
> Hello all,
> 
> i have succesfully installed Xenomai 3.0.5 with linux 4.9.90, but I am having trouble installing RTnet on an i218-lm.

I would always recommend using the latest version when trying something 
new, both for Xenomai and the kernel. But in this case...

> 
> I followed these steps:
> 1) ifconfig eth0 down
> 2) rmmod e1000e
> 3) configured /usr/xenomai/etc/rtnet.conf according to https://gitlab.denx.de/Xenomai/xenomai/-/wikis/RTnet
> 4) modprobe rtpacket
> 5) modprobe rtnet
> 6) modprobe rt_e1000e
> 
> But now if I try to run rtnet with  ./rtnet start I get the following errors:
> 
> ioctl: No such device
> ioctl: No such device
> ioctl: No such device
> ioctl: No such device
> ioctl (add): No such device
> ioctl (add): No such device
> ioctl (add): No such device
> ioctl (add): No such device
> vnic0: ERROR while getting interface flags: No such device
> SIOCSIFADDR: No such device
> vnic0: ERROR while getting interface flags: No such device
> SIOCSIFNETMASK: No such device
> Waiting for all slaves...ioctl: No such device
> ioctl: No such device
> 
> ./rtifconfig only show the local loopback but not rteth0
> 
> Dmesg shows that rtnet and the driver are being loaded
> 
> [  391.184595]
>                 *** RTnet for Xenomai v3.0.5 ***
> 
> [  391.184596] RTnet: initialising real-time networking
> [  400.034853] rt_e1000e: Intel(R) PRO/1000 Network Driver - 1.5.1-k-rt
> [  400.034854] rt_e1000e: Copyright(c) 1999 - 2011 Intel Corporation.
> 
> But with lspci -knn it shows that the NIC doesn't pick up the real time driver:
> 
> 00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection I219-LM [8086:156f] (rev 21)
>                  Subsystem: Gigabyte Technology Co., Ltd Ethernet Connection I219-LM [1458:e000]
>                  Kernel modules: e1000e
> 
> Did I do something wrong or is my I219-LM NIC not supported by RTnet?

...it won't help as that NIC is not supported. There was some update of 
the  driver shared a while ago, but I'm also not sure if that would have 
helped - it was using an old kernel as baseline, too.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 6+ messages in thread

* AW: Installing RTnet
  2020-02-10 13:27 ` Jan Kiszka
@ 2020-02-10 14:08   ` Kloock, Lennard
  2020-02-10 14:13     ` Jan Kiszka
  0 siblings, 1 reply; 6+ messages in thread
From: Kloock, Lennard @ 2020-02-10 14:08 UTC (permalink / raw)
  To: Jan Kiszka, xenomai

Hey,

Thank you.
Do you know if the I218-V is supported on Xenomai 3.x?

Lennard Kloock

On 10.02.20 14:28 Kiszka, Jan wrote: 

> ...it won't help as that NIC is not supported. There was some update of the  driver shared a while ago, but I'm also not sure if that would have helped - it was using an old kernel as baseline, too.
> 
> Jan
> 
> --
> Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Installing RTnet
  2020-02-10 14:08   ` AW: " Kloock, Lennard
@ 2020-02-10 14:13     ` Jan Kiszka
  0 siblings, 0 replies; 6+ messages in thread
From: Jan Kiszka @ 2020-02-10 14:13 UTC (permalink / raw)
  To: Kloock, Lennard, xenomai

On 10.02.20 15:08, Kloock, Lennard wrote:
> Hey,
> 
> Thank you.
> Do you know if the I218-V is supported on Xenomai 3.x?

A first indication is the presence of the PCI ID (or their symbolic 
value) in a Xenomai driver. Wait... E1000_DEV_ID_PCH_LPT_I217_V is 
present, thus worth a try.

Jan

> 
> Lennard Kloock
> 
> On 10.02.20 14:28 Kiszka, Jan wrote:
> 
>> ...it won't help as that NIC is not supported. There was some update of the  driver shared a while ago, but I'm also not sure if that would have helped - it was using an old kernel as baseline, too.
>>
>> Jan
>>
>> --
>> Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Installing RTnet
  2020-02-10 13:10 Installing RTnet Kloock, Lennard
  2020-02-10 13:27 ` Jan Kiszka
@ 2020-02-11  9:45 ` Lange Norbert
  2020-02-11 16:59 ` g.strobbe
  2 siblings, 0 replies; 6+ messages in thread
From: Lange Norbert @ 2020-02-11  9:45 UTC (permalink / raw)
  To: Kloock, Lennard, Xenomai (xenomai@xenomai.org)



> -----Original Message-----
> From: Xenomai <xenomai-bounces@xenomai.org> On Behalf Of Kloock,
> Lennard via Xenomai
> Sent: Montag, 10. Februar 2020 14:11
> To: xenomai@xenomai.org
> Subject: Installing RTnet
>
> NON-ANDRITZ SOURCE: BE CAUTIOUS WITH CONTENT, LINKS OR
> ATTACHMENTS.
>
>
> Hello all,
>
> i have succesfully installed Xenomai 3.0.5 with linux 4.9.90, but I am having
> trouble installing RTnet on an i218-lm.
>
> I followed these steps:
> 1) ifconfig eth0 down
> 2) rmmod e1000e
> 3) configured /usr/xenomai/etc/rtnet.conf according to
> https://gitlab.denx.de/Xenomai/xenomai/-/wikis/RTnet
> 4) modprobe rtpacket
> 5) modprobe rtnet
> 6) modprobe rt_e1000e
>
> But now if I try to run rtnet with  ./rtnet start I get the following errors:
>
> ioctl: No such device
> ioctl: No such device
> ioctl: No such device
> ioctl: No such device
> ioctl (add): No such device
> ioctl (add): No such device
> ioctl (add): No such device
> ioctl (add): No such device
> vnic0: ERROR while getting interface flags: No such device
> SIOCSIFADDR: No such device
> vnic0: ERROR while getting interface flags: No such device
> SIOCSIFNETMASK: No such device
> Waiting for all slaves...ioctl: No such device
> ioctl: No such device
>
> ./rtifconfig only show the local loopback but not rteth0
>
> Dmesg shows that rtnet and the driver are being loaded
>
> [  391.184595]
>                *** RTnet for Xenomai v3.0.5 ***
>
> [  391.184596] RTnet: initialising real-time networking [  400.034853]
> rt_e1000e: Intel(R) PRO/1000 Network Driver - 1.5.1-k-rt [  400.034854]
> rt_e1000e: Copyright(c) 1999 - 2011 Intel Corporation.
>
> But with lspci -knn it shows that the NIC doesn't pick up the real time driver:
>
> 00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection
> I219-LM [8086:156f] (rev 21)
>                 Subsystem: Gigabyte Technology Co., Ltd Ethernet Connection I219-
> LM [1458:e000]
>                 Kernel modules: e1000e
>
> Did I do something wrong or is my I219-LM NIC not supported by RTnet?

Cant tell if your device is supported, but rtnet will never *replace* a linux driver automatically,
you need to make sure the hardware is not bound to a driver, or manually un/bind
to the rtnet driver.

# kick out kernel modules
modprobe -r e1000e
modprobe rtnet
modprobe rt_e1000e


# manuall rebind, look in th e1000e folder for the correct name
echo "00:1f.6" > /sys/bus/pci/drivers/e1000e/unbind
echo "00:1f.6" > /sys/bus/pci/drivers/rt_e1000e/bind

Norbert

________________________________

This message and any attachments are solely for the use of the intended recipients. They may contain privileged and/or confidential information or other information protected from disclosure. If you are not an intended recipient, you are hereby notified that you received this email in error and that any review, dissemination, distribution or copying of this email and any attachment is strictly prohibited. If you have received this email in error, please contact the sender and delete the message and any attachment from your system.

ANDRITZ HYDRO GmbH


Rechtsform/ Legal form: Gesellschaft mit beschränkter Haftung / Corporation

Firmensitz/ Registered seat: Wien

Firmenbuchgericht/ Court of registry: Handelsgericht Wien

Firmenbuchnummer/ Company registration: FN 61833 g

DVR: 0605077

UID-Nr.: ATU14756806


Thank You
________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Installing RTnet
  2020-02-10 13:10 Installing RTnet Kloock, Lennard
  2020-02-10 13:27 ` Jan Kiszka
  2020-02-11  9:45 ` Lange Norbert
@ 2020-02-11 16:59 ` g.strobbe
  2 siblings, 0 replies; 6+ messages in thread
From: g.strobbe @ 2020-02-11 16:59 UTC (permalink / raw)
  To: Kloock, Lennard; +Cc: xenomai


----- On Feb 10, 2020, at 2:10 PM, xenomai xenomai@xenomai.org wrote:

> Hello all,
> 
> i have succesfully installed Xenomai 3.0.5 with linux 4.9.90, but I am having
> trouble installing RTnet on an i218-lm.
> 
> I followed these steps:
> 1) ifconfig eth0 down
> 2) rmmod e1000e
> 3) configured /usr/xenomai/etc/rtnet.conf according to
> https://gitlab.denx.de/Xenomai/xenomai/-/wikis/RTnet
> 4) modprobe rtpacket
> 5) modprobe rtnet
> 6) modprobe rt_e1000e
> 
> But now if I try to run rtnet with  ./rtnet start I get the following errors:
> 
> ioctl: No such device
> ioctl: No such device
> ioctl: No such device
> ioctl: No such device
> ioctl (add): No such device
> ioctl (add): No such device
> ioctl (add): No such device
> ioctl (add): No such device
> vnic0: ERROR while getting interface flags: No such device
> SIOCSIFADDR: No such device
> vnic0: ERROR while getting interface flags: No such device
> SIOCSIFNETMASK: No such device
> Waiting for all slaves...ioctl: No such device
> ioctl: No such device
> 
> ./rtifconfig only show the local loopback but not rteth0
> 
> Dmesg shows that rtnet and the driver are being loaded
> 
> [  391.184595]
>               *** RTnet for Xenomai v3.0.5 ***
> 
> [  391.184596] RTnet: initialising real-time networking
> [  400.034853] rt_e1000e: Intel(R) PRO/1000 Network Driver - 1.5.1-k-rt
> [  400.034854] rt_e1000e: Copyright(c) 1999 - 2011 Intel Corporation.
> 
> But with lspci -knn it shows that the NIC doesn't pick up the real time driver:
> 
> 00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection
> I219-LM [8086:156f] (rev 21)
>                Subsystem: Gigabyte Technology Co., Ltd Ethernet Connection I219-LM [1458:e000]
>                Kernel modules: e1000e
> 
> Did I do something wrong or is my I219-LM NIC not supported by RTnet?
> 
> Many Thanks
> 
> Lennard Kloock

Hey Lennard,

I had the same problem but with an Intel I219-V Ethernet Controller.

See https://www.mail-archive.com/xenomai@xenomai.org/msg16000.html

It runs nice now on my setup.

I checked my /xenomai/kernel/drivers/net/drivers/e1000e/hw.h and your device is in as well so it should be supported.

#define E1000_DEV_ID_PCH_SPT_I219_LM		0x156F	/* SPT PCH */

Best regards,

Gino 






^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-02-11 16:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-10 13:10 Installing RTnet Kloock, Lennard
2020-02-10 13:27 ` Jan Kiszka
2020-02-10 14:08   ` AW: " Kloock, Lennard
2020-02-10 14:13     ` Jan Kiszka
2020-02-11  9:45 ` Lange Norbert
2020-02-11 16:59 ` g.strobbe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.