Good day!

once more
I make some changes to rtnet r8169 driver  based on    
https://xenomai.org/pipermail/xenomai/2015-June/034450.html
Now I can succsesfully compile it 

but after .rtnet start to a system i get 

yeti@yeti-UDOO-x86:/usr/xenomai/sbin$ sudo ./rtnet -v start
Turning on verbose mode
sh: echo: I/O error
/usr/xenomai/sbin/rtifconfig rtlo up 127.0.0.1
/usr/xenomai/sbin/rtcfg rteth0 server
ioctl: No such device
/usr/xenomai/sbin/rtifconfig rteth0 up 192.168.161.45 netmask 255.255.255.128
ioctl: No such device
/usr/xenomai/sbin/tdmacfg rteth0 master 5000
ioctl: No such device
/usr/xenomai/sbin/tdmacfg rteth0 slot 0 0
ioctl: No such device
/usr/xenomai/sbin/rtcfg rteth0 add 192.168.161.22 -stage1 -
ioctl (add): No such device
vnic0: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
vnic0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
Waiting for all slaves.../usr/xenomai/sbin/rtcfg rteth0 wait
ioctl: No such device
/usr/xenomai/sbin/rtcfg rteth0 ready
ioctl: No such device

yeti@yeti-UDOO-x86:/usr/xenomai/sbin$ lsmod
Module                  Size  Used by
tdma                   18473  0
rtmac                   9847  1 tdma
rtcfg                  38110  0
rt_loopback             1467  1
rtpacket                8552  0
rtudp                  12886  0
rt_r8169               14344  0
rtipv4                 25411  2 rtudp,rtcfg
rtnet                  56300  8 
rtipv4,rt_loopback,rtmac,rt_r8169,rtpacket,rtudp,rtcfg,tdma

logs
              *** RTnet for Xenomai v3.0.6 ***

[ 4842.022029] RTnet: initialising real-time networking
[ 5308.564289] Initializing rt_r8169 driver
[ 5308.615741] initializing loopback...
[ 5308.615765] RTnet: registered rtlo
[ 5308.681555] RTcfg: init real-time configuration distribution protocol
[ 5308.727633] RTmac: init realtime media access control
[ 5308.767365] RTmac/TDMA: init time division multiple access control mechanism


if I insmod manually my module

[ 5505.043230] rt_r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 5505.044057] rt_r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM 
control
[ 5505.044433] RTnet: registered enp2s0
[ 5505.044444] RTL8168g/8111g at 0xffffb3c78153d000, 00:c0:08:92:44:62, XID 
0c000880 IRQ 18
[ 5505.044446] jumbo features [frames: 9200 bytes, tx checksumming: ko]

it seems to me that need to change work with rteth0   -> enp2s0  in all rtnet 
files  How I can do that ?




----- Original Message -----
From: "Шевченко Тарас Григорьевич" <shevchenko.ta...@triolcorp.com.ua>
To: "Jan Kiszka" <jan.kis...@siemens.com>
Cc: "xenomai" <xenomai@xenomai.org>
Sent: Вторник, 13 Март 2018 г 17:22:56
Subject: Re: [Xenomai] rtnet no eth 0

part of 
https://github.com/G-Ray/xenomai-boneblack-rtnet-drivers/blob/master/r8169.c

static struct pci_device_id rtl8169_pci_tbl[] = {
        { PCI_DEVICE(PCI_VENDOR_ID_REALTEK,     0x8136), 0, 0, 2 },
        { PCI_DEVICE(PCI_VENDOR_ID_REALTEK,     0x8167), 0, 0, 1 },
        { PCI_DEVICE(PCI_VENDOR_ID_REALTEK,     0x8169), 0, 0, 1 },
        { PCI_DEVICE(PCI_VENDOR_ID_DLINK,       0x4300), 0, 0, 1 },     /* <kk> 
D-Link DGE-528T */
        {0,},
};
 I think first changes should be there to support  product: RTL8111/8168/8411 
PCI Express Gigabit Ethernet Controll

----- Original Message -----
From: "Jan Kiszka" <jan.kis...@siemens.com>
To: "Шевченко Тарас Григорьевич" <shevchenko.ta...@triolcorp.com.ua>
Cc: "xenomai" <xenomai@xenomai.org>
Sent: Monday, March 12, 2018 4:49:29 PM
Subject: Re: [Xenomai] rtnet no eth 0

On 2018-03-12 07:44, Шевченко Тарас Григорьевич wrote:
> Ok, 
> could you describe in few words  - how to do that ?

Diff the RTnet driver against the corresponding upstream driver, look
for deviating patterns that are not RTnet related.

Also, check in the upstream history how support for the device type 8168
came in, via which commits. Maybe porting them over is enough, maybe
it's just the ID that is missing.

Jan

> 
> С уважением и надеждой на сотрудничество,
> Шевченко Т.Г.
> 
> ----- Original Message -----
> From: "Jan Kiszka" <jan.kis...@siemens.com>
> To: "Шевченко Тарас Григорьевич" <shevchenko.ta...@triolcorp.com.ua>
> Cc: "xenomai" <xenomai@xenomai.org>
> Sent: Monday, March 12, 2018 4:24:08 PM
> Subject: Re: [Xenomai] rtnet no eth 0
> 
> On 2018-03-12 05:12, Шевченко Тарас Григорьевич wrote:
>> is there a way to debug my installation ?
>>
>> i do
>> 1)add rtnet in menuconfig  and add driver  8169
>> 2)remove r8169
>>
>> yeti@yeti-UDOO-x86:/usr/xenomai/sbin$ sudo ./rtnet  start
>> sh: echo: I/O error
>> ioctl: No such device
>> ./rtnet: 193: ./rtnet: cannot open : No such file
>> vnic0: ERROR while getting interface flags: No such device
>> SIOCSIFADDR: No such device
>> vnic0: ERROR while getting interface flags: No such device
>> SIOCSIFNETMASK: No such device
>> Waiting for all slaves...ioctl: No such device
>> ioctl: No such device
>>
>> yeti@yeti-UDOO-x86:/usr/xenomai/sbin$ lsmod|grep rt
>> rtmac                  20480  1 tdma
>> rtcfg                  45056  0
>> rtpacket               20480  0
>> rtudp                  24576  0
>> rt_r8169               24576  0
>> rtipv4                 32768  2 rtudp,rtcfg
>> rtnet                  65536  7 
>> rtipv4,rtmac,rt_r8169,rtpacket,rtudp,rtcfg,tdma
>>
>>
>> yeti@yeti-UDOO-x86:/usr/xenomai/sbin$ lspci -knn |grep Ethernet
>>
>> 02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. 
>> RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 
>> 0c)
>>      Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI 
>> Express Gigabit Ethernet Controller [10ec:0123]
>>      Kernel modules: r8169
>> yeti@yeti-UDOO-x86:/usr/xenomai/sbin$ sudo rmmod r8169
>> rmmod: ERROR: Module r8169 is not currently loaded
> 
> Still, rt_r8169 didn't bind. Maybe our driver doesn't list this card ID
> (i.e. is too old)... and that is the case here (no 8168). You can try
> integrating the state of the current upstream driver /wrt to this new
> device ID into the RTnet variant, but that's not a simple task
> 
> Jan
>

_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai

_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai

Reply via email to