From owner-freebsd-arch@FreeBSD.ORG Sun May 25 21:15:33 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 686C737B401 for ; Sun, 25 May 2003 21:15:33 -0700 (PDT) Received: from magic.adaptec.com (magic-mail.adaptec.com [208.236.45.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1E4443F3F for ; Sun, 25 May 2003 21:15:32 -0700 (PDT) (envelope-from scott_long@btc.adaptec.com) Received: from redfish.adaptec.com (redfish.adaptec.com [162.62.50.11]) by magic.adaptec.com (8.11.6/8.11.6) with ESMTP id h4Q4B1Z26707 for ; Sun, 25 May 2003 21:11:01 -0700 Received: from btc.adaptec.com (hollin.btc.adaptec.com [10.100.253.56]) by redfish.adaptec.com (8.8.8p2+Sun/8.8.8) with ESMTP id VAA19816 for ; Sun, 25 May 2003 21:15:27 -0700 (PDT) Message-ID: <3ED194D8.4040706@btc.adaptec.com> Date: Sun, 25 May 2003 22:15:20 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: arch@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: New bootloader! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2003 04:15:33 -0000 All, I've written a nice little bootloader front-end script that allows one to enable/disable acpi, boot single users, etc. My primary motivation was to allow users to easily disable ACPI, since so many problems are popping up these days with it. Making the disabling of ACPI sticky is not that hard to do, probably a few lines of sh scripts in rcNG, but I haven't gotten to it yet. To use the new loader, grab it from http://people.freebsd.org/~scottl/beastie.4th and place it in /boot. Then copy frames.4th and screen.4th from /usr/share/examples/bootforth into /boot. Then edit /boot/loader.rc with the following diff. WARNING: if any mistakes are made and the script cannot start, it might leave your loader unable to load the kernel. In case of problems, either keep a fixit floppy handy, or recompile your kernel with embedded hints (so that things like the console will work) and load it from the boot1 loader. I'm really hoping to have this be on at least the i386 bootcd for 5.1, so any feedback is appreciated. Scott --- loader.rc.orig Sun May 25 22:10:03 2003 +++ loader.rc Sun May 25 22:10:47 2003 @@ -12,3 +12,14 @@ \ Unless set otherwise, autoboot is automatic at this point +\ Load our little menu +s" /boot/beastie.4th" O_RDONLY fopen dup fload fclose + +\ Initialize loader.4th stuff + +\ cr cr .( Initializing loader.4th...) +initialize drop + +\ Show the menu +\ cr +beastie-start