From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Manuel Vonthron <manuel.vonthron@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] "Inappropriate ioctl for device" with xeno_16550A on Xenomai 2.6, not Xenomai 2.5
Date: Wed, 18 Jan 2012 22:35:24 +0100 [thread overview]
Message-ID: <4F173B1C.3000300@domain.hid> (raw)
In-Reply-To: <CA+vRzyJBZswywEyhG8JUXZRr3j7tKwhOaT1nKJti4ScLn7sZLg@domain.hid>
On 01/18/2012 10:09 PM, Manuel Vonthron wrote:
> Dear all,
>
> I am using the driver "xeno_16550A" for serial communication between a
> powersupply and its controlling PC (x86). I started working with Xenomai
> 2.5.5, but I recently switched to another machine where I installed Xenomai
> 2.6.
>
> On this new machine, I get the "Inappropriate ioctl for device" error while
> setting up my serial connection:
> err = rt_dev_ioctl(fd, RTSER_RTIOC_SET_CONFIG, &serial_config);
> >> error -25: Inappropriate ioctl for device
> The following reads/writes don't fail but without proper configuration,
> messages aren't understood by the device.
>
> My tests with non-RT code and the regular Linux driver keeps working with
> this new machine and again, the RT code is the very same, I only updated my
> Makefile to match the new version.
>
> - setserial infos:
> /dev/ttyS0 uart 16550A port 0x03f8 irq 4 baud_base 115200 spd_normal
> skip_test
> - xeno_16550A loaded with:
> `modprobe -v xeno_16550A io=0x03f8 irq=4 baud_base=115200`
> - result of "rtdm" unit test:
> SetupExclusive openSuccessive openDefer close by driver handlerDefer
> close by pending referenceNormal closeDeferred module unload#
>
> Do you have any idea where the error comes from and how would I fix it?
It could be due to the version of gc. Try passing
CFLAGS="-fno-omit-frame-pointer"
on configure commande line.
--
Gilles.
next prev parent reply other threads:[~2012-01-18 21:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-18 21:09 [Xenomai-help] "Inappropriate ioctl for device" with xeno_16550A on Xenomai 2.6, not Xenomai 2.5 Manuel Vonthron
2012-01-18 21:35 ` Gilles Chanteperdrix [this message]
2012-01-18 21:56 ` Manuel Vonthron
2012-01-19 20:39 ` Gilles Chanteperdrix
2012-01-23 19:53 ` Manuel Vonthron
2012-01-23 20:00 ` Gilles Chanteperdrix
2012-01-23 20:19 ` Manuel Vonthron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F173B1C.3000300@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=manuel.vonthron@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.