From owner-freebsd-mips@FreeBSD.ORG Fri Jan 4 19:13:48 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 13DB975D; Fri, 4 Jan 2013 19:13:48 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by mx1.freebsd.org (Postfix) with ESMTP id 4A7EC2C5; Fri, 4 Jan 2013 19:13:46 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id hm9so113924wib.8 for ; Fri, 04 Jan 2013 11:13:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=MXqPwY10dt475GxdJWQNyvqMl3GGyaqoPJL0nl2zeuA=; b=yyJj2mPybF82do5iiFd1NMbY8uZ8Eres6cp7a9BIejtdl2NUI2XCPkOkw2dPVWW+mW +22FhdjEZxbri3hlq9hhShLpuvleIyQSfesk66OjS+ic102DZ++vOuLO5Wo3buBBmlBl e1LuQ8gKN0DA+H/wx3QsWl2vlX92sZZNpSUdr+JSvkS50vAJjX/tAKH9n09CsprBxoOj gKmzqcjl/ZiZZZaiQz51R1hTQ7EdRQkAXKGHXEBeYs9rcawAONEr/4V2TyLGORRW7HI0 Z6puJoaRVN/rdK/SnaVDfhY8Au6vATcMXoe3vDEUbdw5RquJyuQ2CQt4+Bd79mECdiiP OUMQ== MIME-Version: 1.0 Received: by 10.194.93.40 with SMTP id cr8mr85951663wjb.16.1357326825874; Fri, 04 Jan 2013 11:13:45 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Fri, 4 Jan 2013 11:13:45 -0800 (PST) In-Reply-To: References: Date: Fri, 4 Jan 2013 11:13:45 -0800 X-Google-Sender-Auth: BotpAe9HJRosZjIu6d02HzSirqk Message-ID: Subject: Re: ath0: could not map interrupt From: Adrian Chadd To: Monthadar Al Jaberi Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 19:13:48 -0000 Ok. The magic you need to try hacking is in ar71xx_pci.c. There's the 7 PCI windows and the 3 interrupt lines that are configured. The IRQ only gets unmasked when a slot claims it as a resource. So you'll have to fiddle with that mapping a little. Look at ar71xx_pci_route_interrupt(). Maybe set it up so AR71XX_PCI_BASE_SLOT is 18 instead of 17? Adrian On 4 January 2013 06:48, Monthadar Al Jaberi wrote: > Attached is two boot logs with debug on for resource manager of RB433AH > and RSPRO respectively. Also attached boot log from openWRT as a > reference (on RB433AH). > > I installed an ath(4) in first slot in each board according to the markin= g on > each PCB. You will notice that RB433AH starts from slot 18. > > I looked at openWRT and it seems they setup a special IRQ map for the RB4= XX. > For RSPRO they don't seem to do anything special, and use the generic map= pings > of three IRQ and slots 17 to 19. > While RB433AH lists the slots for the IRQ from slot 17 to 23. > > RB433AH: > CPU platform: Atheros AR7161 rev 2 > CPU Frequency=3D680 MHz > CPU DDR Frequency=3D340 MHz > CPU AHB Frequency=3D170 MHz > platform frequency: 680000000 > arguments: > a0 =3D 00000008 > a1 =3D a0871c00 > a2 =3D 00000000 > a3 =3D 00000000 > Cmd line: console=3DttyS0,115200 gpio=3D4031 HZ=3D340000000 mem=3D128M > kmac=3DD4:CA:6D:57:DC:D3 board=3D433 boot=3D1 mlc=3D2 > Environment: > envp is invalid > Cache info: > picache_stride =3D 4096 > picache_loopcount =3D 16 > pdcache_stride =3D 4096 > pdcache_loopcount =3D 8 > cpu0: MIPS Technologies processor v116.147 > MMU: Standard TLB, 16 entries > L1 i-cache: 4 ways of 512 sets, 32 bytes per line > L1 d-cache: 4 ways of 256 sets, 32 bytes per line > Config1=3D0x9ee3519e > Config3=3D0x20 > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2013 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 10.0-CURRENT #172: Fri Jan 4 16:40:48 CET 2013 > root@mechy:/usr/obj/mips.mips/usr/src/sys/RB433AH_MFS mips > WARNING: WITNESS option enabled, expect reduced performance. > MEMGUARD DEBUGGING ALLOCATOR INITIALIZED: > MEMGUARD map base: 0xc0400000 > MEMGUARD map limit: 0xc6a67000 > MEMGUARD map size: 104860 KBytes > real memory =3D 134217728 (131072K bytes) > avail memory =3D 123133952 (117MB) > random device not loaded; using insecure entropy > wlan: mac acl policy registered > rman_manage_region: request: start 0, end 0x5 > rman_manage_region: request: start 0, end 0xffffffff > nexus0: > clock0: on nexus0 > rman_reserve_resource_bound: request: [0x5, 0x5], > length 0x1, flags 2, device clock0 > considering [0, 0x5] > truncated region: [0x5, 0x5]; size 0x1 (requested 0x1) > candidate region: [0x5, 0x5], size 0x1 > allocating at the end > Timecounter "MIPS32" frequency 340000000 Hz quality 800 > Event timer "MIPS32" frequency 340000000 Hz quality 800 > apb0 at irq 4 on nexus0 > rman_manage_region: request: start 0x18000000, end > 0x1dffffff > rman_manage_region: request: start 0, end 0x7 > rman_reserve_resource_bound: request: [0x4, 0x4], > length 0x1, flags 6, device apb0 > considering [0, 0x4] > truncated region: [0x4, 0x4]; size 0x1 (requested 0x1) > candidate region: [0x4, 0x4], size 0x1 > allocating at the end > rman_reserve_resource_bound: request: [0x18020003, > 0x1802001a], length 0x18, flags 2, device uart0 > considering [0x18000000, 0x1dffffff] > truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) > candidate region: [0x18020003, 0x1802001a], size 0x18 > splitting region in three parts: [0x18000000, 0x18020002]; > [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] > rman_reserve_resource_bound: request: [0x18020003, > 0x1802001a], length 0x18, flags 2, device uart0 > considering [0x18000000, 0x1dffffff] > truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) > candidate region: [0x18020003, 0x1802001a], size 0x18 > splitting region in three parts: [0x18000000, 0x18020002]; > [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] > uart0: <16550 or compatible> on apb0 > rman_reserve_resource_bound: request: [0x18020003, > 0x1802001a], length 0x18, flags 2, device uart0 > considering [0x18000000, 0x1dffffff] > truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) > candidate region: [0x18020003, 0x1802001a], size 0x18 > splitting region in three parts: [0x18000000, 0x18020002]; > [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] > rman_reserve_resource_bound: request: [0x3, 0x3], length > 0x1, flags 6, device uart0 > considering [0, 0x7] > truncated region: [0x3, 0x3]; size 0x1 (requested 0x1) > candidate region: [0x3, 0x3], size 0x1 > splitting region in three parts: [0, 0x2]; [0x3, 0x3]; [0x4, 0x7] > uart0: console (115200,n,8,1) > ehci0: at mem > 0x1b000000-0x1bffffff irq 1 on nexus0 > rman_reserve_resource_bound: request: [0x1b000000, > 0x1bffffff], length 0x1000000, flags 2, device ehci0 > considering [0, 0xffffffff] > truncated region: [0x1b000000, 0x1bffffff]; size 0x1000000 (requested 0x1= 000000) > candidate region: [0x1b000000, 0x1bffffff], size 0x1000000 > splitting region in three parts: [0, 0x1affffff]; [0x1b000000, > 0x1bffffff]; [0x1c000000, 0xffffffff] > rman_reserve_resource_bound: request: [0x1, 0x1], > length 0x1, flags 2, device ehci0 > considering [0, 0x3] > truncated region: [0x1, 0x1]; size 0x1 (requested 0x1) > candidate region: [0x1, 0x1], size 0x1 > splitting region in three parts: [0, 0]; [0x1, 0x1]; [0x2, 0x3] > usbus0: set host controller mode > usbus0: EHCI version 1.0 > usbus0: set host controller mode > usbus0 on ehci0 > pcib0 at irq 0 on nexus0 > rman_manage_region: request: start > 0x10000000, end 0x16ffffff > rman_manage_region: request: start 0, end 0x2 > rman_reserve_resource_bound: request: [0, 0], length > 0x1, flags 6, device pcib0 > considering [0, 0] > truncated region: [0, 0]; size 0x1 (requested 0x1) > candidate region: [0, 0], size 0x1 > candidate region is entire chunk > pci0: on pcib0 > ath0: irq 1 at device 18.0 on pci0 > rman_reserve_resource_bound: request: [0, > 0xffffffff], length 0x10000, flags 16384, device ath0 > considering [0x10000000, 0x16ffffff] > truncated region: [0x10000000, 0x16ffffff]; size 0x7000000 (requested 0x1= 0000) > candidate region: [0x10000000, 0x16ffffff], size 0x7000000 > allocating from the beginning > rman_reserve_resource_bound: request: [0x1, 0x1], > length 0x1, flags 6, device ath0 > considering [0, 0x2] > truncated region: [0x1, 0x1]; size 0x1 (requested 0x1) > candidate region: [0x1, 0x1], size 0x1 > splitting region in three parts: [0, 0]; [0x1, 0x1]; [0x2, 0x2] > ath0: AR5413 mac 10.5 RF5413 phy 6.1 > ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 > arge0: at mem > 0x19000000-0x19000fff irq 2 on nexus0 > rman_reserve_resource_bound: request: [0x19000000, > 0x19000fff], length 0x1000, flags 6, device arge0 > considering [0, 0x1affffff] > truncated region: [0x19000000, 0x19000fff]; size 0x1000 (requested 0x1000= ) > candidate region: [0x19000000, 0x19000fff], size 0x1000 > splitting region in three parts: [0, 0x18ffffff]; [0x19000000, > 0x19000fff]; [0x19001000, 0x1affffff] > rman_reserve_resource_bound: request: [0x2, 0x2], > length 0x1, flags 6, device arge0 > considering [0x2, 0x3] > truncated region: [0x2, 0x2]; size 0x1 (requested 0x1) > candidate region: [0x2, 0x2], size 0x1 > allocating from the beginning > arge0: finishing attachment, phymask 0010, proxy null > miibus0: on arge0 > ukphy1: PHY 4 on miibus0 > ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > arge0: Ethernet address: d4:ca:6d:57:dc:d4 > arge1: at mem > 0x1a000000-0x1a000fff irq 3 on nexus0 > rman_reserve_resource_bound: request: [0x1a000000, > 0x1a000fff], length 0x1000, flags 6, device arge1 > considering [0x19001000, 0x1affffff] > truncated region: [0x1a000000, 0x1a000fff]; size 0x1000 (requested 0x1000= ) > candidate region: [0x1a000000, 0x1a000fff], size 0x1000 > splitting region in three parts: [0x19001000, 0x19ffffff]; > [0x1a000000, 0x1a000fff]; [0x1a001000, 0x1affffff] > rman_reserve_resource_bound: request: [0x3, 0x3], > length 0x1, flags 6, device arge1 > considering [0x3, 0x3] > truncated region: [0x3, 0x3]; size 0x1 (requested 0x1) > candidate region: [0x3, 0x3], size 0x1 > candidate region is entire chunk > arge1: finishing attachment, phymask 0000, proxy null > arge1: Ethernet address: d4:ca:6d:57:dc:d3 > spi0: at mem 0x1f000000-0x1f00000f on nexus0 > rman_reserve_resource_bound: request: [0x1f000000, > 0x1f00000f], length 0x10, flags 2, device spi0 > considering [0x1c000000, 0xffffffff] > truncated region: [0x1f000000, 0x1f00000f]; size 0x10 (requested 0x10) > candidate region: [0x1f000000, 0x1f00000f], size 0x10 > splitting region in three parts: [0x1c000000, 0x1effffff]; > [0x1f000000, 0x1f00000f]; [0x1f000010, 0xffffffff] > spibus0: on spi0 > mx25l0: at cs 0 on spibus0 > Unknown SPI flash device. Vendor: ef, device id: 3011 > device_attach: mx25l0 attach returned 6 > ar71xx_wdog0: on nexus0 > Timecounters tick every 1.000 msec > usbus0: 480Mbps High Speed USB v2.0 > bootpc_init: wired to interface 'arge1' > Sending DHCP Discover packet from interface arge1 (d4:ca:6d:57:dc:d3) > > > > RSPRO: > CPU platform: Atheros AR7161 rev 2 > CPU Frequency=3D720 MHz > CPU DDR Frequency=3D360 MHz > CPU AHB Frequency=3D180 MHz > platform frequency: 720000000 > arguments: > a0 =3D 00000002 > a1 =3D 80050028 > a2 =3D 80050000 > a3 =3D 0000000a > Cmd line: =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD =EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD = =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD =EF=BF=BD=EF=BF= =BD=EF=BF=BD =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD > Environment: > memsize =3D 0x08000000 > modetty0 =3D 0,n,8,1,hw > ethaddr =3D 00.15.6d.c8.c9.2c > board =3D RouterStation PRO > Cache info: > picache_stride =3D 4096 > picache_loopcount =3D 16 > pdcache_stride =3D 4096 > pdcache_loopcount =3D 8 > cpu0: MIPS Technologies processor v116.147 > MMU: Standard TLB, 16 entries > L1 i-cache: 4 ways of 512 sets, 32 bytes per line > L1 d-cache: 4 ways of 256 sets, 32 bytes per line > Config1=3D0x9ee3519e > Config3=3D0x20 > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2013 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 10.0-CURRENT #9: Fri Jan 4 16:52:15 CET 2013 > root@mechy:/usr/obj/mips.mips/usr/src/sys/RSPRO_NFS mips > WARNING: WITNESS option enabled, expect reduced performance. > MEMGUARD DEBUGGING ALLOCATOR INITIALIZED: > MEMGUARD map base: 0xc0400000 > MEMGUARD map limit: 0xc6a67000 > MEMGUARD map size: 104860 KBytes > real memory =3D 134217728 (131072K bytes) > avail memory =3D 122871808 (117MB) > random device not loaded; using insecure entropy > rman_manage_region: request: start 0, end 0x5 > rman_manage_region: request: start 0, end 0xffffffff > nexus0: > clock0: on nexus0 > rman_reserve_resource_bound: request: [0x5, 0x5], > length 0x1, flags 2, device clock0 > considering [0, 0x5] > truncated region: [0x5, 0x5]; size 0x1 (requested 0x1) > candidate region: [0x5, 0x5], size 0x1 > allocating at the end > Timecounter "MIPS32" frequency 360000000 Hz quality 800 > Event timer "MIPS32" frequency 360000000 Hz quality 800 > apb0 at irq 4 on nexus0 > rman_manage_region: request: start 0x18000000, end > 0x1dffffff > rman_manage_region: request: start 0, end 0x7 > rman_reserve_resource_bound: request: [0x4, 0x4], > length 0x1, flags 6, device apb0 > considering [0, 0x4] > truncated region: [0x4, 0x4]; size 0x1 (requested 0x1) > candidate region: [0x4, 0x4], size 0x1 > allocating at the end > rman_reserve_resource_bound: request: [0x18020003, > 0x1802001a], length 0x18, flags 2, device uart0 > considering [0x18000000, 0x1dffffff] > truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) > candidate region: [0x18020003, 0x1802001a], size 0x18 > splitting region in three parts: [0x18000000, 0x18020002]; > [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] > rman_reserve_resource_bound: request: [0x18020003, > 0x1802001a], length 0x18, flags 2, device uart0 > considering [0x18000000, 0x1dffffff] > truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) > candidate region: [0x18020003, 0x1802001a], size 0x18 > splitting region in three parts: [0x18000000, 0x18020002]; > [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] > uart0: <16550 or compatible> on apb0 > rman_reserve_resource_bound: request: [0x18020003, > 0x1802001a], length 0x18, flags 2, device uart0 > considering [0x18000000, 0x1dffffff] > truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) > candidate region: [0x18020003, 0x1802001a], size 0x18 > splitting region in three parts: [0x18000000, 0x18020002]; > [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] > rman_reserve_resource_bound: request: [0x3, 0x3], length > 0x1, flags 6, device uart0 > considering [0, 0x7] > truncated region: [0x3, 0x3]; size 0x1 (requested 0x1) > candidate region: [0x3, 0x3], size 0x1 > splitting region in three parts: [0, 0x2]; [0x3, 0x3]; [0x4, 0x7] > uart0: console (115200,n,8,1) > gpio0: on apb0 > rman_reserve_resource_bound: request: [0x18040000, > 0x18040fff], length 0x1000, flags 2, device gpio0 > considering [0x1802001b, 0x1dffffff] > truncated region: [0x18040000, 0x18040fff]; size 0x1000 (requested 0x1000= ) > candidate region: [0x18040000, 0x18040fff], size 0x1000 > splitting region in three parts: [0x1802001b, 0x1803ffff]; > [0x18040000, 0x18040fff]; [0x18041000, 0x1dffffff] > rman_reserve_resource_bound: request: [0x2, 0x2], length > 0x1, flags 6, device gpio0 > considering [0, 0x2] > truncated region: [0x2, 0x2]; size 0x1 (requested 0x1) > candidate region: [0x2, 0x2], size 0x1 > allocating at the end > gpio0: [GIANT-LOCKED] > gpio0: function_set: 0x0 > gpio0: function_clear: 0x0 > gpio0: gpio pinmask=3D0xff > gpioc0: on gpio0 > gpiobus0: on gpio0 > gpioled0: at pin(s) 2 on gpiobus0 > ehci0: at mem > 0x1b000000-0x1bffffff irq 1 on nexus0 > rman_reserve_resource_bound: request: [0x1b000000, > 0x1bffffff], length 0x1000000, flags 2, device ehci0 > considering [0, 0xffffffff] > truncated region: [0x1b000000, 0x1bffffff]; size 0x1000000 (requested 0x1= 000000) > candidate region: [0x1b000000, 0x1bffffff], size 0x1000000 > splitting region in three parts: [0, 0x1affffff]; [0x1b000000, > 0x1bffffff]; [0x1c000000, 0xffffffff] > rman_reserve_resource_bound: request: [0x1, 0x1], > length 0x1, flags 2, device ehci0 > considering [0, 0x3] > truncated region: [0x1, 0x1]; size 0x1 (requested 0x1) > candidate region: [0x1, 0x1], size 0x1 > splitting region in three parts: [0, 0]; [0x1, 0x1]; [0x2, 0x3] > usbus0: set host controller mode > usbus0: EHCI version 1.0 > usbus0: set host controller mode > usbus0 on ehci0 > pcib0 at irq 0 on nexus0 > rman_manage_region: request: start > 0x10000000, end 0x16ffffff > rman_manage_region: request: start 0, end 0x2 > rman_reserve_resource_bound: request: [0, 0], length > 0x1, flags 6, device pcib0 > considering [0, 0] > truncated region: [0, 0]; size 0x1 (requested 0x1) > candidate region: [0, 0], size 0x1 > candidate region is entire chunk > pci0: on pcib0 > ath0: irq 0 at device 17.0 on pci0 > rman_reserve_resource_bound: request: [0, > 0xffffffff], length 0x10000, flags 16384, device ath0 > considering [0x10000000, 0x16ffffff] > truncated region: [0x10000000, 0x16ffffff]; size 0x7000000 (requested 0x1= 0000) > candidate region: [0x10000000, 0x16ffffff], size 0x7000000 > allocating from the beginning > rman_reserve_resource_bound: request: [0, 0], length > 0x1, flags 6, device ath0 > considering [0, 0x2] > truncated region: [0, 0]; size 0x1 (requested 0x1) > candidate region: [0, 0], size 0x1 > allocating from the beginning > ath0: AR5413 mac 10.5 RF5413 phy 6.1 > ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 > arge0: at mem > 0x19000000-0x19000fff irq 2 on nexus0 > arge0: arge_attach: overriding MII mode to 'RGMII' > rman_reserve_resource_bound: request: [0x19000000, > 0x19000fff], length 0x1000, flags 6, device arge0 > considering [0, 0x1affffff] > truncated region: [0x19000000, 0x19000fff]; size 0x1000 (requested 0x1000= ) > candidate region: [0x19000000, 0x19000fff], size 0x1000 > splitting region in three parts: [0, 0x18ffffff]; [0x19000000, > 0x19000fff]; [0x19001000, 0x1affffff] > rman_reserve_resource_bound: request: [0x2, 0x2], > length 0x1, flags 6, device arge0 > considering [0x2, 0x3] > truncated region: [0x2, 0x2]; size 0x1 (requested 0x1) > candidate region: [0x2, 0x2], size 0x1 > allocating from the beginning > arge0: finishing attachment, phymask 0010, proxy null > miibus0: on arge0 > ukphy0: PHY 4 on miibus0 > ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > 1000baseT-FDX, 1000baseT-FDX-master, auto > arge0: Ethernet address: 00:15:6d:c8:c9:2c > arge1: at mem > 0x1a000000-0x1a000fff irq 3 on nexus0 > arge1: arge_attach: overriding MII mode to 'RGMII' > rman_reserve_resource_bound: request: [0x1a000000, > 0x1a000fff], length 0x1000, flags 6, device arge1 > considering [0x19001000, 0x1affffff] > truncated region: [0x1a000000, 0x1a000fff]; size 0x1000 (requested 0x1000= ) > candidate region: [0x1a000000, 0x1a000fff], size 0x1000 > splitting region in three parts: [0x19001000, 0x19ffffff]; > [0x1a000000, 0x1a000fff]; [0x1a001000, 0x1affffff] > rman_reserve_resource_bound: request: [0x3, 0x3], > length 0x1, flags 6, device arge1 > considering [0x3, 0x3] > truncated region: [0x3, 0x3]; size 0x1 (requested 0x1) > candidate region: [0x3, 0x3], size 0x1 > candidate region is entire chunk > arge1: finishing attachment, phymask 0000, proxy null > arge1: Ethernet address: 00:15:6d:c8:c9:2d > spi0: at mem 0x1f000000-0x1f00000f on nexus0 > rman_reserve_resource_bound: request: [0x1f000000, > 0x1f00000f], length 0x10, flags 2, device spi0 > considering [0x1c000000, 0xffffffff] > truncated region: [0x1f000000, 0x1f00000f]; size 0x10 (requested 0x10) > candidate region: [0x1f000000, 0x1f00000f], size 0x10 > splitting region in three parts: [0x1c000000, 0x1effffff]; > [0x1f000000, 0x1f00000f]; [0x1f000010, 0xffffffff] > spibus0: on spi0 > mx25l0: at cs 0 on spibus0 > mx25l0: mx25ll128, sector 65536 bytes, 256 sectors > ar71xx_wdog0: on nexus0 > Timecounters tick every 1.000 msec > usbus0: 480Mbps High Speed USB v2.0 > ugen0.1: at usbus0 > uhub0: on usbus= 0 > g_dev_taste: make_dev_p() failed (gp->name=3Dredboot/RedBoot config, erro= r=3D22) > g_dev_taste: make_dev_p() failed (gp->name=3Dredboot/FIS directory, error= =3D22) > bootpc_init: wired to interface 'arge0' > Sending DHCP Discover packet from interface arge0 (00:15:6d:c8:c9:2c) > > OpenWRT: > [ 0.000000] Linux version 3.3.8 (monthadar.aljaberi@bane) (gcc > version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #5 Fri > Dec 21 16:41:32 CET 2012 > [ 0.000000] bootconsole [early0] enabled > [ 0.000000] CPU revision is: 00019374 (MIPS 24Kc) > [ 0.000000] SoC: Atheros AR7161 rev 2 > [ 0.000000] Clocks: CPU:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, > Ref:40.000MHz > [ 0.000000] Determined physical RAM map: > [ 0.000000] memory: 08000000 @ 00000000 (usable) > [ 0.000000] User-defined physical RAM map: > [ 0.000000] memory: 08000000 @ 00000000 (usable) > [ 0.000000] Initrd not found or empty - disabling initrd > [ 0.000000] Zone PFN ranges: > [ 0.000000] Normal 0x00000000 -> 0x00008000 > [ 0.000000] Movable zone start PFN for each node > [ 0.000000] Early memory PFN ranges > [ 0.000000] 0: 0x00000000 -> 0x00008000 > [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. > Total pages: 32512 > [ 0.000000] Kernel command line: console=3DttyS0,115200 gpio=3D4031 > HZ=3D340000000 mem=3D128M kmac=3DD4:CA:6D:57:DC:D3 board=3D433 boot=3D1 m= lc=3D2 > rootfstype=3Dyaffs noinitrd > [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) > [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 by= tes) > [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 byte= s) > [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 b= ytes. > [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, > linesize 32 bytes > [ 0.000000] Writing ErrCtl register=3D00000080 > [ 0.000000] Readback ErrCtl register=3D00000080 > [ 0.000000] Memory: 125360k/131072k available (2063k kernel code, > 5712k reserved, 417k data, 1468k init, 0k highmem) > [ 0.000000] SLUB: Genslabs=3D9, HWalign=3D32, Order=3D0-3, MinObjects= =3D0, > CPUs=3D1, Nodes=3D1 > [ 0.000000] NR_IRQS:51 > [ 0.000000] Calibrating delay loop... 452.19 BogoMIPS (lpj=3D2260992) > [ 0.060000] pid_max: default: 32768 minimum: 301 > [ 0.060000] Mount-cache hash table entries: 512 > [ 0.070000] NET: Registered protocol family 16 > [ 0.070000] gpiochip_add: registered GPIOs 0 to 15 on device: ath79 > [ 0.080000] MIPS: machine is MikroTik RouterBOARD 433/AH > [ 0.780000] registering PCI controller with io_map_base unset > [ 0.790000] bio: create slab at 0 > [ 0.800000] PCI host bridge to bus 0000:00 > [ 0.800000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x16fff= fff] > [ 0.810000] pci_bus 0000:00: root bus resource [io 0x0000] > [ 0.810000] pci 0000:00:12.0: BAR 0: assigned [mem 0x10000000-0x1000ff= ff] > [ 0.820000] pci 0000:00:12.0: using irq 40 for pin 1 > [ 0.820000] Switching to clocksource MIPS > [ 0.830000] NET: Registered protocol family 2 > [ 0.830000] IP route cache hash table entries: 1024 (order: 0, 4096 by= tes) > [ 0.830000] TCP established hash table entries: 4096 (order: 3, 32768 = bytes) > [ 0.840000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) > [ 0.840000] TCP: Hash tables configured (established 4096 bind 4096) > [ 0.850000] TCP reno registered > [ 0.850000] UDP hash table entries: 256 (order: 0, 4096 bytes) > [ 0.860000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) > [ 0.860000] NET: Registered protocol family 1 > [ 2.330000] msgmni has been set to 244 > [ 2.330000] io scheduler noop registered > [ 2.340000] io scheduler deadline registered (default) > [ 2.340000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled > [ 2.370000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq =3D 11) is a 1= 6550A > [ 2.370000] console [ttyS0] enabled, bootconsole disabled > [ 2.370000] console [ttyS0] enabled, bootconsole disabled > [ 2.390000] gpiochip_add: registered GPIOs 32 to 40 on device: spi-rb4= xx-cpld > [ 2.390000] m25p80 spi0.0: pm25lv512 (64 Kbytes) > [ 2.400000] Creating 4 MTD partitions on "spi0.0": > [ 2.400000] 0x000000000000-0x00000000b000 : "routerboot" > [ 2.410000] 0x00000000b000-0x00000000c000 : "hard_config" > [ 2.420000] 0x00000000d000-0x00000000f000 : "bios" > [ 2.420000] 0x00000000f000-0x000000010000 : "soft_config" > [ 2.430000] NAND flash driver for RouterBoard 4xx series version 0.2.0 > [ 2.440000] NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 > (Samsung NAND 64MiB 3,3V 8-bit) > [ 2.450000] Scanning device for bad blocks > [ 2.610000] Bad eraseblock 947 at 0x000000ecc000 > [ 2.640000] Bad eraseblock 1093 at 0x000001114000 > [ 2.690000] Bad eraseblock 1353 at 0x000001524000 > [ 2.730000] Bad eraseblock 1565 at 0x000001874000 > [ 2.740000] Bad eraseblock 1566 at 0x000001878000 > [ 2.860000] Bad eraseblock 2261 at 0x000002354000 > [ 2.860000] Bad eraseblock 2262 at 0x000002358000 > [ 2.870000] Bad eraseblock 2277 at 0x000002394000 > [ 2.880000] Bad eraseblock 2278 at 0x000002398000 > [ 2.880000] Bad eraseblock 2279 at 0x00000239c000 > [ 2.890000] Bad eraseblock 2280 at 0x0000023a0000 > [ 2.890000] Bad eraseblock 2283 at 0x0000023ac000 > [ 2.900000] Bad eraseblock 2284 at 0x0000023b0000 > [ 2.900000] Bad eraseblock 2286 at 0x0000023b8000 > [ 2.910000] Bad eraseblock 2288 at 0x0000023c0000 > [ 2.910000] Bad eraseblock 2289 at 0x0000023c4000 > [ 2.920000] Bad eraseblock 2291 at 0x0000023cc000 > [ 2.920000] Bad eraseblock 2293 at 0x0000023d4000 > [ 2.920000] Bad eraseblock 2294 at 0x0000023d8000 > [ 2.930000] Bad eraseblock 2299 at 0x0000023ec000 > [ 2.940000] Bad eraseblock 2300 at 0x0000023f0000 > [ 2.940000] Bad eraseblock 2303 at 0x0000023fc000 > [ 2.950000] Bad eraseblock 2306 at 0x000002408000 > [ 2.950000] Bad eraseblock 2307 at 0x00000240c000 > [ 2.950000] Bad eraseblock 2308 at 0x000002410000 > [ 2.960000] Bad eraseblock 2309 at 0x000002414000 > [ 2.970000] Bad eraseblock 2335 at 0x00000247c000 > [ 2.970000] Bad eraseblock 2336 at 0x000002480000 > [ 2.980000] Bad eraseblock 2355 at 0x0000024cc000 > [ 3.000000] Bad eraseblock 2429 at 0x0000025f4000 > [ 3.000000] Bad eraseblock 2433 at 0x000002604000 > [ 3.010000] Bad eraseblock 2436 at 0x000002610000 > [ 3.010000] Bad eraseblock 2439 at 0x00000261c000 > [ 3.020000] Bad eraseblock 2442 at 0x000002628000 > [ 3.020000] Bad eraseblock 2443 at 0x00000262c000 > [ 3.030000] Bad eraseblock 2446 at 0x000002638000 > [ 3.030000] Bad eraseblock 2449 at 0x000002644000 > [ 3.040000] Bad eraseblock 2453 at 0x000002654000 > [ 3.040000] Bad eraseblock 2456 at 0x000002660000 > [ 3.050000] Bad eraseblock 2457 at 0x000002664000 > [ 3.050000] Bad eraseblock 2459 at 0x00000266c000 > [ 3.060000] Bad eraseblock 2462 at 0x000002678000 > [ 3.060000] Bad eraseblock 2465 at 0x000002684000 > [ 3.070000] Bad eraseblock 2468 at 0x000002690000 > [ 3.070000] Bad eraseblock 2470 at 0x000002698000 > [ 3.080000] Bad eraseblock 2473 at 0x0000026a4000 > [ 3.080000] Bad eraseblock 2475 at 0x0000026ac000 > [ 3.090000] Bad eraseblock 2476 at 0x0000026b0000 > [ 3.250000] Bad eraseblock 3371 at 0x0000034ac000 > [ 3.380000] Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit": > [ 3.380000] 0x000000000000-0x000000040000 : "booter" > [ 3.390000] 0x000000040000-0x000000400000 : "kernel" > [ 3.390000] 0x000000400000-0x000004000000 : "rootfs" > [ 3.400000] mtd: partition "rootfs" set to be root filesystem > [ 3.410000] split_squashfs: no squashfs found in "NAND 64MiB 3,3V 8-bi= t" > [ 3.420000] IP17xx: Found IP175D at ag71xx-mdio.0:00 > [ 3.420000] ag71xx_mdio: probed > [ 3.430000] eth0: Atheros AG71xx at 0xba000000, irq 5 > [ 3.730000] ag71xx ag71xx.1: eth0: connected to PHY at > ag71xx-mdio.0:04 [uid=3D02430d80, driver=3DGeneric PHY] > [ 3.740000] eth1: Atheros AG71xx at 0xb9000000, irq 4 > [ 4.060000] ag71xx ag71xx.0: eth1: connected to PHY at > ag71xx-mdio.0:00 [uid=3D02430d80, driver=3DIC+ IP17xx] > [ 4.070000] TCP cubic registered > [ 4.070000] NET: Registered protocol family 17 > [ 4.070000] 8021q: 802.1Q VLAN Support v1.8 > [ 4.080000] Freeing unused kernel memory: 1468k freed > - preinit - > Press the [f] key and hit [enter] to enter failsafe mode > [ 5.730000] eth0: link up (100Mbps/Full duplex) > - regular preinit - > [ 7.700000] eth0: link down > - init - > [ 7.870000] Compat-drivers backport release: > compat-drivers-2012-09-04-2-gddac993 > [ 7.880000] Backport based on wireless-testing.git master-2012-09-07 > [ 7.890000] compat.git: wireless-testing.git > [ 7.910000] cfg80211: Calling CRDA to update world regulatory domain > [ 7.910000] cfg80211: World regulatory domain updated: > [ 7.920000] cfg80211: (start_freq - end_freq @ bandwidth), > (max_antenna_gain, max_eirp) > [ 7.930000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), > (300 mBi, 2000 mBm) > [ 7.930000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), > (300 mBi, 2000 mBm) > [ 7.940000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), > (300 mBi, 2000 mBm) > [ 7.950000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), > (300 mBi, 2000 mBm) > [ 7.960000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), > (300 mBi, 2000 mBm) > [ 8.030000] PCI: Enabling device 0000:00:12.0 (0000 -> 0002) > [ 8.040000] ath5k 0000:00:12.0: registered as 'phy0' > [ 8.690000] ath5k: phy0: Atheros AR5414 chip found (MAC: 0xa5, PHY: 0x= 61) > [ 8.690000] cfg80211: Calling CRDA for country: US > [ 8.700000] cfg80211: Regulatory domain changed to country: US > [ 8.700000] cfg80211: (start_freq - end_freq @ bandwidth), > (max_antenna_gain, max_eirp) > [ 8.710000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), > (300 mBi, 2700 mBm) > [ 8.720000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), > (300 mBi, 1700 mBm) > [ 8.730000] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), > (300 mBi, 2000 mBm) > [ 8.740000] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), > (300 mBi, 2000 mBm) > [ 8.740000] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), > (300 mBi, 2000 mBm) > [ 8.750000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), > (300 mBi, 3000 mBm) > [ 8.790000] PPP generic driver version 2.4.2 > [ 8.820000] ip_tables: (C) 2000-2006 Netfilter Core Team > [ 8.900000] NET: Registered protocol family 24 > [ 8.910000] nf_conntrack version 0.5.0 (1981 buckets, 7924 max) > > Please press Enter to activate this console. [ 10.870000] device > eth1 entered promiscuous mode > [ 12.060000] eth1: link up (100Mbps/Full duplex) > [ 12.060000] br-lan: port 1(eth1) entered forwarding state > [ 12.070000] br-lan: port 1(eth1) entered forwarding state > [ 12.760000] eth0: link up (100Mbps/Full duplex) > [ 14.070000] br-lan: port 1(eth1) entered forwarding state > > > On Fri, Jan 4, 2013 at 5:59 AM, Adrian Chadd wrote: >> ... wow. How the hell is that happening?! >> >> >> >> >> Adrian >> >> >> On 3 January 2013 20:54, Monthadar Al Jaberi wrote= : >>> Maybe this is the root of the problem. >>> >>> On RSPRO the PCI start slot enumerating from 17. While RB433AH start >>> from 18. That can explain why Slot 20 of RB433AH won't even attach >>> (AR7161 only has 3 slots, slot 17 to 19). That can also explain why I >>> get device_timeout on slot 18 and 19 cause they are miss aligned. And >>> don't see any interrupts from ath(4) when enabling interrupt >>> debugging. >>> >>> I will keep digging into why they won't start enumerating correct. >>> >>> br, >>> >>> On Fri, Jan 4, 2013 at 2:28 AM, Monthadar Al Jaberi wrote: >>>> Hi, >>>> >>>> I am wondering if anyone can confirm that any ath5k (preferably >>>> AR5413) series miniPCI wifi works on RB433/AH/UAH. >>>> >>>> Thank you in advance >>>> >>>> On Wed, Jan 2, 2013 at 10:29 PM, Monthadar Al Jaberi >>>> wrote: >>>>> On Wed, Jan 2, 2013 at 9:43 PM, Adrian Chadd wro= te: >>>>>> ... sounds like a definite interrupt routing issue. >>>>>> >>>>>> Who's been knee deep in the interrupt handling code in MIPS lately? = Grrr. >>>>>> I know there's been some FDT work in MIPS and that's touched some >>>>>> interrupt code.. maybe that's interfering? >>>>> >>>>> I am not sure, I just re-compiled my kernel for RSPRO and it seems to= work. >>>>> >>>>> I install openwrt on rb433ah and ath0 associated ok. and I could ping >>>>> between RSPRO(FreeBSD) and RB433AH(Openwrt). RSPRO and non working >>>>> RB433AH running same kernel r243866. >>>>> >>>>> Attached is my kernel config & hints. ( I am "playing around" with th= e >>>>> ar71xx_spi but that should not effect the pci code, I hope). >>>>> >>>>> # >>>>> # AR71XX -- Kernel configuration file for FreeBSD/MIPS for Atheros 71= xx systems >>>>> # >>>>> # This includes all the common drivers for the AR71XX boards along wi= th >>>>> # the usb, net80211 and atheros driver code. >>>>> # >>>>> # $FreeBSD$ >>>>> # >>>>> >>>>> machine mips mips >>>>> ident RB433AH_MFS >>>>> cpu CPU_MIPS4KC >>>>> makeoptions KERNLOADADDR=3D0x80050000 >>>>> options HZ=3D1000 >>>>> options HWPMC_HOOKS >>>>> >>>>> files "../atheros/files.ar71xx" >>>>> >>>>> # For now, hints are per-board. >>>>> >>>>> hints "RB433AH.hints" >>>>> >>>>> makeoptions DEBUG=3D-g #Build kernel with gdb(1) d= ebug symbols >>>>> >>>>> # Build these as modules so small platform builds will have the >>>>> # modules already built. >>>>> makeoptions MODULES_OVERRIDE=3D"random gpio ar71xx if_gif if_gre >>>>> if_bridge bridgestp usb wlan wlan_xauth wlan_acl wlan_wep wlan_tkip >>>>> wlan_ccmp wlan_rssadapt wlan_amrr ath ath_pci" >>>>> >>>>> options DDB >>>>> options KDB >>>>> >>>>> options SCHED_4BSD #4BSD scheduler >>>>> options INET #InterNETworking >>>>> #options INET6 # IPv6 >>>>> >>>>> # options NFS_CL #Network Filesystem Client >>>>> >>>>> options PSEUDOFS #Pseudo-filesystem framework >>>>> options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time= extensions >>>>> >>>>> # options NFS_LEGACYRPC >>>>> # Debugging for use in -current >>>>> options INVARIANTS >>>>> options INVARIANT_SUPPORT >>>>> options WITNESS >>>>> options WITNESS_SKIPSPIN >>>>> options DEBUG_REDZONE >>>>> options DEBUG_MEMGUARD >>>>> >>>>> options FFS #Berkeley Fast Filesystem >>>>> # options SOFTUPDATES #Enable FFS soft updates su= pport >>>>> # options UFS_ACL #Support for access control= lists >>>>> # options UFS_DIRHASH #Improve performance on big >>>>> directories >>>>> # options MSDOSFS # Read MSDOS filesyst= ems; useful for USB/CF >>>>> >>>>> device pci >>>>> device ar71xx_pci >>>>> >>>>> # RTC - requires hackery in the spibus code to work >>>>> device pcf2123_rtc >>>>> >>>>> # GEOM modules >>>>> device geom_redboot # to get access to the SPI flash part= itions >>>>> device geom_uzip # compressed in-memory filesystem hac= kery! >>>>> device geom_map >>>>> options GEOM_UZIP >>>>> >>>>> # NANDFS >>>>> options NANDFS >>>>> >>>>> ## Boot from the first MFS uzip >>>>> #options ROOTDEVNAME=3D\"ufs:md0.uzip\" >>>>> #options MD_ROOT >>>>> #options MD_ROOT_SIZE=3D"9000" >>>>> >>>>> # Boot from NFS >>>>> options NFSLOCKD #Network Lock Manager >>>>> options NFSCLIENT #Network Filesystem Client >>>>> options NFS_ROOT >>>>> >>>>> options BOOTP >>>>> options BOOTP_NFSROOT >>>>> options BOOTP_NFSV3 >>>>> options BOOTP_WIRED_TO=3Darge1 >>>>> options BOOTP_COMPAT >>>>> options ROOTDEVNAME=3D\"nfs:172.16.0.101:/usr/obj/rb433ah/nfs= \" >>>>> >>>>> >>>>> # 802.11 framework >>>>> options IEEE80211_DEBUG >>>>> options IEEE80211_ALQ >>>>> options IEEE80211_SUPPORT_MESH >>>>> # This option is currently broken for if_ath_tx. >>>>> options IEEE80211_SUPPORT_TDMA >>>>> options IEEE80211_AMPDU_AGE >>>>> device wlan # 802.11 support >>>>> device wlan_wep # 802.11 WEP support >>>>> device wlan_ccmp # 802.11 CCMP support >>>>> device wlan_tkip # 802.11 TKIP support >>>>> device wlan_xauth # 802.11 hostap support >>>>> device wlan_acl # 802.11 ACL support >>>>> >>>>> # Atheros wireless NICs >>>>> device ath # Atheros interface support >>>>> device ath_pci # Atheros PCI/Cardbus bus >>>>> options ATH_DEBUG >>>>> options ATH_DIAGAPI >>>>> options ATH_ENABLE_11N >>>>> options AH_DEBUG >>>>> options AH_DEBUG_ALQ >>>>> options ALQ >>>>> device ath_hal >>>>> option AH_SUPPORT_AR5416 >>>>> device ath_rate_sample >>>>> option AH_RXCFG_SDMAMW_4BYTES >>>>> option AH_AR5416_INTERRUPT_MITIGATION >>>>> # There's no DFS radar detection support yet so this won't actually >>>>> # detect radars. It however does enable the rest of the channel chan= ge >>>>> # machinery so DFS can be debugged. >>>>> option ATH_ENABLE_DFS >>>>> >>>>> device mii >>>>> device arge >>>>> #options ARGE_DEBUG # Enable if_arge debugging fo= r now >>>>> >>>>> #device usb >>>>> #options USB_EHCI_BIG_ENDIAN_DESC # handle big-= endian byte order >>>>> #options USB_DEBUG >>>>> #options USB_HOST_ALIGN=3D32 # AR71XX (M= IPS in general?) requires this >>>>> #device ehci >>>>> >>>>> device scbus >>>>> #device umass >>>>> device da >>>>> >>>>> device rb4xx >>>>> >>>>> # On-board SPI flash >>>>> device spibus >>>>> device ar71xx_spi >>>>> device mmc >>>>> device mmcsd >>>>> device mmcspi >>>>> device mx25l >>>>> device nand >>>>> device ar71xx_wdog >>>>> >>>>> device uart >>>>> device uart_ar71xx >>>>> >>>>> device loop >>>>> device ether >>>>> device md >>>>> device bpf >>>>> device random >>>>> device if_bridge >>>>> device gif # ip[46] in ip[46] tunneling protocol >>>>> device gre # generic encapsulation - only for IP= v4 in IPv4 though atm >>>>> >>>>> # Enable GPIO >>>>> device gpio >>>>> device gpioled >>>>> >>>>> options AR71XX_ROUTERBOOT >>>>> >>>>> >>>>> # $FreeBSD$ >>>>> hint.apb.0.at=3D"nexus0" >>>>> hint.apb.0.irq=3D4 >>>>> >>>>> # uart0 >>>>> hint.uart.0.at=3D"apb0" >>>>> # see atheros/uart_cpu_ar71xx.c why +3 >>>>> hint.uart.0.maddr=3D0x18020003 >>>>> hint.uart.0.msize=3D0x18 >>>>> hint.uart.0.irq=3D3 >>>>> >>>>> #ohci >>>>> #hint.ohci.0.at=3D"apb0" >>>>> #hint.ohci.0.maddr=3D0x1c000000 >>>>> #hint.ohci.0.msize=3D0x01000000 >>>>> #hint.ohci.0.irq=3D6 >>>>> >>>>> #ehci >>>>> #hint.ehci.0.at=3D"nexus0" >>>>> #hint.ehci.0.maddr=3D0x1b000000 >>>>> #hint.ehci.0.msize=3D0x01000000 >>>>> #hint.ehci.0.irq=3D1 >>>>> >>>>> # pci >>>>> hint.pcib.0.at=3D"nexus0" >>>>> hint.pcib.0.irq=3D0 >>>>> >>>>> hint.arge.0.at=3D"nexus0" >>>>> hint.arge.0.maddr=3D0x19000000 >>>>> hint.arge.0.msize=3D0x1000 >>>>> hint.arge.0.irq=3D2 >>>>> # PHY4 =3D 1 << 4 >>>>> hint.arge.0.phymask=3D0x10 >>>>> # Uncomment this hint for RS (not PRO) >>>>> # PHY20 =3D 1 << 20 >>>>> # hint.arge.0.phymask=3D0x100000 >>>>> hint.ukphy.0.at=3D"miibus0" >>>>> >>>>> hint.arge.1.at=3D"nexus0" >>>>> hint.arge.1.maddr=3D0x1a000000 >>>>> hint.arge.1.msize=3D0x1000 >>>>> hint.arge.1.irq=3D3 >>>>> # PHY1, PHY2, PHY3 >>>>> hint.arge.1.phymask=3D0x00 >>>>> # should be 100 for RS >>>>> #hint.arge.1.media=3D100 >>>>> #hint.arge.1.fduplex=3D1 >>>>> # Uncomment this hint for RS (not PRO) >>>>> # hint.arge.1.phymask=3D70000 >>>>> >>>>> # SPI flash >>>>> hint.spi.0.at=3D"nexus0" >>>>> hint.spi.0.maddr=3D0x1f000000 >>>>> hint.spi.0.msize=3D0x10 >>>>> >>>>> hint.mx25l.0.at=3D"spibus0" >>>>> hint.mx25l.0.cs=3D1 >>>>> >>>>> hint.rb_cpldbus.0.at=3D"spibus0" >>>>> hint.rb_cpldbus.0.cs=3D1 >>>>> # >>>>> hint.onand.0.at=3D"nandbus0" >>>>> hint.lnand.0.at=3D"nandbus0" >>>>> hint.snand.0.at=3D"nandbus0" >>>>> >>>>> hint.flash.0.at=3D"nand0" >>>>> hint.flash.0.size=3D"0x40000" >>>>> hint.flash.0.offset=3D"0" >>>>> hint.flash.0.name=3D"bootloader" >>>>> hint.flash.1.at=3D"nand0" >>>>> hint.flash.1.size=3D"0x3c0000" >>>>> hint.flash.1.offset=3D"0x40000" >>>>> hint.flash.1.name=3D"kernelfs" >>>>> hint.flash.2.at=3D"nand0" >>>>> hint.flash.2.size=3D"0" >>>>> hint.flash.2.offset=3D"0x400000" >>>>> hint.flash.2.name=3D"rootfs" >>>>> >>>>> hint.ar71xx_gpio.0.at=3D"nexus0" >>>>> >>>>> #hint.rb_nandbusy.0.at=3D"gpiobus0" >>>>> >>>>> hint.mmcspi.0.at=3D"spibus0" >>>>> hint.mmcspi.0.cs=3D2 >>>>> >>>>> # Watchdog >>>>> hint.ar71xx_wdog.0.at=3D"nexus0" >>>>> >>>>> >>>>> br, >>>>> >>>>>> >>>>>> >>>>>> Adrian >>>>>> >>>>>> >>>>>> On 2 January 2013 12:40, Monthadar Al Jaberi w= rote: >>>>>>> I tested some more. First I changed the miniPCI slot. Now boot look= s like this: >>>>>>> >>>>>>> pcib0 at irq 0 on nexus0 >>>>>>> pci0: on pcib0 >>>>>>> ath0: irq 2 at device 19.0 on pci0 >>>>>>> ath0: AR5413 mac 10.5 RF5413 phy 6.1 >>>>>>> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 >>>>>>> >>>>>>> >>>>>>> Then I created a hostap. But none of my other devices sees it (lapt= op, iphone). >>>>>>> >>>>>>> A scan results in: >>>>>>> >>>>>>> # ifconfig wlan0 scan >>>>>>> wlan0: ieee80211_scanreq: flags 0x1b duration 0x7fffffff mindwell 0 >>>>>>> maxdwell 0 nssid 0 >>>>>>> wlan0: start_scan_locked: active scan, duration 2147483647 mindwell= 0 >>>>>>> maxdwell 0, desired mode 11g, append, nopick, once >>>>>>> wlan0: scan set 11g dwell min 200ms max 200ms >>>>>>> wlan0: scan_task: chan 11g -> 11g [active, dwell min 200ms max 20= 0ms] >>>>>>> wlan0: ieee80211_ref_node (ieee80211_send_probereq:1822) >>>>>>> 0xc6f27000<00:15:6d:67:21:8d> refcnt 4 >>>>>>> wlan0: send probe req on channel 11 bssid ff:ff:ff:ff:ff:ff ssid "" >>>>>>> wlan0: scan_task: done, [ticks 2657909, dwell min 200 scanend 21501= 41333] >>>>>>> wlan0: notify scan done >>>>>>> root@rb433ah:~ # ath0: device timeout >>>>>>> >>>>>>> And when I try to ping a random IP address I get the following. >>>>>>> Interesting is that it seems to "bail out" when it tries to send >>>>>>> probe_resp (last in output): >>>>>>> $ ping -c 1 172.168.3.2 >>>>>>> PING 172.168.3.2 (172.168.3.2): 56 data bytes >>>>>>> ath0: device timeout >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 8 >>>>>>> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [94:0c:6d:ad:61:18] discard frame, not to bss >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 48 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 2 >>>>>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: >>>>>>> 0x9ccca48e6a3b0c7f661c24413d7b9e54c5e59ddbe0c2bd96a2e65410b662f71a >>>>>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 5 >>>>>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "defaul= t" >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 4 >>>>>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "defaul= t" >>>>>>> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 9 >>>>>>> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 43 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 45 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 47 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 44 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received probe_req from 00:aa:70:77:bd:77 rssi 0 >>>>>>> wlan0: [00:aa:70:77:bd:77] recv probe req >>>>>>> wlan0: ieee80211_ref_node (ieee80211_send_proberesp:2489) >>>>>>> 0xc6f27000<00:15:6d:67:21:8d> refcnt 5 >>>>>>> wlan0: send probe resp on channel 11 to 00:aa:70:77:bd:77 >>>>>>> ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing >>>>>>> .... >>>>>>> >>>>>>> >>>>>>> On Tue, Jan 1, 2013 at 7:33 PM, Monthadar Al Jaberi wrote: >>>>>>>> Hi, >>>>>>>> >>>>>>>> ath(4) failed to attach on my Routerboard RB433AH running FreeBSD >>>>>>>> current. This is what I got during boo-up. >>>>>>>> >>>>>>>> pcib0 at irq 0 on nexus0 >>>>>>>> pci0: on pcib0 >>>>>>>> ath0: irq 3 at device 20.0 on pci0 >>>>>>>> ath0: could not map interrupt >>>>>>>> device_attach: ath0 attach returned 6 >>>>>>>> >>>>>>>> Any idea why? Anyone else is running ath(4) on this board? My wifi >>>>>>>> card is a Ubiquity X2 with AR5413 chip. >>>>>>>> >>>>>>>> br, >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Monthadar Al Jaberi >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Monthadar Al Jaberi >>>>>>> _______________________________________________ >>>>>>> freebsd-wireless@freebsd.org mailing list >>>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>>>>>> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@free= bsd.org" >>>>> >>>>> >>>>> >>>>> -- >>>>> Monthadar Al Jaberi >>>> >>>> >>>> >>>> -- >>>> Monthadar Al Jaberi >>> >>> >>> >>> -- >>> Monthadar Al Jaberi > > > > -- > Monthadar Al Jaberi