Date: Fri, 30 Dec 2011 23:49:26 +0100 From: Stefan Bethke <stb@lassitu.de> To: freebsd-mips@freebsd.org Cc: Aleksandr Rybalko <ray@ddteam.net> Subject: Re: arge problem on MR3420 Message-ID: <98BA8EF5-E808-43F8-92A8-68B14CAF998F@lassitu.de> In-Reply-To: <20111231000638.d257448c.ray@ddteam.net> References: <B40E8E4D-115F-46EF-A51F-52E562EF166E@lassitu.de> <CAJ-VmokWLzfjd%2B=_=tSt7ukc=gK2kd9H5s7sH-7bbzSpzBFUcQ@mail.gmail.com> <20111231000638.d257448c.ray@ddteam.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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<PerfCount,WatchRegs,MIPS16,EJTAG> 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: <MIPS32 root nexus> clock0: <Generic MIPS32 ticker> 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: <Atheros AR71XX GPIO driver> on apb0 gpio0: [GIANT-LOCKED] gpio0: function_set: 0x0 gpio0: function_clear: 0x0 gpio0: gpio pinmask=3D0x0 gpioc0: <GPIO controller> on gpio0 gpiobus0: <GPIO bus> on gpio0 gpioled0: <GPIO led> at pin(s) 0 on gpiobus0 gpioled1: <GPIO led> at pin(s) 1 on gpiobus0 gpioled2: <GPIO led> at pin(s) 3 on gpiobus0 ar71xx_pmc0: <Atheros AR71XX PMC interrupt device> on apb0 ehci0: <AR71XX Integrated USB 2.0 controller> at mem = 0x1b000100-0x1bffffff irq 1 on nexus0 usbus0: set host controller mode usbus0: EHCI version 1.0 usbus0: set host controller mode usbus0: <AR71XX Integrated USB 2.0 controller> on ehci0 arge0: <Atheros AR71xx built-in ethernet interface> at mem = 0x19000000-0x19000fff irq 2 on nexus0 arge0: Overriding MAC from EEPROM arge0: Ethernet address: 54:e6:fc:d1:59:18 arge1: <Atheros AR71xx built-in ethernet interface> at mem = 0x1a000000-0x1a000fff irq 3 on nexus0 device_attach: arge1 attach returned 22 spi0: <AR71XX SPI> at mem 0x1f000000-0x1f00000f on nexus0 spibus0: <spibus bus> on spi0 mx25l0: <M25Pxx Flash Family> at cs 0 on spibus0 Unknown SPI flash device. Vendor: 01, device id: 0215 device_attach: mx25l0 attach returned 6 ar71xx_wdog0: <Atheros AR71XX watchdog timer> 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: <Atheros> at usbus0 uhub0: <Atheros EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> 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 <stb@lassitu.de> Fon +49 151 14070811
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98BA8EF5-E808-43F8-92A8-68B14CAF998F>