From owner-freebsd-questions@FreeBSD.ORG Mon Jul 30 19:27:50 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7BE4416A41A for ; Mon, 30 Jul 2007 19:27:50 +0000 (UTC) (envelope-from beni@brinckman.info) Received: from lmailproxy03.edpnet.net (lmailproxy03.edpnet.net [212.71.1.196]) by mx1.freebsd.org (Postfix) with ESMTP id 1627213C4B4 for ; Mon, 30 Jul 2007 19:27:49 +0000 (UTC) (envelope-from beni@brinckman.info) Received: from [192.168.1.100] (212.71.9.43.adsl.dyn.edpnet.net [212.71.9.43]) by lmailproxy03.edpnet.net (8.13.1/8.13.1) with ESMTP id l6UJRni4009554 for ; Mon, 30 Jul 2007 21:27:49 +0200 From: beni To: freebsd-questions@freebsd.org Date: Mon, 30 Jul 2007 19:27:47 +0000 User-Agent: KMail/1.9.7 References: <200707301531.48912.beni@brinckman.info> <20070730161343.GA13174@slackbox.xs4all.nl> In-Reply-To: <20070730161343.GA13174@slackbox.xs4all.nl> X-Face: $,~&QrDrInYiH(ZUXjNH_0r4q\`w83!}&; +8c.K[`NnZwV|m$5N{NCkWesaR.9|yqIC[<=?utf-8?q?d=0A=09P0?="xTw:F|)_r*WC\f8lz)g=a; 93dz2mP7iv)LLzBd; 6^Y:=*>@U; _\+4( MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707301927.47570.beni@brinckman.info> X-Virus-Scanned: ClamAV version 0.91.1, clamav-milter version 0.91.1 on lmailproxy03.edpnet.net X-Virus-Status: Clean X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED,BAYES_50 autolearn=disabled version=3.1.9 X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on lmailproxy03.edpnet.net Subject: Re: Using a Hercules HWGUSB2-54-V2 wifi usb adapter X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: beni@brinckman.info List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2007 19:27:50 -0000 On Monday 30 July 2007 16:13:43 Roland Smith wrote: > On Mon, Jul 30, 2007 at 03:31:48PM +0000, beni wrote: > > Hi, > > > > System : 6.2-REL p4. > > > > I'm trying to use this usb wifi adapter. It is based on a Ralink RT2500 > > chipset and should thus be useable with the ural-device according to "man > > ural" (actually it speaks of the Hercules HWGUSB2-54, without the "V2"). > > > > The problem is that I only get a detection in dmesg like this : > > ugen0: Ralink 802.11 bg WLAN, rev 2.00/0.01, addr 3 > > and that I don't get a "ural0" device. > > > > All the devices needed according to man ural are in the kernel too. > > > > How can I get this wifi adapter working ? > > Try adding a macro for the correct device ID to > /usr/src/sys/dev/usb/usbdevs. In this file it is listed as GUILLEMOT > instead of Hercules, though. > > You should be able to see the device-id with 'usbdevs -v'. You're > looking for the first hexadecimal number (preceded by 0x). The second > one is the vendor, and should be 0x06F8. > > Look for this in /usr/src/sys/dev/usb/usbdevs: > product GUILLEMOT HWGUSB254 0xe000 HWGUSB2-54 WLAN > > Then add > > product GUILLEMOT HWGUSB254V2 0x???? HWGUSB2-54-V2 WLAN > > Replace the ???? by the correct device ID. :-) > > Add it to the usb_devno ural_devs array in > /usr/src/sys/dev/usb/if_ural.c, and rebuild your kernel. > > Look for this in /usr/src/sys/dev/usb/if_ural.c > { USB_VENDOR_GUILLEMOT, USB_PRODUCT_GUILLEMOT_HWGUSB254 }, > > Then add > { USB_VENDOR_GUILLEMOT, USB_PRODUCT_GUILLEMOT_HWGUSB254V2 > }, > > Rebuild and install your kernel, reboot and try again. > > Roland Roland, Your explanation worked, thanks ! bsdaddict# dmesg -a | grep ural ural0: Ralink 802.11 bg WLAN, rev 2.00/0.01, addr 3 ural0: MAC/BBP RT2570 (rev 0x00), RF unknown ural0: Ethernet address: 00:08:d3:08:31:fd ural0: if_start running deferred for Giant ural0: timeout waiting for BBP/RF to wakeup bsdaddict# BTW, the device id is 0x010 for this usb adapter. -- Beni.