* [Xenomai] Segfault error 4 when running latency test (and all userspace tests) @ 2013-02-13 14:26 Kris Ellis 2013-02-13 19:34 ` Gilles Chanteperdrix 0 siblings, 1 reply; 6+ messages in thread From: Kris Ellis @ 2013-02-13 14:26 UTC (permalink / raw) To: xenomai Hi All, I’m using buildroot to build and configure Xenomai 2.6.1 on Linux 3.2.21 for an Intel Atom based single board computer. I’ve managed to get the kernel to compile with the Xenomai patch. That much seems to run correctly. The kernel boots and if I open a shell and type “dmesg | grep Xenomai” I get: I-pipe: head domain Xenomai registered. Xenomai: hal/i386 started. Xenomai: scheduling class idle registered. Xenomai: scheduling class rt registered. Xenomai: real-time nucleus v2.6.1 (Light Years Away) loaded. Xenomai: debug mode enabled. Xenomai: starting native API services. Xenomai: starting POSIX services. Xenomai: starting RTDM services. So far so good, but when I try to run the latency test I get: segfault at 0 ip (null) sp bfd30cfc error 4 in latency Segmentation fault Something is not right with my user-space build, but I’m sort of at a loss since buildroot did both the kernel build and the user-space build. Any guidance that can be offered would be greatly appreciated. Thanks ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai] Segfault error 4 when running latency test (and all userspace tests) 2013-02-13 14:26 [Xenomai] Segfault error 4 when running latency test (and all userspace tests) Kris Ellis @ 2013-02-13 19:34 ` Gilles Chanteperdrix 2013-02-14 18:32 ` Kris Ellis 0 siblings, 1 reply; 6+ messages in thread From: Gilles Chanteperdrix @ 2013-02-13 19:34 UTC (permalink / raw) To: Kris Ellis; +Cc: xenomai On 02/13/2013 03:26 PM, Kris Ellis wrote: > Hi All, > > > > I’m using buildroot to build and configure Xenomai 2.6.1 on Linux 3.2.21 > for an Intel Atom based single board computer. Please try Xenomai 2.6.2.1 -- Gilles. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai] Segfault error 4 when running latency test (and all userspace tests) 2013-02-13 19:34 ` Gilles Chanteperdrix @ 2013-02-14 18:32 ` Kris Ellis 2013-02-14 18:56 ` Philippe Gerum 0 siblings, 1 reply; 6+ messages in thread From: Kris Ellis @ 2013-02-14 18:32 UTC (permalink / raw) To: xenomai I've now tried Xenomai 2.6.2.1 over Linux 3.2.21 using buildroot, and get the same result. The only difference is now dmesg | grep Xenomai shows me v2.6.2.1 (Day At The Beach) instead of 2.6.1 (Light Years Away) Still get a segfault. Has anyone had success using buildroot to build a Xenomai system? Cheers Kris On Wed, Feb 13, 2013 at 2:34 PM, Gilles Chanteperdrix < gilles.chanteperdrix@xenomai.org> wrote: > On 02/13/2013 03:26 PM, Kris Ellis wrote: > > > Hi All, > > > > > > > > I’m using buildroot to build and configure Xenomai 2.6.1 on Linux 3.2.21 > > for an Intel Atom based single board computer. > > > Please try Xenomai 2.6.2.1 > > -- > Gilles. > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai] Segfault error 4 when running latency test (and all userspace tests) 2013-02-14 18:32 ` Kris Ellis @ 2013-02-14 18:56 ` Philippe Gerum 2013-02-14 19:32 ` Kris Ellis 0 siblings, 1 reply; 6+ messages in thread From: Philippe Gerum @ 2013-02-14 18:56 UTC (permalink / raw) To: Kris Ellis; +Cc: xenomai On 02/14/2013 07:32 PM, Kris Ellis wrote: > I've now tried Xenomai 2.6.2.1 over Linux 3.2.21 using buildroot, and get > the same result. > > The only difference is now dmesg | grep Xenomai shows me v2.6.2.1 (Day At > The Beach) instead of 2.6.1 (Light Years Away) > > Still get a segfault. Has anyone had success using buildroot to build a > Xenomai system? > Definitely, yes. This is how we routinely build our software test platform for all supported archs, including x86. You can find our buildroot-based generator there: git://git.xenomai.org/mkrootfs.git Did you provide a gdb backtrace of this problem? Please check that your CPU as selected in your kernel configuration supports sysenter/sysexit if --enable-x86-sep is enabled in your build configuration for the user-space programs and libraries. -- Philippe. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai] Segfault error 4 when running latency test (and all userspace tests) 2013-02-14 18:56 ` Philippe Gerum @ 2013-02-14 19:32 ` Kris Ellis 2013-02-15 8:52 ` Philippe Gerum 0 siblings, 1 reply; 6+ messages in thread From: Kris Ellis @ 2013-02-14 19:32 UTC (permalink / raw) To: xenomai Thanks, I'll look into your buldroot generator. I have not tried using gdb yet, so I have no backtrace that I can provide. As far as the --enable-x86-sep flag is concerned, is there a place in buildroot to turn this on, or do I have to go and manually modify the xenomai.mk file? Cheers Kris On Thu, Feb 14, 2013 at 1:56 PM, Philippe Gerum <rpm@xenomai.org> wrote: > On 02/14/2013 07:32 PM, Kris Ellis wrote: > >> I've now tried Xenomai 2.6.2.1 over Linux 3.2.21 using buildroot, and get >> the same result. >> >> The only difference is now dmesg | grep Xenomai shows me v2.6.2.1 (Day At >> The Beach) instead of 2.6.1 (Light Years Away) >> >> Still get a segfault. Has anyone had success using buildroot to build a >> Xenomai system? >> >> > Definitely, yes. This is how we routinely build our software test platform > for all supported archs, including x86. You can find our buildroot-based > generator there: > > git://git.xenomai.org/**mkrootfs.git <http://git.xenomai.org/mkrootfs.git> > > Did you provide a gdb backtrace of this problem? > > Please check that your CPU as selected in your kernel configuration > supports sysenter/sysexit if --enable-x86-sep is enabled in your build > configuration for the user-space programs and libraries. > > -- > Philippe. > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai] Segfault error 4 when running latency test (and all userspace tests) 2013-02-14 19:32 ` Kris Ellis @ 2013-02-15 8:52 ` Philippe Gerum 0 siblings, 0 replies; 6+ messages in thread From: Philippe Gerum @ 2013-02-15 8:52 UTC (permalink / raw) To: Kris Ellis; +Cc: xenomai On 02/14/2013 08:32 PM, Kris Ellis wrote: > Thanks, I'll look into your buldroot generator. > Well, actually this was a wrong advice, at least with respect to using buildroot: that generator does not use BR2, only the one I'm using locally does. But I had to hack the Xenomai support in BR2's 2010.02 release, which you do have built-in now in the latest one. > I have not tried using gdb yet, so I have no backtrace that I can provide. > This would help. > As far as the --enable-x86-sep flag is concerned, is there a place in > buildroot to turn this on, or do I have to go and manually modify the > xenomai.mk file? > You need to fix up XENOMAI_CONF_OPT manually. I suspect that you might have a kernel compiled for a CPU which does not provide SEP, with the userland code configured by default with --enable-x86-sep. So I would try check this first, prior to pulling more hairs: First, log in your target box, and check whether /proc/cpuinfo mentions "sep" as an available feature for your processor. If not, then either: - fix your i386 CPU configuration for the kernel and rebuild it, assuming your CPU does have sep actually (this is the most likely option), leaving userland as it is. - Fix up XENOMAI_CONF_OPT to add --disable-x86-sep and rebuild userland, leaving the kernel config as it is. To speed up things, I would suggest to try out these tests with no BR2 in the picture for now, using a plain configure+build sequence for Xenomai. -- Philippe. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-02-15 8:52 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-02-13 14:26 [Xenomai] Segfault error 4 when running latency test (and all userspace tests) Kris Ellis 2013-02-13 19:34 ` Gilles Chanteperdrix 2013-02-14 18:32 ` Kris Ellis 2013-02-14 18:56 ` Philippe Gerum 2013-02-14 19:32 ` Kris Ellis 2013-02-15 8:52 ` Philippe Gerum
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.