From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IlgJU-0002Ch-DV for qemu-devel@nongnu.org; Sat, 27 Oct 2007 03:42:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IlgJT-00029n-0d for qemu-devel@nongnu.org; Sat, 27 Oct 2007 03:42:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IlgJS-00029O-NX for qemu-devel@nongnu.org; Sat, 27 Oct 2007 03:42:30 -0400 Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IlgJR-0003XH-TP for qemu-devel@nongnu.org; Sat, 27 Oct 2007 03:42:30 -0400 Received: from static-71-162-243-5.phlapa.fios.verizon.net ([71.162.243.5] helo=grelber.thyrsus.com) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ilfff-0002dJ-8R for qemu-devel@nongnu.org; Sat, 27 Oct 2007 03:01:23 -0400 From: Rob Landley Subject: Re: [Qemu-devel] PreP kernels boot using Qemu Date: Sat, 27 Oct 2007 03:00:54 -0500 References: <1193038567.16781.108.camel@rapid> <20071022162810.GA12778@hall.aurel32.net> In-Reply-To: <20071022162810.GA12778@hall.aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710270300.55102.rob@landley.net> 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: Aurelien Jarno On Monday 22 October 2007 11:28:10 am Aurelien Jarno wrote: > Signed-off-by: Aurelien Jarno > > diff --git a/arch/ppc/syslib/i8259.c b/arch/ppc/syslib/i8259.c > index 1e5a00a..559f27c 100644 > --- a/arch/ppc/syslib/i8259.c > +++ b/arch/ppc/syslib/i8259.c > @@ -127,6 +127,7 @@ static void i8259_unmask_irq(unsigned int irq_nr) > static struct irq_chip i8259_pic = { > .typename = " i8259 ", > .mask = i8259_mask_irq, > + .disable = i8259_mask_irq, > .unmask = i8259_unmask_irq, > .mask_ack = i8259_mask_and_ack_irq, > }; Using mdm's qemu target platform and the 4k bios that supplies a device tree, I applied this but it didn't make any difference in the ne2k-pci adapter (not that I noticed). It still doesn't bind to anything during bootup. (There's no eth0.) I also tried enabling the 8139too driver and telling qemu "-net nic,model=rtl8139 -net user" (which made arm work), and it goes: > PCI: Probing PCI hardware > Memory resource not set for host bridge 0 > PCI: Cannot allocate resource region 2 of PCI bridge 0 > PCI: can't move host bridge resource > PCI: Cannot allocate resource region 0 of device 0000:00:0d.0 > PCI: Cannot allocate resource region 1 of device 0000:00:0d.0 ... > 8139too Fast Ethernet driver 0.9.28 > 8139too 0000:00:0d.0: This (id 10ec:8139 rev 20) is an enhanced 8139C+ chip > 8139too 0000:00:0d.0: Use the "8139cp" driver for improved performance and > stability. And then there's an eth0, but it doesn't work. I can assign an address to it but no matter what I try, no packets are sent and received (the packet transmit/receive/error counts never even go up, they stay at zero). Am I doing something wrong? Rob -- "One of my most productive days was throwing away 1000 lines of code." - Ken Thompson.