qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Steven Noonan <steven@uplinklabs.net>
To: The OpenBIOS Mailinglist <openbios@openbios.org>,
	Laurent Vivier <laurent@lvivier.info>
Cc: Alexander Graf <alex@csgraf.de>, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [OpenBIOS] QEMU OpenBIOS booting?
Date: Sun, 19 Apr 2009 20:50:30 -0700	[thread overview]
Message-ID: <f488382f0904192050g6f2605a5oaa7d73509895fcd5@mail.gmail.com> (raw)
In-Reply-To: <f488382f0904192027s6e87a30cv68262da4ca46bfdc@mail.gmail.com>

On Sun, Apr 19, 2009 at 8:27 PM, Steven Noonan <steven@uplinklabs.net> wrote:
> So I decided a better idea was to keep the OpenBIOS ROM where it is
> and then instead use the location 0x06800000 for the memory
> allocations so that the 0x4000 block doesn't get smashed. It was far
> more feasible than moving where the ROM is stored, and I don't think
> anything cares about the contents of 0x06800000 to 06FFFFFF anyway.
>
> Also, the reason I was getting "invalid opcode" was because Open
> Hack'Ware's XCOFF loader didn't take into account some other unknown
> variable which PearPC accounted for. I added the necessary code to
> make that work.
>
> So now instead of an invalid opcode, we get this (which I don't know
> how to debug. it looks like a Forth exception):
>
> Alcarin:qemu steven$ make -C ppc-softmmu &&
> ppc-softmmu/qemu-system-ppc -L pc-bios -cdrom
> ~/Development/MacOSX-10.4.iso -boot d -M mac99 -nographic
> make: Nothing to be done for `all'.
>
>>> =============================================================
>>> OpenBIOS 1.0 [Apr 20 2009 03:23]
>>> Configuration device id QEMU version 1 machine id 1
>>> CPUs: 1
>>> Memory: 128M
>>> UUID: 00000000-0000-0000-0000-000000000000
>>> CPU type PowerPC,G4
> Welcome to OpenBIOS v1.0 built on Apr 20 2009 03:23
>
>>> YABOOT - yaboot_startup: Entering boot, no path
>>> CHRP - try_chrp_script: Trying cd:0,ppc\bootinfo.txt
>>> MAC-PARTS: macparts_probe 4552 ?= 4552
>>> MAC-PARTS: macparts_open 0
>>> MAC-PARTS: macparts_get_info 0 2832209920
>>> MAC-PARTS: macparts_block_size = 200
>>> ELF - try_chrp_script: Can't open cd:0,ppc\bootinfo.txt
>>> CHRP - try_chrp_script: Trying cd:0,System\Library\CoreServices\BootX
>>> MAC-PARTS: macparts_probe 4552 ?= 4552
>>> MAC-PARTS: macparts_open 0
>>> MAC-PARTS: macparts_get_info 0 2832209920
>>> MAC-PARTS: macparts_block_size = 200
>>> CHRP - try_chrp_script: got bootscript
>>> load-base
>>> begin
>>>  dup 6 " &lt;/CHRP" $= if
>>>   6 + dup 6 " -BOOT&gt;" $= if
>>>    8 + true
>>>   else
>>>    false
>>>   then
>>>  else
>>>   1+ false
>>>  then
>>> until
>>> ( xcoff-base )
>>> load-size over load-base - -
>>> ( xcoff-base xcoff-size )
>>> load-base swap move
>>> init-program go
>
>>> ELF - encode_bootpath: bootpath cd:0,<NULL>\ bootargs <NULL>
> $=:>> XCOFF - load_xcoff: Loading 'System\Library\CoreServices\BootX'
>>> XCOFF - load_xcoff: XCOFF file with 3 sections entry:05616ecc
>>> XCOFF - load_xcoff: Read next header (5c)
>>> XCOFF - load_xcoff: Load '.text' section from 5c d4 to 5600000 (28000)
>>> XCOFF - load_xcoff: Found entry point offset in '.text': 94112
>>> XCOFF - load_xcoff: Read next header (84)
>>> XCOFF - load_xcoff: Load '.data' section from 84 280d4 to 5628000 (2000)
>>> XCOFF - load_xcoff: Read next header (ac)
>>> XCOFF - load_xcoff: Erase '.bss' section at 562a000 size: 3a000
>>> XCOFF - load_xcoff: Found actual entry point: 05600adc
>>> ELF - transfer_control_to_elf: Starting ELF boot loader
> unselect-dev:interpret: exception -13 caught
> EXIT
> 0 > Killed
>
> Any ideas?
>

Also, my most recent changes are committed and pushed for public viewing:
http://github.com/tycho/openbios/commits/macosx-boot

Steven Noonan (3):
      ofmem: don't clobber the position that Mac OS X's kernel resides in
      kernel/internal.c: incorrectly uses %x format where %lx is needed
      qemu/main.c: load embedded XCOFF binaries in CHRP scripts

- Steven

  reply	other threads:[~2009-04-20  3:50 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <f488382f0904111806i64421ff8t68e6d34aa2990f3a@mail.gmail.com>
     [not found] ` <1239525550.5516.3.camel@Quad>
     [not found]   ` <f488382f0904142246ga431e99obe666b7fb16adb02@mail.gmail.com>
     [not found]     ` <f488382f0904190050x1d6e9562sf000e9e9763735b7@mail.gmail.com>
2009-04-19  8:03       ` [Qemu-devel] Re: [OpenBIOS] QEMU OpenBIOS booting? Andreas Färber
2009-04-19  8:28         ` Steven Noonan
2009-04-19  9:44           ` Andreas Färber
2009-04-19 17:47           ` M. Warner Losh
2009-04-19 17:56             ` Steven Noonan
2009-04-19 18:44             ` Blue Swirl
2009-04-19 23:18               ` M. Warner Losh
2009-04-20 19:39                 ` Blue Swirl
2009-04-20 21:01                   ` François Revol
2009-04-20 22:15                   ` [OpenBIOS] [Qemu-devel] " Laurent Vivier
2009-04-19  8:31         ` [Qemu-devel] Re: [OpenBIOS] " Laurent Vivier
2009-05-20 13:51           ` Dave Willoughby
2009-05-20 14:14             ` Alexander Graf
     [not found]       ` <1240129450.5671.7.camel@Quad>
2009-04-19 18:59         ` [Qemu-devel] " Steven Noonan
2009-04-19 19:23           ` [Qemu-devel] Re: [OpenBIOS] " Blue Swirl
2009-04-19 20:00             ` Steven Noonan
2009-04-19 20:08               ` Laurent Vivier
2009-04-19 20:14                 ` Steven Noonan
2009-04-19 20:24                   ` Laurent Vivier
2009-04-19 20:33                     ` Steven Noonan
2009-04-19 20:48                       ` Laurent Vivier
2009-04-19 21:02                         ` Steven Noonan
2009-04-19 21:32                           ` Steven Noonan
2009-04-19 22:28                             ` Steven Noonan
2009-04-19 22:36                               ` Steven Noonan
2009-04-20  0:15                                 ` malc
2009-04-20  3:27                                 ` Steven Noonan
2009-04-20  3:50                                   ` Steven Noonan [this message]
2009-04-26  8:13                                     ` Alexander Graf
2009-04-19 19:47           ` Laurent Vivier
2009-04-19 19:53             ` Steven Noonan
2009-04-19 20:01             ` Steven Noonan
2009-04-19 20:21               ` Laurent Vivier
2009-04-19 20:23                 ` Steven Noonan
2009-04-19 20:29                   ` Laurent Vivier
2009-04-20  9:39 Laurent Vivier

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=f488382f0904192050g6f2605a5oaa7d73509895fcd5@mail.gmail.com \
    --to=steven@uplinklabs.net \
    --cc=alex@csgraf.de \
    --cc=laurent@lvivier.info \
    --cc=openbios@openbios.org \
    --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).