misc/73223: [PATCH] Add USB keyboard option to Beastie menu
Joe Marcus Clarke
marcus at FreeBSD.org
Wed Oct 27 18:10:23 PDT 2004
>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 at 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 <vova at fbsd.ru>
and Johan Larsson <johan at ludd.luth.se>.
--- 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:
More information about the freebsd-bugs
mailing list