Skip to contentSkip to conversation

rtnet i219 setup

DISCUSSION 박재현 2 participants 7 messages Apr 2, 2022 – Apr 8, 2022

lore
Share & tools
lore
#1 lore raw
Quoted 8 lines · ----- On Apr 2, 2022, at 9:26 AM, 박재현 via Xenomai [email protected] 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 --------------
A non-text attachment was scrubbed...
Name: 0001-v1-01-11-e1000e-Copy-the-vanilla-kernel-driver-files.patch
Type: application/mbox
Size: 902904 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20220406/77cf47ad/attachment.mbox>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-v1-02-11-e1000e-Remove-functions.patch
Type: application/mbox
Size: 48103 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20220406/77cf47ad/attachment-0001.mbox>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-v1-03-11-e1000e-Remove-power-management.patch
Type: application/mbox
Size: 23487 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20220406/77cf47ad/attachment-0002.mbox>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-v1-04-11-e1000e-Remove-precision-time-protocol.patch
Type: application/mbox
Size: 22197 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20220406/77cf47ad/attachment-0003.mbox>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-v1-05-11-e1000e-Remove-statistics.patch
Type: application/mbox
Size: 9547 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20220406/77cf47ad/attachment-0004.mbox>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-v1-06-11-e1000e-Interrupt-handling.patch
Type: application/mbox
Size: 15569 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20220406/77cf47ad/attachment-0005.mbox>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-v1-07-11-e1000e-Remainder.patch
Type: application/mbox
Size: 43069 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20220406/77cf47ad/attachment-0006.mbox>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-v1-08-11-e1000e-Data-type-transformations.patch
Type: application/mbox
Size: 26204 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20220406/77cf47ad/attachment-0007.mbox>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-v1-09-11-e1000e-Function-renaming.patch
Type: application/mbox
Size: 29126 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20220406/77cf47ad/attachment-0008.mbox>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-v1-10-11-e1000e-Macro-call-transformations.patch
Type: application/mbox
Size: 3196 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20220406/77cf47ad/attachment-0009.mbox>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-v1-11-11-e1000e-Checkpatch-reported-issues.patch
Type: application/mbox
Size: 6083 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20220406/77cf47ad/attachment-0010.mbox>

author
#2 lore raw

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 rtnet_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: <[email protected]>
To: "박재현"<[email protected]>; <[email protected]>;
Cc: <[email protected]>;
Sent: 2022-04-07 (목) 04:11:50 (GMT+09:00)
Subject: Re: rtnet i219 setup

Quoted 8 lines · ----- On Apr 2, 2022, at 9:26 AM, 박재현 via Xenomai [email protected] 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/52002a10/attachment.txt>

author
#3 lore raw

**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: <[email protected]>
To: "박재현"<[email protected]>; <[email protected]>;
Cc: <[email protected]>;
Sent: 2022-04-07 (목) 04:11:50 (GMT+09:00)
Subject: Re: rtnet i219 setup

Quoted 8 lines · ----- On Apr 2, 2022, at 9:26 AM, 박재현 via Xenomai [email protected] 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>

author
#4 lore raw

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 added ccflags-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 like

drivers/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;

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: <[email protected]>
To: "박재현"<[email protected]>; <[email protected]>;
Cc: <[email protected]>;
Sent: 2022-04-07 (목) 04:11:50 (GMT+09:00)
Subject: Re: rtnet i219 setup

Quoted 8 lines · ----- On Apr 2, 2022, at 9:26 AM, 박재현 via Xenomai [email protected] 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/927992b5/attachment.txt>

#5 lore raw
In reply to 박재현

Hi,

My pleasure.

I understand.
By splitting up in multiple patches, I forgot to include the proper Makefile. Sorry about that.

Please find it attached.
After patching, just copy it in the proper directory: drivers/xenomai/net/drivers/e1000e/

You will see, ethtool is not compiled as I never looked at it so far. I have no use for it.

Best Regards,
Gino

----- On Apr 7, 2022, at 1:14 PM, 박재현 <[email protected]> wrote:

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 added
ccflags-y += -I$(srctree)/drivers/xenomai/net/stack/include
to drivers/xenomai/net/drivers/e1000e/Makefile, and error disappeared.
However, I can't fix compile error with ethtool.c. Error messages shows me like
drivers/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 rtnet_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: <[email protected]>
To: "박재현"<[email protected]>; <[email protected]>;
Cc: <[email protected]>;
Sent: 2022-04-07 (목) 04:11:50 (GMT+09:00)
Subject: Re: rtnet i219 setup

Quoted 8 lines · ----- On Apr 2, 2022, at 9:26 AM, 박재현 via Xenomai [email protected] 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. | 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 --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: text/x-makefile
Size: 277 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20220407/f3f7e504/attachment.bin>

#6 lore raw

It finally works!

I meet several compile errors. After modifing codes, Finally works!:

1. netdev.c : "dma_error:"

I deleted "dma_error:" in netdev.c.

2. rtdev.h : Providing-rtnetdev_alloc_rtskb_ip_align

rtnetdev_alloc_rtskb_ip_align compile error occured. I found your patch https://www.xenomai.org/pipermail/xenomai/2019-June/041114.html.

Atfer modifing code, it fixed.

3. netdev.c : __be16 protocol = vlan_get_protocol(skb);

It seems variable protocol is not used it that function, so I deleted and it works.

Thank you very much for the effort.

-----Original Message-----
From: <[email protected]>
To: "박재현"<[email protected]>;
Cc: "barlettamarco8"<[email protected]>; <[email protected]>;
Sent: 2022-04-08 (금) 02:42:23 (GMT+09:00)
Subject: Re: rtnet i219 setup

Hi,

My pleasure.
I understand.
By splitting up in multiple patches, I forgot to include the proper Makefile. Sorry about that.

Please find it attached.
After patching, just copy it in the proper directory: drivers/xenomai/net/drivers/e1000e/

You will see, ethtool is not compiled as I never looked at it so far. I have no use for it.

Best Regards,
Gino

----- On Apr 7, 2022, at 1:14 PM, 박재현 <[email protected]> wrote:
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 rtnet_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: <[email protected]>
To: "박재현"<[email protected]>; <[email protected]>;
Cc: <[email protected]>;
Sent: 2022-04-07 (목) 04:11:50 (GMT+09:00)
Subject: Re: rtnet i219 setup

Quoted 8 lines · ----- On Apr 2, 2022, at 9:26 AM, 박재현 via Xenomai [email protected] 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