Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x

Carsten EHRMANN Carsten.Ehrmann at diehl.com
Mon Mar 9 09:26:29 CET 2020


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 at nod.at> 
Sent: Thursday, March 5, 2020 12:07 PM
To: Carsten EHRMANN <Carsten.Ehrmann at diehl.com>
Cc: Jan Kiszka <jan.kiszka at siemens.com>; xenomai <xenomai at 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 at diehl.com>
> An: "Jan Kiszka" <jan.kiszka at siemens.com>, "Richard Weinberger" 
> <richard.weinberger at gmail.com>
> CC: "xenomai" <xenomai at 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


More information about the Xenomai mailing list