From owner-freebsd-mips@FreeBSD.ORG Fri Dec 30 22:49:28 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D62D11065670; Fri, 30 Dec 2011 22:49:28 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2001:470:1f0b:105e::1ea]) by mx1.freebsd.org (Postfix) with ESMTP id 3CAA38FC18; Fri, 30 Dec 2011 22:49:28 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id DF6C5115BE4; Fri, 30 Dec 2011 22:49:26 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: Stefan Bethke In-Reply-To: <20111231000638.d257448c.ray@ddteam.net> Date: Fri, 30 Dec 2011 23:49:26 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <98BA8EF5-E808-43F8-92A8-68B14CAF998F@lassitu.de> References: <20111231000638.d257448c.ray@ddteam.net> To: freebsd-mips@freebsd.org X-Mailer: Apple Mail (2.1251.1) Cc: Aleksandr Rybalko Subject: Re: arge problem on MR3420 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2011 22:49:28 -0000 OK, trying to pull in everyone. There seems to be a problem with = if_arge on certain chips/platforms. I've encountered it on TL-MR3420 = and WRT-160NL. I'm currently working off Adrians gitorious repo. I will try and find a working revision from head. I've set these hints: # Hard-code the PHY for now, until there's switch phy support. hint.arge.0.phymask=3D0x000c hint.arge.0.media=3D1000 hint.arge.0.fduplex=3D1 # Where is the MAC address stored in flash for this particular unit. hint.arge.0.eeprommac=3D0x1f01fc00 # This isn't used, but configure it anyway. # This should eventually just not be configured, but the if then # needs to be properly disabled or spurious interrupts occur. hint.arge.1.phymask=3D0x0 I've disabled ath for now. U-Boot 1.1.4 (Nov 4 2010 - 18:40:28) AP99 (ar7241 - Virian) U-boot DRAM: =20 sri ar7240_ddr_initial_config(133): virian ddr1 init #### TAP VALUE 1 =3D 0xf, 2 =3D 0x10 [0x0: 0x1f] 32 MB id read 0x100000ff sector count =3D 64 Flash: 4 MB Using default environment In: serial Out: serial Err: serial Net: ag7240_enet_initialize... No valid address in Flash. Using fixed address No valid address in Flash. Using fixed address Virian MDC CFG Value =3D=3D> 4 : cfg1 0xf cfg2 0x7014 eth0: 00:03:7f:09:0b:ad eth0 up Virian MDC CFG Value =3D=3D> 4 : cfg1 0xf cfg2 0x7214 eth1: 00:03:7f:09:0b:ad ATHRS26: resetting s26 ATHRS26: s26 reset done eth1 up eth0, eth1 Autobooting in 1 seconds ar7240> bootp dup 1 speed 1000 BOOTP broadcast 1 Using eth1 device TFTP from server 44.128.65.1; our IP address is 44.128.65.7 Filename 'TL-MR3420.factory.bin'. Load address: 0x81000000 Loading: = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# = ################################################################# ############################ done Bytes transferred =3D 8126464 (7c0000 hex) ar7240> bootm 0x81000000 ## Booting image at 81000000 ... Uncompressing Kernel Image ... OK Starting kernel ... CPU platform: Atheros AR7241 rev 1 CPU Frequency=3D400 MHz CPU DDR Frequency=3D400 MHz CPU AHB Frequency=3D200 MHz platform frequency: 400000000 arguments:=20 a0 =3D 00000008 a1 =3D a1f87fb0 a2 =3D a1f88470 a3 =3D 00000004 Cmd line:argv is invalid 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-2011 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 #6: Thu Jan 1 01:00:00 CET 1970 = stb@dummy:/home/stb/working/fe/obj/mipseb/mips.mipseb/home/stb/working/fe/= stb-adrianchadd-freebsd-work/sys/TL-MR3420 mips WARNING: WITNESS option enabled, expect reduced performance. real memory =3D 33554432 (32768K bytes) avail memory =3D 25505792 (24MB) nexus0: clock0: on nexus0 Timecounter "MIPS32" frequency 200000000 Hz quality 800 Event timer "MIPS32" frequency 200000000 Hz quality 800 apb0 at irq 4 on nexus0 uart0: <16550 or compatible> on apb0 uart0: console (115200,n,8,1) gpio0: on apb0 gpio0: [GIANT-LOCKED] gpio0: function_set: 0x0 gpio0: function_clear: 0x0 gpio0: gpio pinmask=3D0x0 gpioc0: on gpio0 gpiobus0: on gpio0 gpioled0: at pin(s) 0 on gpiobus0 gpioled1: at pin(s) 1 on gpiobus0 gpioled2: at pin(s) 3 on gpiobus0 ar71xx_pmc0: on apb0 ehci0: at mem = 0x1b000100-0x1bffffff irq 1 on nexus0 usbus0: set host controller mode usbus0: EHCI version 1.0 usbus0: set host controller mode usbus0: on ehci0 arge0: at mem = 0x19000000-0x19000fff irq 2 on nexus0 arge0: Overriding MAC from EEPROM arge0: Ethernet address: 54:e6:fc:d1:59:18 arge1: at mem = 0x1a000000-0x1a000fff irq 3 on nexus0 device_attach: arge1 attach returned 22 spi0: at mem 0x1f000000-0x1f00000f on nexus0 spibus0: on spi0 mx25l0: at cs 0 on spibus0 Unknown SPI flash device. Vendor: 01, device id: 0215 device_attach: mx25l0 attach returned 6 ar71xx_wdog0: on nexus0 ar71xx_wdog0: Previous reset was due to watchdog timeout Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 Sending DHCP Discover packet from interface arge0 (54:e6:fc:d1:59:18) ugen0.1: at usbus0 uhub0: on = usbus0 uhub0: 1 port with 1 removable, self powered interrupt storm detected on "int2"; throttling interrupt source interrupt storm detected on "int2"; throttling interrupt source interrupt storm detected on "int2"; throttling interrupt source interrupt storm detected on "int2"; throttling interrupt source DHCP/BOOTP timeout for server 255.255.255.255 interrupt storm detected on "int2"; throttling interrupt source interrupt storm detected on "int2"; throttling interrupt source interrupt storm detected on "int2"; throttling interrupt source DHCP/BOOTP timeout for server 255.255.255.255 interrupt storm detected on "int2"; throttling interrupt source interrupt storm detected on "int2"; throttling interrupt source interrupt storm detected on "int2"; throttling interrupt source interrupt storm detected on "int2"; throttling interrupt source DHCP/BOOTP timeout for server 255.255.255.255 interrupt storm detected on "int2"; throttling interrupt source interrupt storm detected on "int2"; throttling interrupt source interrupt storm detected on "int2"; throttling interrupt source interrupt storm detected on "int2"; throttling interrupt source DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 arge0: initialization failed: no memory for rx buffers DHCP/BOOTP timeout for server 255.255.255.255 arge0: initialization failed: no memory for rx buffers --=20 Stefan Bethke Fon +49 151 14070811