From owner-freebsd-amd64@FreeBSD.ORG Mon May 9 06:30:18 2011 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 221BA106566B for ; Mon, 9 May 2011 06:30:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DB3ED8FC19 for ; Mon, 9 May 2011 06:30:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p496UHeQ083618 for ; Mon, 9 May 2011 06:30:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p496UH8e083614; Mon, 9 May 2011 06:30:17 GMT (envelope-from gnats) Resent-Date: Mon, 9 May 2011 06:30:17 GMT Resent-Message-Id: <201105090630.p496UH8e083614@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Igor Polovykh Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27FF1106564A for ; Mon, 9 May 2011 06:25:16 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 19FE88FC14 for ; Mon, 9 May 2011 06:25:16 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p496PFcq064094 for ; Mon, 9 May 2011 06:25:15 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p496PFpO064093; Mon, 9 May 2011 06:25:15 GMT (envelope-from nobody) Message-Id: <201105090625.p496PFpO064093@red.freebsd.org> Date: Mon, 9 May 2011 06:25:15 GMT From: Igor Polovykh To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 X-Mailman-Approved-At: Mon, 09 May 2011 10:58:28 +0000 Cc: Subject: amd64/156898: usb keyboard does not work while boot (ps2 keyboard works perfect) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2011 06:30:18 -0000 >Number: 156898 >Category: amd64 >Synopsis: usb keyboard does not work while boot (ps2 keyboard works perfect) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 09 06:30:16 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Igor Polovykh >Release: 8.2 >Organization: BVG Studio >Environment: [ip@?????.org /]$ uname -a FreeBSD bvgm.org 8.2-STABLE FreeBSD 8.2-STABLE #15: Thu Apr 28 01:40:03 MSD 2011 root@:/usr/src/sys/amd64/compile/BVGM amd64 >Description: when /etc/fstab file is corrupt and we can not boot normally. We get this error and cannot use usb keyboard to make something. Root mount waiting for: usbus1 Trying to mount root from ufs:/dev/ad4s1a ROOT MOUNT ERROR: If you have invalid mount options, reboot, and first try the following from the loader prompt: set vfs.root.mountfrom.options=rw and then remove invalid mount options from /etc/fstab. Loader variables: vfs.root.mountfrom=ufs:/dev/ad4s1a vfs.root.mountfrom.options=rw mount> >How-To-Repeat: 1. attach usb keyboard to PC. 2. make corrupt file /etc/fstab to stop normal mounting from root partition (example change filesystem type from UFS to UFS2) 3. When you try to boot you won't be able to use usb keyboard to point right partition to mount (ps2 keyboard works ok). You'll see the message like noted in Full Description section. >Fix: I think the code that support usb keyboard have to load first. I guess there is some workaround but i am not so smart in FreeBSD boot loader to find it. Perhaps this is a right behavior of boot loader ( by designed :), i do not know. >Release-Note: >Audit-Trail: >Unformatted: