Joey Korkames wrote:
Hmm, FreeBSD seems to choke when trying to load the grub-bootstrapped
mfsroot.gz (as the root device - haven't tried loading without rooting
from it)...
Thank you for the testing. Can you define "choke" more exactly?
This is a custom mfsroot, booted like so:
menuentry "FreeBSD 7.1-STABLE amd64" {
freebsd /osstore/STAGE2/FREEBSD/amd64/kernel.gz Dh
freebsd_loadenv /osstore/STAGE2/FREEBSD/amd64/device.hints
freebsd_module /osstore/STAGE2/FREEBSD/amd64/mfsroot.gz type=mfs_root
set FreeBSD.vfs.root.mountfrom=ufs:/dev/md0
}
perhaps I'll try with the Sysinstall floppy's mfsroot - it might be a
little smaller.
PS. A correction for that last patch:
-MOSTLYCLEANFILES += bsd_mod-loader_i386_bsd.d bsd_mod-loader_i386_bsd.d
+MOSTLYCLEANFILES += bsd_mod-loader_i386_bsd.d
bsd_mod-loader_i386_bsd_helper.d
Just run commands I gave you. You also need ruby to regenerate all these
autogenerated files.
Thanks
joey
Joey Korkames writes:
Figured it out,
s/multiboot_mod-loader_i386_multiboot_helper/bsd_mod-loader_i386_bsd_helper/
and bingo!
Worked ion both Xen HVM and on a real amd64 box (over PXE)
Yay GRUB2 and its devs!
-joey
Joey Korkames writes:
I can't make grub2 build with phcoder's bsd64.diff. My guess it is
beacuse conf/i386.mk is missing stuff related to
loader/i386/bsd_helper.S $(loader/i386/bsd_helper.S_DEPENDENCIES)?,
but I wouldn't how or where to add it in.
phcoder writes:
Bean kindly allowed me to mess with this patch. So here comes an
improved version. I moved helpers out of the kernels. Because of how
FreeBSD expects the initial virtual memory mapping only first GB of
physical memory is accessible so it was required to use of
trampoline technique.
------------------------------------------------------------------------
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
--
Regards
Vladimir 'phcoder' Serbinenko
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel