Date: Tue, 10 Apr 2007 10:27:27 -0700 From: Peter Grehan <grehan@freebsd.org> To: Philip Schulz <ph.schulz@gmx.de> Cc: freebsd-ppc@freebsd.org Subject: Re: Help regarding the second stage loader Message-ID: <461BC8FF.1010506@freebsd.org> In-Reply-To: <461BBC5A.80005@gmx.de> References: <4084.50499.qm@web8407.mail.in.yahoo.com> <461BBC5A.80005@gmx.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Philip, > You can load and start the kernel directly from Open > Firmware since it's an ELF file. However, that only works if the kernel > resides on a filesystem the Open Firmware implementation understands and > if you don't need to set any boot flags. Unfortunately, the > implementation found on Apples computers does not know UFS(2). So a > different approach (and I think that one is recommended) is to start the > loader which will be able load the kernel, also from the / filesystem, > and set boot flags (verbose boot, boot to single user, etc.). That's right. Booting the kernel directly from OpenFirmware happens to work, mainly because that's the boot path used with gdb/psim. The big downside is that there is no metadata, so things like boot flags, the root mount, modules, ramdisks and other goodies enabled by the loader can't be used. > So in short: There is no second stage bootloader, only the loader and > the kernel. Someone please correct me if I'm wrong. Depends on terminology :) If you count OpenFirmware as the first-stage bootloader then the FreeBSD loader is a second-stage loader, though it's the first in the FreeBSD boot process. later, Peter.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?461BC8FF.1010506>