Jürgen Keil wrote:
Do you know where I can obtain the source code for the OpenSolaris version of GRUB and whether it can be compiled under Linux?Check this page: http://hub.opensolaris.org/bin/view/downloads/on Solaris' version of GRUB is included in ONNV sources, description for pulling the sources from a a mercurial repository can be found here: http://hub.opensolaris.org/bin/view/Project+onnv/ You can also download a tar bundle with the onnv sources, for OpenSolaris 2009.06 that should be onnv build b111b: http://dlc.sun.com/osol/on/downloads/b111b/ http://dlc.sun.com/osol/on/downloads/ The supported way to build opensolaris b111 source was to compile it under SX:CE (using a build around b111); but SX:CE has been discontinued. Maybe you could try to install a current development build of opensolaris, and check if the grub problem is reproducible on the current development release? The current development release (b134) can be compiled on current opensolaris. http://www.genunix.org/ http://www.genunix.org/distributions/indiana/osol-dev-134-x86.iso OpenSolaris sources can't be compiled on Linux.The GRUB in OpenSolaris might be compilable on Linux, but you probably have to contruct your own set of Makefiles. It's probably easier to install an OpenSolaris into a virtualbox guest machine, and setup that vbox client to compile opensolaris.
Thanks for the pointers to source code. I decided to first give it a shot under Linux and managed to compile GRUB pretty easily. To get rid of compilation errors, I just had to add #include<stdint.h> and typedef caddr_t as char*.
Interestingly, this newly compiled version of GRUB shell, which I next started after booting from a Linux LiveCD, can see and read the ZFS partition. When I use the 'root (hd1,2,a)' command as you suggested it doesn't freeze ('root (hd1,2)' reports unknown filesystem type, but I guess that's ok). Unfortunately, it fails in other (worse? ways - the 'install' spits out "Error 15 File Not Found", whether invoked by 'setup' or manually, even though I can display all the referenced files using 'cat'. Furthermore, although I can use 'configfile' to make it read menu.lst from the OpenSolaris partition and correctly display the boot menu, actually trying to boot results in a Segmentation fault (and I don't have gdb on the Linux LiveCD). I realize that this whole approach is not supported, so I will probably not dig deeper.
I am next going to try the tip with the primary vs. secondary disk from your other post, that is, disconnect the IDE cable physically instead of just making BIOS boot from the second disk.
Best regards, Jan Ploski _______________________________________________ install-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/install-discuss
