From: PianoPan <pianopan@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] How to Linux kernel for MIPSEL qemu
Date: Fri, 18 May 2007 10:42:46 +0800 [thread overview]
Message-ID: <10541fa50705171942k432b946eue78279efd5c63f8e@mail.gmail.com> (raw)
In-Reply-To: <20070517184447.GA17076@networkno.de>
Thiemo:
Thanks for your suggestion.
Yes, it is a issue about endianness. I already fix it. The default of
kernel for MIPS Qemu is not support the little endian. The
arch/mips/Kconfig must be updated for mipsel.
Thanks for ur help!
Best regard!
Pan
On 5/18/07, Thiemo Seufer <ths@networkno.de> wrote:
> PianoPan wrote:
> > Hello every one,
> >
> > I try to build a mipsel kernel by myself for qemu-system-mipsel. But
> > the qemu can not boot it properly. Is there anyone can give me some
> > suggestion about it.
> >
> > My method is following,
> >
> > * Get the kernel of 2.6.18.3 from kernel.org
>
> In general the source tree from www.linux-mips.org is morfe likely
> to work.
>
> > * Get the config.gz from the mipsel kernel that be provided by Qemu web.
> > * uncompress config.gz and rename it as .config, copy it to Linux
> > kernel directory .
> > * in the kernel directory, use following command to build the kernel
> > make ARCH=mips
> > CROSS_COMPILE=/opt/noki/mipsel-unknown-linux/sdktool/bin/mipsel-unknown-linux-
> > oldconfig
> >
> > make ARCH=mips
> > CROSS_COMPILE=/opt/noki/mipsel-unknown-linux/sdktool/bin/mipsel-unknown-linux-
> > all
>
> Looks ok.
>
> > after build , I use qemu 0.9 to boot it, and do not successes.
> >
> > #qemu-system-mipsel -kernel vmlinux -initrd initrd.gz -append
> > "console=ttyS0"
> > qemu: Warning, could not load MIPS bios
> > '/opt/noki/mipsel-unknown-linux//sdktool//share/qemu/mipsel_bios.bin'
> > qemu: could not load kernel 'vmlinux'
>
> This means Qemu's built-in ELF loader failed to load the vmlinux
> binary. I've seen that when attempting to load a kernel with the
> wrong endianness.
>
> Maybe you want to try the Debian installer image, e.g. from
> http://ftp.uk.debian.org/debian/dists/etch/main/installer-mipsel/current/images/qemu/netboot/
>
>
> Thiemo
>
prev parent reply other threads:[~2007-05-18 2:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-17 16:18 [Qemu-devel] How to Linux kernel for MIPSEL qemu PianoPan
2007-05-17 18:44 ` Thiemo Seufer
2007-05-18 2:42 ` PianoPan [this message]
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=10541fa50705171942k432b946eue78279efd5c63f8e@mail.gmail.com \
--to=pianopan@gmail.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).