From: Philippe Gerum <rpm@xenomai.org>
To: Stefan Kisdaroczi <kisda@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] kernel 2.6.32.11 with xenomai 2.5.3 fails to boot on ubuntu lucid system
Date: Wed, 18 Aug 2010 20:09:59 +0200 [thread overview]
Message-ID: <1282154999.1730.356.camel@domain.hid> (raw)
In-Reply-To: <4C6BCDE5.6050607@domain.hid>
On Wed, 2010-08-18 at 14:11 +0200, Stefan Kisdaroczi wrote:
> On 18.08.2010 10:27, Philippe Gerum wrote:
> > On Tue, 2010-08-17 at 19:43 +0200, Stefan Kisdaroczi wrote:
> >
> >> On 17.08.2010 12:27, Philippe Gerum wrote:
> >>
> >>> On Mon, 2010-08-16 at 21:14 +0200, Theo Veenker wrote:
> >>>
> >>>
> >>>> On 08/16/2010 04:26 PM, Theo Veenker wrote:
> >>>>
> >>>>
> >>>>> Gilles Chanteperdrix wrote:
> >>>>>
> >>>>>
> >>>>>> Theo Veenker wrote:
> >>>>>>
> >>>>>>
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>> I want to upgrade all our PC's from Ubuntu hardy to lucid and in the
> >>>>>>> process
> >>>>>>> I'm also going from kernel 2.6.29.5 with Xenomai 2.4.8 to kernel
> >>>>>>> 2.6.32.11
> >>>>>>> with Xenomai 2.5.3.
> >>>>>>>
> >>>>>>> I first built and tested the 2.6.32.11 kernel with 2.5.3 on my hardy
> >>>>>>> system
> >>>>>>> and all went fine. But the problem is it just doesn't run on the
> >>>>>>> lucid distro.
> >>>>>>>
> >>>>>>>
> >>>>>> This, I do not understand, the kernel does not need any support from the
> >>>>>> distribution for booting, how can the same kernel boot with one
> >>>>>> distribution, and not with the other? When you say the "same kernel", do
> >>>>>> you mean the exact same zImage or bzImage, or do you mean the kernel
> >>>>>> with the same configuration, but with a different compiler, or only the
> >>>>>> version is identical?
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> It is a complete mystery to me either. I compiled my kernel into a deb
> >>>>> package
> >>>>> and installed the very same deb package on three machines:
> >>>>> MSI p45 neo3 with Hardy on it -> works OK
> >>>>> MSI p45 neo3 with Ludid on it -> nothing (works fine with regular kernel)
> >>>>> MSI 945P with Lucid on it: -> nothing (works fine with regular kernel)
> >>>>>
> >>>>> I'll try the suggestions posted and keep you informed.
> >>>>>
> >>>>>
> >>>> OK. Connected a terminal to catch early kernel messages. Still no output
> >>>> unfortunately (with the regular kernel I do get output on the terminal,
> >>>> so the connection works).
> >>>>
> >>>> Meanwhile also built and tested kernel 2.6.32.15 + xenomai 2.5.4. Still nothing.
> >>>> I'm clueless. I'm running Xenomai for years on dozens of systems and I've
> >>>> never run into problems like this. I think I'll have to sit down and take a
> >>>> close look at what I'm doing. I've always built my kernels using make-kpkg,
> >>>> maybe that somehow introduces a problem here. I'll try without it.
> >>>>
> >>>> (unfortunately/luckily I have to work from home for a few days so I can't
> >>>> get to the test system until later this week)
> >>>>
> >>>>
> >>> I failed to reproduce the issue yet, but it very much looks like an
> >>> I-pipe bug. Could you try the following config variants when time
> >>> allows:
> >>>
> >>>
> >> I installed the kernel (2.6.32.15 2.5.4 x86 32bit) which is working on
> >> my laptop in a kvm machine.
> >> In the virtual machine the kernel never starts and hangs.
> >> I attached gdb to kvm and according to the cpu registers and system.map
> >> it hangs in 'doublefault_fn'. As I'm not really familiar with gdb i'm
> >> thankful if someone has a hint how to proceed. Thanks
> >>
> > If you could ask for a backtrace ("bt" command) in gdb once attached to
> > the hanged kernel, and post the output there, that would be great.
> >
>
> hi philippe, hope this helps:
>
> (gdb) bt
> #0 doublefault_fn () at arch/x86/kernel/doublefault_32.c:47
> #1 0x00000000 in ?? ()
>
> I set two breakpoints:
> 1) do_test_wp_bit()
> 2) zap_low_mappings()
>
> The second breakpoint is never reached, the fault seems to happen in
> do_test_wp_bit().
> arch/x86/mm/init_32.c : mem_init() -> test_wp_bit() -> do_test_wp_bit()
>
> Breakpoint 1, do_test_wp_bit () at arch/x86/mm/init_32.c:981
> 981 __asm__ __volatile__(
> (gdb) info registers
> eax 0xffdff000 -2101248
> ecx 0x7fc 2044
> edx 0x13e8025 20873253
> ebx 0xff7fe000 -8396800
> esp 0xc1345fc0 0xc1345fc0
> ebp 0x3830 0x3830
> esi 0x160 352
> edi 0x48d 1165
> eip 0xc101a308 0xc101a308 <do_test_wp_bit>
> eflags 0x2 [ ]
> cs 0x60 96
> ss 0x68 104
> ds 0x7b 123
> es 0x7b 123
> fs 0xd8 216
> gs 0x0 0
>
I confirm that disabling the WP test does work around the issue for me
on real hw as well. So, either something is re-enabling interrupts over
the fault handler, which would be weird in this context since the kernel
did not install its own IRQ handlers yet, or something is accessing
uninit pipeline stuff over the fault handling path like you mentioned.
--
Philippe.
next prev parent reply other threads:[~2010-08-18 18:09 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-20 7:43 [Xenomai-help] kernel 2.6.32.11 with xenomai 2.5.3 fails to boot on ubuntu lucid system Theo Veenker
2010-07-20 10:14 ` Stefan Kisdaroczi
2010-07-20 11:18 ` Theo Veenker
2010-07-20 11:21 ` Gilles Chanteperdrix
2010-07-20 16:32 ` Theo Veenker
2010-08-16 11:22 ` Theo Veenker
2010-08-16 11:39 ` Gilles Chanteperdrix
2010-08-16 13:48 ` Theo Veenker
2010-08-16 13:53 ` Gilles Chanteperdrix
2010-08-16 14:11 ` Theo Veenker
2010-08-16 11:40 ` Stefan Kisdaroczi
2010-08-16 11:59 ` Gilles Chanteperdrix
2010-08-16 12:00 ` Hemal C.Bavishi
2010-08-16 13:55 ` Theo Veenker
2010-08-16 12:45 ` Gilles Chanteperdrix
2010-08-16 14:26 ` Theo Veenker
2010-08-16 19:14 ` Theo Veenker
2010-08-16 22:39 ` Gilles Chanteperdrix
2010-08-17 10:27 ` Philippe Gerum
2010-08-17 13:51 ` Hemal C.Bavishi
2010-08-17 15:24 ` Stefan Kisdaroczi
2010-08-18 7:09 ` Gilles Chanteperdrix
2010-08-18 9:03 ` Paul
2010-08-18 9:06 ` Gilles Chanteperdrix
2010-08-19 15:21 ` Stefan Kisdaroczi
2010-08-19 15:28 ` Gilles Chanteperdrix
2010-08-19 17:13 ` Stefan Kisdaroczi
2010-08-19 18:49 ` Gilles Chanteperdrix
2010-08-20 16:43 ` Stefan Kisdaroczi
2010-08-18 18:45 ` [Xenomai-help] kernel 2.6.32.11 with xenomai 2.5.3 fails to boot on ubuntu lucid system [PATCH] Stefan Kisdaroczi
2010-08-18 18:58 ` Stefan Kisdaroczi
2010-08-18 21:08 ` Paul
2010-08-17 17:01 ` [Xenomai-help] kernel 2.6.32.11 with xenomai 2.5.3 fails to boot on ubuntu lucid system Philippe Gerum
2010-08-17 17:43 ` Stefan Kisdaroczi
2010-08-17 18:06 ` Jan Kiszka
2010-08-18 12:38 ` Stefan Kisdaroczi
2010-08-18 8:27 ` Philippe Gerum
2010-08-18 12:11 ` Stefan Kisdaroczi
2010-08-18 13:54 ` Stefan Kisdaroczi
2010-08-22 17:42 ` Philippe Gerum
2010-08-23 11:59 ` Stefan Kisdaroczi
2010-08-18 14:53 ` Philippe Gerum
2010-08-18 18:09 ` Philippe Gerum [this message]
2010-08-18 23:21 ` Gilles Chanteperdrix
2010-08-18 23:25 ` Gilles Chanteperdrix
2010-08-19 5:18 ` Philippe Gerum
2010-08-20 12:31 ` Theo Veenker
2010-08-20 12:34 ` Gilles Chanteperdrix
2010-08-20 13:34 ` Theo Veenker
2010-08-20 13:01 ` Philippe Gerum
2010-08-22 17:36 ` Philippe Gerum
2010-08-23 7:15 ` Theo Veenker
2010-08-21 9:32 ` Daniele Nicolodi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1282154999.1730.356.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=kisda@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.