[OpenBIOS] How does one use the partition access functions
Laurent Vivier
Laurent at vivier.eu
Mon Feb 9 19:57:29 CET 2009
Le 9 févr. 09 à 19:44, Lennart Sorensen a écrit :
> On Mon, Feb 09, 2009 at 07:11:26PM +0100, Laurent Vivier wrote:
>> I think you don't have to do this from qemu/main.c but from modules/
>> mac-parts.c.
>>
>> In m acparts_open(), if partnum is missing, you have to search for a
>> bootable partition.
>
> I thought qemu/main.c was in charge of doing the boot selection.
> Have I
> misunderstood something there? I am finding no way to get mac
> specific
> partition data from qemu/main.c though.
>
> Looking at macparts_open, it dpes appear one can pass in a partition
> to
> open, but I don't see how that has anything to do with making it
> select
> a partition to boot from, or even doing this boot.
>
"boot hd:%BOOT" should boot from the first bootable partition by
loading the boot sector, given by pmLgBootStart. (see specification I
gave).
> After all I want to detect a mac partition table, check if it has a
> bootable partition flagged, and then check the boot parameters of that
> partition, and load the specified boot code and execute it if
> found. I
> just can't quite tell yet if qemu/main.c is in charge of looking at
> partitions and deciding what to boot, or if the act of doing an open
> on
> the hd is what should cause booting to happen.
Perhaps you should also look at "load" command.
Regards,
Laurent
More information about the OpenBIOS
mailing list