From owner-freebsd-stable@FreeBSD.ORG Fri Oct 27 00:54:20 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4257616A403; Fri, 27 Oct 2006 00:54:20 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DF1A43D5A; Fri, 27 Oct 2006 00:54:15 +0000 (GMT) (envelope-from bms@FreeBSD.org) Received: from db2.internal (db2.internal [10.202.2.12]) by frontend1.messagingengine.com (Postfix) with ESMTP id BC09DDBA45D; Thu, 26 Oct 2006 20:54:13 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by db2.internal (MEProxy); Thu, 26 Oct 2006 20:54:16 -0400 X-Sasl-enc: OTsgEpk/9JFEpszU/0FlbaxOSfCoMiLx3Hy6n+myC/vo 1161910456 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 9767911D97; Thu, 26 Oct 2006 20:54:14 -0400 (EDT) Message-ID: <454158B3.4040406@FreeBSD.org> Date: Fri, 27 Oct 2006 01:54:11 +0100 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.5 (X11/20060825) MIME-Version: 1.0 To: Ruslan Ermilov References: <3A8131D4-881E-4873-A682-543A1A88C063@lassitu.de> <20060911180915.GB33304@lor.one-eyed-alien.net> <20061026113922.GA932@rambler-co.ru> In-Reply-To: <20061026113922.GA932@rambler-co.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, Stefan Bethke , John Baldwin , Bruce Evans Subject: Re: Still possible to directly boot without loader? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Oct 2006 00:54:20 -0000 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