Re: OS/2 PPC booting making some progress

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: OS/2 PPC booting making some progress

Tero Kaarlela
J. Mayer wrote:

>>   2. on debug 2. What is this unaffected IO port 838 it tries to read &
>>write ?
>>    
>>
>
>This port is not documented in the PREP specification. You should check
>in the Linux kernel to see if this port seems important. Or you may take
>a look to Motorola PowerStack documentation: those boards are well
>documented and OS/2 is supposed to know how to boot on it.
>  
>

  Hmmm I found following info from OS/2 stanza files(files describing
hardware to bootloader:

    rdf.stz

  planar_ide_0:
        dev_class       = IDE
        adap_name       = "IDE Disk Controller"
        setting         = "io:ide_int_reg:838"  <=
        setting         = "io:ide_ctrl:3f6-3f7"
        setting         = "io:ide_cmd:1f0-1f7"
        setting         = "irq:ide_irq:d"
        setting         = "arb:ide_arb:6"
        setting         = "intrtn:ide_rtn:0"

So port 0838 is ide_int_reg

and from ppc_info.stz:

#Delmar/SouthWind
6050:
        name            = "IBM Delmar / South Wind PowerPC Platform"
        pci_config_space        = 0x80800000
        bus             = isa:4
        bus             = pci:4
        built_in        = planar_kbd
        built_in        = planar_mouse
        built_in        = planar_floppy
        built_in        = ppc_planar_parallel
        built_in        = COM1
        built_in        = COM2
        built_in        = CMOS_type1
        built_in        = planar_ide_0
        built_in        = planar_ide_1

So my guess is that OS/2 ppc reads machine configuration from these
files instead of residual data.

>  
>
>>   3. Might that unsupported ioport prevent booting?
>>    
>>
>
>Can be possible...
>Have to check the code that uses that I/O port...
>
>[...]
>
>  
>
 Hmmm... i succeeded to make it go further with following options:

   boot-device ide_cdrom2
   boot-fs cdrom
then it works and loads boot.cfg from cd-image
shows all lines from boot.cfg (and I have option to uncomment/change all
these)
loads kernel & device drivers into memory(as defined in boot.cfg)
but after boot.cfg has been completely read and real boot should start
it gives me invalid/unsupported opcodes again.

Tero



_______________________________________________
Qemu-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Reply | Threaded
Open this post in threaded view
|

Re: OS/2 PPC booting making some progress

J. Mayer
On Sun, 2005-05-22 at 16:49 +0300, Tero Kaarlela wrote:

> J. Mayer wrote:
>
> >>   2. on debug 2. What is this unaffected IO port 838 it tries to read &
> >>write ?
> >>    
> >>
> >
> >This port is not documented in the PREP specification. You should check
> >in the Linux kernel to see if this port seems important. Or you may take
> >a look to Motorola PowerStack documentation: those boards are well
> >documented and OS/2 is supposed to know how to boot on it.
> >  
> >
>
>   Hmmm I found following info from OS/2 stanza files(files describing
> hardware to bootloader:
>
>     rdf.stz
>
>   planar_ide_0:
>         dev_class       = IDE
>         adap_name       = "IDE Disk Controller"
>         setting         = "io:ide_int_reg:838"  <=

This gives no information of what this register is.
Maybe those informations are used if residual data are not correct
(which is the case with Open Hack'Ware: there are no devices
descriptions).
Or maybe you should try to tell OS/2 the platform is one that support
only ISA IDE.

--
J. Mayer <[hidden email]>
Never organized



_______________________________________________
Qemu-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Reply | Threaded
Open this post in threaded view
|

Re: OS/2 PPC booting making some progress

J. Mayer
In reply to this post by Tero Kaarlela
On Sun, 2005-05-22 at 16:49 +0300, Tero Kaarlela wrote:

> J. Mayer wrote:
>
> >>   2. on debug 2. What is this unaffected IO port 838 it tries to read &
> >>write ?
> >>    
> >>
> >
> >This port is not documented in the PREP specification. You should check
> >in the Linux kernel to see if this port seems important. Or you may take
> >a look to Motorola PowerStack documentation: those boards are well
> >documented and OS/2 is supposed to know how to boot on it.
> >  
> >
>
>   Hmmm I found following info from OS/2 stanza files(files describing
> hardware to bootloader:
>
>     rdf.stz
>
>   planar_ide_0:
>         dev_class       = IDE
>         adap_name       = "IDE Disk Controller"
>         setting         = "io:ide_int_reg:838"  <=

Hum, something else I forgot in my previous message:
I took a look into residual data of a real PREP machine (ie IBM 7420)
and ioport 838 is used for Power Management as you can see. Then, I
don't know what is really in use in PREP machine that OS/2 can boot on.

ResidualLength =
27148                                                          
Version =
0                                                                    
Revision =
1                                                                    
EC =
0                                                                          
                                                                               
VPD                                                                            
        PrintableModel =
IBM                                                    
        FirmwareSupplier =
IBMFirmware                                          
        FirmwareSupports =
0x00000fc5                                          
                :
Conventional                                                  
                :
Diagnostics                                                  
                :
Hex41                                                        
                :
FAT                                                          
                :
ISO9660                                                      
                :
SCSI_InitiatorID_Override                                    
                :
Tape_Boot                                                    
                :
FW_Boot_Path                                                  
        NvramSize =
8192                                                        
        NumSIMMSlots =
6                                                        
        EndianSwitchMethod =
UsePort92                                          
        SpreadIOMethod =
Unknown                                                
        SmpIar =
0                                                              
        RAMErrLogOffset =
0                                                    
        ProcessorHz =
232649620                                                
        ProcessorBusHz =
66471369                                              
        TimeBaseDivisor =
4000                                                  
        WordWidth =
32                                                          
        PageSize =
4096                                                        
        CoherenceBlockSize =
32                                                
        GranuleSize =
32                                                        
        L1 Cache
variables                                                      
                CacheSize =
64                                                  
                CacheAttrib = Split
cache                                      
                CacheAssoc =
0                                                  
                CacheLineSize =
0                                              
[...]

13:                                                                            

DEVICE_ID                                                              
                                Flags =
0x00002800                              
                        :
Static                                                
                        :
Integrated                                            
                BaseType = SystemPeripheral
(8)                                
                SubType = PowerManagement
(6)                                  
                Interface = GeneralPowerManagement
(0)                          

BUS_ACCESS                                                              
                info0 =
0                                                      
                info1 =
0                                                      
        AllocatedOffset  =
0x0000068e                                          

LargeVendorItem:                                                
                        0e 02 00 0e
00                                          
                IOPort:
0x82a-0x82b                                            
                IOPort:
0x838                                                  
                IOPort:
0x860                                                  
                IOPort:
0x862                                                  
                SmallVendorItem:
IBM                                            
                        01 24 4d 01
83                                          

LargeVendorItem:                                                
                        08 51 1a 00
00                                          
        PossibleOffset   =
0x000006c5                                          
        CompatibleOffset =
0x000006c6                                          


--
J. Mayer <[hidden email]>
Never organized



_______________________________________________
Qemu-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/qemu-devel