* [Xenomai] rt_imx_uart compilation
@ 2016-01-25 16:44 Jean-Baptiste Tredez
2016-01-25 19:14 ` Gilles Chanteperdrix
0 siblings, 1 reply; 2+ messages in thread
From: Jean-Baptiste Tredez @ 2016-01-25 16:44 UTC (permalink / raw)
To: xenomai
Hello,
I tried to compile linux kernel 3.18.12 with xenomai 2.6.4 and rtserial
enabled on arm imx6. The compilation failed with :
CC [M] drivers/xenomai/serial/rt_imx_uart.o
drivers/xenomai/serial/rt_imx_uart.c:39:27: fatal error:
mach/hardware.h: No such file or directory
#include <mach/hardware.h>
^
I can see in the file :
#include <mach/hardware.h>
#include <mach/imx-uart.h>
The requested file seem to be in arch/arm/mach-imx/hardware.h and
imx-uart.h in arch/arm/include/debug/imx-uart.h so i tried to correct
the path with :
#include <../mach-imx/hardware.h>
#include <debug/imx-uart.h>
The compilation failed with :
CC [M] drivers/xenomai/serial/rt_imx_uart.o
drivers/xenomai/serial/rt_imx_uart.c: In function 'rt_imx_uart_probe':
drivers/xenomai/serial/rt_imx_uart.c:1465:21: error: dereferencing
pointer to incomplete type
if (pdata && (pdata->flags & IMXUART_HAVE_RTSCTS))
^
drivers/xenomai/serial/rt_imx_uart.c:1465:31: error:
'IMXUART_HAVE_RTSCTS' undeclared (first use in this function)
if (pdata && (pdata->flags & IMXUART_HAVE_RTSCTS))
^
drivers/xenomai/serial/rt_imx_uart.c:1465:31: note: each undeclared
identifier is reported only once for each function it appears in
drivers/xenomai/serial/rt_imx_uart.c:1467:21: error: dereferencing
pointer to incomplete type
if (pdata && (pdata->flags & IMXUART_USE_DCEDTE))
^
drivers/xenomai/serial/rt_imx_uart.c:1467:31: error:
'IMXUART_USE_DCEDTE' undeclared (first use in this function)
if (pdata && (pdata->flags & IMXUART_USE_DCEDTE))
^
drivers/xenomai/serial/rt_imx_uart.c:1469:20: error: dereferencing
pointer to incomplete type
if (pdata && pdata->init) {
^
drivers/xenomai/serial/rt_imx_uart.c:1470:14: error: dereferencing
pointer to incomplete type
err = pdata->init(pdev);
^
drivers/xenomai/serial/rt_imx_uart.c:1489:20: error: dereferencing
pointer to incomplete type
if (pdata && pdata->exit)
^
drivers/xenomai/serial/rt_imx_uart.c:1490:8: error: dereferencing
pointer to incomplete type
pdata->exit(pdev);
^
drivers/xenomai/serial/rt_imx_uart.c: In function 'rt_imx_uart_remove':
drivers/xenomai/serial/rt_imx_uart.c:1520:20: error: dereferencing
pointer to incomplete type
if (pdata && pdata->exit)
^
drivers/xenomai/serial/rt_imx_uart.c:1521:8: error: dereferencing
pointer to incomplete type
pdata->exit(pdev);
^
Do you have an idea ?
Jean-Baptiste Trédez
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [Xenomai] rt_imx_uart compilation
2016-01-25 16:44 [Xenomai] rt_imx_uart compilation Jean-Baptiste Tredez
@ 2016-01-25 19:14 ` Gilles Chanteperdrix
0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2016-01-25 19:14 UTC (permalink / raw)
To: Jean-Baptiste Tredez; +Cc: xenomai
On Mon, Jan 25, 2016 at 05:44:48PM +0100, Jean-Baptiste Tredez wrote:
> Hello,
>
> I tried to compile linux kernel 3.18.12 with xenomai 2.6.4 and rtserial
> enabled on arm imx6. The compilation failed with :
> CC [M] drivers/xenomai/serial/rt_imx_uart.o
> drivers/xenomai/serial/rt_imx_uart.c:39:27: fatal error:
> mach/hardware.h: No such file or directory
>(...)
> Do you have an idea ?
First Xenomai 2.6.4 can not be used with Linux 3.18, you need
Xenomai 2.6 git tree for Linux 3.18. But it is very possible that
rt_imx_uart.c is broken. The fix is to have a look at the
corresponding mainline driver, and adapt it to RTDM.
Regards.
--
Gilles.
https://click-hack.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-25 19:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-25 16:44 [Xenomai] rt_imx_uart compilation Jean-Baptiste Tredez
2016-01-25 19:14 ` Gilles Chanteperdrix
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.