From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 20 Mar 2012 12:32:37 -0400 From: Glen Wernersbach Message-ID: In-Reply-To: <4F68AEB2.1050400@domain.hid> Mime-version: 1.0 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Subject: Re: [Xenomai-help] Linux Serial Does not work with CONFIG_XENO_OPT_PERVASIVE enabled List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe Gerum Cc: xenomai@xenomai.org I don't get any error from anything. I just don't get anything back from the read command. This is how the program behaved without the tcsetaddr command previously. On 3/20/12 12:22 PM, "Philippe Gerum" wrote: > On 03/20/2012 03:07 PM, Glen Wernersbach wrote: >> I went through and disabled everything in xeno except >> CONFIG_XENO_OPT_PERVASIVE, did not work. Take that option out and it wor= ks. >>=20 >> Take that option out at anytime it works. >>=20 >> My program basic writes a few characters a serial port and then reads th= em >> back in from the same port. I have a loop back cable connected to the po= rt. >>=20 >> It writes the data but waits forever to read them back in >>=20 >>> From my tests, it appears that the termois tcsetaddr settings is not ge= tting >> set when I call it when this option is on. >=20 > Does this mean you received an error code from tcsetattr()? Or are you > inferring this from the fact that you don't get any input from the > serial link? >=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >> On 3/20/12 9:57 AM, "Philippe Gerum" wrote: >>=20 >>> On 03/20/2012 02:48 PM, Glen Wernersbach wrote: >>>> I don't think this is it directly. >>>>=20 >>>> This program was made on the same kernel prior to patching it with Xen= o. >>>>=20 >>>> It should still run like any other linux program. >>>=20 >>> - what does "program not working" mean in your case? Any errno return w= e >>> could interpret? Any strace output? >>>=20 >>> - what if you disable CONFIG_XENO_OPT_SKIN_RTDM, leaving PERVASIVE on? >>>=20 >>>=20 >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>> On 3/20/12 9:44 AM, "Philippe Gerum" wrote: >>>>=20 >>>>> On 03/20/2012 02:28 PM, Glen Wernersbach wrote: >>>>>> Hi All, >>>>>>=20 >>>>>> I install Xenomai 2.6.0 on AT91SAM9G20 system and have found that wh= en >>>>>> CONFIG_XENO_OPT_PERVASIVE is enabled my standard non real time linux >>>>>> serial write then read serial program does not work. >>>>>>=20 >>>>>> If I turn off CONFIG_XENO_OPT_PERVASIVE, my serial program does work= . >>>>>>=20 >>>>>> Any ideas why????? >>>>>>=20 >>>>>=20 >>>>> A possible explanation would be that your application links with the >>>>> Xenomai POSIX lib (libpthread_rt), albeit it should not. >>>>>=20 >>>>> With pervasive support disabled, any routing from the overloaded POSI= X >>>>> I/O calls to the Xenomai kernel would then fail. >>>>>=20 >>>>> If so, you should not link against the Xenomai libs if you need no -r= t >>>>> service, or prevent symbol wrapping only for the POSIX I/O calls by >>>>> prefixing them by __real_* if you want Xenomai-enabled POSIX services >>>>> except the I/O support. >>>>>=20 >>>>> See http://xenomai.org/index.php/Porting_POSIX_applications_to_Xenoma= i >>>>>=20 >>>>>>=20 >>>>>> Also, when you turn CONFIG_XENO_OPT_PERVASIVE you get this error: >>>>>> CC kernel/xenomai/nucleus/synch.o >>>>>> kernel/xenomai/nucleus/synch.c: In function 'xnsynch_release_thread'= : >>>>>> kernel/xenomai/nucleus/synch.c:688:3: error: implicit declaration of >>>>>> function 'xnthread_get_rescnt' >>>>>> kernel/xenomai/nucleus/synch.c:689:4: error: implicit declaration of >>>>>> function 'xnshadow_send_sig' >>>>>>=20 >>>>>> I had to go in and make the code for that option befor it always fal= se. >>>>>>=20 >>>>>=20 >>>>> http://git.xenomai.org/?p=3Dxenomai-2.6.git;a=3Dcommit;h=3D41b4f9c0f4bdf061= 07a78 >>>>> 8b >>>>> 76 >>>>> 2b5cf662b1d4108 >>>>>=20 >>>>>=20 >>>>>> Glen >>>>>> -- >>>>>> Glen Wernersbach >>>>>> President& CTO >>>>>>=20 >>>>>> Jetsoft Development Co. >>>>>> 629 Old St Rt. 74 =AD Suite 210 >>>>>> Cincinnati, Oh 45244 >>>>>> Custom Programming Web Site: www.jetsoftdev.com >>>>>> Retail Products Web Site: www.scanhelp.com >>>>>> Phone: 513-528-6660 >>>>>> Fax: 513-528-3470 >>>>>> Cell 513-240-9929 >>>>>> ---- >>>>>> Partner for Software Technology >>>>>> Jacobs Automation >>>>>> 2365 Progress Drive >>>>>> Hebron, KY 41048 >>>>>> (513) 297-7550 >>>>>> ---- >>>>>> "Support Dyslexia Research" >>>>>>=20 >>>>>>=20 >>>>>> _______________________________________________ >>>>>> Xenomai-help mailing list >>>>>> Xenomai-help@domain.hid >>>>>> https://mail.gna.org/listinfo/xenomai-help >>>>>=20 >>>>=20 >>>=20 >>=20 >=20 --=20 Glen Wernersbach President & CTO Jetsoft Development Co. 629 Old St Rt. 74 =AD Suite 210 Cincinnati, Oh 45244 Custom Programming Web Site: www.jetsoftdev.com Retail Products Web Site: www.scanhelp.com Phone: 513-528-6660 Fax: 513-528-3470 Cell 513-240-9929 ---- Partner for Software Technology Jacobs Automation 2365 Progress Drive Hebron, KY 41048=20 (513) 297-7550 ---- "Support Dyslexia Research"