From: Apelete Seketeli <apelete@seketeli.org>
To: Amit Shah <amit.shah@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Booting custom kernel in qemu
Date: Sat, 28 May 2011 22:05:33 +0200 [thread overview]
Message-ID: <20110528200532.GB2849@hermes> (raw)
In-Reply-To: <20110527125557.GB30093@amit-x200.redhat.com>
On 27-May-11, Amit Shah wrote:
> On (Thu) 26 May 2011 [21:59:01], Apelete Seketeli wrote:
> > Hello,
> >
> > I'm trying to boot a custom linux kernel in qemu, and I plan to
> > contribute the necessary work to make it work (this is the first step
> > I'm taking to add OS support in qemu). I'm totally new to qemu, and I
> > haven't found enough information to know how to start debugging the
> > thing, so I thought of asking here.
> >
> > I wanted to launch the kernel in a terminal for practical purposes, so
> > I tried:
> >
> > qemu -kernel bzImage -append console=ttyS0
>
> Add -serial stdio to get those logs.
Well,
qemu -kernel bzImage -append console=ttyS0 -serial stdio
does not give me any output, I guess it's because the thing get stuck
early during the boot process. For the time being I'm using
qemu -kernel bzImage -append console=ttyS0 -S -nographic
in order to launch gdbserver in the monitor and attach a gdb in the
host; I hope I'll be able to follow the boot process in the debugger
and understand qemu inner workings.
I have a question though:
$ qemu -S -kernel arch/x86/boot/bzImage -append console=ttyS0 -nographic -serial stdio
chardev: opening backend "stdio" failed
qemu: could not open serial device 'stdio': No such file or directory
Why do I get an error since stdio is (according to the manual) the
standard device in non graphical mode ?
--
Apelete
next prev parent reply other threads:[~2011-05-28 20:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-26 19:59 [Qemu-devel] Booting custom kernel in qemu Apelete Seketeli
2011-05-27 12:55 ` Amit Shah
2011-05-28 20:05 ` Apelete Seketeli [this message]
2011-05-29 9:41 ` Andreas Färber
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=20110528200532.GB2849@hermes \
--to=apelete@seketeli.org \
--cc=amit.shah@redhat.com \
--cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).