Date: Fri, 27 Oct 2006 01:54:11 +0100 From: "Bruce M. Simpson" <bms@FreeBSD.org> To: Ruslan Ermilov <ru@freebsd.org> Cc: freebsd-stable@freebsd.org, Stefan Bethke <stb@lassitu.de>, John Baldwin <jhb@freebsd.org>, Bruce Evans <bde@freebsd.org> Subject: Re: Still possible to directly boot without loader? Message-ID: <454158B3.4040406@FreeBSD.org> In-Reply-To: <20061026113922.GA932@rambler-co.ru> References: <3A8131D4-881E-4873-A682-543A1A88C063@lassitu.de> <20060911180915.GB33304@lor.one-eyed-alien.net> <20061026113922.GA932@rambler-co.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Ruslan Ermilov wrote: > I've been investigating this today. Here's what I've found: > > 1) You need hints statically compiled into your kernel. > (This has been a long time requirement.) > > 2) You can only do it on i386, because boot2 only knows > about ELF32, so attempts to load ELF64 amd64 kernels > will fail. (loader(8) knows about both ELF32/64.) > Just FYI: This is indeed how I am succesfully able to boot FreeBSD via PXE with QEMU + Etherboot, which of course cannot run pxeboot because Etherboot's PXE code tries to enter protected mode on the i386. Etherboot claims to be able to interpret and pass FreeBSD kernel environment variables via PXE encapsulated DHCP options. I haven't tried emulating an amd64, however. > 3) It's currently broken even on i386; backing out > rev. 1.71 of boot2.c by jhb@ fixes this for me. > Do we even need the PAGING code in btx any more? It might make the real mode hackery less confusing to implement. Regards, BMS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?454158B3.4040406>