From owner-freebsd-questions@FreeBSD.ORG Fri Oct 24 13:37:01 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFBB916A4B3 for ; Fri, 24 Oct 2003 13:37:01 -0700 (PDT) Received: from schlepper.zs64.net (schlepper.zs64.net [212.12.50.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56E6943F93 for ; Fri, 24 Oct 2003 13:37:00 -0700 (PDT) (envelope-from stb@lassitu.de) Received: from [127.0.0.1] (schlepper [212.12.50.230]) by schlepper.zs64.net (8.12.9/8.11.1) with ESMTP id h9OKawNY057964 for ; Fri, 24 Oct 2003 22:36:58 +0200 (CEST) (envelope-from stb@lassitu.de) Mime-Version: 1.0 (Apple Message framework v606) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-questions@freebsd.org From: Stefan Bethke Date: Fri, 24 Oct 2003 22:36:57 +0200 X-Mailer: Apple Mail (2.606) Subject: How can I reprobe an USB bus? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2003 20:37:01 -0000 I've just set up a Lex barebone (http://www.lex.com.tw/) with a built-in USB wireless adapter. (The board is built into the case and attached to an internal USB connector), with a -current from yesterday: root@diesel:~# uname -a FreeBSD diesel.lassitu.de 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Fri Oct 24 19:43:36 CEST 2003 root@diesel.lassitu.de:/usr/src/sys/i386/compile/DIESEL i386 I've downloaded and integrated the driver for the Atmel AT76C503A chip that Stuart Walsh posted a couple of days back on -current, added the appropriate entries to dev/usb/usbdevs, rebuilt with Makefile.usbdevs, and went through a full make buildkernel/installkernel. usbdevs(8) lists it OK: root@diesel:~# usbdevs -dv Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 uhub0 port 1 powered port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 uhub1 port 1 powered port 2 addr 2: full speed, power 500 mA, config 1, AT76C503A 802.11b adapter(0x7605), Atmel(0x03eb), rev 1.00 ugen0 At boot, ugen attaches: uhci1: port 0xc800-0xc81f irq 12 at device 7.3 on pc i0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered ugen0: Atmel AT76C503A 802.11b adapter, rev 1.10/1.00, addr 2 The question is: how do I make the USB subsystem reprobe with the kernel module loaded? Or would that happen automatically, and I've just messed up the probe entry in the module? I've tried restarting usbd, but that doesn't seem to change anything. I can't just unplug it, then plug it back in again (at least not permanently, with the board installed inside the case...) Thanks in advance, Stefan -- Stefan Bethke Fon +49 170 346 0140