Re: Crosscompiling NetBSD for Fonera not working with HEAD?
Fredrik Pettai <[email protected]> Mon, 29 Jun 2009 05:22:59 +0200
| Newsgroups | gmane.os.netbsd.ports.evbmips |
|---|---|
| Message-ID | <[email protected]> |
Hi, On Jun 29, 2009, at 2:07 AM, Arnaud Lacombe wrote: > Hi, > > On Sun, Jun 28, 2009 at 5:56 PM, Fredrik Pettai<[email protected]> > wrote: >> ath0 at arbus0 addr 0x10000000 cpu irq 1: Unknown AR531X WLAN >> ath0: unable to attach hardware; HAL status 3221368608 >> ath0: ath_attach failed >> > can you please build a MERAKI kernel with: > > options ATHHAL_DEBUG > > in the config file to try to get more info from the HAL ? That by itself didn't give any more information. However, I looked around in the conf files and noted that in sys/ external/isc/atheros_hal/conf/std.ath_hal, these lines were commented out: #options ATHHAL_AR5312 #options ATHHAL_AR2316 #options ATHHAL_AR2317 So I removed the comments, and now the kernel recognize the WiSoc 2315, but crashes afterwards: RedBoot> go MIPS32/64 params: cpu arch: 32 MIPS32/64 params: TLB entries: 16 MIPS32/64 params: Icache: line = 16, total = 16384, ways = 4 sets = 256 MIPS32/64 params: Dcache: line = 16, total = 16384, ways = 4 sets = 256 picache_stride = 4096 picache_loopcount = 4 pdcache_stride = 4096 pdcache_loopcount = 4 Memory size: 0x01000000 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc. All rights reserved. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. NetBSD 5.99.14 (FON2100) #0: Mon Jun 29 05:06:15 CEST 2009 [email protected]:/usr/obj/sys/arch/evbmips/compile/FON2100 Atheros AR2315 total memory = 16384 KB avail memory = 12928 KB mainbus0 (root) cpu0 at mainbus0: 184.00MHz (hz cycles = 920000, delay divisor = 92) cpu0: MIPS 4KEc (Rev 2) (0x19064) Rev. 100 with software emulated floating point cpu0: 16KB/16B 4-way set-associative L1 Instruction cache, 16 TLB entries cpu0: 16KB/16B 4-way set-associative write-back L1 Data cache wdog0 at mainbus0: 5 second period arbus0 at mainbus0 com0 at arbus0 addr 0x11100000 cpu irq 0 misc irq 0: ns16550a, working fifo com0: console ae0 at arbus0 addr 0x10500000 cpu irq 2: Atheros AR531X 10/100 Ethernet ae0: Ethernet address 00:18:84:1b:65:10 ukphy0 at ae0 phy 0: Generic IEEE 802.3u media interface ukphy0: AC101L 10/100 media interface (OUI 0x0010a9, model 0x0012), rev. 1 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ae0: WARNING: powerhook_establish is deprecated ath0 at arbus0 addr 0x10000000 cpu irq 1: Atheros 2315 WiSoC trap: address error (load or I-fetch) in kernel mode status=0x2, cause=0x50008010, epc=0x1bb958f6, vaddr=0x1bb958f6 pid=0 cmd=system usp=0x0 ksp=0x8030fb60 Stopped in pid 0.1 (system) at 0x1bb958f6: invalid address. db> Do you want output from any commands from the debugger? Regards, /P