Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
Hello,
Because of new PC hardware I have to use debain 9 and Xenomai 3. Xenomai is running on the system, I run the testsuite scripts. I found a migration document on xenomai.org and changed the includepaths and so on in my sourcecode. But now when I want to compile the code I got this error In file included from ./CSRTPosixQue.h:20:0,
from ./CSRTTask.h:20,
from main.cpp:26:/usr/xenomai/include/trank/native/task.h: In function 'int rt_task_notify(RT_TASK*, rt_sigset_t)':/usr/xenomai/include/trank/native/task.h:41:64: error: 'trank_warning' was not declared in this scope trank_warning("in-kernel native API is gone, rebase over RTDM");
But this "trank_warning" is defined in trank.h which is included
Mit freundlichen Grüßen / Best regards
Carsten Ehrmann
T-S092 Industrial Engineering / Test Engineering & Software
Diehl Metering
Industriestr. 13
91522 Ansbach
Germany
Phone: +49 981 1806-252
E-Mail: [email protected]<mailto:[email protected]>
Web: www.diehl.com/metering<../../../../../metzan/AppData/Local/Temp/notesE05E9E/www.diehl.com/metering>
_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection
Quoted 5 lines · Carsten EHRMANN via Xenomai
Hello,
Because of new PC hardware I have to use debain 9 and Xenomai 3. Xenomai is running on the system, I run the testsuite scripts. I found a migration document on xenomai.org and changed the includepaths and so on in my sourcecode. But now when I want to compile the code I got this error In file included from ./CSRTPosixQue.h:20:0,
Quoted 8 lines
from ./CSRTTask.h:20, from main.cpp:26:
/usr/xenomai/include/trank/native/task.h: In function 'intrt_task_notify(RT_TASK*, rt_sigset_t)':/usr/xenomai/include/trank/native/task.h:41:64: error: 'trank_warning' was not declared in this scopetrank_warning("in-kernel native API is gone, rebase over RTDM");But this "
trank_warning" is defined intrank.hwhich is included
Where you using xeno-config to obtain paths and other compiler switches? If not, please compare your settings. If yes, a simple test case would be nice. But it can't be very simple because
#include <native/task.h>
int main() {}
compiles via "gcc $(xeno-config --skin native --cflags) ..."
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Hi Jan,
do I have to include the xeno-config file? I just configured it with "xeno-config --skin=native".
I use a project file where includes are defined, see below:
unix {
TEMPLATE = app
} else {
TEMPLATE = vcapp
}
CONFIG -= qt
CONFIG += debug_and_release warn_on exceptions rtti
Debug {
TARGET = CSRTDaemon
CONFIG += console
OBJECTS_DIR = ../tmp/obj/CSRTDaemon/debug
DESTDIR = ../lib/CSRTDaemon
DLLDESTDIR = ../dll/CSRTDaemon
SCOPE=debug
unix {
QMAKE_CXXFLAGS +=
QMAKE_CFLAGS +=
QMAKE_LFLAGS +=
} else {
QMAKE_POST_LINK = COPY /Y ../lib/CSRTDaemon/*.pdb ../dll/CSRTDaemon/
}
} else { TARGET = CSRTDaemon
OBJECTS_DIR = ../tmp/obj/CSRTDaemon/release
DESTDIR = ../lib/CSRTDaemon
DLLDESTDIR = ../dll/CSRTDaemon
DEFINES += QT_NO_DEBUG_OUTPUT NDEBUG
SCOPE=release
}
QMAKE_LIBDIR += /usr/xenomai/lib
INCLUDEPATH += /usr/xenomai/include
_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Monday, February 10, 2020 2:23 PM
To: Carsten EHRMANN <[email protected]>; [email protected]
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
Quoted 5 lines · Carsten EHRMANN via Xenomai
Hello,
Because of new PC hardware I have to use debain 9 and Xenomai 3.
Xenomai is running on the system, I run the testsuite scripts. I found a migration document on xenomai.org and changed the includepaths and so on in my sourcecode. But now when I want to compile the code I got this error In file included from ./CSRTPosixQue.h:20:0,
Quoted 9 lines
from ./CSRTTask.h:20, from main.cpp:26:
/usr/xenomai/include/trank/native/task.h: In function 'intrt_task_notify(RT_TASK*, rt_sigset_t)':/usr/xenomai/include/trank/native/task.h:41:64: error: 'trank_warning'
was not declared in this scope trank_warning("in-kernel native API is
gone, rebase over RTDM");But this "
trank_warning" is defined intrank.hwhich is included
Where you using xeno-config to obtain paths and other compiler switches?
If not, please compare your settings. If yes, a simple test case would be nice. But it can't be very simple because
#include <native/task.h>
int main() {}
compiles via "gcc $(xeno-config --skin native --cflags) ..."
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Quoted 3 lines · Carsten EHRMANN
Hi Jan,
do I have to include the xeno-config file? I just configured it with "xeno-config --skin=native".
You can use your own hard-coded switches, provided you know what you are doing. Otherwise, picking them up during the build from xeno-config is recommended. It's enough to do it once during make startup.
Quoted 34 lines
I use a project file where includes are defined, see below:
unix {
TEMPLATE = app
} else {
TEMPLATE = vcapp
}
CONFIG -= qt
CONFIG +=debug_and_releasewarn_onexceptions rttiDebug { TARGET = CSRTDaemon CONFIG += console OBJECTS_DIR = ../tmp/obj/CSRTDaemon/debug DESTDIR = ../lib/CSRTDaemon DLLDESTDIR = ../dll/CSRTDaemon SCOPE=debug unix { QMAKE_CXXFLAGS += QMAKE_CFLAGS += QMAKE_LFLAGS += } else { QMAKE_POST_LINK = COPY /Y ../lib/CSRTDaemon/*.pdb ../dll/CSRTDaemon/ } } else {TARGET = CSRTDaemon
OBJECTS_DIR= ../tmp/obj/CSRTDaemon/release
DESTDIR = ../lib/CSRTDaemon
DLLDESTDIR = ../dll/CSRTDaemon
DEFINES +=QT_NO_DEBUG_OUTPUTNDEBUG
SCOPE=release
}
Quoted 3 lines
QMAKE_LIBDIR+=/usr/xenomai/lib
INCLUDEPATH +=/usr/xenomai/include
Again, what matters is what is passed to the individual gcc invocation. Check that. Otherwise, again, please send a reproduction case. We can't debug your local setup remotely.
Jan
Quoted 52 lines
_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Monday, February 10, 2020 2:23 PM
To: Carsten EHRMANN <[email protected]>; [email protected]
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.xQuoted 5 lines · Carsten EHRMANN via Xenomai
Hello,
Because of new PC hardware I have to use debain 9 and Xenomai 3.
Xenomai is running on the system, I run the testsuite scripts. I found a migration document on xenomai.org and changed the includepaths and so on in my sourcecode. But now when I want to compile the code I got this error In file included from ./CSRTPosixQue.h:20:0,Quoted 9 lines
from ./CSRTTask.h:20, from main.cpp:26:
/usr/xenomai/include/trank/native/task.h: In function 'intrt_task_notify(RT_TASK*, rt_sigset_t)':/usr/xenomai/include/trank/native/task.h:41:64: error: 'trank_warning'
was not declared in this scope trank_warning("in-kernel native API is
gone, rebase over RTDM");But this "
trank_warning" is defined intrank.hwhich is includedWhere you using xeno-config to obtain paths and other compiler switches?
If not, please compare your settings. If yes, a simple test case would be nice. But it can't be very simple because#include <
native/task.h>
intmain(){}compiles via "gcc $(xeno-config --skin native --cflags) ..."
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Hi Jan,
I made a simple reproduction example (see attached 4 files). I got this error again:
In file included from main.cpp:28:0:/usr/xenomai/include/trank/native/task.h: In function ‘int rt_task_notify(RT_TASK*, rt_sigset_t)’:/usr/xenomai/include/trank/native/task.h:41:64: error: ‘trank_warning’ was not declared in this scope
trank_warning("in-kernel native API is gone, rebase over RTDM");
Thanks in advanced
Carsten
_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Monday, February 10, 2020 3:40 PM
To: Carsten EHRMANN <[email protected]>; [email protected]
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
Quoted 3 lines · Carsten EHRMANN
Hi Jan,
do I have to include the xeno-config file? I just configured it with "xeno-config --skin=native".
You can use your own hard-coded switches, provided you know what you are doing. Otherwise, picking them up during the build from xeno-config is recommended. It's enough to do it once during make startup.
Quoted 33 lines
I use a project file where includes are defined, see below:
unix {
TEMPLATE = app
} else {
TEMPLATE = vcapp
}
CONFIG -= qtCONFIG += debug_and_release warn_on exceptions rtti Debug { TARGET = CSRTDaemon CONFIG += console OBJECTS_DIR = ../tmp/obj/CSRTDaemon/debug DESTDIR = ../lib/CSRTDaemon DLLDESTDIR = ../dll/CSRTDaemon SCOPE=debug unix { QMAKE_CXXFLAGS += QMAKE_CFLAGS += QMAKE_LFLAGS += } else { QMAKE_POST_LINK = COPY /Y ../lib/CSRTDaemon/*.pdb ../dll/CSRTDaemon/ } } else {TARGET = CSRTDaemon
OBJECTS_DIR= ../tmp/obj/CSRTDaemon/release
DESTDIR = ../lib/CSRTDaemon
DLLDESTDIR = ../dll/CSRTDaemon
DEFINES +=QT_NO_DEBUG_OUTPUTNDEBUG
SCOPE=release
}
Quoted 3 lines
QMAKE_LIBDIR+=/usr/xenomai/lib
INCLUDEPATH +=/usr/xenomai/include
Again, what matters is what is passed to the individual gcc invocation.
Check that. Otherwise, again, please send a reproduction case. We can't debug your local setup remotely.
Jan
Quoted 48 lines
______________________________________________________________________
___________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach Telefon + 49
981 1806 0, Telefax +49 981 1806 615 Sitz der Gesellschaft: Ansbach,
Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner,
Jean-François Marguet Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Monday, February 10, 2020 2:23 PM
To: Carsten EHRMANN <[email protected]>; [email protected]
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.xQuoted 5 lines · Carsten EHRMANN via Xenomai
Hello,
Because of new PC hardware I have to use debain 9 and Xenomai 3.
Xenomai is running on the system, I run the testsuite scripts. I found a migration document on xenomai.org and changed the includepaths and so on in my sourcecode. But now when I want to compile the code I got this error In file included from ./CSRTPosixQue.h:20:0,Quoted 9 lines
from ./CSRTTask.h:20, from main.cpp:26:
/usr/xenomai/include/trank/native/task.h: In function 'intrt_task_notify(RT_TASK*, rt_sigset_t)':/usr/xenomai/include/trank/native/task.h:41:64: error: 'trank_warning'
was not declared in this scope trank_warning("in-kernel native API is
gone, rebase over RTDM");But this "
trank_warning" is defined intrank.hwhich is includedWhere you using xeno-config to obtain paths and other compiler switches? If not, please compare your settings. If yes, a simple test case would be nice. But it can't be very simple because
#include <
native/task.h>
intmain(){}
Quoted 8 lines
compiles via "gcc $(xeno-config --skin native --cflags) ..."
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux -------------- next part --------------
A non-text attachment was scrubbed...
Name: release.sh
Type: application/octet-stream
Size: 2732 bytes
Desc: release.sh
URL: <http://xenomai.org/pipermail/xenomai/attachments/20200210/a49cd417/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makefile
Type: application/octet-stream
Size: 1653 bytes
Desc: makefile
URL: <http://xenomai.org/pipermail/xenomai/attachments/20200210/a49cd417/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CSRTDaemon.pro
Type: application/octet-stream
Size: 4828 bytes
Desc: CSRTDaemon.pro
URL: <http://xenomai.org/pipermail/xenomai/attachments/20200210/a49cd417/attachment-0002.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: main.cpp
URL: <http://xenomai.org/pipermail/xenomai/attachments/20200210/a49cd417/attachment.ksh>
Quoted 10 lines · Carsten EHRMANN
Hi Jan,
I made a simple reproduction example (see attached 4 files). I got this error again:
In file included from main.cpp:28:0:
/usr/xenomai/include/trank/native/task.h: In function ‘intrt_task_notify(RT_TASK*, rt_sigset_t)’:/usr/xenomai/include/trank/native/task.h:41:64: error: ‘trank_warning’ was not declared in this scope
trank_warning("in-kernel native API is gone, rebase over RTDM");
Your makefile is incomplete, but this works fine here with Xenomai 3.1 (I'm sure it does equally well with 3.0.x):
g++ -o main main.cpp $(xeno-config --skin=native --cflags --ldflags)
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Hi Jan,
after a little try and error, it works! Now I have to integrate it to our project file or makefile.
Thanks a lot for your help!
Best regards
Carsten
_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Monday, February 10, 2020 5:18 PM
To: Carsten EHRMANN <[email protected]>; [email protected]
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
Quoted 10 lines · Carsten EHRMANN
Hi Jan,
I made a simple reproduction example (see attached 4 files). I got this error again:
In file included from main.cpp:28:0:
/usr/xenomai/include/trank/native/task.h: In function ‘intrt_task_notify(RT_TASK*, rt_sigset_t)’:/usr/xenomai/include/trank/native/task.h:41:64: error: ‘trank_warning’ was not declared in this scope
trank_warning("in-kernel native API is gone, rebase over RTDM");
Your makefile is incomplete, but this works fine here with Xenomai 3.1 (I'm sure it does equally well with 3.0.x):
g++ -o main main.cpp $(xeno-config --skin=native --cflags --ldflags)
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Hi Jan,
after a few try and error I got the code compiled. When I try to start the executable I got the following error from rt_pipe_create(): -97
I use the function as follow: if(rt_pipe_create(&mControlPipe,aControlPipeName,P_MINOR_AUTO,2048) >= 0)
In the logfile there is no error from the kernel. Latency, Clock and Switch test have been ok.
Do you know what this mean? I haven't found anything .
Carsten
_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection
-----Original Message-----
From: Carsten EHRMANN <[email protected]>
Sent: Wednesday, February 12, 2020 7:50 AM
To: Jan Kiszka <[email protected]>; [email protected]
Subject: RE: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
Hi Jan,
after a little try and error, it works! Now I have to integrate it to our project file or makefile.
Thanks a lot for your help!
Best regards
Carsten
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Monday, February 10, 2020 5:18 PM
To: Carsten EHRMANN <[email protected]>; [email protected]
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
Quoted 10 lines · Carsten EHRMANN
Hi Jan,
I made a simple reproduction example (see attached 4 files). I got this error again:
In file included from main.cpp:28:0:
/usr/xenomai/include/trank/native/task.h: In function ‘intrt_task_notify(RT_TASK*, rt_sigset_t)’:/usr/xenomai/include/trank/native/task.h:41:64: error: ‘trank_warning’ was not declared in this scope
trank_warning("in-kernel native API is gone, rebase over RTDM");
Your makefile is incomplete, but this works fine here with Xenomai 3.1 (I'm sure it does equally well with 3.0.x):
g++ -o main main.cpp $(xeno-config --skin=native --cflags --ldflags)
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Quoted 10 lines · Carsten EHRMANN
Hi Jan,
after a few try and error I got the code compiled. When I try to start the executable I got the following error from
rt_pipe_create(): -97I use the function as follow:
if(rt_pipe_create(&mControlPipe,aControlPipeName,P_MINOR_AUTO,2048) >= 0)In the logfile there is no error from the kernel. Latency, Clock and Switch test have been ok.
Do you know what this mean? I haven't found anything .
EAFNOSUPPORT - seems your kernel lacks support for the pipe or some module is missing. Make sure you have XENO_DRIVERS_RTIPC_XDDP and the xeno_rtipc.ko is loaded (if it's a module).
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Hi Jan,
I don't have one of the files
- /usr/src/linux-4.9.146/include/config/xeno/drivers/rtipc/xddp.h
- /lib/modules/4.9.146/kernel/drivers/xenomai /ipc/xeno_rtipc.ko
Where do I get them? Do they have to be installed when building the kernel?
Carsten
_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Tuesday, March 3, 2020 11:52 AM
To: Carsten EHRMANN <[email protected]>; [email protected]
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
Quoted 5 lines · Carsten EHRMANN
Hi Jan,
after a few try and error I got the code compiled. When I try to start the executable I got the following error from
rt_pipe_create(): -97
Quoted 8 lines
I use the function as follow:
if(rt_pipe_create(&mControlPipe,aControlPipeName,P_MINOR_AUTO,2048) >=
0)In the logfile there is no error from the kernel. Latency, Clock and Switch test have been ok.
Do you know what this mean? I haven't found anything .
EAFNOSUPPORT - seems your kernel lacks support for the pipe or some module is missing. Make sure you have XENO_DRIVERS_RTIPC_XDDP and the xeno_rtipc.ko is loaded (if it's a module).
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Quoted 11 lines · Carsten EHRMANN via Xenomai
Hi Jan,
I don't have one of the files
-
/usr/src/linux-4.9.146/include/config/xeno/drivers/rtipc/xddp.h-
/lib/modules/4.9.146/kernel/drivers/xenomai/ipc/xeno_rtipc.koWhere do I get them? Do they have to be installed when building the kernel?
Did you enable CONFIG_XENO_DRIVERS_RTIPC_XDDP in your kernel.
Signature · 2 lines
Thanks, //richard
Thanks, I added --posix to
shell $$XENO_CONFIG --skin=native --ldflags --posix
so I have this call:
g++ -c -pipe -I/usr/xenomai/include/trank/posix -I/usr/xenomai/include/trank -D__XENO_COMPAT__ -I/usr/xenomai/include/cobalt -I/usr/xenomai/include -m32 -O2 -D_GNU_SOURCE -D_REENTRANT -fasynchronous-unwind-tables -D__COBALT__ -I/usr/xenomai/include/alchemy -D__COBALT_WRAP__ -O2 -Wall -W -fPIC -DQT_NO_DEBUG_OUTPUT -DNDEBUG -I. -I/usr/xenomai/include -I. -I../inc -I../inc/CSRTDaemon/ -I../inc/CSBase -I../inc/CSPosixAbstraction -I../inc/CSProxies -I../inc/CSApplication -I../inc/CSApplication/telegrams -I../inc/CSApplication/tasks -I../inc/CSApplication/ques -I../inc/CSApplication/events -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o ../tmp/obj/CSRTDaemon/release/CSRTPosixQue.o CSRTPosixQue.cpp
but I still have the same error.
Carsten
_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection
-----Original Message-----
From: Richard Weinberger <[email protected]>
Sent: Tuesday, March 3, 2020 1:08 PM
To: Carsten EHRMANN <[email protected]>
Cc: Jan Kiszka <[email protected]>; [email protected]
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
Quoted 11 lines · Carsten EHRMANN via Xenomai
Hi Jan,
I don't have one of the files
-
/usr/src/linux-4.9.146/include/config/xeno/drivers/rtipc/xddp.h-
/lib/modules/4.9.146/kernel/drivers/xenomai/ipc/xeno_rtipc.koWhere do I get them? Do they have to be installed when building the kernel?
Did you enable CONFIG_XENO_DRIVERS_RTIPC_XDDP in your kernel.
--
Thanks,
//richard
Quoted 4 lines · Carsten EHRMANN
Thanks, I added --posix to
shell $$XENO_CONFIG --skin=native --ldflags --posix
Quoted 8 lines
so I have this call:
g++ -c -pipe -I/usr/xenomai/include/trank/posix -I/usr/xenomai/include/trank -D__XENO_COMPAT__ -I/usr/xenomai/include/cobalt -I/usr/xenomai/include -m32 -O2 -D_GNU_SOURCE -D_REENTRANT -fasynchronous-unwind-tables -D__COBALT__ -I/usr/xenomai/include/alchemy -D__COBALT_WRAP__ -O2 -Wall -W -fPIC -DQT_NO_DEBUG_OUTPUT -DNDEBUG -I. -I/usr/xenomai/include -I. -I../inc -I../inc/CSRTDaemon/ -I../inc/CSBase -I../inc/CSPosixAbstraction -I../inc/CSProxies -I../inc/CSApplication -I../inc/CSApplication/telegrams -I../inc/CSApplication/tasks -I../inc/CSApplication/ques -I../inc/CSApplication/events -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o
../tmp/obj/CSRTDaemon/release/CSRTPosixQue.oCSRTPosixQue.cppbut I still have the same error.
Please read our suggestions carefully: Go to your kernel build folder, invoke "make menuconfig" and check under Xenomai settings if RTIPC as well as XDDP are enable. If not, change that, rebuild, install, profit.
Jan
Quoted 45 lines
Carsten
_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection-----Original Message-----
From: Richard Weinberger <[email protected]>
Sent: Tuesday, March 3, 2020 1:08 PM
To: Carsten EHRMANN <[email protected]>
Cc: Jan Kiszka <[email protected]>; [email protected]
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.xQuoted 11 lines · Carsten EHRMANN via Xenomai
Hi Jan,
I don't have one of the files
-
/usr/src/linux-4.9.146/include/config/xeno/drivers/rtipc/xddp.h-
/lib/modules/4.9.146/kernel/drivers/xenomai/ipc/xeno_rtipc.koWhere do I get them? Do they have to be installed when building the kernel?
Did you enable
CONFIG_XENO_DRIVERS_RTIPC_XDDPin your kernel.--
Thanks,
//richard
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Hi Jan,
sry, my fault.
I enabled RTIPC as well as XDDP
_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection
______________________________________
# Real-time IPC drivers
#CONFIG_XENO_DRIVERS_RTIPC=mCONFIG_XENO_DRIVERS_RTIPC_XDDP=yCONFIG_XENO_DRIVERS_RTIPC_IDDP=yCONFIG_XENO_OPT_IDDP_NRPORT=32CONFIG_XENO_DRIVERS_RTIPC_BUFP=yCONFIG_XENO_OPT_BUFP_NRPORT=32
______________________________________
Then build the kernel again.
Then I checked weather xeno_rtipc.ko was loaded, it wasn't. I tried it with insmod and modprobe but both got error: Unknown symbol in module
The Dmesg:
[ 230.190867] xeno_rtipc: Unknown symbol xnmap_delete (err 0) [ 230.190900] xeno_rtipc: Unknown symbol xnpipe_connect (err 0) [ 230.191011] xeno_rtipc: Unknown symbol xnpipe_states (err 0) [ 230.191043] xeno_rtipc: Unknown symbol xnmap_enter (err 0) [ 230.191068] xeno_rtipc: Unknown symbol xnpipe_mfixup (err 0) [ 230.191122] xeno_rtipc: Unknown symbol xnpipe_disconnect (err 0) [ 230.191180] xeno_rtipc: Unknown symbol xnmap_create (err 0) [ 230.191231] xeno_rtipc: Unknown symbol xnmap_remove (err 0) [ 230.191310] xeno_rtipc: Unknown symbol xnpipe_send (err 0) [ 230.191341] xeno_rtipc: Unknown symbol xnpipe_recv (err 0)
Do I need some other xenomai settings enabled or libraries?
Carsten
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Tuesday, March 3, 2020 6:00 PM
To: Carsten EHRMANN <[email protected]>; Richard Weinberger <[email protected]>
Cc: [email protected]
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
Quoted 22 lines · Carsten EHRMANN
Thanks, I added --posix to
shell $$XENO_CONFIG --skin=native --ldflags --posix
so I have this call:
g++ -c -pipe -I/usr/xenomai/include/trank/posix
g++ -I/usr/xenomai/include/trank -D__XENO_COMPAT__
g++ -I/usr/xenomai/include/cobalt -I/usr/xenomai/include -m32 -O2 g++ -D_GNU_SOURCE -D_REENTRANT -fasynchronous-unwind-tables g++ -D__COBALT__ -I/usr/xenomai/include/alchemy -D__COBALT_WRAP__ -O2 g++ -Wall -W -fPIC -DQT_NO_DEBUG_OUTPUT -DNDEBUG -I.
g++ -I/usr/xenomai/include -I. -I../inc -I../inc/CSRTDaemon/ g++ -I../inc/CSBase -I../inc/CSPosixAbstraction -I../inc/CSProxies g++ -I../inc/CSApplication -I../inc/CSApplication/telegrams g++ -I../inc/CSApplication/tasks -I../inc/CSApplication/ques g++ -I../inc/CSApplication/events
g++ -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o
g++../tmp/obj/CSRTDaemon/release/CSRTPosixQue.oCSRTPosixQue.cpp
Quoted 2 lines
but I still have the same error.
Please read our suggestions carefully: Go to your kernel build folder, invoke "make menuconfig" and check under Xenomai settings if RTIPC as well as XDDP are enable. If not, change that, rebuild, install, profit.
Jan
Quoted 39 lines
Carsten
______________________________________________________________________
___________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach Telefon + 49
981 1806 0, Telefax +49 981 1806 615 Sitz der Gesellschaft: Ansbach,
Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner,
Jean-François Marguet Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection-----Original Message-----
From: Richard Weinberger <[email protected]>
Sent: Tuesday, March 3, 2020 1:08 PM
To: Carsten EHRMANN <[email protected]>
Cc: Jan Kiszka <[email protected]>; [email protected]
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.xQuoted 10 lines · Carsten EHRMANN via Xenomai
Hi Jan,
I don't have one of the files
-
/usr/src/linux-4.9.146/include/config/xeno/drivers/rtipc/xddp.h-
/lib/modules/4.9.146/kernel/drivers/xenomai/ipc/xeno_rtipc.ko
Quoted 8 lines
Quoted 1 line
Where do I get them? Do they have to be installed when building the kernel?
Did you enable
CONFIG_XENO_DRIVERS_RTIPC_XDDPin your kernel.--
Thanks,
//richard
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
----- Ursprüngliche Mail -----
Quoted 43 lines
Von: "Carsten EHRMANN" <[email protected]>
An: "Jan Kiszka" <[email protected]>, "Richard Weinberger" <[email protected]>
CC: "xenomai" <[email protected]>
Gesendet: Donnerstag, 5. März 2020 11:17:26
Betreff: RE: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.xHi Jan,
sry, my fault.
I enabled RTIPC as well as XDDP
______________________________________
# Real-time IPC drivers
#CONFIG_XENO_DRIVERS_RTIPC=mCONFIG_XENO_DRIVERS_RTIPC_XDDP=yCONFIG_XENO_DRIVERS_RTIPC_IDDP=yCONFIG_XENO_OPT_IDDP_NRPORT=32CONFIG_XENO_DRIVERS_RTIPC_BUFP=yCONFIG_XENO_OPT_BUFP_NRPORT=32
______________________________________Then build the kernel again.
Then I checked weather xeno_rtipc.ko was loaded, it wasn't. I tried it with insmod and modprobe but both got error: Unknown symbol in module
The Dmesg:
[ 230.190867] xeno_rtipc: Unknown symbol xnmap_delete (err 0) [ 230.190900] xeno_rtipc: Unknown symbol xnpipe_connect (err 0) [ 230.191011] xeno_rtipc: Unknown symbol xnpipe_states (err 0) [ 230.191043] xeno_rtipc: Unknown symbol xnmap_enter (err 0) [ 230.191068] xeno_rtipc: Unknown symbol xnpipe_mfixup (err 0) [ 230.191122] xeno_rtipc: Unknown symbol xnpipe_disconnect (err 0) [ 230.191180] xeno_rtipc: Unknown symbol xnmap_create (err 0) [ 230.191231] xeno_rtipc: Unknown symbol xnmap_remove (err 0) [ 230.191310] xeno_rtipc: Unknown symbol xnpipe_send (err 0) [ 230.191341] xeno_rtipc: Unknown symbol xnpipe_recv (err 0)
Quoted 1 line
Do I need some other xenomai settings enabled or libraries?
Looks more like kernel and module do not match.
A common problem is that one enables drivers and just copies the new modules but enabling drivers changes also core kernel stuff and therefore you need also to install the recently build kernel.
Thanks,
//richard
Hi ,
so xeno_rtipc is up now, listed in "lsmod | grep xeno"
Now I got another error from rt_pipe_create(): -22
What does this mean?
Are these errorcodes listed somewhere?
Carsten
_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection
-----Original Message-----
From: Richard Weinberger <[email protected]>
Sent: Thursday, March 5, 2020 12:07 PM
To: Carsten EHRMANN <[email protected]>
Cc: Jan Kiszka <[email protected]>; xenomai <[email protected]>
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
----- Ursprüngliche Mail -----
Quoted 45 lines
Von: "Carsten EHRMANN" <[email protected]>
An: "Jan Kiszka" <[email protected]>, "Richard Weinberger" <[email protected]>
CC: "xenomai" <[email protected]>
Gesendet: Donnerstag, 5. März 2020 11:17:26
Betreff: RE: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.xHi Jan,
sry, my fault.
I enabled RTIPC as well as XDDP
______________________________________
# Real-time IPC drivers
#CONFIG_XENO_DRIVERS_RTIPC=mCONFIG_XENO_DRIVERS_RTIPC_XDDP=yCONFIG_XENO_DRIVERS_RTIPC_IDDP=yCONFIG_XENO_OPT_IDDP_NRPORT=32CONFIG_XENO_DRIVERS_RTIPC_BUFP=yCONFIG_XENO_OPT_BUFP_NRPORT=32
______________________________________Then build the kernel again.
Then I checked weather xeno_rtipc.ko was loaded, it wasn't. I tried it with insmod and modprobe but both got error: Unknown symbol in module
The Dmesg:
[ 230.190867] xeno_rtipc: Unknown symbol xnmap_delete (err 0) [230.190900]
xeno_rtipc: Unknown symbolxnpipe_connect(err 0) [ 230.191011]xeno_rtipc: Unknown symbolxnpipe_states(err 0) [ 230.191043]xeno_rtipc: Unknown symbolxnmap_enter(err 0) [ 230.191068]xeno_rtipc: Unknown symbolxnpipe_mfixup(err 0) [ 230.191122]xeno_rtipc: Unknown symbolxnpipe_disconnect(err 0) [ 230.191180]xeno_rtipc: Unknown symbolxnmap_create(err 0) [ 230.191231]xeno_rtipc: Unknown symbolxnmap_remove(err 0) [ 230.191310]xeno_rtipc: Unknown symbolxnpipe_send(err 0) [ 230.191341]xeno_rtipc: Unknown symbolxnpipe_recv(err 0)
Quoted 1 line
Do I need some other xenomai settings enabled or libraries?
Looks more like kernel and module do not match.
A common problem is that one enables drivers and just copies the new modules but enabling drivers changes also core kernel stuff and therefore you need also to install the recently build kernel.
Thanks,
//richard
Quoted 9 lines · Carsten EHRMANN
Hi ,
so
xeno_rtipcis up now, listed in "lsmod | grep xeno"Now I got another error from
rt_pipe_create(): -22What does this mean?
Are these errorcodes listed somewhere?
[my 'errno' script]
#!/bin/sh
ERRNO_HEADERS="/usr/include/asm-generic/errno-base.h /usr/include/asm-generic/errno.h" if [ "$1" = "" ]; then
ERR="[[:digit:]]+"
else
ERR=$1fi
grep -E "[[:space:]]$ERR[[:space:]]/" $ERRNO_HEADERS
With that information, you can check where the function may through EINVAL. It's not a common error, though (we may need to document reasons for it). Do you get further messages? Try to attach a debugger to find out with call in rt_pipe_create (lib/alchemy/pipe.c) returns this code.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Hi,
sry I don't have any futher messages. I tried to debug the code in Codeblocks but this didn't work, only build. Also debug the executable in eclipse failed.
The only part in pipe.c where EINVAL is used with rt_pipe_create() is here:
if (minor == P_MINOR_AUTO) {
/* Fetch the assigned minor device. */
addrlen = sizeof(saddr);
ret = __RT(getsockname(sock, (struct sockaddr *)&saddr, &addrlen));
if (ret)
goto fail_sockopt;
if (addrlen != sizeof(saddr)) {
ret = -EINVAL;
goto fail_register;
}
minor = saddr.sipc_port;
}So the given and returned lenght doesn't fit together but this is a thing I have no influence, or?
Also tried to find __RT() to get futher information.
Do you have any idea what could be the reason?
Carsten
_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Monday, March 9, 2020 9:55 AM
To: Carsten EHRMANN <[email protected]>; Richard Weinberger <[email protected]>
Cc: xenomai <[email protected]>
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
Quoted 9 lines · Carsten EHRMANN
Hi ,
so
xeno_rtipcis up now, listed in "lsmod | grep xeno"Now I got another error from
rt_pipe_create(): -22What does this mean?
Are these errorcodes listed somewhere?
[my 'errno' script]
#!/bin/sh
ERRNO_HEADERS="/usr/include/asm-generic/errno-base.h /usr/include/asm-generic/errno.h" if [ "$1" = "" ]; then
ERR="[[:digit:]]+"
else
ERR=$1fi
grep -E "[[:space:]]$ERR[[:space:]]/" $ERRNO_HEADERS
With that information, you can check where the function may through EINVAL. It's not a common error, though (we may need to document reasons for it). Do you get further messages? Try to attach a debugger to find out with call in rt_pipe_create (lib/alchemy/pipe.c) returns this code.
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Hi Carsten,
the sniplets look like cmake. There are more cmake-xenomai-users around, i would suggest to dig in the archive of the mailinglist. AFAIK there have been contributions that did not get merged but will probably solve your problem.
If that is the case we should keep in mind that xenomai users seem to like cmake and consider those cmake patches more relevant for the project.
regards,
Henning
Quoted 109 lines · On Mon, 10 Feb 2020 14:20:04 +0000 Carsten EHRMANN via Xenomai…
Hi Jan,
do I have to include the xeno-config file? I just configured it with "xeno-config --skin=native".
I use a project file where includes are defined, see below:
unix {
TEMPLATE = app
} else {
TEMPLATE = vcapp
}
CONFIG -= qt
CONFIG +=debug_and_releasewarn_onexceptions rttiDebug { TARGET = CSRTDaemon CONFIG += console OBJECTS_DIR = ../tmp/obj/CSRTDaemon/debug DESTDIR = ../lib/CSRTDaemon DLLDESTDIR = ../dll/CSRTDaemon SCOPE=debug unix { QMAKE_CXXFLAGS += QMAKE_CFLAGS += QMAKE_LFLAGS += } else { QMAKE_POST_LINK = COPY /Y ../lib/CSRTDaemon/*.pdb../dll/CSRTDaemon/ }
} else {
TARGET = CSRTDaemon
OBJECTS_DIR= ../tmp/obj/CSRTDaemon/release
DESTDIR = ../lib/CSRTDaemon
DLLDESTDIR = ../dll/CSRTDaemon
DEFINES +=QT_NO_DEBUG_OUTPUTNDEBUG
SCOPE=release
}
QMAKE_LIBDIR+=/usr/xenomai/lib
INCLUDEPATH +=/usr/xenomai/include_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility. Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach Telefon + 49 981 1806 0, Telefax +49 981 1806 615 Sitz der Gesellschaft: Ansbach,
Registergericht: Ansbach HRB 69 Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Monday, February 10, 2020 2:23 PM
To: Carsten EHRMANN <[email protected]>; [email protected]
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.xQuoted 15 lines · Carsten EHRMANN via Xenomai
Hello,
Because of new PC hardware I have to use debain 9 and Xenomai 3. Xenomai is running on the system, I run the testsuite scripts. I found a migration document on xenomai.org and changed the includepaths and so on in my sourcecode. But now when I want to compile the code I got this error In file included from ./CSRTPosixQue.h:20:0, from ./CSRTTask.h:20, from main.cpp:26:
/usr/xenomai/include/trank/native/task.h: In function 'intrt_task_notify(RT_TASK*, rt_sigset_t)':/usr/xenomai/include/trank/native/task.h:41:64: error:
'trank_warning' was not declared in this scopetrank_warning("in-kernel native API is gone, rebase over RTDM");Quoted 2 lines
But this "
trank_warning" is defined intrank.hwhich is includedWhere you using xeno-config to obtain paths and other compiler switches? If not, please compare your settings. If yes, a simple test case would be nice. But it can't be very simple because
#include <
native/task.h>
intmain(){}compiles via "gcc $(xeno-config --skin native --cflags) ..."
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Hi Henning,
we don't use cmake, we use qmake. But thanks for your hint, maybe I find something about qmake there, too.
Best regards,
Carsten
_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection
-----Original Message-----
From: Henning Schild <[email protected]>
Sent: Monday, February 10, 2020 10:29 PM
To: Carsten EHRMANN via Xenomai <[email protected]>
Cc: Carsten EHRMANN <[email protected]>; Jan Kiszka <[email protected]>
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
Hi Carsten,
the sniplets look like cmake. There are more cmake-xenomai-users around, i would suggest to dig in the archive of the mailinglist. AFAIK there have been contributions that did not get merged but will probably solve your problem.
If that is the case we should keep in mind that xenomai users seem to like cmake and consider those cmake patches more relevant for the project.
regards,
Henning
Quoted 108 lines · On Mon, 10 Feb 2020 14:20:04 +0000 Carsten EHRMANN via Xenomai…
Hi Jan,
do I have to include the xeno-config file? I just configured it with "xeno-config --skin=native".
I use a project file where includes are defined, see below:
unix {
TEMPLATE = app
} else {
TEMPLATE = vcapp
}
CONFIG -= qtCONFIG += debug_and_release warn_on exceptions rtti Debug { TARGET = CSRTDaemon CONFIG += console OBJECTS_DIR = ../tmp/obj/CSRTDaemon/debug DESTDIR = ../lib/CSRTDaemon DLLDESTDIR = ../dll/CSRTDaemon SCOPE=debug unix { QMAKE_CXXFLAGS += QMAKE_CFLAGS += QMAKE_LFLAGS += } else { QMAKE_POST_LINK = COPY /Y ../lib/CSRTDaemon/*.pdb../dll/CSRTDaemon/ } } else {
TARGET = CSRTDaemon
OBJECTS_DIR= ../tmp/obj/CSRTDaemon/release
DESTDIR = ../lib/CSRTDaemon
DLLDESTDIR = ../dll/CSRTDaemon
DEFINES +=QT_NO_DEBUG_OUTPUTNDEBUG
SCOPE=release
}
QMAKE_LIBDIR+=/usr/xenomai/lib
INCLUDEPATH +=/usr/xenomai/include______________________________________________________________________
___________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility. Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach Telefon + 49 981 1806 0, Telefax +49 981 1806 615 Sitz der Gesellschaft: Ansbach,
Registergericht: Ansbach HRB 69 Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Monday, February 10, 2020 2:23 PM
To: Carsten EHRMANN <[email protected]>; [email protected]
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.xQuoted 15 lines · Carsten EHRMANN via Xenomai
Hello,
Because of new PC hardware I have to use debain 9 and Xenomai 3. Xenomai is running on the system, I run the testsuite scripts. I found a migration document on xenomai.org and changed the includepaths and so on in my sourcecode. But now when I want to compile the code I got this error In file included from ./CSRTPosixQue.h:20:0, from ./CSRTTask.h:20, from main.cpp:26:
/usr/xenomai/include/trank/native/task.h: In function 'intrt_task_notify(RT_TASK*, rt_sigset_t)':/usr/xenomai/include/trank/native/task.h:41:64: error:
'trank_warning' was not declared in this scopetrank_warning("in-kernel native API is gone, rebase over RTDM");Quoted 2 lines
But this "
trank_warning" is defined intrank.hwhich is includedWhere you using xeno-config to obtain paths and other compiler switches? If not, please compare your settings. If yes, a simple test case would be nice. But it can't be very simple because
#include <
native/task.h>
intmain(){}compiles via "gcc $(xeno-config --skin native --cflags) ..."
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Hi,
coming from xenomai 2.x and debian8 i would advice to skip debian9 and go for debian10 right away. You will probably face the same issues and possibly more, but why go for oldstable if you invest today? Depending on your timeline you might even want to look at debian11. There is no ipipe-5.4.y yet but you can assume that this version will be supported eventually. In the meantime you could try debian11 with 4.19.
regards,
Henning
Quoted 57 lines · On Mon, 10 Feb 2020 12:03:32 +0000 Carsten EHRMANN via Xenomai…
Hello,
Because of new PC hardware I have to use debain 9 and Xenomai 3. Xenomai is running on the system, I run the testsuite scripts. I found a migration document on xenomai.org and changed the includepaths and so on in my sourcecode. But now when I want to compile the code I got this error In file included from ./CSRTPosixQue.h:20:0, from ./CSRTTask.h:20, from main.cpp:26:
/usr/xenomai/include/trank/native/task.h: In function 'intrt_task_notify(RT_TASK*, rt_sigset_t)':/usr/xenomai/include/trank/native/task.h:41:64: error:
'trank_warning' was not declared in this scopetrank_warning("in-kernel native API is gone, rebase over RTDM");But this "
trank_warning" is defined intrank.hwhich is includedMit freundlichen Grüßen / Best regards
Carsten Ehrmann
T-S092 Industrial Engineering / Test Engineering & SoftwareDiehl Metering
Industriestr. 13
91522 Ansbach
GermanyPhone: +49 981 1806-252
E-Mail: [email protected]<mailto:[email protected]>
Web:
www.diehl.com/metering<../../../../../metzan/AppData/Local/Temp/notesE05E9E/www.diehl.com/metering>_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility. Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach Telefon + 49 981 1806 0, Telefax +49 981 1806 615 Sitz der Gesellschaft: Ansbach,
Registergericht: Ansbach HRB 69 Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection