f9df [Solved] Minimal kernel options for USB keyboard? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Peripheral Hardware

Peripheral Hardware Stuff that plugs in via USB, FireWire, eSATA, PS/2, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old April 27th, 2012, 20:30
feralape feralape is offline
Member
 
Join Date: Nov 2008
Posts: 146
Thanks: 2
Thanked 4 Times in 4 Posts
Default Minimal kernel options for USB keyboard?

I have a USB keyboard, printer and mouse which are working under GENERIC. At startup it probes a bunch of USB stuff and takes for ever so I would like to remove everything but those devices from the kernel.

I tried just these devices:
uhci, ehci, sb, ukbd, ulpt, ums.

But it hangs on startup with this:

Code:
Root mount waiting for: usbus4
It just hangs there and gives that message every few seconds. My fstab only has one device, my root drive (SATA).

Last edited by DutchDaemon; April 27th, 2012 at 23:18. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #2  
Old April 27th, 2012, 20:55
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,715
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

Possibly looking for USB disks, which need at least a couple of SCSI devices:
Code:
device scbus
device da
device pass
Reply With Quote
  #3  
Old April 27th, 2012, 22:10
feralape feralape is offline
Member
 
Join Date: Nov 2008
Posts: 146
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by wblock@ View Post
Possibly looking for USB disks, which need at least a couple of SCSI devices:
Code:
device scbus
device da
device pass
Thanks, but is there any way to disable that probing? I'll never have a USB disk and takes a while (even in GENERIC) for all the USB stuff to come up.

Last edited by DutchDaemon; April 27th, 2012 at 23:19.
Reply With Quote
  #4  
Old April 28th, 2012, 03:00
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,715
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

Hmm. Try this:
/boot/loader.conf
Code:
hw.usb.no_boot_wait="1"
Reply With Quote
  #5  
Old April 30th, 2012, 17:41
feralape feralape is offline
Member
 
Join Date: Nov 2008
Posts: 146
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by wblock@ View Post
Hmm. Try this:
/boot/loader.conf
Code:
hw.usb.no_boot_wait="1"
Thanks. I tried that and also turned on USB Debugging. Same thing happens. It doesn't really give any indication on what's going on. Just the same message over and over. Any other tips?

Here is dmesg | grep -i usb:

Code:
uhci0: <Intel 82801G (ICH7) USB controller USB-A> port 0x40a0-0x40bf irq 23 at device 29.0 on pci0
usbus0: <Intel 82801G (ICH7) USB controller USB-A> on uhci0
uhci1: <Intel 82801G (ICH7) USB controller USB-B> port 0x4080-0x409f irq 19 at device 29.1 on pci0
usbus1: <Intel 82801G (ICH7) USB controller USB-B> on uhci1
uhci2: <Intel 82801G (ICH7) USB controller USB-C> port 0x4060-0x407f irq 18 at device 29.2 on pci0
usbus2: <Intel 82801G (ICH7) USB controller USB-C> on uhci2
uhci3: <Intel 82801G (ICH7) USB controller USB-D> port 0x4040-0x405f irq 16 at device 29.3 on pci0
usbus3: <Intel 82801G (ICH7) USB controller USB-D> on uhci3
ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> mem 0xd0700400-0xd07007ff irq 23 at device 29.7 on pci0
usbus4: EHCI version 1.0
usbus4: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 12Mbps Full Speed USB v1.0
usbus3: 12Mbps Full Speed USB v1.0
usbus4: 480Mbps High Speed USB v2.0
ugen0.1: <Intel> at usbus0
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <Intel> at usbus1
uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <Intel> at usbus2
uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
ugen3.1: <Intel> at usbus3
uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ugen4.1: <Intel> at usbus4
uhub4: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus4
Root mount waiting for: usbus4 usbus3 usbus2 usbus1 usbus0
Root mount waiting for: usbus4
Root mount waiting for: usbus4
Root mount waiting for: usbus4
Root mount waiting for: usbus4
ugen4.2: <vendor 0x058f> at usbus4
uhub5: <vendor 0x058f product 0x6254, class 9/0, rev 2.00/1.00, addr 2> on usbus4
ugen1.2: <Lite-On Technology Corp.> at usbus1
ukbd0: <Lite-On Technology Corp. HP Basic USB Keyboard, class 0/0, rev 1.10/1.04, addr 2> on usbus1

Last edited by DutchDaemon; May 1st, 2012 at 01:32.
Reply With Quote
  #6  
Old April 30th, 2012, 19:02
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,715
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

Sorry, I've got no other ideas. The freebsd-usb mailing list is likely to have better answers.
Reply With Quote
  #7  
Old May 2nd, 2012, 23:37
feralape feralape is offline
Member
 
Join Date: Nov 2008
Posts: 146
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Ok, thanks. This can be marked as solved. I don't think it was a USB problem at all, but had SCSI_DELAY set to 0. Setting that to 2000 or higher fixes it. This can be closed.

Last edited by DutchDaemon; May 3rd, 2012 at 00:20.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing a minimal system to compile a kernel in arm arch Maisondouf Embedded 6 September 10th, 2011 16:06
[Solved] kernel config options for hdd Beeblebrox Installing & Upgrading 9 April 9th, 2011 06:32
[Solved] How to make a minimal Kernel ? sonysun Installing & Upgrading 3 January 17th, 2010 19:43
Kernel options dennylin93 FreeBSD Development 2 March 22nd, 2009 20:06
options I can not build into the kernel paulfrottawa Firewalls 4 December 24th, 2008 02:49


All times are GMT +1. The time now is 08:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0