From: ebiederm@xmission.com (Eric W. Biederman)
To: Ed Tomlinson <tomlins@cam.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kexec for 2.5.51....
Date: 14 Dec 2002 12:37:27 -0700 [thread overview]
Message-ID: <m14r9gv1c8.fsf@frodo.biederman.org> (raw)
In-Reply-To: <200212141215.49449.tomlins@cam.org>
Ed Tomlinson <tomlins@cam.org> writes:
> Eric W. Biederman wrote:
>
> > Linus,
> >
> > My apologies for not resending this earlier I've been terribly
> > busy with other things..
> >
> > No changes are included since the last time I sent this except
> > the diff now patches cleanly onto 2.5.51. If there is some problem
> > holler and I will see about fixing it.
> >
> > When I bypass the BIOS in booting clients my only current failure
> > report is on an IBM NUMAQ and that almost worked.
>
> I applied this to a 2.5.51 kernel with usb and fbcon updated via bk pulls.
> Then after rebooting into the new kernel I tried
>
> kexec -l /vmlinux.25 --append="console=tty0 console=ttyS0,38400
> video=matrox:mem:32 idebus=33 profile=1"
>
> kexec -ed
>
> This rebooted but hangs at:
>
> drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.0
>
Hurray! a bug report :)
> One other datum. Without the --append line a kernel booted with kexec hangs
> when
>
> tring to mount the real root - it cannot find the device.
I suspect you want to specify --append="root=/dev/xyz" when calling kexec.
> Am I using kexec correctly? What else can I try? Is there any debug
> info I can gather?
Generally you want to put kexec -e your shutdown scripts just before
the call to reboot. And then you can just say: kexec ...
and the you get a clean system shutdown. Dropping to run level 1
before calling kexec tends to get most of the user space shutdown
called as well. It is definitely a good idea to be certain X is
shutdown before calling kexec.
With respect to USB it is quite possible something in the USB drivers
does not shutdown correctly on a reboot, and the driver then has trouble
reinitializing the device.
Since you got to the point of mounting root earlier when you did not
specify anything I wonder if you some of your command line arguments
made the situation worse.
Which kernel are you booting with kexec anyway?
This is actually an expected failure mode, but one I have not seen
much of yet. The new kernel not coming up because the old drivers
left the hardware in a state the new drivers cannot handle.
Eric
next prev parent reply other threads:[~2002-12-14 19:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-14 17:15 [PATCH] kexec for 2.5.51 Ed Tomlinson
2002-12-14 19:37 ` Eric W. Biederman [this message]
2002-12-14 23:59 ` Ed Tomlinson
2002-12-15 21:03 ` Eric W. Biederman
2002-12-15 21:41 ` Ed Tomlinson
2002-12-16 0:41 ` Eric W. Biederman
2002-12-14 19:49 ` Greg KH
[not found] ` <200212172243.52786.tomlins@cam.org>
[not found] ` <20021218054802.GF28629@kroah.com>
2003-01-13 3:42 ` usb mouse and 2.5.56bk Ed Tomlinson
2003-01-14 1:23 ` Greg KH
2003-01-14 13:44 ` Ed Tomlinson
2003-01-15 8:02 ` Greg KH
[not found] ` <mailman.1042429501.18263.linux-kernel2news@redhat.com>
2003-01-13 19:06 ` Pete Zaitcev
2003-01-13 19:26 ` Joshua M. Kwan
-- strict thread matches above, loose matches on Subject: below --
2002-12-14 8:26 [PATCH] kexec for 2.5.51 Eric W. Biederman
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=m14r9gv1c8.fsf@frodo.biederman.org \
--to=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tomlins@cam.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.