All of lore.kernel.org
 help / color / mirror / Atom feed
* Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
@ 2020-02-10 12:03 Carsten EHRMANN
  2020-02-10 13:22 ` Jan Kiszka
  2020-02-10 21:21 ` Henning Schild
  0 siblings, 2 replies; 21+ messages in thread
From: Carsten EHRMANN @ 2020-02-10 12:03 UTC (permalink / raw)
  To: 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 '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: carsten.ehrmann@diehl.com<mailto:carsten.ehrmann@diehl.com>
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

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

* Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-02-10 12:03 Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x Carsten EHRMANN
@ 2020-02-10 13:22 ` Jan Kiszka
  2020-02-10 14:20   ` Carsten EHRMANN
  2020-02-10 21:21 ` Henning Schild
  1 sibling, 1 reply; 21+ messages in thread
From: Jan Kiszka @ 2020-02-10 13:22 UTC (permalink / raw)
  To: Carsten EHRMANN, xenomai

On 10.02.20 13:03, Carsten EHRMANN via Xenomai wrote:
> 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
> 

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


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

* RE: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-02-10 13:22 ` Jan Kiszka
@ 2020-02-10 14:20   ` Carsten EHRMANN
  2020-02-10 14:40     ` Jan Kiszka
  2020-02-10 21:29     ` Henning Schild
  0 siblings, 2 replies; 21+ messages in thread
From: Carsten EHRMANN @ 2020-02-10 14:20 UTC (permalink / raw)
  To: Jan Kiszka, 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_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 <jan.kiszka@siemens.com> 
Sent: Monday, February 10, 2020 2:23 PM
To: Carsten EHRMANN <Carsten.Ehrmann@diehl.com>; xenomai@xenomai.org
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x

On 10.02.20 13:03, Carsten EHRMANN via Xenomai wrote:
> 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
> 

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

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

* Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-02-10 14:20   ` Carsten EHRMANN
@ 2020-02-10 14:40     ` Jan Kiszka
  2020-02-10 15:27       ` Carsten EHRMANN
  2020-02-10 21:29     ` Henning Schild
  1 sibling, 1 reply; 21+ messages in thread
From: Jan Kiszka @ 2020-02-10 14:40 UTC (permalink / raw)
  To: Carsten EHRMANN, xenomai

On 10.02.20 15:20, Carsten EHRMANN wrote:
> 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.

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

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

> 
> 
> 
> _________________________________________________________________________________________________________
> 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 <jan.kiszka@siemens.com>
> Sent: Monday, February 10, 2020 2:23 PM
> To: Carsten EHRMANN <Carsten.Ehrmann@diehl.com>; xenomai@xenomai.org
> Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
> 
> On 10.02.20 13:03, Carsten EHRMANN via Xenomai wrote:
>> 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
>>
> 
> 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
> 

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


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

* RE: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-02-10 14:40     ` Jan Kiszka
@ 2020-02-10 15:27       ` Carsten EHRMANN
  2020-02-10 16:17         ` Jan Kiszka
  0 siblings, 1 reply; 21+ messages in thread
From: Carsten EHRMANN @ 2020-02-10 15:27 UTC (permalink / raw)
  To: Jan Kiszka, xenomai

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 <jan.kiszka@siemens.com> 
Sent: Monday, February 10, 2020 3:40 PM
To: Carsten EHRMANN <Carsten.Ehrmann@diehl.com>; xenomai@xenomai.org
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x

On 10.02.20 15:20, Carsten EHRMANN wrote:
> 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.

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

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

> 
> 
> 
> ______________________________________________________________________
> ___________________________________
> 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 <jan.kiszka@siemens.com>
> Sent: Monday, February 10, 2020 2:23 PM
> To: Carsten EHRMANN <Carsten.Ehrmann@diehl.com>; xenomai@xenomai.org
> Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 
> Xenomai 3.x
> 
> On 10.02.20 13:03, Carsten EHRMANN via Xenomai wrote:
>> 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
>>
> 
> 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
> 

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

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

* Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-02-10 15:27       ` Carsten EHRMANN
@ 2020-02-10 16:17         ` Jan Kiszka
  2020-02-12  6:49           ` Carsten EHRMANN
  0 siblings, 1 reply; 21+ messages in thread
From: Jan Kiszka @ 2020-02-10 16:17 UTC (permalink / raw)
  To: Carsten EHRMANN, xenomai

On 10.02.20 16:27, Carsten EHRMANN wrote:
> 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");
> 

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


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

* Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-02-10 12:03 Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x Carsten EHRMANN
  2020-02-10 13:22 ` Jan Kiszka
@ 2020-02-10 21:21 ` Henning Schild
  1 sibling, 0 replies; 21+ messages in thread
From: Henning Schild @ 2020-02-10 21:21 UTC (permalink / raw)
  To: Carsten EHRMANN via Xenomai; +Cc: Carsten EHRMANN

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

On Mon, 10 Feb 2020 12:03:32 +0000
Carsten EHRMANN via Xenomai <xenomai@xenomai.org> wrote:

> 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: carsten.ehrmann@diehl.com<mailto:carsten.ehrmann@diehl.com>
> 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



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

* Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-02-10 14:20   ` Carsten EHRMANN
  2020-02-10 14:40     ` Jan Kiszka
@ 2020-02-10 21:29     ` Henning Schild
  2020-02-12  7:02       ` Carsten EHRMANN
  1 sibling, 1 reply; 21+ messages in thread
From: Henning Schild @ 2020-02-10 21:29 UTC (permalink / raw)
  To: Carsten EHRMANN via Xenomai; +Cc: Carsten EHRMANN, Jan Kiszka

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

On Mon, 10 Feb 2020 14:20:04 +0000
Carsten EHRMANN via Xenomai <xenomai@xenomai.org> wrote:

> 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 <jan.kiszka@siemens.com> 
> Sent: Monday, February 10, 2020 2:23 PM
> To: Carsten EHRMANN <Carsten.Ehrmann@diehl.com>; xenomai@xenomai.org
> Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9
> Xenomai 3.x
> 
> On 10.02.20 13:03, Carsten EHRMANN via Xenomai wrote:
> > 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
> >   
> 
> 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



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

* RE: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-02-10 16:17         ` Jan Kiszka
@ 2020-02-12  6:49           ` Carsten EHRMANN
  2020-03-03 10:44             ` Carsten EHRMANN
  0 siblings, 1 reply; 21+ messages in thread
From: Carsten EHRMANN @ 2020-02-12  6:49 UTC (permalink / raw)
  To: Jan Kiszka, xenomai

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 <jan.kiszka@siemens.com> 
Sent: Monday, February 10, 2020 5:18 PM
To: Carsten EHRMANN <Carsten.Ehrmann@diehl.com>; xenomai@xenomai.org
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x

On 10.02.20 16:27, Carsten EHRMANN wrote:
> 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");
> 

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

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

* RE: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-02-10 21:29     ` Henning Schild
@ 2020-02-12  7:02       ` Carsten EHRMANN
  0 siblings, 0 replies; 21+ messages in thread
From: Carsten EHRMANN @ 2020-02-12  7:02 UTC (permalink / raw)
  To: Henning Schild, Carsten EHRMANN via Xenomai

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 <henning.schild@siemens.com> 
Sent: Monday, February 10, 2020 10:29 PM
To: Carsten EHRMANN via Xenomai <xenomai@xenomai.org>
Cc: Carsten EHRMANN <Carsten.Ehrmann@diehl.com>; Jan Kiszka <jan.kiszka@siemens.com>
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

On Mon, 10 Feb 2020 14:20:04 +0000
Carsten EHRMANN via Xenomai <xenomai@xenomai.org> wrote:

> 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 <jan.kiszka@siemens.com>
> Sent: Monday, February 10, 2020 2:23 PM
> To: Carsten EHRMANN <Carsten.Ehrmann@diehl.com>; xenomai@xenomai.org
> Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 
> Xenomai 3.x
> 
> On 10.02.20 13:03, Carsten EHRMANN via Xenomai wrote:
> > 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
> >   
> 
> 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

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

* RE: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-02-12  6:49           ` Carsten EHRMANN
@ 2020-03-03 10:44             ` Carsten EHRMANN
  2020-03-03 10:51               ` Jan Kiszka
  0 siblings, 1 reply; 21+ messages in thread
From: Carsten EHRMANN @ 2020-03-03 10:44 UTC (permalink / raw)
  To: Jan Kiszka, xenomai

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 <Carsten.Ehrmann@diehl.com> 
Sent: Wednesday, February 12, 2020 7:50 AM
To: Jan Kiszka <jan.kiszka@siemens.com>; xenomai@xenomai.org
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 <jan.kiszka@siemens.com> 
Sent: Monday, February 10, 2020 5:18 PM
To: Carsten EHRMANN <Carsten.Ehrmann@diehl.com>; xenomai@xenomai.org
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x

On 10.02.20 16:27, Carsten EHRMANN wrote:
> 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");
> 

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

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

* Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-03-03 10:44             ` Carsten EHRMANN
@ 2020-03-03 10:51               ` Jan Kiszka
  2020-03-03 12:02                 ` Carsten EHRMANN
  0 siblings, 1 reply; 21+ messages in thread
From: Jan Kiszka @ 2020-03-03 10:51 UTC (permalink / raw)
  To: Carsten EHRMANN, xenomai

On 03.03.20 11:44, Carsten EHRMANN wrote:
> 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 .
> 

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


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

* RE: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-03-03 10:51               ` Jan Kiszka
@ 2020-03-03 12:02                 ` Carsten EHRMANN
  2020-03-03 12:08                   ` Richard Weinberger
  0 siblings, 1 reply; 21+ messages in thread
From: Carsten EHRMANN @ 2020-03-03 12:02 UTC (permalink / raw)
  To: Jan Kiszka, 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


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 <jan.kiszka@siemens.com> 
Sent: Tuesday, March 3, 2020 11:52 AM
To: Carsten EHRMANN <Carsten.Ehrmann@diehl.com>; xenomai@xenomai.org
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x

On 03.03.20 11:44, Carsten EHRMANN wrote:
> 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 .
> 

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

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

* Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-03-03 12:02                 ` Carsten EHRMANN
@ 2020-03-03 12:08                   ` Richard Weinberger
  2020-03-03 13:02                     ` Carsten EHRMANN
  0 siblings, 1 reply; 21+ messages in thread
From: Richard Weinberger @ 2020-03-03 12:08 UTC (permalink / raw)
  To: Carsten EHRMANN; +Cc: Jan Kiszka, xenomai

On Tue, Mar 3, 2020 at 1:03 PM Carsten EHRMANN via Xenomai
<xenomai@xenomai.org> wrote:
>
> 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?

Did you enable CONFIG_XENO_DRIVERS_RTIPC_XDDP in your kernel.

-- 
Thanks,
//richard


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

* RE: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-03-03 12:08                   ` Richard Weinberger
@ 2020-03-03 13:02                     ` Carsten EHRMANN
  2020-03-03 16:59                       ` Jan Kiszka
  0 siblings, 1 reply; 21+ messages in thread
From: Carsten EHRMANN @ 2020-03-03 13:02 UTC (permalink / raw)
  To: Richard Weinberger; +Cc: Jan Kiszka, xenomai

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 <richard.weinberger@gmail.com> 
Sent: Tuesday, March 3, 2020 1:08 PM
To: Carsten EHRMANN <Carsten.Ehrmann@diehl.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>; xenomai@xenomai.org
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x

On Tue, Mar 3, 2020 at 1:03 PM Carsten EHRMANN via Xenomai <xenomai@xenomai.org> wrote:
>
> 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?

Did you enable CONFIG_XENO_DRIVERS_RTIPC_XDDP in your kernel.

--
Thanks,
//richard

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

* Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-03-03 13:02                     ` Carsten EHRMANN
@ 2020-03-03 16:59                       ` Jan Kiszka
  2020-03-05 10:17                         ` Carsten EHRMANN
  0 siblings, 1 reply; 21+ messages in thread
From: Jan Kiszka @ 2020-03-03 16:59 UTC (permalink / raw)
  To: Carsten EHRMANN, Richard Weinberger; +Cc: xenomai

On 03.03.20 14:02, Carsten EHRMANN wrote:
> 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.
> 

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

> 
> 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 <richard.weinberger@gmail.com>
> Sent: Tuesday, March 3, 2020 1:08 PM
> To: Carsten EHRMANN <Carsten.Ehrmann@diehl.com>
> Cc: Jan Kiszka <jan.kiszka@siemens.com>; xenomai@xenomai.org
> Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
> 
> On Tue, Mar 3, 2020 at 1:03 PM Carsten EHRMANN via Xenomai <xenomai@xenomai.org> wrote:
>>
>> 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?
> 
> Did you enable CONFIG_XENO_DRIVERS_RTIPC_XDDP in your kernel.
> 
> --
> Thanks,
> //richard
> 

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


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

* RE: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-03-03 16:59                       ` Jan Kiszka
@ 2020-03-05 10:17                         ` Carsten EHRMANN
  2020-03-05 11:07                           ` Richard Weinberger
  0 siblings, 1 reply; 21+ messages in thread
From: Carsten EHRMANN @ 2020-03-05 10:17 UTC (permalink / raw)
  To: Jan Kiszka, Richard Weinberger; +Cc: xenomai

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=m
CONFIG_XENO_DRIVERS_RTIPC_XDDP=y
CONFIG_XENO_DRIVERS_RTIPC_IDDP=y
CONFIG_XENO_OPT_IDDP_NRPORT=32
CONFIG_XENO_DRIVERS_RTIPC_BUFP=y
CONFIG_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 <jan.kiszka@siemens.com> 
Sent: Tuesday, March 3, 2020 6:00 PM
To: Carsten EHRMANN <Carsten.Ehrmann@diehl.com>; Richard Weinberger <richard.weinberger@gmail.com>
Cc: xenomai@xenomai.org
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x

On 03.03.20 14:02, Carsten EHRMANN wrote:
> 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.o CSRTPosixQue.cpp
> 
> 
> 
> 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

> 
> 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 <richard.weinberger@gmail.com>
> Sent: Tuesday, March 3, 2020 1:08 PM
> To: Carsten EHRMANN <Carsten.Ehrmann@diehl.com>
> Cc: Jan Kiszka <jan.kiszka@siemens.com>; xenomai@xenomai.org
> Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 
> Xenomai 3.x
> 
> On Tue, Mar 3, 2020 at 1:03 PM Carsten EHRMANN via Xenomai <xenomai@xenomai.org> wrote:
>>
>> 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?
> 
> Did you enable CONFIG_XENO_DRIVERS_RTIPC_XDDP in your kernel.
> 
> --
> Thanks,
> //richard
> 

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

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

* Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-03-05 10:17                         ` Carsten EHRMANN
@ 2020-03-05 11:07                           ` Richard Weinberger
  2020-03-09  8:26                             ` Carsten EHRMANN
  0 siblings, 1 reply; 21+ messages in thread
From: Richard Weinberger @ 2020-03-05 11:07 UTC (permalink / raw)
  To: Carsten EHRMANN; +Cc: Jan Kiszka, xenomai

----- Ursprüngliche Mail -----
> Von: "Carsten EHRMANN" <Carsten.Ehrmann@diehl.com>
> An: "Jan Kiszka" <jan.kiszka@siemens.com>, "Richard Weinberger" <richard.weinberger@gmail.com>
> CC: "xenomai" <xenomai@xenomai.org>
> Gesendet: Donnerstag, 5. März 2020 11:17:26
> Betreff: RE: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x

> Hi Jan,
> 
> sry, my fault.
> 
> I enabled RTIPC as well as XDDP
> 
> 
> ______________________________________
> # Real-time IPC drivers
> #
> CONFIG_XENO_DRIVERS_RTIPC=m
> CONFIG_XENO_DRIVERS_RTIPC_XDDP=y
> CONFIG_XENO_DRIVERS_RTIPC_IDDP=y
> CONFIG_XENO_OPT_IDDP_NRPORT=32
> CONFIG_XENO_DRIVERS_RTIPC_BUFP=y
> CONFIG_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?

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


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

* RE: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-03-05 11:07                           ` Richard Weinberger
@ 2020-03-09  8:26                             ` Carsten EHRMANN
  2020-03-09  8:54                               ` Jan Kiszka
  0 siblings, 1 reply; 21+ messages in thread
From: Carsten EHRMANN @ 2020-03-09  8:26 UTC (permalink / raw)
  To: Richard Weinberger; +Cc: Jan Kiszka, xenomai

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 <richard@nod.at> 
Sent: Thursday, March 5, 2020 12:07 PM
To: Carsten EHRMANN <Carsten.Ehrmann@diehl.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>; xenomai <xenomai@xenomai.org>
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x

----- Ursprüngliche Mail -----
> Von: "Carsten EHRMANN" <Carsten.Ehrmann@diehl.com>
> An: "Jan Kiszka" <jan.kiszka@siemens.com>, "Richard Weinberger" 
> <richard.weinberger@gmail.com>
> CC: "xenomai" <xenomai@xenomai.org>
> Gesendet: Donnerstag, 5. März 2020 11:17:26
> Betreff: RE: Migrate project from Debian 8 Xenomai 2.x to Debain 9 
> Xenomai 3.x

> Hi Jan,
> 
> sry, my fault.
> 
> I enabled RTIPC as well as XDDP
> 
> 
> ______________________________________
> # Real-time IPC drivers
> #
> CONFIG_XENO_DRIVERS_RTIPC=m
> CONFIG_XENO_DRIVERS_RTIPC_XDDP=y
> CONFIG_XENO_DRIVERS_RTIPC_IDDP=y
> CONFIG_XENO_OPT_IDDP_NRPORT=32
> CONFIG_XENO_DRIVERS_RTIPC_BUFP=y
> CONFIG_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?

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

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

* Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-03-09  8:26                             ` Carsten EHRMANN
@ 2020-03-09  8:54                               ` Jan Kiszka
  2020-03-10 11:51                                 ` Carsten EHRMANN
  0 siblings, 1 reply; 21+ messages in thread
From: Jan Kiszka @ 2020-03-09  8:54 UTC (permalink / raw)
  To: Carsten EHRMANN, Richard Weinberger; +Cc: xenomai

On 09.03.20 09:26, Carsten EHRMANN wrote:
> 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?
> 

[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=$1
fi
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


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

* RE: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x
  2020-03-09  8:54                               ` Jan Kiszka
@ 2020-03-10 11:51                                 ` Carsten EHRMANN
  0 siblings, 0 replies; 21+ messages in thread
From: Carsten EHRMANN @ 2020-03-10 11:51 UTC (permalink / raw)
  To: Jan Kiszka, Richard Weinberger; +Cc: xenomai

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 <jan.kiszka@siemens.com> 
Sent: Monday, March 9, 2020 9:55 AM
To: Carsten EHRMANN <Carsten.Ehrmann@diehl.com>; Richard Weinberger <richard@nod.at>
Cc: xenomai <xenomai@xenomai.org>
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x

On 09.03.20 09:26, Carsten EHRMANN wrote:
> 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?
> 

[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=$1
fi
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

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

end of thread, other threads:[~2020-03-10 11:51 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-10 12:03 Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x Carsten EHRMANN
2020-02-10 13:22 ` Jan Kiszka
2020-02-10 14:20   ` Carsten EHRMANN
2020-02-10 14:40     ` Jan Kiszka
2020-02-10 15:27       ` Carsten EHRMANN
2020-02-10 16:17         ` Jan Kiszka
2020-02-12  6:49           ` Carsten EHRMANN
2020-03-03 10:44             ` Carsten EHRMANN
2020-03-03 10:51               ` Jan Kiszka
2020-03-03 12:02                 ` Carsten EHRMANN
2020-03-03 12:08                   ` Richard Weinberger
2020-03-03 13:02                     ` Carsten EHRMANN
2020-03-03 16:59                       ` Jan Kiszka
2020-03-05 10:17                         ` Carsten EHRMANN
2020-03-05 11:07                           ` Richard Weinberger
2020-03-09  8:26                             ` Carsten EHRMANN
2020-03-09  8:54                               ` Jan Kiszka
2020-03-10 11:51                                 ` Carsten EHRMANN
2020-02-10 21:29     ` Henning Schild
2020-02-12  7:02       ` Carsten EHRMANN
2020-02-10 21:21 ` Henning Schild

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.