All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] How to Linux kernel for MIPSEL qemu
@ 2007-05-17 16:18 PianoPan
  2007-05-17 18:44 ` Thiemo Seufer
  0 siblings, 1 reply; 3+ messages in thread
From: PianoPan @ 2007-05-17 16:18 UTC (permalink / raw)
  To: qemu-devel

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
* 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


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'


Best regard!

Pan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] How to Linux kernel for MIPSEL qemu
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Thiemo Seufer @ 2007-05-17 18:44 UTC (permalink / raw)
  To: PianoPan; +Cc: qemu-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] How to Linux kernel for MIPSEL qemu
  2007-05-17 18:44 ` Thiemo Seufer
@ 2007-05-18  2:42   ` PianoPan
  0 siblings, 0 replies; 3+ messages in thread
From: PianoPan @ 2007-05-18  2:42 UTC (permalink / raw)
  To: qemu-devel

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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-18  2:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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.