From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 23 16:57:53 2013 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 130F3F5D; Sat, 23 Feb 2013 16:57:53 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [188.252.31.196]) by mx1.freebsd.org (Postfix) with ESMTP id 92907878; Sat, 23 Feb 2013 16:57:51 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.6/8.14.5) with ESMTP id r1NGviTG004392; Sat, 23 Feb 2013 17:57:44 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.6/8.14.5/Submit) with ESMTP id r1NGviON004389; Sat, 23 Feb 2013 17:57:44 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sat, 23 Feb 2013 17:57:44 +0100 (CET) From: Wojciech Puchar To: Ian Lepore Subject: Re: TFTP single file kernel load In-Reply-To: <1361637752.1185.99.camel@revolution.hippie.lan> Message-ID: References: <1361637752.1185.99.camel@revolution.hippie.lan> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Sat, 23 Feb 2013 17:57:44 +0100 (CET) Cc: freebsd-hackers@FreeBSD.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2013 16:57:53 -0000 > > Basically what needs doing is to link the kernel with a modified > ldscript that doesn't add space for the program headers, and then run > the output of that link through "objcopy -S -O binary" to create a > kernel.bin file. That file can be directly loaded to the address it was > linked for, and a jump to the load address launches the kernel. is btxld(8) a tool i have to use after making kernel.bin file? what should i use for -b and -l > Whether the kernel runs properly when launched that way is a different > question. An arm kernel will run that way because we haven't had the > luxury of loader(8) in the arm world until recently. The x86 kernel may > expect values in the environment that the loader obtained from the bios. it can be loaded without loader for now - if you press a key before loader(8) is loaded and enter kernel image. at least it was like that.