From owner-freebsd-wireless@FreeBSD.ORG Sun May 8 09:04:13 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFF35106564A for ; Sun, 8 May 2011 09:04:12 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id AD7F88FC13 for ; Sun, 8 May 2011 09:04:12 +0000 (UTC) Received: by gyg13 with SMTP id 13so1951032gyg.13 for ; Sun, 08 May 2011 02:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=X3OzXbE5ba/DrSfvzOlbcf0EM2jO/26XraGXJKbcT/M=; b=IWkVpfveayb5B1Sy7p8PGuf5VBxHZnTf4H8oIKAw7yilFZfNsBCRO8jwLTL5/WgLmw NFli3nFB25yv4rs95Gy2TfABEusddtRWFwZq1dP/byBiv3f0S6hV/xsHww9A/rgLLY9E /+P1jfwcXO7+o1iL0ucBvnSqLLsuPl3yjXDrY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=Otut+qWQGypJ3dBD82O1UhgM/KkmqXPkWkXkBjy1yBavt9xiY06zS2vdr8j75plG4w R4+2Z9qcldKGmuboNOBoyJolWVRBngQlIV5m0plZH+TQqdqHoj0j4Zdi1o8s3r/nC0YR L2RxsHvfZ89YgHeOo0ncXKxmbM9mq/xjl+G9A= MIME-Version: 1.0 Received: by 10.150.53.3 with SMTP id b3mr4865329yba.11.1304845451686; Sun, 08 May 2011 02:04:11 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.136.8 with HTTP; Sun, 8 May 2011 02:04:11 -0700 (PDT) In-Reply-To: <20110508082212.GA72727@solitaire.psych0tik.net> References: <20110508082212.GA72727@solitaire.psych0tik.net> Date: Sun, 8 May 2011 17:04:11 +0800 X-Google-Sender-Auth: mRyVDKRdtqMhQM1grEdv4yEiUYQ Message-ID: From: Adrian Chadd To: richo Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Ath issues on -CURRENT > Mar 31 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2011 09:04:13 -0000 Is it somehow loading in two copies of the driver? Can you please build a kernel without if_ath and if_ath_pci, then load those as modules? Adrian On 8 May 2011 16:22, richo wrote: > Hi, > > I use an atheros based pccard nic on my laptop with 9-CURRENT. > > The last time I was able to build a working kernel was 20 march (the curr= ent > kernel I'm using is=3D20 > FreeBSD solitaire.psych0tik.net 9.0-CURRENT FreeBSD 9.0-CURRENT #1 r21978= 6:=3D > =A0Sun Mar 20 15:26:26 EST 2011 =A0 =A0 richo@solitaire.psych0tik.net:/us= r/obj/us=3D > r/src/sys/GENERIC =A0i386 > > a few weeks later UPDATING included this message: > 20110331: > =A0 =A0 ath(4) has been split into bus- and device- modules. if_ath conta= ins > =A0 the HAL, the TX rate control and the network device code. if_ath_pci > contains the PCI bus glue. For Atheros MIPS embedded systems, if_ath_a > =A0 =A0 contains the AHB glue. Users need to load both if_ath_pci and if_= ath > =A0 in order to use ath on everything else. > > TO REPEAT: if_ath_ahb is not needed for normal users. Normal users onl > =A0 =A0 need to load if_ath and if_ath_pci for ath(4) operation. > > I'm still using default config, but any kernels I build panic if I boot w= ith > the NIC plugged in. They boot fine with it unplugged, but if I plug in th= e > card > it immediately panics. > > Booting with verbose logging on, I see this (I typed this out by hand aft= er > writing it down, so it's possible that it's slightly incorrect. I did dou= ble > check it, though): > > pcib2: allocated memory range (0xf6010000-0xf601ffff) for rid 10 of > pci0:3:0:0 > unkown: Lazy allovation of 0x10000 bytes rid 0x10 type 3 at 0xf6010000 > cbb0 Opening memory: > cbb0 Normal: (0xg6010000-0xf601ffff) > cbb0: Opening memory: > panic: duplcate map 10 > > I have confirmed with pciconf -l that pci0:3:0:0 is my ath nic. > > I have the backtrace, but I only wrote down the function names. I can wri= te > down the whole lot if it will help though. > > > -- > richo || Today's excuse: > Increased sunspot activity. >