From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 16 18:26:51 2009 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22F5410656C0 for ; Mon, 16 Feb 2009 18:26:51 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 40B3F8FC1A for ; Mon, 16 Feb 2009 18:26:49 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id UAA09898 for ; Mon, 16 Feb 2009 20:26:48 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <4999AFE7.9070001@icyb.net.ua> Date: Mon, 16 Feb 2009 20:26:47 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.19 (X11/20090110) MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: booting/loading a tool, not kernel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2009 18:26:51 -0000 I'd like to add an entry to my loader menu to load/execute memtest86 instead of a kernel. It is built as standalone ELF executable, of course. Currently I go to a loader prompt and do: > unload > load /boot/memtest86 > boot Where should I look to get this into the forth code? Suppose I want to extend this approach. What would be a good name for subdirectory to put such tools? What would be a good way to add a sub-menu for such tools? Also, my current approach means that loader still first loads a standard kernel and its modules and then replaces them with memetest86. How to get to a loader menu without pre-loading anything? -- Andriy Gapon