From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Im81o-0002Nj-Ea for qemu-devel@nongnu.org; Sun, 28 Oct 2007 09:18:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Im81m-0002LQ-Vr for qemu-devel@nongnu.org; Sun, 28 Oct 2007 09:18:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Im81m-0002LJ-Li for qemu-devel@nongnu.org; Sun, 28 Oct 2007 09:18:06 -0400 Received: from static-71-162-243-5.phlapa.fios.verizon.net ([71.162.243.5] helo=grelber.thyrsus.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Im81m-0006HC-9G for qemu-devel@nongnu.org; Sun, 28 Oct 2007 09:18:06 -0400 From: Rob Landley Subject: Re: [Qemu-devel] PreP kernels boot using Qemu Date: Sun, 28 Oct 2007 09:17:48 -0500 References: <1193038567.16781.108.camel@rapid> <200710280525.23540.rob@landley.net> <4724566B.10107@aurel32.net> In-Reply-To: <4724566B.10107@aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Message-Id: <200710280917.48849.rob@landley.net> Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: qemu-devel@nongnu.org On Sunday 28 October 2007 4:29:15 am Aurelien Jarno wrote: > Rob Landley a =E9crit : > > On Saturday 27 October 2007 3:07:05 am Aurelien Jarno wrote: > >> Rob Landley a =E9crit : > >>> 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 =3D { > >>>> .typename =3D " i8259 ", > >>>> .mask =3D i8259_mask_irq, > >>>> + .disable =3D i8259_mask_irq, > >>>> .unmask =3D i8259_unmask_irq, > >>>> .mask_ack =3D i8259_mask_and_ack_irq, > >>>> }; > >>> > >>> Using mdm's qemu target platform and the 4k bios that supplies a de= vice > >>> 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 du= ring > >>> bootup. (There's no eth0.) > >> > >> You need this patch to get the *ISA* NE2000 card working, the PCI on= e > >> still doesn't work. > > > > Hmmm, Milton's ppc_qemu patch forgot to add PPC_QEMU to the ISA > > dependency list along with PREP and CHRP. Let's see, patch that, swi= tch > > on the config > > > > symbol, build in that driver and... Nope: > >> ne.c:v1.10 9/23/94 Donald Becker (becker@scyld.com) > >> Last modified Nov 1, 2000 by Paul Gortmaker > >> NE*000 ethercard probe at 0x300: failed to detect IRQ line. > > > > I still have no eth0. > > You have to build the NE2000 driver as a module, and pass irq=3D9 io=3D= 0x300 > when loading it. Hmmm... All the kernels I've built for this project are static. In theo= ry I=20 can add "ne.irq=3D9" to the kernel command line, but in practice it doesn= 't=20 seem to work. Nor does ne.0.irq=3D9 or irq=3D9 However, when I hardwire "dev->irq=3D9;" into the source code, it does se= em to=20 work. (Or at least I can ping qemu's virtual gateway.) Off to read the kernel command line parsing logic... Thanks, Rob --=20 "One of my most productive days was throwing away 1000 lines of code." - Ken Thompson.