qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Problems with Prep IDE
@ 2005-04-15 20:58 Tero Kaarlela
  2005-04-15 23:41 ` J. Mayer
  0 siblings, 1 reply; 6+ messages in thread
From: Tero Kaarlela @ 2005-04-15 20:58 UTC (permalink / raw)
  To: qemu-devel

Hi,

     I am still trying to boot OS/2 PPC edition with Qemu. Non-contiguos 
IO map & no support for Little-endian have been solved now thanks to J. 
Mayer who sent me patches to work these out. Now bootloader gives me 
following message:

IBM Microkernel bootloader press enter for manual boot(enter)

and I have following boot options to choose from:

cdrom
hd

if I try to use either one of these Qemu gives me

outl: port= 0x0cf8   data=0x80006000
inl: port= 0x0cfc
(Bootloader continues with)
Invalid PCI configuration
Device initializion failed

Any ideas why is this?

And I have also another note I have made:

Boot loader catches a bug if I try to use any other machine model(in 
bootinfos.c) than IBM PPS Model 6050.

If I give I 6070 Qemu catches a bug. I have done some researching and 
6070 & all other models accepted by this bootloader have "thing" called 
PCI_ACCESS_DEVICE. 6050 does not have this might this be the reason why 
6050 is the only machine of these that boots? And if someone knows what 
is this thing pls tell me too :)


Tero

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Problems with Prep IDE
  2005-04-15 20:58 [Qemu-devel] Problems with Prep IDE Tero Kaarlela
@ 2005-04-15 23:41 ` J. Mayer
  2005-04-22 18:52   ` Tero Kaarlela
  0 siblings, 1 reply; 6+ messages in thread
From: J. Mayer @ 2005-04-15 23:41 UTC (permalink / raw)
  To: qemu-devel

On Fri, 2005-04-15 at 23:58 +0300, Tero Kaarlela wrote:
> Hi,
> 
>      I am still trying to boot OS/2 PPC edition with Qemu. Non-contiguos 
> IO map & no support for Little-endian have been solved now thanks to J. 
> Mayer who sent me patches to work these out. Now bootloader gives me 
> following message:
> 
> IBM Microkernel bootloader press enter for manual boot(enter)
> 
> and I have following boot options to choose from:
> 
> cdrom
> hd
> 
> if I try to use either one of these Qemu gives me
> 
> outl: port= 0x0cf8   data=0x80006000
> inl: port= 0x0cfc
> (Bootloader continues with)
> Invalid PCI configuration
> Device initializion failed
> 
> Any ideas why is this?

There are two problems here:
first, the PREP PCI controller does not map its legacy ISA IO ports.
This is a bug.
But fixing this point is not sufficient to make the loader happy:
it tries to access the PCI device 0x60 (96) which does not exists. Then,
I think the lack of devices description in Open Hack'Ware residual data
can be a good suspect for this. Or it can be that real PREP machine
always have the IDE (or SCSI !) controller mapped as PCI device 0x60,
but I'm very suspicious about this.

> And I have also another note I have made:
> 
> Boot loader catches a bug if I try to use any other machine model(in 
> bootinfos.c) than IBM PPS Model 6050.
> 
> If I give I 6070 Qemu catches a bug. I have done some researching and 
> 6070 & all other models accepted by this bootloader have "thing" called 
> PCI_ACCESS_DEVICE. 6050 does not have this might this be the reason why 
> 6050 is the only machine of these that boots? And if someone knows what 
> is this thing pls tell me too :)

There still have two possibilities. The first would be that ther's a bug
in the info given by Open Hack'Ware then OS/2 loader gets confused then
crashes. The second is still the lack of hardware description in Open
Hack'Ware residual data.
You may try to hardcode a simple hardware description (just PCI with
IDE, for example) there...

-- 
J. Mayer <l_indien@magic.fr>
Never organized

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Problems with Prep IDE
  2005-04-15 23:41 ` J. Mayer
@ 2005-04-22 18:52   ` Tero Kaarlela
  2005-04-22 18:59     ` Tero Kaarlela
  0 siblings, 1 reply; 6+ messages in thread
From: Tero Kaarlela @ 2005-04-22 18:52 UTC (permalink / raw)
  To: qemu-devel

J. Mayer wrote:

>On Fri, 2005-04-15 at 23:58 +0300, Tero Kaarlela wrote:
>  
>
>>Hi,
>>
>>     I am still trying to boot OS/2 PPC edition with Qemu. Non-contiguos 
>>IO map & no support for Little-endian have been solved now thanks to J. 
>>Mayer who sent me patches to work these out. Now bootloader gives me 
>>following message:
>>
>>IBM Microkernel bootloader press enter for manual boot(enter)
>>
>>and I have following boot options to choose from:
>>
>>cdrom
>>hd
>>
>>if I try to use either one of these Qemu gives me
>>
>>outl: port= 0x0cf8   data=0x80006000
>>inl: port= 0x0cfc
>>(Bootloader continues with)
>>Invalid PCI configuration
>>Device initializion failed
>>
>>Any ideas why is this?
>>    
>>
>
>There are two problems here:
>first, the PREP PCI controller does not map its legacy ISA IO ports.
>This is a bug.
>But fixing this point is not sufficient to make the loader happy:
>it tries to access the PCI device 0x60 (96) which does not exists. Then,
>I think the lack of devices description in Open Hack'Ware residual data
>can be a good suspect for this. Or it can be that real PREP machine
>always have the IDE (or SCSI !) controller mapped as PCI device 0x60,
>but I'm very suspicious about this.
>
   Ok,

      What I have made now:

         1. Changed vendor id of PREP Pci bridge from 1011 to 1014 (ibm)
         2.  Tried booting and noticed that Bootloader did: 
pci_config_read: PCI Bridge address:10  value: 0xffffffff
         3. Found out that address 10 should have base adress in it.
         4. modified this with:

                        d->config[0x10] = 0x08
                        d->config[0x10] = 0x00
                        d->config[0x10] = 0x00
                        d->config[0x10] = 0xF0
               to be 0xF0000008

    Is this ok?(I just figured it out somehow)

       Now bootloader gives me:

        dma:command 0x24 not supported
        dma:command 0x25 not supported

   Just figuring out what these commands are....


Tero

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Problems with Prep IDE
  2005-04-22 18:52   ` Tero Kaarlela
@ 2005-04-22 18:59     ` Tero Kaarlela
  2005-04-22 20:54       ` [Qemu-devel] Problems with Prep IDE more info Tero Kaarlela
  0 siblings, 1 reply; 6+ messages in thread
From: Tero Kaarlela @ 2005-04-22 18:59 UTC (permalink / raw)
  To: qemu-devel

>   Ok,
>
>      What I have made now:
>
>         1. Changed vendor id of PREP Pci bridge from 1011 to 1014 (ibm)
>         2.  Tried booting and noticed that Bootloader did: 
> pci_config_read: PCI Bridge address:10  value: 0xffffffff
>         3. Found out that address 10 should have base adress in it.
>         4. modified this with:
>
> >>                       d->config[0x10] = 0x08
> >>                       d->config[0x11] = 0x00
> >>                       d->config[0x12] = 0x00
> >>                       d->config[0x13] = 0xF0
>               to be 0xF0000008

Sorry about mistake in first...

>
>    Is this ok?(I just figured it out somehow)
>
>       Now bootloader gives me:
>
>        dma:command 0x24 not supported
>        dma:command 0x25 not supported
>
>   Just figuring out what these commands are....
>
>
> Tero
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Problems with Prep IDE more info
  2005-04-22 18:59     ` Tero Kaarlela
@ 2005-04-22 20:54       ` Tero Kaarlela
  2005-04-22 22:59         ` Hetz Ben Hamo
  0 siblings, 1 reply; 6+ messages in thread
From: Tero Kaarlela @ 2005-04-22 20:54 UTC (permalink / raw)
  To: qemu-devel

>
>
>>
>>    Is this ok?(I just figured it out somehow)
>>
>>       Now bootloader gives me:
>>
>>        dma:command 0x24 not supported
>>        dma:command 0x25 not supported
>>
>>   Just figuring out what these commands are....
>


Turned on #debug DMA and here is the whole deal:

           command: 0x24 not supported
           write_cont: nport 0x0009, ichan=0
           read_cont: nport 0x000c, port=0x0c, valu=0000
           command:0x25 not supported
           write_cont: nport 0x0009, ichan=0
           read_cont: nport 0x000c, port=0x0c, valu=0000
           command:0x26 not supported
           unknown device....

 What is it trying to do and what goes wrong?

Tero

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Problems with Prep IDE more info
  2005-04-22 20:54       ` [Qemu-devel] Problems with Prep IDE more info Tero Kaarlela
@ 2005-04-22 22:59         ` Hetz Ben Hamo
  0 siblings, 0 replies; 6+ messages in thread
From: Hetz Ben Hamo @ 2005-04-22 22:59 UTC (permalink / raw)
  To: qemu-devel

Could this LXR refernece be helpful?

http://fxr.watson.org/fxr/source/sys/ata.h

Thanks,
Hetz

On 4/22/05, Tero Kaarlela <turo.kaarlela@co.inet.fi> wrote:
> >
> >
> >>
> >>    Is this ok?(I just figured it out somehow)
> >>
> >>       Now bootloader gives me:
> >>
> >>        dma:command 0x24 not supported
> >>        dma:command 0x25 not supported
> >>
> >>   Just figuring out what these commands are....
> >
> 
> Turned on #debug DMA and here is the whole deal:
> 
>            command: 0x24 not supported
>            write_cont: nport 0x0009, ichan=0
>            read_cont: nport 0x000c, port=0x0c, valu=0000
>            command:0x25 not supported
>            write_cont: nport 0x0009, ichan=0
>            read_cont: nport 0x000c, port=0x0c, valu=0000
>            command:0x26 not supported
>            unknown device....
> 
>  What is it trying to do and what goes wrong?
> 
> Tero
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-04-22 23:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-15 20:58 [Qemu-devel] Problems with Prep IDE Tero Kaarlela
2005-04-15 23:41 ` J. Mayer
2005-04-22 18:52   ` Tero Kaarlela
2005-04-22 18:59     ` Tero Kaarlela
2005-04-22 20:54       ` [Qemu-devel] Problems with Prep IDE more info Tero Kaarlela
2005-04-22 22:59         ` Hetz Ben Hamo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).