qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Tero Kaarlela <turo.kaarlela@co.inet.fi>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] OS/2 PPC booting making some progress(sorry this has correct entry point :)
Date: Sat, 21 May 2005 13:02:24 +0300	[thread overview]
Message-ID: <428F0730.8020603@co.inet.fi> (raw)
In-Reply-To: 428EF097.8070704@co.inet.fi

>  
> Hi,
>
>    I have made some modifications to PPC PREP booting to get OS/2 
> bootloader working. Now I hopefully have made some progress (it isn't 
> working yet but has gone forward on my opinion). So I have few 
> questions at the moment:
>
>   1. on debug 1. Is the opcode really invalid or just unsupported one?
>   2. on debug 2. What is this unaffected IO port 838 it tries to read 
> & write ?
>   3. Might that unsupported ioport prevent booting?
>   1.   Booted with qemu-system-ppc -dummy-net -nographic -prep -cdrom 
> os2.iso
>      (and giving boot device ide_cdrom0)
>
> Boot: 00ec0500 47ff0800 00000000 00000000
> Bootinfos at : 200000
>
> Now boot it... (0)
>
> stack: 5bfff70 malloc_base: 0 0x05800000 0x06000000
> PREP boot... 15ea00 100000
> inb: port=0x0010
> ERROR: unaffected IO port: 0814 read
> Entering Little Endian mode...
> outb: port=0x0280 data=0xc0
>
> IBM Microkernel Bootloader (Power PC, Little Endian)
> Press ENTER for manual boot...........
> [PN_BOOT_DEV="automatic"] ide_cdrom0  (gave this device manually)  
> ide: read addr=0x1f7 val=00
> IDE: write addr=0x1f6 val=0xa0
> IDE: write addr=0x1f7 val=0xa1
> ide: CMD=a1
> ide: read addr=0x1f7 val=00
> Device initialization failed
> invalid/unsupported opcode: 02 - 04 - 01 (08000048) 0x00000300 0
> invalid/unsupported opcode: 02 - 04 - 01 (08000048) 0x00000700 0
>
> Crashed!!
>
> 2. This works better(because ide_cdrom is actully there)
> 2. Booted with qemu-system-ppc -dummy-net -nographic -prep -cdrom os2.iso
> (and giving boot device ide_cdrom2 + filesystem FAT_HARDDISK)
>
> Boot: 00ec0500 47ff0800 00000000 00000000
> Bootinfos at : 200000
>
> Now boot it... (0)
>
> stack: 5bfff70 malloc_base: 0 0x05800000 0x06000000
> PREP boot... 15ea00 100000
> inb: port=0x0010
> ERROR: unaffected IO port: 0814 read
> Entering Little Endian mode...
> outb: port=0x0280 data=0xc0
>
> IBM Microkernel Bootloader (Power PC, Little Endian)
> Press ENTER for manual boot...........
> [PN_BOOT_DEV="automatic"] ide_cdrom2 (gave this manually)
> ide: read addr=0x177 val=40
> IDE: write addr=0x176 val=0xa0
> IDE: write addr=0x177 val=0xa1
> ide: CMD=a1
> ide: read addr=0x177 val=48
> dma: read_chan 0x4 -> 14336
> dma: read_chan 0x4 -> 14336
> ide: write control addr=0x376 val=08
> ERROR: unaffected IO port: 0838 read
> ERROR: unaffected IO port write: 0838 => fd
> ide: read addr=0x177 val=40
> ide: read addr=0x177 val=40
> IDE: write addr=0x171 val=0x00
> IDE: write addr=0x174 val=0x00
> IDE: write addr=0x175 val=0x08
> IDE: write addr=0x176 val=0xa0
> IDE: write addr=0x177 val=0xa0
> ide: CMD=a0
> ide: read addr=0x177 val=48
> ide: read addr=0x172 val=01
> ide: read addr=0x177 val=48
> ATAPI limit=0x800 packet: 00 00 00 00 00 00 00 00 00 00 00 00
> ERROR: unaffected IO port: 0838 read
> ide: read addr=0x177 val=40
> ERROR: unaffected IO port: 0838 read
> ERROR: unaffected IO port write: 0838 => fd
> ide: read addr=0x172 val=03
> [PN_BOOT_FS="automatic"] FAT_HARDDISK (gave this manually but should 
> be automatically regognized other option is FAT_FLOPPY)
> ide: read addr=0x177 val=40
> ide: read addr=0x177 val=40
> IDE: write addr=0x171 val=0x00
> IDE: write addr=0x174 val=0x00
> IDE: write addr=0x175 val=0x08
> IDE: write addr=0x176 val=0xa0
> IDE: write addr=0x177 val=0xa0
> ide: CMD=a0
> ide: read addr=0x177 val=48
> ide: read addr=0x172 val=01
> ide: read addr=0x177 val=48
> ATAPI limit=0x800 packet: 28 00 00 00 00 00 00 00 01 00 00 00
> read: LBA=0 nb_sectors=1
> reply: tx_size=2048 elem_tx_size=0 index=2048
> byte_count_limit=2048
> status=0x48
> ERROR: unaffected IO port: 0838 read
> ide: read addr=0x177 val=48
> ERROR: unaffected IO port: 0838 read
> ERROR: unaffected IO port write: 0838 => fd
> ide: read addr=0x172 val=02
> ide: read addr=0x174 val=00
> ide: read addr=0x175 val=08
> reply: tx_size=0 elem_tx_size=0 index=2048
> status=0x40
> ERROR: unaffected IO port: 0838 read
> ide: read addr=0x177 val=40
> ERROR: unaffected IO port: 0838 read
> ERROR: unaffected IO port write: 0838 => fd
> ide: read addr=0x172 val=03
> we did NOT read the MBR!
>
> Bootloader:  *** Reserved Exception (0x0) ***
>
> srr0 = 0x15f068
> srr1 = 0x2031
> dsisr= 0x0
> dar  = 0x0
>
> Bootloader:  Entering infinite loop.
>
> Tero
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>

  reply	other threads:[~2005-05-21 10:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-21  8:25 [Qemu-devel] OS/2 PPC booting making some progress Tero Kaarlela
2005-05-21 10:02 ` Tero Kaarlela [this message]
2005-05-21 11:57 ` J. Mayer
2005-05-22 13:49   ` Tero Kaarlela
2005-05-23 10:47     ` J. Mayer
2005-05-23 10:54     ` J. Mayer

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=428F0730.8020603@co.inet.fi \
    --to=turo.kaarlela@co.inet.fi \
    --cc=qemu-devel@nongnu.org \
    /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 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).