Bug 156898

Summary: [keyboard] usb keyboard does not work while boot (ps2 keyboard works perfect)
Product: Base System Reporter: igor.polovykh
Component: usbAssignee: freebsd-usb (Nobody) <usb>
Status: Open ---    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description igor.polovykh 2011-05-09 07:30:16 UTC
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>

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.
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.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-05-10 20:19:26 UTC
Responsible Changed
From-To: freebsd-amd64->freebsd-usb

Over to maintainer(s).
Comment 2 fullermd 2012-08-18 14:26:35 UTC
See also usb/133989
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:59 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped