From owner-freebsd-questions@FreeBSD.ORG Sat Oct 27 21:27:30 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 DAE2F16A468 for ; Sat, 27 Oct 2007 21:27:29 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id 6652B13C4A8 for ; Sat, 27 Oct 2007 21:27:29 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-25-183.bredband.comhem.se ([83.253.25.183]:56878 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1IltBo-0001vt-4W for freebsd-questions@freebsd.org; Sat, 27 Oct 2007 23:27:28 +0200 Received: (qmail 68631 invoked from network); 27 Oct 2007 23:27:25 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 27 Oct 2007 23:27:25 +0200 Received: (qmail 12253 invoked by uid 1001); 27 Oct 2007 23:27:24 +0200 Date: Sat, 27 Oct 2007 23:27:24 +0200 From: Erik Trulsson To: Necati Demir Message-ID: <20071027212724.GA97318@owl.midgard.homeip.net> Mail-Followup-To: Necati Demir , freebsd-questions@freebsd.org References: <20071027183539.GA96046@owl.midgard.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) X-Originating-IP: 83.253.25.183 X-Scan-Result: No virus found in message 1IltBo-0001vt-4W. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1IltBo-0001vt-4W 605d4be60ad6ff8a022eeb9ee9d080bd Cc: freebsd-questions@freebsd.org Subject: Re: Atheros wireless X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2007 21:27:30 -0000 On Sat, Oct 27, 2007 at 11:31:12PM +0300, Necati Demir wrote: > On 27/10/2007, Erik Trulsson wrote: > > > > On Sat, Oct 27, 2007 at 08:51:20PM +0300, Necati Demir wrote: > > > Hi, > > > > > > As a 6 year linux user, i am new to freebsd. :) > > > In my laptop i have a atheros wireless card. To use it, i compiled > > modules; > > > > > > # cd /sys/modules/ath > > > # make; make load > > > > > > # cd /sys/modules/ath_hal > > > # make; make load > > > > > > # cd /sys/modules/ath_rate_sample > > > # make; make load > > > > > > # cd /sys/modules/wlan > > > # make; make load > > > > > > # cd /sys/modules/wlan_acl > > > # make; make load > > > > > > # cd /sys/modules/wlan_wep > > > # make; make load > > > > > > # cd /sys/modules/wlan_xauth > > > # make; make load > > > > > > Then i added following lines to the /boot/loader.conf > > > if_ath_load="YES" > > > ath_hal_load="YES" > > > ath_rate_load="YES" > > > wlan_load="YES" > > > wlan_acl_load="YES" > > > wlan_ccmp_load="YES" > > > wlan_tkip_load="YES" > > > wlan_wep_load="YES" > > > wlan_xauth_load="YES" > > > > > > > > > And i restarted my machine to be sure. > > > > > > When i use kldstat command to see modules, i see this output; > > > > > > # kldstat > > > Id Refs Address Size Name > > > 1 9 0xc0400000 70794c kernel > > > 2 1 0xc0b08000 2cf4 wlan_acl.ko > > > 3 1 0xc0b0b000 1b88 wlan_xauth.ko > > > 4 1 0xc2d1f000 16000 linux.ko > > > > > > Where is my if_ath module and the other ath modules? Where is the > > problem? > > > And of course, still my wireless does not work. > > > > The default kernel (GENERIC) already contains all the other modules. > > Kldstat > > only lists those modules that have been loaded separately. If you run > > 'kldstat -v' then all the modules, both those in the kernel, and those > > loaded as modules, should be listed. > > > > > There was also no need for you to compile any modules since all of them > > should > > already be installed by default anyway. (Yes, even those which are > > included > > directly in the kernel.) > > > > Thanks for the information. > > > > > > > > As to why it does not work you have not given enough information. What is > > the output of 'ifconfig', 'pciconf -lv', and 'dmesg' ? > > > The outputs: > [snip] > ath0@pci1:0:0: class=0x020000 card=0x3065168c chip=0x001c168c rev=0x01 > hdr=0x00 > vendor = 'Atheros Communications Inc.' > class = network > subclass = ethernet That is a fairly new chip. I don't know if it is supported yet. > > --------------------------------- > # dmesg | grep -i ath > > ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) > ath0: mem 0xfedf0000-0xfedfffff irq 11 at device 0.0 on pci1 > ath0: unable to attach hardware; HAL status 13 > device_attach: ath0 attach returned 6 > ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) > ath0: mem 0xfedf0000-0xfedfffff irq 11 at device 0.0 on pci1 > ath0: unable to attach hardware; HAL status 13 > device_attach: ath0 attach returned 6 > interface if_ath.1 already present in the KLD 'kernel'! > interface ath_rate.1 already present in the KLD 'kernel' > Here we see that the Atheros driver tries to attach, but the HAL claims that this hardware revision is not supported, and thus it will not work. If you are running FreeBSD 6.2-RELEASE, you could try updating to either the latest 6-STABLE, or the upcoming 7.0, both of which have a newer HAL. If that doesn't help either I don't think there is much you can do. -- Erik Trulsson ertr1013@student.uu.se