All of lore.kernel.org
 help / color / mirror / Atom feed
From: 박재현 <parkjahun42@naver.com>
To: g.strobbe@telenet.be, barlettamarco8@gmail.com
Cc: xenomai@xenomai.org
Subject: Re: rtnet i219 setup
Date: Thu, 07 Apr 2022 20:18:02 +0900	[thread overview]
Message-ID: <8ee386688ba71b7f4718a2341be90@cweb007.nm.nfra.io> (raw)
In-Reply-To: <321714c2c878c89975aa86fa55efa27@cweb005.nm.nfra.io>

**Sorry for the lines :(, I resending mail after warpeed lines
 
Thanks for responsing !
I compiled with v5.15.y-dovetail branch & Xenomai 3 master branch at kernel 5.15, but I got some compile errors:
 
Firstly, 
 
In file included from drivers/xenomai/net/drivers/e1000e/82571.c:20:drivers/xenomai/net/drivers/e1000e/e1000.h:24:10: fatal error: rtnet_port.h: No such file or directory   24 | #include <rtnet_port.h>      | ^~~~~~~~~~~~~~compilation terminated.
error occurs, so I addedccflags-y += -I$(srctree)/drivers/xenomai/net/stack/includeto drivers/xenomai/net/drivers/e1000e/Makefile, and error disappeared.However, I can't fix compile error with ethtool.c. Error messages shows me likedrivers/xenomai/net/drivers/e1000e/ethtool.c: In function ‘e1000_get_link_ksettings’:drivers/xenomai/net/drivers/e1000e/ethtool.c:158:14: error: implicit declaration of function ‘pm_runtime_suspended’ [-Werror=implicit-function-declaration]  158 | } else if (!pm_runtime_suspended(netdev->dev.parent)) {      | ^~~~~~~~~~~~~~~~~~~~drivers/xenomai/net/drivers/e1000e/ethtool.c:158:41: error: ‘struct rtnet_device’ has no member named ‘dev’  158 | } else if (!pm_runtime_suspended(netdev->dev.parent)) {      | drivers/xenomai/net/drivers/e1000e/ethtool.c:270:2: error: implicit declaration of function ‘pm_runtime_get_sync’ [-Werror=implicit-function-declaration]  270 | pm_runtime_get_sync(netdev->dev.parent);      | ^~~~~~~~~~~~~~~~~~~drivers/xenomai/net/drivers/e1000e/ethtool.c: In function ‘e1000_get_ringparam’:drivers/xenomai/net/drivers/e1000e/ethtool.c:665:28: error: ‘struct e1000_adapter’ has no member named ‘rx_ring_count  665 | ring->rx_pending = adapter->rx_ring_count;      |      drivers/xenomai/net/drivers/e1000e/ethtool.c:666:28: error: ‘struct e1000_adapter’ has no member named ‘tx_ring_count’  666 | ring->tx_pending = adapter->tx_ring_count;      |drivers/xenomai/net/drivers/e1000e/ethtool.c:2364:18: note: (near initialization for ‘e1000_ethtool_ops.get_drvinfo’)drivers/xenomai/net/drivers/e1000e/ethtool.c:2365:19: error: initialization of ‘int (*)(struct net_device *)’ from incompatible pointer type ‘int (*)(struct tnet_device *)’ [-Werror=incompatible-pointer-types] 2365 | .get_regs_len = e1000_get_regs_len,      | ^~~~~~~~~~~~~~~~~~the whole error message txt file is attached to the mail(Same error occurs in whole ethtool.c). It seems rtnetdev struct not match to ethtool.c functions...How can I fix it?Thanks-----Original Message-----
From: <g.strobbe@telenet.be>
To: "박재현"<parkjahun42@naver.com>; <barlettamarco8@gmail.com>;
Cc: <xenomai@xenomai.org>;
Sent: 2022-04-07 (목) 04:11:50 (GMT+09:00)
Subject: Re: rtnet i219 setup
 


----- On Apr 2, 2022, at 9:26 AM, 박재현 via Xenomai xenomai@xenomai.org wrote:

> Hi everyone.
> I was trying to setup Xenomai 3.2 with rtnet, but I was stuck on i219 driver.
> I have same problem as
> https://xenomai.org/pipermail/xenomai/2020-February/042422.html.
> I found i219 patch, but it is for kernel 4.x. In kernel 5.x I have an error same
> as https://xenomai.org/pipermail/xenomai/2021-September/046510.html.
> Is there recent patch for i219? My system is Xenomai 3.2, Linux 5.11
> Thank you very much for the effort.

Hi,

I ported the e1000e driver starting from the v5.15.y-dovetail branch.
It functions on my setup, an Intel NUC i3 with an Intel I219-V Ethernet
controller wired to a Beckhoff IO island.
I tested it on the Xenomai 3 master and next branches.

The patches are not cleaned out yet.  I'm splitting them up in an effort to make it
easier for someone to have a look at.

I attach them as they are so you can already give them a try if you like.

Best Regards,
Gino






 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: error_raw.txt
URL: <http://xenomai.org/pipermail/xenomai/attachments/20220407/11aa8c30/attachment.txt>

  reply	other threads:[~2022-04-07 11:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-02  7:26 rtnet i219 setup 박재현
2022-04-06 19:11 ` g.strobbe
2022-04-07 11:14   ` 박재현
2022-04-07 11:18     ` 박재현 [this message]
2022-04-07 11:23       ` 박재현
2022-04-07 17:42     ` g.strobbe
2022-04-08  2:54       ` Jae Hyun Park

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=8ee386688ba71b7f4718a2341be90@cweb007.nm.nfra.io \
    --to=parkjahun42@naver.com \
    --cc=barlettamarco8@gmail.com \
    --cc=g.strobbe@telenet.be \
    --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.