From owner-freebsd-mips@FreeBSD.ORG Sat May 1 16:00:25 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0859C106566B for ; Sat, 1 May 2010 16:00:25 +0000 (UTC) (envelope-from fk@bsdler.de) Received: from hell.bsdler.de (www.nonstopviolence.de [213.95.21.223]) by mx1.freebsd.org (Postfix) with ESMTP id A89F78FC15 for ; Sat, 1 May 2010 16:00:24 +0000 (UTC) Received: from hell.nonstopviolence.de (localhost [127.0.0.1]) by hell.bsdler.de (Postfix) with ESMTP id ED868B83E; Sat, 1 May 2010 18:00:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at bsdler.de Received: from hell.bsdler.de ([127.0.0.1]) by hell.nonstopviolence.de (hell.bsdler.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ozGn0Do+qqaD; Sat, 1 May 2010 18:00:22 +0200 (CEST) Received: from pinky.terror.local (p5DD1CDF8.dip.t-dialin.net [93.209.205.248]) by hell.bsdler.de (Postfix) with ESMTPSA id E5836B83A; Sat, 1 May 2010 18:00:21 +0200 (CEST) Received: from [172.17.21.80] (brain.terror.local [172.17.21.80]) by pinky.terror.local (Postfix) with ESMTP id 180C726D01C; Sat, 1 May 2010 16:00:21 +0000 (UTC) From: Florian Kruegl To: Rui Paulo In-Reply-To: <0CB1D579-01A7-4F60-BC57-760016FB7E47@freebsd.org> References: <1272703119.48777.19.camel@brain.lan.terror.local> <0CB1D579-01A7-4F60-BC57-760016FB7E47@freebsd.org> Content-Type: text/plain; charset="ASCII" Date: Sat, 01 May 2010 17:57:56 +0200 Message-ID: <1272729476.48777.25.camel@brain.lan.terror.local> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: Trap when setting up ath0 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fk@bsdler.de List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2010 16:00:25 -0000 Hi On Sat, 2010-05-01 at 11:09 +0100, Rui Paulo wrote: > On 1 May 2010, at 09:38, Florian Kruegl wrote: > > > Hi, > > > > I get a trap when setting up wlan interface on RS pro. > > Maybe this is because some structure is misaligned. Can you enable AH_DEBUG and ATH_DEBUG and edit {if_ath.c,ah_osdep.c} so that ath_debug=0xffffffff and ath_hal_debug=0xffffffff ? > --------------< bootup >-------------- ath0: irq 1 at device 18.0 on pci0 ath0: [ITHREAD] ath_getchannels: eeprom rd 32924 cc 156 (mapped rd 32924 cc 156) location I ecm ath_descdma_setup: rx DMA: 40 buffers 1 desc/buf ath_descdma_setup: rx DMA map: 0xa0923000 (3840) -> 0x923000 (3840) ath_descdma_setup: tx DMA: 200 buffers 10 desc/buf ath_descdma_setup: tx DMA map: 0xa0980000 (192000) -> 0x980000 (192000) ath_descdma_setup: beacon DMA: 4 buffers 1 desc/buf ath_descdma_setup: beacon DMA map: 0xa0970000 (384) -> 0x970000 (384) ath0: AR9280 mac 128.2 RF5133 phy 13.0 --------------< bootup >-------------- --------------< setup >-------------- xerxes# ifconfig ath0 up ath_init: if_flags 0x8803 ath_stop_locked: invalid 0 if_flags 0x8803 Trap cause = 7 (bus error (load or store) - kernel mode) [ thread pid 1809 tid 100067 ] Stopped at platform_start+0x1b10: srl v0,a1,8 --------------< setup >-------------- Regards Flo