Skip to contentSkip to conversation

Solaris boot

DISCUSSION Alexander Eremin 3 participants 3 messages Jul 17, 2008

lore
Share & tools
lore
#0 lore raw

Hi all,
Any way to boot Solaris from grub2? I mean: don't use something like rootnoverify and makeactive
but write at the end of linux menu.lst something like

root (hd1,1)
kernel /boot/platform/x86/kernel/unix
module /platform/x86/kernel/boot_archive

Can grub2 load solaris 32 kernel?

Signature · 2 lines
Best regards,
Alexander
#1 lore raw
Quoted 8 lines · Alexander Eremin

Hi all,
Any way to boot Solaris from grub2? I mean: don't use something like rootnoverify and makeactive
but write at the end of linux menu.lst something like

root (hd1,1)
kernel /boot/platform/x86/kernel/unix
module /platform/x86/kernel/boot_archive

That's grub1 syntax. In grub2 you have to specify the kernel type when loading, i.e.: "linux /boot/vmlinuz" or "multiboot /boot/mach.gz".

Quoted 2 lines

Can grub2 load solaris 32 kernel?

Is Solaris Multiboot-compatible? If not, you can try to use its own bootloader through the `chainloader' command. However, if grub1 could load it with "kernel", either there was a specific loader for it or the Solaris kernel was compatible with one of the grub1 loaders: try with all the grub2 loaders (multiboot, bsd, linux) and only then resort to chainloader.

You (or someone else) can also try to either port the grub1 Solaris loader (if it exists) or write a new grub2 loader for it but I don't know if the latter would be possible without specs. Besides, in order for such a new loader to be incorporable to the "official" grub2, the development process must follow some guidelines in order to avoid future legal problems, like "no reverse engineering" (maybe clean room techniques are OK, but I don't know the FSF policy) and so on.

#2 lore raw
Quoted 3 lines · Javier Martín
Quoted 1 line

Can grub2 load solaris 32 kernel?

Is Solaris Multiboot-compatible? If not, you can try to use its own bootloader through the `chainloader' command. However, if grub1 could

It's multiboot compatible, but with a broken multiboot header (defines a.out kludge while being ELF), I reported that issue, no idea when they catch up.

And when this is worked around (I patched out the test in grub2), it still doesn't run, maybe because some tables are missing in grub2's multiboot implementation (e820? no idea, didn't investigate further)

Regards,
Patrick Georgi