From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4F85AD10.90701@domain.hid> Date: Wed, 11 Apr 2012 18:10:56 +0200 From: Wolfgang Grandegger MIME-Version: 1.0 References: <4F7555F7.6010102@domain.hid> <4F75B5BF.8030401@domain.hid> <4F75C7D1.4020808@domain.hid> <4F79D5EA.3010501@domain.hid> <4F7D7A43.4060502@domain.hid> <4F8592F3.6070907@domain.hid> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Minh GIANG Cc: xenomai-help On 04/11/2012 06:00 PM, Minh GIANG wrote: > thank you, it means that i have to apply this patch to my Xenomai tree, and > rebuild the kernel since the beginning. Ok, i will try it and keep you > posted. Yes. At a closer look I realized that cross-link.c does set it's own configuration. Therefore I have a few questions: - do you use an *unmodified* version of cross-link.c? - What Xenomai version do you use? - What Linux kernel version do you use? - How do you build "cross-link"? And please do not drop the CC to the list. Wolfgang. > On Wed, Apr 11, 2012 at 4:19 PM, Wolfgang Grandegger wrote: > >> Hi, >> >> On 04/05/2012 02:46 PM, Minh GIANG wrote: >>> i'm sorry sir, what i displayed just in the last mail, isn't good, >> because >>> i removed rt_dev_ioctl(...) in cross-link program >>> And then, with rt_dev_ioctl( RTSER_RTIOC_WAIT_EVENT ). >>> >>> [93076.465077] base=0x2f8 iir=0x4 >>> [93076.465082] base=0x2f8 status=0x0 >>> [93076.465084] base=0x2f8 iir=0x1 >> >> TX on rtser0: >> >>> [93076.556794] base=0x3f8 iir=0x2 >>> [93076.556799] base=0x3f8 status=0x0 >>> [93076.556801] base=0x3f8 iir=0x1 >> >> RX of 8 chars on rtser1: >> >>> [93076.557819] base=0x2f8 iir=0x4 >>> [93076.557823] base=0x2f8 status=0x0 >>> [93076.557825] base=0x2f8 iir=0x1 >> >>> [93076.558860] base=0x2f8 iir=0x4 >>> [93076.558865] base=0x2f8 status=0x0 >>> [93076.558867] base=0x2f8 iir=0x1 >> >>> [93076.559898] base=0x2f8 iir=0x4 >>> [93076.559901] base=0x2f8 status=0x0 >>> [93076.559903] base=0x2f8 iir=0x1 >> >>> [93076.560943] base=0x2f8 iir=0x4 >>> [93076.560946] base=0x2f8 status=0x0 >>> [93076.560948] base=0x2f8 iir=0x1 >> >>> [93076.561969] base=0x2f8 iir=0x4 >>> [93076.561971] base=0x2f8 status=0x0 >>> [93076.561973] base=0x2f8 iir=0x1 >> >>> [93076.563006] base=0x2f8 iir=0x4 >>> [93076.563009] base=0x2f8 status=0x0 >>> [93076.563011] base=0x2f8 iir=0x1 >> >>> [93076.564012] base=0x2f8 iir=0x4 >>> [93076.564012] base=0x2f8 status=0x0 >>> [93076.564012] base=0x2f8 iir=0x1 >> >>> [93076.564012] base=0x2f8 iir=0x4 >>> [93076.564012] base=0x2f8 status=0x0 >>> [93076.564012] base=0x2f8 iir=0x1 >> >> TX on rtser0: >> >>> [93076.656766] base=0x3f8 iir=0x2 >>> [93076.656770] base=0x3f8 status=0x0 >>> [93076.656772] base=0x3f8 iir=0x1 >> >> RX on rtser1: >> >>> [93076.657793] base=0x2f8 iir=0x4 >>> [93076.657795] base=0x2f8 status=0x0 >>> [93076.657797] base=0x2f8 iir=0x1 >> >> ... and so on. >> >> This looks completely normal and I'm really puzzled why the >> rt_dev_ioctl(RTSER_RTIOC_WAIT_EVENT) does not work as expected. Ah, I >> just realized that the following patch was not yet applied: >> >> https://mail.gna.org/public/xenomai-core/2011-11/msg00009.html >> >> I think it will fix your problem. >> >> Wolfgang. >> >> >