From owner-freebsd-bugs@FreeBSD.ORG Thu Oct 28 01:10:23 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFCFF16A4CE for ; Thu, 28 Oct 2004 01:10:22 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C128D43D1D for ; Thu, 28 Oct 2004 01:10:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i9S1AMMQ045848 for ; Thu, 28 Oct 2004 01:10:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9S1AM87045847; Thu, 28 Oct 2004 01:10:22 GMT (envelope-from gnats) Resent-Date: Thu, 28 Oct 2004 01:10:22 GMT Resent-Message-Id: <200410280110.i9S1AM87045847@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Joe Marcus Clarke Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3DB416A4CE for ; Thu, 28 Oct 2004 01:03:36 +0000 (GMT) Received: from shumai.marcuscom.com (creme-brulee.marcuscom.com [24.172.16.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59F4F43D1F for ; Thu, 28 Oct 2004 01:03:36 +0000 (GMT) (envelope-from marcus@shumai.marcuscom.com) Received: from shumai.marcuscom.com (localhost.marcuscom.com [127.0.0.1]) by shumai.marcuscom.com (8.13.1/8.13.1) with ESMTP id i9S13Qoq014715 for ; Wed, 27 Oct 2004 21:03:26 -0400 (EDT) (envelope-from marcus@shumai.marcuscom.com) Received: (from marcus@localhost) by shumai.marcuscom.com (8.13.1/8.13.1/Submit) id i9S13Qbn014714; Wed, 27 Oct 2004 21:03:26 -0400 (EDT) (envelope-from marcus) Message-Id: <200410280103.i9S13Qbn014714@shumai.marcuscom.com> Date: Wed, 27 Oct 2004 21:03:26 -0400 (EDT) From: Joe Marcus Clarke To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: misc/73223: [PATCH] Add USB keyboard option to Beastie menu X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Joe Marcus Clarke List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2004 01:10:23 -0000 >Number: 73223 >Category: misc >Synopsis: [PATCH] Add USB keyboard option to Beastie menu >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Oct 28 01:10:22 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Joe Marcus Clarke >Release: FreeBSD 5.3-STABLE i386 >Organization: FreeBSD, Inc. >Environment: System: FreeBSD shumai.marcuscom.com 5.3-STABLE FreeBSD 5.3-STABLE #22: Sun Oct 24 17:53:00 EDT 2004 marcus@shumai.marcuscom.com:/usr/obj/usr/src/sys/SHUMAI i386 >Description: FreeBSD currently does not support installations on a machine without PS/2 ports. That is, if you try to boot 5.3-RC1 on a machine with only USB keyboard support, the keyboard will stop working once the kernel boots. This is due to an over-zealous atkbd driver. >How-To-Repeat: Try to use a USB keyboard to install FreeBSD 5.3-RC1 (or 4.10 for that matter) >Fix: On obrien's request (or challenge), attached is a patch that adds a USB keyboard option to the Beastie boot menu. Selecting this option boots with the hint.atkbd.0.flags set to 0x1. This enables the USB keyboard in sysinstall. It would be good to get this into 5.3, as the machine onto which I installed FreeBSD was a Dell OptiPlex GX280, and there are other "mainstream" computers out there without PS/2 ports. The idea to set this flag was given by Vladimir Grebenschikov and Johan Larsson . --- beastie.4th.diff begins here --- --- beastie.4th.orig Wed Oct 27 13:57:48 2004 +++ beastie.4th Wed Oct 27 13:57:43 2004 @@ -40,6 +40,7 @@ variable bootkey variable bootacpikey +variable bootusbkey variable bootsafekey variable bootverbosekey variable bootsinglekey @@ -155,6 +156,7 @@ else -2 bootacpikey ! then + printmenuitem ." Boot FreeBSD with USB keyboard" bootusbkey ! printmenuitem ." Boot FreeBSD in Safe Mode" bootsafekey ! printmenuitem ." Boot FreeBSD in single user mode" bootsinglekey ! printmenuitem ." Boot FreeBSD with verbose logging" bootverbosekey ! @@ -221,6 +223,10 @@ s" YES" s" acpi_load" setenv s" 0" s" hint.acpi.0.disabled" setenv then + 0 boot + then + dup bootusbkey @ = if + s" 0x1" s" hint.atkbd.0.flags" setenv 0 boot then dup bootsafekey @ = if --- beastie.4th.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: