"-fno-omit-frame-pointer" doesn't fix the problem but gcc versions are indeed different: - gcc 4.3.2 on the "working" machine - gcc 4.6.2 on the other
Thanks for your help On Wed, Jan 18, 2012 at 4:35 PM, Gilles Chanteperdrix < [email protected]> wrote: > 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. > -- Manuel Vonthron Laboratoire de Nanorobotique École Polytechnique de Montréal Montréal, QC http://nano.polymtl.ca/
_______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
