Re: USB Keyboard doesn't work

2011-09-20 Thread Hans Petter Selasky
On Tuesday 20 September 2011 03:10:35 Daniel O'Connor wrote:
 Unfortunately I believe the USB stack is effectively frozen once the
 mountroot prompt appears hence the need for the work around.

Hi,

It is not frozen. The problem is that the thread polling for key-presses runs 
at higher priority than the USB threads. And it doesn't call pause() at any 
time.

--HPS
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: USB Keyboard doesn't work

2011-09-19 Thread Daniel O'Connor

On 20/09/2011, at 4:50, Alisson wrote:
 in a new installation of freebsd 8.2 (amd64)
 
 if the machine doesn't have a PS2 port to use keyboard... and have only USB
 port its impossible to use an keyboard on mountroot prompt

Try typing this in the loader prompt..

set kern.cam.boot_delay=1

Or putting kern.cam.boot_delay=1 in /boot/loader.conf.

Stolen from http://lists.freebsd.org/pipermail/freebsd-usb/2010-July/008847.html

 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
 

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: USB Keyboard doesn't work

2011-09-19 Thread Pegasus Mc Cleaft
On Monday 19 September 2011 20:20:18 Alisson wrote:

 if the machine doesn't have a PS2 port to use keyboard... and have only USB
 port its impossible to use an keyboard on mountroot prompt

Hi Alisson, 

I dont know the complete ins and outs of this, but I think it has a lot 
to do with the BIOS on your machine and/or how it is configured (IE: PS2 
emulation). 

I have a machine that used to work just fine during the boot-loader and 
mountroot part of booting, but after a BIOS upgrade, it would no longer work; 
only the PS2 keyboard was active until the machine had booted far enough to 
bring up the USB stack. 

Check your BIOS settings and see if any of them mention something about 
USB keyboards. 

Ta
Peg
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: USB Keyboard doesn't work

2011-09-19 Thread Garrett Cooper
On Sep 19, 2011, at 4:39 PM, Pegasus Mc Cleaft wrote:

 On Monday 19 September 2011 20:20:18 Alisson wrote:
 
 if the machine doesn't have a PS2 port to use keyboard... and have only USB
 port its impossible to use an keyboard on mountroot prompt
 
 Hi Alisson, 
 
   I dont know the complete ins and outs of this, but I think it has a lot 
 to do with the BIOS on your machine and/or how it is configured (IE: PS2 
 emulation).

Many BIOS vendors label this as legacy keyboard emulation, etc. You 
might want to play with the plug-n-play settings as well (but I doubt that that 
would help).
HTH,
-Garrett___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: USB Keyboard doesn't work

2011-09-19 Thread Daniel O'Connor

On 20/09/2011, at 10:05, Garrett Cooper wrote:
 On Sep 19, 2011, at 4:39 PM, Pegasus Mc Cleaft wrote:
 
 On Monday 19 September 2011 20:20:18 Alisson wrote:
 
 if the machine doesn't have a PS2 port to use keyboard... and have only USB
 port its impossible to use an keyboard on mountroot prompt
 
 Hi Alisson, 
 
  I dont know the complete ins and outs of this, but I think it has a lot 
 to do with the BIOS on your machine and/or how it is configured (IE: PS2 
 emulation).
 
   Many BIOS vendors label this as legacy keyboard emulation, etc. You 
 might want to play with the plug-n-play settings as well (but I doubt that 
 that would help).


I think you would need legacy emulation for the keyboard to work in the 
loader.

However that will have no effect at mountroot (and after) as the kernel has 
taken over by then.

The kern.cam.boot_delay=1 work around helps by giving the USB stack some 
time to find devices before mountroot.

Unfortunately I believe the USB stack is effectively frozen once the mountroot 
prompt appears hence the need for the work around.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org