From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 15 10:56:34 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9527416A474; Thu, 15 Jun 2006 10:56:34 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB4F643D46; Thu, 15 Jun 2006 10:56:33 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.6/8.13.6/Debian-1) with ESMTP id k5FAtdxi000674 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 15 Jun 2006 13:55:43 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.6/8.13.6) with ESMTP id k5FAvt2a016391; Thu, 15 Jun 2006 13:57:55 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.6/8.13.6/Submit) id k5FAvloh016390; Thu, 15 Jun 2006 13:57:47 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) To: "gs_stoller@juno.com" References: <20060615.000300.15626.148175@webmail04.nyc.untd.com> From: Giorgos Keramidas Date: Thu, 15 Jun 2006 13:57:47 +0300 In-Reply-To: <20060615.000300.15626.148175@webmail04.nyc.untd.com> (gs's message of "Thu, 15 Jun 2006 07:02:11 GMT") Message-ID: <86y7vyr8ic.fsf@gothmog.pc> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.171, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 1.23, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No X-Mailman-Approved-At: Thu, 15 Jun 2006 11:35:31 +0000 Cc: darren.pilgrim@bitfreak.org, xfb52@dial.pipex.com, parv@pair.com, rizzo@icir.org, freebsd-hackers@freebsd.org, des@des.no Subject: Re: Options for boot program 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: Thu, 15 Jun 2006 10:56:34 -0000 On Thu, 15 Jun 2006 07:02:11 GMT, "gs_stoller@juno.com" wrote: > My way of operating is to multi-task almost all the time [...] > > Hence I want the boot program to sound a bell (possibly several > times with a short interval to wait between successive times, and > proceed immediately when I respond [and not wait for a set # of bells > to be sounded]) if it is waiting for input [...] > > I realize that other users of the boot program may want it to > behave differently than I do. Consequently, each user should be able > to tell the boot program how he wants it to behave regarding these > matters, and other matters that some user may be able to describe [...] > > One way to make the boot program aware of a user's preferences > is to store these preferences (options) in the boot sector [...] I apologise in advance if excessive snipping was done above, but I tried to keep your major points intact. I don't think it is a good idea to try to cram more features in the severely limited space the boot0 stage currently has. The entire boot0 object code should fit in less than 512 bytes (some of that space is used to store the BIOS-partition table too). Adding more and more features every time we want to extend it will quickly make it either buggy or unusable for the majority of the people who currently use it. On the other hand, there are other boot managers, which can use more space and are not as limited. It may be a good idea to try one of those and extend it to cover your needs. A very featureful and nice option is GRUB, which -AFAIK- currently supports Windows, Linux, FreeBSD, Solaris and a few other OSes. Unfortunately, the GRUB port of FreeBSD is i386-only, so if you are running something else (sparc64 or amd64), it is impossible to use it. I'd put my own money into porting GRUB to work with all the major architectures currently supported by FreeBSD. Then, I would add the features you like to GRUB, which already includes an extended set of configuration options and can easily incorporate more. > I would like to suggest some minor changes to the boot program for > FreeBSD , mainly in the area of options that the user can set when > installing it. Hopefully the space available for the boot program > will be big enough to allow these changes. By the way, is there more > space available (e.g., more sectors on the platter/cylinder) for the > boot program? Not much space is available. > Where can one get the code for the boot? The source code for the boot0-stage loader is: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/boot/i386/boot0/boot0.S > Also, how much space is available for the boot code? A very small number of bytes. Forget about this, if you ask me... - Giorgos