Skip to contentSkip to conversation

RTUdp incoming msg are ok but unable to send UDP

DISCUSSION Per Oberg 2 participants 5 messages May 27, 2019 – May 28, 2019

lore
Share & tools
lore

Per Oberg

author
#0 lore raw

Hi folks

I am having some troubles with UDP and rtnet. I think it used to work, but I'm not sure in what configuration. I had to update to meet some driver demands and now i am using the following versions:

Xenomai 3.0.7
ipipe-core-4.9.90-x86-6
Kernel 4.9.90

When trying to send a UDP message I got a kernel paging request error so I tried adding nosmap to the boot parameters. This solved the kernel paging bug but no messages are coming out.

Does anyone know if there went in some patches to rtudp lately that would fix this?

Any other tips out there ?

Best regards
Per Öberg

#1 lore raw
Quoted 9 lines · Per Oberg via Xenomai

Hi folks

I am having some troubles with UDP and rtnet. I think it used to work, but I'm not sure in what configuration. I had to update to meet some driver demands and now i am using the following versions:

Xenomai 3.0.7
ipipe-core-4.9.90-x86-6
Kernel 4.9.90

Quoted 7 lines

When trying to send a UDP message I got a kernel paging request error so I tried adding nosmap to the boot parameters. This solved the kernel paging bug but no messages are coming out.

Does anyone know if there went in some patches to rtudp lately that would fix this?

Any other tips out there ?

Can you try if the issue is also present in stable/v3.0.x or master?

Jan

PS: 4.9 is EOL by now.

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
author
#2 lore raw

----- Den 27 maj 2019, på kl 10:22, Jan Kiszka [email protected] skrev:

Quoted 17 lines · Per Oberg via Xenomai
Quoted 14 lines

Hi folks

I am having some troubles with UDP and rtnet. I think it used to work, but I'm not sure in what configuration. I had to update to meet some driver demands and now i am using the following versions:

Xenomai 3.0.7
ipipe-core-4.9.90-x86-6
Kernel 4.9.90

When trying to send a UDP message I got a kernel paging request error so I tried adding nosmap to the boot parameters. This solved the kernel paging bug but no messages are coming out.

Quoted 7 lines
Quoted 4 lines

Does anyone know if there went in some patches to rtudp lately that would fix this?

Any other tips out there ?

Can you try if the issue is also present in stable/v3.0.x or master?

At a first glance it looks like the bug is fixed. However, I couldn't make it work in 3.0.8 because of compilation issues with the kernel. In current master it works however.

Quoted 3 lines

Jan

PS: 4.9 is EOL by now.

Yes, I've been meaning to upgrade to 4.14, but I got the feeling there was something iffy going on for quite a while?

Quoted 3 lines

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux

Thanks

Per Öberg

#3 lore raw
Quoted 26 lines · Per Oberg

----- Den 27 maj 2019, på kl 10:22, Jan Kiszka [email protected] skrev:

Quoted 19 lines · Per Oberg via Xenomai
Quoted 18 lines

Hi folks

I am having some troubles with UDP and rtnet. I think it used to work, but I'm not sure in what configuration. I had to update to meet some driver demands and now i am using the following versions:

Xenomai 3.0.7
ipipe-core-4.9.90-x86-6
Kernel 4.9.90

When trying to send a UDP message I got a kernel paging request error so I tried adding nosmap to the boot parameters. This solved the kernel paging bug but no messages are coming out.

Does anyone know if there went in some patches to rtudp lately that would fix this?

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Any other tips out there ?

Can you try if the issue is also present in stable/v3.0.x or master?

At a first glance it looks like the bug is fixed. However, I couldn't make it work in 3.0.8 because of compilation issues with the kernel. In current master it works however.

Can you share the compilation issues? Either they have been fixed in git, or they better should be before the next release.

Quoted 8 lines
Quoted 5 lines

Jan

PS: 4.9 is EOL by now.

Yes, I've been meaning to upgrade to 4.14, but I got the feeling there was something iffy going on for quite a while?

What exactly do you mean?

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
author
#4 lore raw

----- Den 28 maj 2019, på kl 8:45, Jan Kiszka [email protected] skrev:

Quoted 29 lines · Per Oberg
Quoted 27 lines

----- Den 27 maj 2019, på kl 10:22, Jan Kiszka [email protected] skrev:

Quoted 24 lines · Per Oberg via Xenomai
Quoted 16 lines

Hi folks

I am having some troubles with UDP and rtnet. I think it used to work, but I'm not sure in what configuration. I had to update to meet some driver demands and now i am using the following versions:

Xenomai 3.0.7
ipipe-core-4.9.90-x86-6
Kernel 4.9.90

When trying to send a UDP message I got a kernel paging request error so I tried adding nosmap to the boot parameters. This solved the kernel paging bug but no messages are coming out.

Quoted 4 lines

Does anyone know if there went in some patches to rtudp lately that would fix this?

Any other tips out there ?

Can you try if the issue is also present in stable/v3.0.x or master?

Quoted 7 lines
Quoted 3 lines

At a first glance it looks like the bug is fixed. However, I couldn't make it work in 3.0.8 because of compilation issues with the kernel. In current master it works however.

Can you share the compilation issues? Either they have been fixed in git, or they better should be before the next release.

I'm compiling using my own Yocto setup based on meta-xenomai from [1] below. For some reason I couldn't compile the kernel modules because of a missing rtdm/net.h. I noticed that there was a split in the git tree while back so I guess that's the original culprit.

However, I was never able to figure out if I had some old Xenomai-stuff laying around in the wrong places or if I forgot to update my sdk. Further, I was not able to get the actual compilation environment or see the real "cc commands". Instead of digging around further I decided to check master.

So, either Yocto kept the old kernel source or there is something else broken in 3.0.8 compilation. I haven't been able to tell which is more likely. When I created my own 3.0.8a release files based on master it started working again without cleaning anything else out.

This is one example of the error:
------------------------------------------------------------------------------------------------------------------------
In file included from .../kernel-source/drivers/xenomai/net/stack/include/rtdev.h:37:0,

                 from .../kernel-source/drivers/xenomai/net/stack/include/rtnet_port.h:32,
                 from .../kernel-source/drivers/xenomai/net/drivers/8139too.c:54:

.../kernel-source/drivers/xenomai/net/stack/include/rtskb.h:32:10: fatal error: rtdm/net.h: No such file or directory
------------------------------------------------------------------------------------------------------------------------

I just realized that I probably hit this bug: [2/3]. I knew I saw it somewhere, but still couldn't fint it when I was looking yesterday.

Does anyone have a good idea on how to effectively search the mailing list ?

Quoted 9 lines
Quoted 6 lines
Quoted 3 lines

Jan

PS: 4.9 is EOL by now.

Yes, I've been meaning to upgrade to 4.14, but I got the feeling there was something iffy going on for quite a while?

What exactly do you mean?

Sorry for being unclear. With iffy I meant that I've been seeing some reports of issues people have had, and I was probably more wrong than right. It's kind of hard to figure out afterwards if issues you only glanced on when they passed the mailing list was ever fixed, only a glitch, or something serious. The bug-reporting system seems a bit under-used =)

Anyway, I was referring to these:
- [4] In my mind it was only yesterday it was released, but time flies.
- [5] with a follow up that it was also for real hardware
- [6] perhaps only amd issue ?
- [7] kvm only issue ?

Quoted 1 line

Jan

[1] https://bitbucket.org/pficheux/meta-xenomai/src
[2] https://www.xenomai.org/pipermail/xenomai/2019-February/040364.html
[3] https://www.xenomai.org/pipermail/xenomai/2019-May/040866.html
[4] https://www.xenomai.org/pipermail/xenomai/2018-October/039653.html
[5] https://www.xenomai.org/pipermail/xenomai/2019-March/040460.html
[6] https://www.xenomai.org/pipermail/xenomai/2019-March/040619.html
[7] https://www.xenomai.org/pipermail/xenomai/2019-April/040722.html

Per Öberg