All of lore.kernel.org
 help / color / mirror / Atom feed
From: "François Legal" <devel@thom.fr.eu.org>
To: Paal Tamas <paal_to@freemail.hu>
Cc: xenomai@xenomai.org
Subject: Re: RTNET setup issue
Date: Wed, 23 Mar 2022 14:37:28 +0100	[thread overview]
Message-ID: <d01-623b2280-33-400dfa00@254400388> (raw)
In-Reply-To: <freemail.20220323140747.6187.1@fmxmldata10.freemail.hu>

Le Mercredi, Mars 23, 2022 14:07 CET, Paal Tamas <paal_to@freemail.hu> a écrit:

>
> "François Legal" <devel@thom.fr.eu.org> írta:
> >Le Mercredi, Mars 23, 2022 10:48 CET, Paal Tamas via Xenomai <xenomai@xenomai.org> a écrit:
> >
> >> Dear All,   I am trying to set up RTNET using the latest xenomai_3.2.1 on an x86_64 system. I need only the raw packet (e.g rtpacket layer). I tried a lot of things but I still got errors like:  ioctl: Inappropriate ioctl for device    I try to use this PCI device:
> >> 01:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
> >>     Subsystem: Intel Corporation Gigabit ET Dual Port Server Adapter
> >>     Kernel driver in use: rt_igb
> >>     Kernel modules: igb, rt_igb   What I do is: ifconfig enp1s0f0 down
> >> ifconfig enp1s0f1 down
> >> rmmod igbmodprobe rtnet
> >> modprobe rtpacket
> >> modprobe rt_igb
> >> modprobe rtipv4
> >> modprobe rtudp  set up the rtnet.conf file and start rtnet: /usr/xenomai/sbin$ sudo ./rtnet start
> >> ioctl: Inappropriate ioctl for device
> >> ioctl: Inappropriate ioctl for device
> >> ioctl: Inappropriate ioctl for device
> >> Stage 1: searching for master...ioctl: Inappropriate ioctl for deviceStage 2: waiting for other slaves...
> >> Stage 3: waiting for common setup completion...ioctl: Inappropriate ioctl for deviceclickandmove@clickandmove-desktop:/usr/xenomai/sbin$ sudo /usr/xenomai/sbin/rtifconfig -a
> >> ioctl: Inappropriate ioctl for device   The kernel log:  [   50.360253] igb 0000:01:00.1: removed PHC on enp1s0f1
> >> [   50.553797] igb 0000:01:00.0: removed PHC on enp1s0f0
> >> [   81.769798] RTnet: registered rteth0
> >> [   81.769802] rt_igb 0000:01:00.0: Intel(R) Gigabit Ethernet Network Connection
> >> [   81.769804] rt_igb 0000:01:00.0: rteth0: (PCIe:2.5Gb/s:Width x1) 6c:b3:11:56:2e:32
> >> [   81.769807] rt_igb 0000:01:00.0: rteth0: PBA No: Unknown
> >> [   81.769808] rt_igb 0000:01:00.0: Using MSI-X interrupts. 1 rx queue(s), 1 tx queue(s)
> >> [   81.777139] rt_loopback: initializing loopback interface...
> >> [   81.777315] RTnet: registered rtlo
> >> [   81.787311] RTcfg: init real-time configuration distribution protocol
> >> [   81.793326] RTmac: init realtime media access control
> >> [   81.800424] RTmac/TDMA: init time division multiple access control mechanism   Even rtifconfig returns the same error  /usr/xenomai/sbin/rtifconfig -aioctl: Inappropriate ioctl for device   What am I doing wrong? Thank you,Tamas
> >>
> >
> > Hello,
> >
> >what makes you think it does not work ? Using the rtnet script, you&#39;re trying to configure rtmac & rtcfg which you stated are not necessary for your setup.
> >
> >Have you tried only rtifconfig rteth* up and checked the Tx/Rx counters displayed there ?
> >
> >François
>
> >Hello,  The "rtifconfig rteth0 up" command returns the  "ioctl: Inappropriate ioctl for device" error too. That&#39;s why I think something is wrong. Thank you,Tamas

 Alright,

then you might want to take a look at the source code of the e1000 driver to verify that your device is supported by the xenomai release your using (you should find the PCI dev/prod id in some header file)

François



  reply	other threads:[~2022-03-23 13:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-23  9:48 RTNET setup issue Paal Tamas
2022-03-23 11:05 ` François Legal
2022-03-23 13:07   ` Paal Tamas
2022-03-23 13:37     ` François Legal [this message]
2022-03-23 14:12       ` Paal Tamas
2022-03-23 15:02         ` Paal Tamas
2022-03-23 16:41           ` Bezdeka, Florian
2022-03-24 15:27             ` Paal Tamas
2022-03-29  9:08               ` Bezdeka, Florian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d01-623b2280-33-400dfa00@254400388 \
    --to=devel@thom.fr.eu.org \
    --cc=paal_to@freemail.hu \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.