**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.stro...@telenet.be> To: "박재현"<parkjahu...@naver.com>; <barlettamar...@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>