From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IitOW-0003zy-HT for qemu-devel@nongnu.org; Fri, 19 Oct 2007 11:04:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IitOU-0003ym-MQ for qemu-devel@nongnu.org; Fri, 19 Oct 2007 11:04:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IitOU-0003yX-G3 for qemu-devel@nongnu.org; Fri, 19 Oct 2007 11:04:10 -0400 Received: from hall.aurel32.net ([88.191.38.19]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IitOU-0004Ch-02 for qemu-devel@nongnu.org; Fri, 19 Oct 2007 11:04:10 -0400 Message-ID: <4718C75E.2040605@aurel32.net> Date: Fri, 19 Oct 2007 17:03:58 +0200 From: Aurelien Jarno MIME-Version: 1.0 Subject: Re: [Qemu-devel] I got a kernel booted under qemu-system-ppc ! References: <200710181912.57825.rob@landley.net> In-Reply-To: <200710181912.57825.rob@landley.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Milton Miller Rob Landley a écrit : > The easy way to reproduce this is go to "http://landley.net/hg/firmware", > download tip, and "./build.sh powerpc". When it finishes building > everything, cd build and "./run-powerpc.sh". > > What I did is build a new ppc_rom.bin (attached, source code is at > http://landley.net/hg/firmware/raw-diff/92f89c9c9495/sources/toys/make-ppc_rom.tar.bz2 ) > which was written by Milton Miller. I use that firmware as the boot rom > (point -L at the directory it's in) instead of Open Hackware, which still > doesn't work for me. > > Then I build a 2.6.23 kernel with this patch: > http://landley.net/hg/firmware/raw-diff/fdb6ddd4c3b7/sources/patches/linux-ppcqemu.patch > which adds a "qemu" target. > > I then boot with the following command line (modulo wordwrap damage): > > qemu-system-ppc -M prep -nographic -hda image-powerpc.ext2 -kernel > zImage-powerpc -append 'rw init=/tools/bin/sh panic=1 PATH=/tools/bin > root=/dev/hda console=ttyS0' -L ../sources/toys > > And I get a shell prompt inside qemu! (After almost _two_years_ of trying, > I'm kind of happy about this.) It also works here (with a Debian chroot). Thanks a lot for this work! > The downside is that the result boots fine under qemu-0.9.0, but is broken > with current cvs. I tracked it down to the specific patch with "git bisect", > and it's this one: > > http://git.kernel.dk/?p=qemu.git;a=commit;h=36f447f730f61ac413c5b1c4a512781f5dea0c94 > > author j_mayer > Mon, 9 Apr 2007 22:45:36 +0000 (22:45 +0000) > committer j_mayer > Mon, 9 Apr 2007 22:45:36 +0000 (22:45 +0000) > > Implement embedded IRQ controller for PowerPC 6xx/740 & 750. > Fix PowerPC external interrupt input handling and lowering. > Fix OpenPIC output pins management. > Fix multiples bugs in OpenPIC IRQ management. > Fix OpenPIC CPU(s) reset function. > Fix Mac99 machine to properly route OpenPIC outputs to the PowerPC input > pins. > Fix PREP machine to properly route i8259 output to the PowerPC external > interrupt pin. > It looks like the interrupts are (partly) broken even with QEMU 0.9.0. I have tried to enable the NE2000 ISA card in the kernel (a small tweak is needed in a KConfig a file), but I wasn't successful. The card is not fully detected when the module is loaded, so I had to give the IRQ number by hand. Then the ethernet device is recognized, the MAC address is also recognized, but when I want to transmit data I only get timeout messages from the kernel... -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net