All of lore.kernel.org
 help / color / mirror / Atom feed
* rtnet i219 setup
@ 2022-04-02  7:26 박재현
  2022-04-06 19:11 ` g.strobbe
  0 siblings, 1 reply; 7+ messages in thread
From: 박재현 @ 2022-04-02  7:26 UTC (permalink / raw)
  To: xenomai

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.


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

* Re: rtnet i219 setup
  2022-04-02  7:26 rtnet i219 setup 박재현
@ 2022-04-06 19:11 ` g.strobbe
  2022-04-07 11:14   ` 박재현
  0 siblings, 1 reply; 7+ messages in thread
From: g.strobbe @ 2022-04-06 19:11 UTC (permalink / raw)
  To: 박재현, barlettamarco8; +Cc: xenomai



----- 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 --------------
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>

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

* Re: rtnet i219 setup
  2022-04-06 19:11 ` g.strobbe
@ 2022-04-07 11:14   ` 박재현
  2022-04-07 11:18     ` 박재현
  2022-04-07 17:42     ` g.strobbe
  0 siblings, 2 replies; 7+ messages in thread
From: 박재현 @ 2022-04-07 11:14 UTC (permalink / raw)
  To: g.strobbe, barlettamarco8; +Cc: xenomai

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: <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/52002a10/attachment.txt>

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

* Re: rtnet i219 setup
  2022-04-07 11:14   ` 박재현
@ 2022-04-07 11:18     ` 박재현
  2022-04-07 11:23       ` 박재현
  2022-04-07 17:42     ` g.strobbe
  1 sibling, 1 reply; 7+ messages in thread
From: 박재현 @ 2022-04-07 11:18 UTC (permalink / raw)
  To: g.strobbe, barlettamarco8; +Cc: xenomai

**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>

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

* Re: rtnet i219 setup
  2022-04-07 11:18     ` 박재현
@ 2022-04-07 11:23       ` 박재현
  0 siblings, 0 replies; 7+ messages in thread
From: 박재현 @ 2022-04-07 11:23 UTC (permalink / raw)
  To: g.strobbe, barlettamarco8; +Cc: xenomai

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: <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/927992b5/attachment.txt>

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

* Re: rtnet i219 setup
  2022-04-07 11:14   ` 박재현
  2022-04-07 11:18     ` 박재현
@ 2022-04-07 17:42     ` g.strobbe
  2022-04-08  2:54       ` Jae Hyun Park
  1 sibling, 1 reply; 7+ messages in thread
From: g.strobbe @ 2022-04-07 17:42 UTC (permalink / raw)
  To: 박재현; +Cc: barlettamarco8, xenomai

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, 박재현 <parkjahun42@naver.com> 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: <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. | 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>

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

* Re: rtnet i219 setup
  2022-04-07 17:42     ` g.strobbe
@ 2022-04-08  2:54       ` Jae Hyun Park
  0 siblings, 0 replies; 7+ messages in thread
From: Jae Hyun Park @ 2022-04-08  2:54 UTC (permalink / raw)
  To: g.strobbe; +Cc: barlettamarco8, xenomai

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: <g.strobbe@telenet.be> 
To: "박재현"<parkjahun42@naver.com>; 
Cc: "barlettamarco8"<barlettamarco8@gmail.com>; <xenomai@xenomai.org>; 
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, 박재현 <parkjahun42@naver.com> 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: <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
 










 

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

end of thread, other threads:[~2022-04-08  2:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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     ` 박재현
2022-04-07 11:23       ` 박재현
2022-04-07 17:42     ` g.strobbe
2022-04-08  2:54       ` Jae Hyun Park

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.