From owner-freebsd-net@FreeBSD.ORG Sun Jan 22 15:31:09 2012 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 726AD106564A; Sun, 22 Jan 2012 15:31:09 +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 DAFAD8FC08; Sun, 22 Jan 2012 15:31:08 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 7BC85451C; Sun, 22 Jan 2012 15:31:07 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: Stefan Bethke In-Reply-To: <20120120221319.ca8b631f.ray@freebsd.org> Date: Sun, 22 Jan 2012 16:31:06 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <30A45A1E-CA13-4AC8-86FB-F8E06301D1F6@lassitu.de> References: <20120120221319.ca8b631f.ray@freebsd.org> To: Aleksandr Rybalko X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-net@FreeBSD.org, freebsd-arch@FreeBSD.org Subject: Re: Ethernet Switch Framework X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jan 2012 15:31:09 -0000 Am 20.01.2012 um 21:13 schrieb Aleksandr Rybalko: > It include sys/mips/conf/AR7240, that together with hints file is good > example for typical AR7240 setup. I=C4m heaving trouble getting this to work. The patch applies cleanly = and I can get a kernel compiled and booted, but neither arge0 nor arge1 = appear to be functional. I had to roll my own kernel config as your = AR7240 hangs before printing anything on my TL-MR3420. dmesg and devinfo below. Stefan 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-2012 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 #1: Thu Jan 1 01:00:00 CET 1970 = stb@dummy:/home/stb/working/fe/obj/mipseb/mips.mipseb/home/stb/working/fe/= freebsd/sys/TL-MR3420D mips WARNING: WITNESS option enabled, expect reduced performance. real memory =3D 33554432 (32768K bytes) avail memory =3D 25567232 (24MB) random device not loaded; using insecure entropy nexus0: nexus0: failed to add child: arge0 nexus0: failed to add child: arge1 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=3D0x1943 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 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: No PHY specified, using mask 16 miibus0: on arge0 floatphy0 PHY 0 on miibus0 floatphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, = 1000baseSX, 1000baseSX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, = 1000baseT-FDX-master, auto switch0 PHY 1 on miibus0 switch0: 100baseTX, 100baseTX-FDX, 1000baseSX, 1000baseSX-FDX, = 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master ar8x16_switch0: on switch0 arge0: Ethernet address: ff:ff:ff:ff:ff:ff arge1: at mem = 0x1a000000-0x1a000fff irq 3 on nexus0 arge1: No PHY specified, using mask 15 arge1: Ethernet address: ff:ff:ff:ff:ff:00 spi0: at mem 0x1f000000-0x1f00000f on nexus0 spibus0: on spi0 mx25l0: at cs 0 on spibus0 mx25l0: s25s1032, sector 65536 bytes, 64 sectors 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 ugen0.1: at usbus0 uhub0: on = usbus0 WARNING: WITNESS option enabled, expect reduced performance. uhub0: 1 port with 1 removable, self powered Root mount waiting for: usbus0 Root mount waiting for: usbus0 Root mount waiting for: usbus0 ugen0.2: at usbus0 umass0: on = usbus0 umass0: SCSI over Bulk-Only; quirks =3D 0x0100 umass0:0:0:-1: Attached to scbus0 Trying to mount root from ufs:map/rootfs.uzip []... mountroot: waiting for device map/rootfs.uzip ... da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SCSI-0 = device=20 da0: 40.000MB/s transfers da0: 15252MB (31236096 512 byte sectors: 255H 63S/T 1944C) Trying to mount root from ufs:da0s1a []... warning: no time-of-day clock registered, system time will not be set = accurately Setting hostuuid: aed4c502-193a-11e1-b662-74ea3ae4d920. Setting hostid: 0x6a714343. Entropy harvesting: interrupts ethernet point_to_point kickstart. Starting file system checks: /dev/da0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/da0s1a: clean, 3849245 free (1085 frags, 481020 blocks, 0.0% = fragmentation) lock order reversal: 1st 0x8095691c ufs (ufs) @ = /home/stb/working/fe/freebsd/sys/kern/vfs_mount.c:1245 2nd 0x80956e94 devfs (devfs) @ = /home/stb/working/fe/freebsd/sys/kern/vfs_subr.c:2167 KDB: stack backtrace: db_trace_thread+30 (?,?,?,?) ra c3f597c000000018 sp 0 sz 0 db_trace_self+1c (?,?,?,?) ra c3f597d800000018 sp 0 sz 0 800776d8+34 (?,?,?,?) ra c3f597f0000001a0 sp 0 sz 0 kdb_backtrace+44 (?,?,?,?) ra c3f5999000000018 sp 0 sz 0 801b3bbc+34 (?,?,?,?) ra c3f599a800000020 sp 0 sz 0 witness_checkorder+9cc (?,?,803b1f7c,877) ra c3f599c800000050 sp 0 sz 1 __lockmgr_args+948 (?,?,80956eb4,?) ra c3f59a1800000070 sp 0 sz 1 vop_stdlock+4c (?,?,?,?) ra c3f59a8800000028 sp 0 sz 0 VOP_LOCK1_APV+e4 (?,?,?,?) ra c3f59ab000000020 sp 0 sz 0 _vn_lock+84 (?,?,?,?) ra c3f59ad000000048 sp 0 sz 0 vget+c8 (?,?,?,?) ra c3f59b1800000030 sp 0 sz 0 devfs_allocv+100 (?,?,?,?) ra c3f59b4800000038 sp 0 sz 0 800ba9b4+4c (?,?,?,?) ra c3f59b8000000028 sp 0 sz 0 vflush+6c (?,?,0,80991300) ra c3f59ba8000000f8 sp 0 sz 1 800baa74+54 (?,?,?,?) ra c3f59ca000000028 sp 0 sz 0 dounmount+3f0 (809e8000,?,?,?) ra c3f59cc800000050 sp 100000000 sz 0 sys_unmount+39c (?,?,?,?) ra c3f59d18000000b0 sp 0 sz 0 trap+7f4 (?,?,?,?) ra c3f59dc8000000b8 sp 0 sz 0 MipsUserGenException+10c (?,?,?,404b53c0) ra c3f59e8000000000 sp 0 sz 0 pid 70 Mounting local file systems:. Setting hostname: whitebox.lassitu.de. miibus0: mii_mediachg: can't handle non-zero PHY instance 1 floatphy0: found master switch0 miibus0: mii_mediachg: can't handle non-zero PHY instance 1 arge0: link state changed to DOWN Starting Network: lo0 arge0 arge1. lo0: flags=3D8049 metric 0 mtu 16384 options=3D3 inet6 ::1 prefixlen 128=20 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4=20 inet 127.0.0.1 netmask 0xff000000=20 nd6 options=3D21 arge0: flags=3D8843 metric 0 mtu = 1500 options=3D80000 ether ff:ff:ff:ff:ff:ff inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255=20 inet6 fe80::481f:1b46:dbf1:bd78%arge0 prefixlen 64 scopeid 0x2=20= nd6 options=3D29 media: Ethernet autoselect (100baseTX ) status: no carrier arge1: flags=3D8843 metric 0 mtu = 1500 ether ff:ff:ff:ff:ff:00 inet 44.128.65.33 netmask 0xffffffc0 broadcast 44.128.65.63=20 inet6 fe80::481f:1b46:dbf1:bd78%arge1 prefixlen 64 scopeid 0x3=20= nd6 options=3D29 media: Ethernet 100baseTX status: active add net default: gateway 44.128.65.1 add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 add net fe80::: gateway ::1 add net ff02::: gateway ::1 Mounting NFS file systems:mount_nfs: diesel: hostname nor servname = provided, or not known . Creating and/or trimming log files. No core dumps found. ELF ldconfig path: /lib /usr/lib /usr/lib/compat Setting date via ntp. Error : hostname nor servname provided, or not known 22 Jan 15:01:04 ntpdate[566]: can't find host diesel 22 Jan 15:01:04 ntpdate[566]: no servers can be used, exiting Clearing /tmp (X related). Mounting late file systems:mount_nfs: diesel: hostname nor servname = provided, or not known . Mounting /etc/fstab filesystems failed,Jan 22 15:01:12 init: /bin/sh on = /etc/rc terminated abnormally, going to single user mode Enter full pathname of shell or RETURN for /bin/sh:=20 # devinfo nexus0 clock0 apb0 uart0 gpio0 gpioc0 gpiobus0 gpioled0 gpioled1 gpioled2 ehci0 usbus0 uhub0 umass0 arge0 miibus0 floatphy0 switch0 ar8x16_switch0 arge1 spi0 spibus0 mx25l0 ar71xx_wdog0 #=20 --=20 Stefan Bethke Fon +49 151 14070811