Xenomai3 network issues

Hannes Diethelm <[email protected]>
Newsgroups dev.linux.lists.xenomai
Message-ID <[email protected]>
Hello

I don't know if I do something wrong or if there is a bug. However, I
can not get any network connectivity from user space over rt_e1000e.

Config:
Debian Trixie
Xenomai3 master d4929cf
linux-dovetail v6.12.y-cip-dovetail-rebase e2fc451

Setup:
modprobe rt_e1000e
modprobe rt_loopback
with/without modprobe rtpacket
modprobe rtudp
modprobe rtipv4
rtifconfig rtlo up 127.0.0.1
rtifconfig rteth0 up 192.168.122.45

I don't need the full RTnet stack, I only need a point to point UDP connection. This
is why I manually load the kernel modules and set up the interface. rtnet start
blocks while trying to reach a TDMA slave but my device doesn't has this functionality.

rtping to any network address works fine, but looking at the rtping code, an ioctl is
used, so the data is sent and received in kernel space.

I had an issue with my code, so I tried the demo:

Without module rtpacket:
./demo/posix/cobalt/eth_p_all
There are no packages from the real time driver only from the other
network cards

./demo/posix/cobalt/eth_p_all rteth0
cannot get interface index: No such device

With module rtpacket:
./demo/posix/cobalt/eth_p_all
socket cannot be created: Invalid argument

./demo/posix/cobalt/eth_p_all rteth0
socket cannot be created: Invalid argument

rtifconfig
rteth0    Medium: Ethernet  Hardware address: 52:54:00:5A:79:C5
           IP address: 192.168.122.45  Broadcast address: 192.168.122.255
           UP BROADCAST RUNNING  MTU: 1500

rtlo      Medium: Local Loopback
           IP address: 127.0.0.1
           UP LOOPBACK RUNNING  MTU: 1500

Regards
Hannes
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.