On Sat, Apr 18, 2009 at 1:22 AM, Joey Korkames
<address@hidden> wrote:
I have your whole patch series applied and have been trying to use this to boot the PureDarwin 9 kernel (on various x86 32 & 64 bit machines):
menuentry "PureDarwin 9 (phcoder efiemu)" {
#efiemu_loadcore /osstore/STAGE1a/grub2/efiemu32.o
efiemu_loadcore /osstore/STAGE1a/grub2/efiemu64.o
efiemu64.o works on x64 machines only. efiemu32.o works everywhere and I recommends using it.
efiemu_pnvram /osstore/STAGE2/DARWIN/pnvram_vars
efiemu_acpi
This command is eliminated in the last patch.
efiemu_prepare
set fsb=667
xnu_kernel /osstore/STAGE2/DARWIN/live/mach_kernel -v -s rd=md0
xnu_mkext /osstore/STAGE2/DARWIN/live/System/Library/Extensions.mkext
xnu_ramdisk /osstore/STAGE2/DARWIN/darwin1.img
}
where darwin files are from:
http://xref.puredarwin.org/puredarwinnano0df46.tbz2
where pnvram_vars is a blank file
You may also just do efiemu_pnvram with no file as an argument
and darwin1.img is an disk image with an hfs partition in it (still working the layout of that fs per http://www.insanelymac.com/forum/index.php?showtopic=144128&p=1023069&#entry1023069)
I haven't checked you image but notice it must be a pure filesystem
I doesn't matter if I set gfxterm/vbe_mode/fsb or not, the best I get is an immediately panic'ed kernel.
I can only see the output on a CRT monitor of a 2CPU(x4 core) EM64T server (black text on a _dark_ blue background - very hard to read).
A Xen HVM freezes up and the text (if any) is invisible, as well as on several laptop LCDs (hard to really test these platforms since can't "see" the crash).
It seems xnu_mkext works because the output differs when that line is ommited (complains abount not having an /Extensions for ACPI)
Do you have any pointers to improve the video output?
Unfortunately there is no consensus yet as to how graphics should be for now it's the following interface:
[on pc only:] vbe_mode=0xYYY # desired vga mode
The blind mode in this patch doesn't work correctly, you are likely to get a mysterious panic due to memory overwrite
I have done some improvements on the patch and will send it after few tests
-joey
_______________________________________________
Grub-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/grub-devel