From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HolG9-0008Nb-67 for qemu-devel@nongnu.org; Thu, 17 May 2007 15:03:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HolG7-0008NI-JF for qemu-devel@nongnu.org; Thu, 17 May 2007 15:03:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HolG7-0008NF-AC for qemu-devel@nongnu.org; Thu, 17 May 2007 15:03:31 -0400 Received: from phoenix.bawue.net ([193.7.176.60] helo=mail.bawue.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hol7y-0001Mi-5y for qemu-devel@nongnu.org; Thu, 17 May 2007 14:55:06 -0400 Date: Thu, 17 May 2007 19:44:47 +0100 Subject: Re: [Qemu-devel] How to Linux kernel for MIPSEL qemu Message-ID: <20070517184447.GA17076@networkno.de> References: <10541fa50705170918g16fc75d5m76bfa609a41703a7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10541fa50705170918g16fc75d5m76bfa609a41703a7@mail.gmail.com> From: Thiemo Seufer Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: PianoPan Cc: qemu-devel@nongnu.org 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