DragonFly BSD
DragonFly kernel List (threaded) for 2004-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Booting problem

From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Sat, 14 Aug 2004 17:31:31 +0200

On Sat, Aug 14, 2004 at 07:17:54PM +0400, Rakhesh Sasidharan wrote:
> Two questions still though: (1) How did this work? As in, I always
> assumed (mistakenly?) that the kernel had something special about it and
> so one couldn't pass any other file as a kernel. And now that I am able
> to pass off the loader file as a kernel, either the loader is special or
> there's nothing special about the kernel ... (2) Why didn't my previous
> attempt at chainloading work anyways? Is it not supposed to work -- was
> I doing things wrong? :-/

The kernel command tells GRUB to use the normal executable magic. It expects
an ELF image and depending on the OS chooses a strategy to run it. Because
/boot/loader and /kernel have the same type, this works fine.

Chainloading does load a single 512 byte sector and jumps to the start, which
of course is the ELF cookie and doesn't work therefore.

I thought you already read the GRUB docu, which descripted how to load
FreeBSD using kernel :) Otherwise I would have mentioned it directly.

> Am finally able to boot into DragonFly using GRUB! Yipee!! 

Have fun :)


> Thanks,
> Rakhesh

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]