From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DZR0U-0003f0-4L for qemu-devel@nongnu.org; Sat, 21 May 2005 06:14:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DZR0R-0003bw-Cq for qemu-devel@nongnu.org; Sat, 21 May 2005 06:14:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DZR0O-0003KC-3M for qemu-devel@nongnu.org; Sat, 21 May 2005 06:14:52 -0400 Received: from [194.251.242.241] (helo=fep16.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DZQx1-0000cg-Fp for qemu-devel@nongnu.org; Sat, 21 May 2005 06:11:23 -0400 Received: from co.inet.fi ([80.220.124.133]) by fep16.inet.fi with ESMTP id <20050521100225.UNGQ49.fep16.inet.fi@co.inet.fi> for ; Sat, 21 May 2005 13:02:25 +0300 Message-ID: <428F0730.8020603@co.inet.fi> Date: Sat, 21 May 2005 13:02:24 +0300 From: Tero Kaarlela MIME-Version: 1.0 Subject: Re: [Qemu-devel] OS/2 PPC booting making some progress(sorry this has correct entry point :) References: <428EF097.8070704@co.inet.fi> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > > 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 >