From: Laurent Vivier <Laurent@vivier.eu>
To: The OpenBIOS Mailinglist <openbios@openbios.org>
Cc: Alexander Graf <alex@csgraf.de>, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [OpenBIOS] QEMU OpenBIOS booting?
Date: Sun, 19 Apr 2009 22:21:04 +0200 [thread overview]
Message-ID: <1240172464.5659.22.camel@Quad> (raw)
In-Reply-To: <f488382f0904191301o94b5d96ha82406cf13e0bc26@mail.gmail.com>
Le dimanche 19 avril 2009 à 13:01 -0700, Steven Noonan a écrit :
> On Sun, Apr 19, 2009 at 12:47 PM, Laurent Vivier <Laurent@lvivier.info> wrote:
> > Le dimanche 19 avril 2009 à 11:59 -0700, Steven Noonan a écrit :
> >> On Sun, Apr 19, 2009 at 1:24 AM, Laurent Vivier <Laurent@lvivier.info> wrote:
> >> > Le dimanche 19 avril 2009 à 00:50 -0700, Steven Noonan a écrit :
> >> >> On Tue, Apr 14, 2009 at 10:46 PM, Steven Noonan <steven@uplinklabs.net> wrote:
> >> >> > On Sun, Apr 12, 2009 at 1:39 AM, Laurent Vivier <Laurent@lvivier.info> wrote:
> >> >> >> OpenBIOS is not able to boot MacOS X.
> >> >> >
> >> >> > Well, that's a silly limitation. Is there a reason this isn't
> >> >> > implemented? I see that the Mac-on-Linux OpenBIOS version has such
> >> >> > support, so it seems strange that the QEMU version does not.
> >> >>
> >> >> I don't know if anyone here is actually interested (this list seems
> >> >> -very- quiet), but...
> >> >
> >> > Hi,
> >> >
> >> >> I've been hacking at OpenBIOS for a bit, and I got it to properly read
> >> >> Mac OS X discs (it kept failing because it would hit an Apple
> >> >> Partition Map header instead of an HFS+ filesystem header). I'm
> >> >> working on adding an XCOFF loader, too, so it should be able to boot
> >> >> Mac OS X soon.
> >> >
> >> > You can copy it from OpenHackWare.
> >> > I made some tests and it seems to have some memory conflicts between
> >> > MacOS kernel and OpenBIOS.
> >
> > In fact what I have is a Mach-O loader which load mach_kernel from "/".
> >
> >> > Good Luck.
> >> >
> >>
> >> Two more pre-XCOFF loader commits up:
> >> http://github.com/tycho/openbios/commit/e43daa3447b5ce4a2b05b2f32882e49891156200
> >> http://github.com/tycho/openbios/commit/7023b78a10f5632fd08d4749615efd3e73ab1036
> >
> > Seems good but do you really need to check for embedded XCOFF in this
> > patch and are you really able to execute the boot-script ?
>
> Oh, I should say that it does _execute_ the boot-script, but I don't
> know if it's properly handled by the Forth interpreter. Any idea what
> the boot-script you cite is supposed to actually _do_ (I gave up
> trying to read Forth at around 3 AM last night)?
I think the script seeks in itself the address of the embedded XCOFF
(after "-BOOT"), computes it size, copies it to load-base, initializes
it ("init-program") and executes it ("go").
> >
> > In Panther Install CD, BootX is:
> >
> > <CHRP-BOOT>
> > <COMPATIBLE>
> > MacRISC MacRISC3 MacRISC4
> > </COMPATIBLE>
> > <DESCRIPTION>
> > Boot Loader for Mac OS X.
> > </DESCRIPTION>
> > <OS-BADGE-ICONS>
> > </OS-BADGE-ICONS>
> > <BOOT-SCRIPT>
> > ...
> > <BOOT-SCRIPT>
> > load-base
> > begin
> > dup 6 " </CHRP" $= if
> > 6 + dup 6 " -BOOT>" $= 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
> > </BOOT-SCRIPT>
> > </CHRP-BOOT>
> > [...XCOFF HERE]
> >
> >
> > Regards,
> > Laurent
> >
> >
> > --
> > OpenBIOS http://openbios.org/
> > Mailinglist: http://lists.openbios.org/mailman/listinfo
> > Free your System - May the Forth be with you
>
next prev parent reply other threads:[~2009-04-19 20:21 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
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 [this message]
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=1240172464.5659.22.camel@Quad \
--to=laurent@vivier.eu \
--cc=alex@csgraf.de \
--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).