From: Philippe Gerum In-Reply-To: <201002171140.02726.lux-integ@domain.hid> References: <201001292104.42395.lux-integ@domain.hid> <1265280370.2348.130.camel@domain.hid> <4B743B4E.3060703@domain.hid> <201002171140.02726.lux-integ@domain.hid> Content-Type: text/plain; charset="UTF-8" Date: Wed, 17 Feb 2010 14:19:25 +0100 Message-ID: <1266412765.26785.18.camel@domain.hid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] help with xenomai-2.5.0 on pure64bit linux x86_64 List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: lux-integ Cc: xenomai@xenomai.org, Wolfgang Mauerer , Jan Kiszka On Wed, 2010-02-17 at 11:40 +0000, lux-integ wrote: > On Thursday 11 February 2010 05:15:58 pm Wolfgang Mauerer wrote: > > Philippe Gerum wrote: > > > On Sun, 2010-01-31 at 14:42 +0100, Jan Kiszka wrote: > > >> Philippe Gerum wrote: > > >>> On Sun, 2010-01-31 at 14:25 +0100, Jan Kiszka wrote: > > >>>> Philippe Gerum wrote: > > >>>>> On Sun, 2010-01-31 at 13:37 +0100, Jan Kiszka wrote: > > >>>>>> lux-integ wrote: > > >>>>>>> Greetings > > >>>>>>> > > >>>>>>> I am new to xenomai and I am attempting to install a > > >>>>>>> RT-kernel on a pure 64-bit (not multilib) amd64 linux setup. The > > >>>>>>> machine has a Sempron CPU and 2 GBytes of RAM. The distribution is > > >>>>>>> cross-lfs compiled from sources. This is what I have done:- > > >>>>>>> > > >>>>>>> a) I fetched fresh kernel2.6.32.2 source-code and placed it > > >>>>>>> in /usr/src/linux like so:- > > >>>>>>> `linux' -> `linux-2.6.32.2' > > >>>>>>> > > >>>>>>> b) ..I then applied the xenomai patch as such:- > > >>>>>>> $SOURCES/xenomai-2.5.0/scripts/prepare-kernel.sh > > >>>>>>> --linux=/usr/src/linux > > >>>>>>> --adeos=$SOURCES/xenomai-2.5.0/ksrc/arch/x86/patches/adeos-ipipe-2. > > >>>>>>>6.32.2-x86-2.5-00.patch --arch=x86_64 > > > > > > > > > > > >>>>> This is likely our old friend CONFIG_SPARSE_IRQ which is at work. > > >>>>> Just disable this, until we have introduced the required changes to > > >>>>> support more than 1024 IRQs. > > >>>> > > >>>> If that is true, then please include a simple "depends on > > >>>> !CONFIG_IPIPE" in the x86 patch for the meantime. > > >>> > > >>> No. Work to lift this limitation is in progress here. > > >> > > >> That's even nicer (if 'lift' means removing any limitation of > > >> CONFIG_NR_CPUS). > > >> > > >> Jan > > > > > > Could someone gives this patch a go, with CONFIG_SPARSE_IRQ on (or some > > > unreasonable number of CPUs in 64bit mode, whichever comes first)? > > > > http://download.gna.org/adeos/patches/v2.6/x86/adeos-ipipe-2.6.32.7-x86-2.6-00.patch > > > boots (and seems to work fine after a rather short test) w/o Xenomai and > > the attached .config (SPARSE_IRQ, NR_CPUS=512). With Xenomai is compiled > > in, it reboots right after registering the Xenomai domain with ipipe - > > see the attached console logs. Did not dig any deeper so far. > > The test was done on qemu 0.10.50 (-cpu core2duo, KVM) > > > > Cheers, Wolfgang > > I am back after short break. > > I am using a machine with a single AMD Sempron CPU and planning to use > xenomai-2.5.1. > QUESTION: is the above patch namely: > {adeos-ipipe-2.6.32.7-x86-2.6-00.patch } to be used > or is the old patch that is shipped with the xenomai-2.5.1 tarball namely: > {adeos-ipipe-2.6.32.7-x86-2.5-01.patch } > to be used ? > > Or to put it another way; is the patch > {adeos-ipipe-2.6.32.7-x86-2.6-00.patch} available from the link above only > uable on multiprocessor-based machines? > This patch should be used if you attempt to enable CONFIG_SPARSE_IRQ. It is aimed at replacing the previous -2.5 series, but there is no problem using the older patches provided you can live with any shortcomings/bugs they might have compared to more recent ones. In short, use 2.5-01 if that works for you since it has been validated over Xenomai 2.5.1, and -2.6 did not undergo the same level of testing yet, or move to -2.6 if you do need SPARSE_IRQ support (probably not). > > advice will be welcomed > > sincerely > lux-integ > > > -- Philippe.