From owner-freebsd-questions@FreeBSD.ORG Sat Oct 27 20:31:14 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 D6F6E16A417 for ; Sat, 27 Oct 2007 20:31:14 +0000 (UTC) (envelope-from necati83@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id D9DA013C4BB for ; Sat, 27 Oct 2007 20:31:13 +0000 (UTC) (envelope-from necati83@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so970594nfb for ; Sat, 27 Oct 2007 13:31:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=Ty3ZsaDsUCuSs/YhgrOot5bcL7dEqlwaHJZmZOJvit0=; b=L69VCeIZ4Y1f3n9+LGneMPqkPrmb0Dsu4TX8CLm7mR0VntxGXbrzoKVMXm0bAgBj06sjruMSVWgH47mw2EtOOXuQjNcKxqFkxI4BJdqRulGIYuvL8f7BpUHIkGSrd/Iea2QjGAI2JRFPfoX/MvptxrT9bfGANUwP5mwZHhhS9V8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=PL5s3n1LheOp47HkGNsRpElEg8kwMCEfW1rGURNl503QMnfCARLHTxtRb8LHHytxZUDqXUYfXe7fZIlDSw2vQ3wQouU6PzamhC1L0UqvOCfsaHFf0wiWDWtqSWa9J8fMqoMJ2+xLi42TuR1E30TPLJLBkPRZPvtWovrHTzE13xk= Received: by 10.78.172.20 with SMTP id u20mr3299040hue.1193517072069; Sat, 27 Oct 2007 13:31:12 -0700 (PDT) Received: by 10.78.124.10 with HTTP; Sat, 27 Oct 2007 13:31:12 -0700 (PDT) Message-ID: Date: Sat, 27 Oct 2007 23:31:12 +0300 From: "Necati Demir" To: freebsd-questions@freebsd.org In-Reply-To: <20071027183539.GA96046@owl.midgard.homeip.net> MIME-Version: 1.0 References: <20071027183539.GA96046@owl.midgard.homeip.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 20:31:15 -0000 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: # pciconf -lv none0@pci0:0:0: class=0x050000 card=0xc0241631 chip=0x02f310de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM none1@pci0:0:1: class=0x050000 card=0xc0241631 chip=0x02fa10de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM none2@pci0:0:2: class=0x050000 card=0xc0241631 chip=0x02fe10de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM none3@pci0:0:3: class=0x050000 card=0xc0241631 chip=0x02f810de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM none4@pci0:0:4: class=0x050000 card=0xc0241631 chip=0x02f910de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM none5@pci0:0:5: class=0x050000 card=0xc0241631 chip=0x02ff10de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM none6@pci0:0:6: class=0x050000 card=0xc0241631 chip=0x027f10de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM none7@pci0:0:7: class=0x050000 card=0xc0241631 chip=0x027e10de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM pcib1@pci0:2:0: class=0x060400 card=0x00000040 chip=0x02fc10de rev=0xa1 hdr=0x01 vendor = 'NVIDIA Corporation' class = bridge subclass = PCI-PCI pcib2@pci0:3:0: class=0x060400 card=0x00000040 chip=0x02fd10de rev=0xa1 hdr=0x01 vendor = 'NVIDIA Corporation' class = bridge subclass = PCI-PCI pcib3@pci0:4:0: class=0x060400 card=0x00000040 chip=0x02fb10de rev=0xa1 hdr=0x01 vendor = 'NVIDIA Corporation' class = bridge subclass = PCI-PCI none8@pci0:5:0: class=0x030000 card=0xc0241631 chip=0x024710de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = display subclass = VGA none9@pci0:9:0: class=0x050000 card=0xc0241631 chip=0x027010de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM isab0@pci0:10:0: class=0x060100 card=0xc0241631 chip=0x026010de rev=0xa3 hdr=0x00 vendor = 'NVIDIA Corporation' class = bridge subclass = PCI-ISA none10@pci0:10:1: class=0x0c0500 card=0xc0241631 chip=0x026410de rev=0xa3 hdr=0x00 vendor = 'NVIDIA Corporation' class = serial bus subclass = SMBus ohci0@pci0:11:0: class=0x0c0310 card=0xc0241631 chip=0x026d10de rev=0xa3 hdr=0x00 vendor = 'NVIDIA Corporation' class = serial bus subclass = USB ehci0@pci0:11:1: class=0x0c0320 card=0xc0241631 chip=0x026e10de rev=0xa3 hdr=0x00 vendor = 'NVIDIA Corporation' class = serial bus subclass = USB atapci0@pci0:13:0: class=0x01018a card=0xc0241631 chip=0x026510de rev=0xa1 hdr=0x00 vendor = 'NVIDIA Corporation' class = mass storage subclass = ATA atapci1@pci0:14:0: class=0x010185 card=0xc0241631 chip=0x026610de rev=0xa1 hdr=0x00 vendor = 'NVIDIA Corporation' class = mass storage subclass = ATA pcib4@pci0:16:0: class=0x060401 card=0x000000b8 chip=0x026f10de rev=0xa2 hdr=0x01 vendor = 'NVIDIA Corporation' class = bridge subclass = PCI-PCI none11@pci0:16:1: class=0x040300 card=0xc0241631 chip=0x026c10de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = multimedia nve0@pci0:20:0: class=0x068000 card=0xc0241631 chip=0x026910de rev=0xa3 hdr=0x00 vendor = 'NVIDIA Corporation' class = bridge hostb0@pci0:24:0: class=0x060000 card=0x00000000 chip=0x11001022 rev=0x00 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'Athlon 64 / Opteron HyperTransport Technology Configuration' class = bridge subclass = HOST-PCI hostb1@pci0:24:1: class=0x060000 card=0x00000000 chip=0x11011022 rev=0x00 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'Athlon 64 / Opteron Address Map' class = bridge subclass = HOST-PCI hostb2@pci0:24:2: class=0x060000 card=0x00000000 chip=0x11021022 rev=0x00 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'Athlon 64 / Opteron DRAM Controller' class = bridge subclass = HOST-PCI hostb3@pci0:24:3: class=0x060000 card=0x00000000 chip=0x11031022 rev=0x00 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'Athlon 64 / Opteron Miscellaneous Control' class = bridge subclass = HOST-PCI ath0@pci1:0:0: class=0x020000 card=0x3065168c chip=0x001c168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' class = network subclass = ethernet [root@ /usr/ports/net-im/amsn]# [root@ /usr/ports/net-im/amsn]# pciconf -lv none0@pci0:0:0: class=0x050000 card=0xc0241631 chip=0x02f310de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM none1@pci0:0:1: class=0x050000 card=0xc0241631 chip=0x02fa10de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM none2@pci0:0:2: class=0x050000 card=0xc0241631 chip=0x02fe10de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM none3@pci0:0:3: class=0x050000 card=0xc0241631 chip=0x02f810de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM none4@pci0:0:4: class=0x050000 card=0xc0241631 chip=0x02f910de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM none5@pci0:0:5: class=0x050000 card=0xc0241631 chip=0x02ff10de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM none6@pci0:0:6: class=0x050000 card=0xc0241631 chip=0x027f10de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM none7@pci0:0:7: class=0x050000 card=0xc0241631 chip=0x027e10de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM pcib1@pci0:2:0: class=0x060400 card=0x00000040 chip=0x02fc10de rev=0xa1 hdr=0x01 vendor = 'NVIDIA Corporation' class = bridge subclass = PCI-PCI pcib2@pci0:3:0: class=0x060400 card=0x00000040 chip=0x02fd10de rev=0xa1 hdr=0x01 vendor = 'NVIDIA Corporation' class = bridge subclass = PCI-PCI pcib3@pci0:4:0: class=0x060400 card=0x00000040 chip=0x02fb10de rev=0xa1 hdr=0x01 vendor = 'NVIDIA Corporation' class = bridge subclass = PCI-PCI none8@pci0:5:0: class=0x030000 card=0xc0241631 chip=0x024710de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = display subclass = VGA none9@pci0:9:0: class=0x050000 card=0xc0241631 chip=0x027010de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = memory subclass = RAM isab0@pci0:10:0: class=0x060100 card=0xc0241631 chip=0x026010de rev=0xa3 hdr=0x00 vendor = 'NVIDIA Corporation' class = bridge subclass = PCI-ISA none10@pci0:10:1: class=0x0c0500 card=0xc0241631 chip=0x026410de rev=0xa3 hdr=0x00 vendor = 'NVIDIA Corporation' class = serial bus subclass = SMBus ohci0@pci0:11:0: class=0x0c0310 card=0xc0241631 chip=0x026d10de rev=0xa3 hdr=0x00 vendor = 'NVIDIA Corporation' class = serial bus subclass = USB ehci0@pci0:11:1: class=0x0c0320 card=0xc0241631 chip=0x026e10de rev=0xa3 hdr=0x00 vendor = 'NVIDIA Corporation' class = serial bus subclass = USB atapci0@pci0:13:0: class=0x01018a card=0xc0241631 chip=0x026510de rev=0xa1 hdr=0x00 vendor = 'NVIDIA Corporation' class = mass storage subclass = ATA atapci1@pci0:14:0: class=0x010185 card=0xc0241631 chip=0x026610de rev=0xa1 hdr=0x00 vendor = 'NVIDIA Corporation' class = mass storage subclass = ATA pcib4@pci0:16:0: class=0x060401 card=0x000000b8 chip=0x026f10de rev=0xa2 hdr=0x01 vendor = 'NVIDIA Corporation' class = bridge subclass = PCI-PCI none11@pci0:16:1: class=0x040300 card=0xc0241631 chip=0x026c10de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' class = multimedia nve0@pci0:20:0: class=0x068000 card=0xc0241631 chip=0x026910de rev=0xa3 hdr=0x00 vendor = 'NVIDIA Corporation' class = bridge hostb0@pci0:24:0: class=0x060000 card=0x00000000 chip=0x11001022 rev=0x00 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'Athlon 64 / Opteron HyperTransport Technology Configuration' class = bridge subclass = HOST-PCI hostb1@pci0:24:1: class=0x060000 card=0x00000000 chip=0x11011022 rev=0x00 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'Athlon 64 / Opteron Address Map' class = bridge subclass = HOST-PCI hostb2@pci0:24:2: class=0x060000 card=0x00000000 chip=0x11021022 rev=0x00 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'Athlon 64 / Opteron DRAM Controller' class = bridge subclass = HOST-PCI hostb3@pci0:24:3: class=0x060000 card=0x00000000 chip=0x11031022 rev=0x00 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'Athlon 64 / Opteron Miscellaneous Control' class = bridge subclass = HOST-PCI ath0@pci1:0:0: class=0x020000 card=0x3065168c chip=0x001c168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' class = network subclass = ethernet --------------------------------- # 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' ------------------------------- # ifconfig -a nve0: flags=8843 mtu 1500 inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:18:f3:c6:fd:c9 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 -- Necati Demir http://demir.web.tr ndemir [~] demir.web.tr necati83 [~] gmail.com --------------------------------------