All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: Rob Landley <rob@landley.net>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] PreP kernels boot using Qemu
Date: Sun, 28 Oct 2007 10:29:15 +0100	[thread overview]
Message-ID: <4724566B.10107@aurel32.net> (raw)
In-Reply-To: <200710280525.23540.rob@landley.net>

Rob Landley a écrit :
> On Saturday 27 October 2007 3:07:05 am Aurelien Jarno wrote:
>> Rob Landley a écrit :
>>> On Monday 22 October 2007 11:28:10 am Aurelien Jarno wrote:
>>>> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
>>>>
>>>> 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.)
>> You need this patch to get the *ISA* NE2000 card working, the PCI one
>> 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, switch 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=9 io=0x300
when loading it.

> I just confirmed that arch/powerpc/sysdev/i8259.c has:
> 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,
> };
> 
> Since your patch was to /arch/ppc instead...
> 

I have posted two patches, one for ppc and one for powerpc. I have send
both of them upstream

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net

  reply	other threads:[~2007-10-28  9:29 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-22  7:36 [Qemu-devel] PreP kernels boot using Qemu J. Mayer
2007-10-22  9:23 ` Jocelyn Mayer
2007-10-27  1:59   ` Rob Landley
2007-10-22 16:28 ` Aurelien Jarno
2007-10-22 21:12   ` J. Mayer
2007-10-22 22:05     ` Aurelien Jarno
2007-10-22 22:36       ` J. Mayer
2007-10-23 11:47         ` Thiemo Seufer
2007-10-23 21:53           ` J. Mayer
2007-10-23 21:59             ` Aurelien Jarno
2007-10-23 23:06               ` J. Mayer
2007-10-24  0:08             ` Thiemo Seufer
2007-10-27  8:00   ` Rob Landley
2007-10-27  8:07     ` Aurelien Jarno
2007-10-28 10:25       ` Rob Landley
2007-10-28  9:29         ` Aurelien Jarno [this message]
2007-10-28 14:17           ` Rob Landley
2007-10-31  2:30             ` Ed Swierk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4724566B.10107@aurel32.net \
    --to=aurelien@aurel32.net \
    --cc=qemu-devel@nongnu.org \
    --cc=rob@landley.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.