From owner-freebsd-mips@FreeBSD.ORG Sat Mar 8 15:45:51 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EBA22D85 for ; Sat, 8 Mar 2014 15:45:50 +0000 (UTC) Received: from mail-qa0-x22a.google.com (mail-qa0-x22a.google.com [IPv6:2607:f8b0:400d:c00::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A3DFCD9E for ; Sat, 8 Mar 2014 15:45:50 +0000 (UTC) Received: by mail-qa0-f42.google.com with SMTP id k15so5394773qaq.29 for ; Sat, 08 Mar 2014 07:45:49 -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:message-id:subject :from:to:cc:content-type; bh=2gFKWROLkWgF8//qg2GQkeGhvfodiaX54zz4asQDuS8=; b=OPDrnqeebGvggKcJ578ObVw6pbBvrUQhRpQx/tUVAEb2PRE0IBfK8A81IQc2JMCRuH IkceoBAk+rP71MVqrGvaYFN8qeXZ6OQzmdGp0WN1IoveCJArMRLmUPiQO1HbfWS2M2OL dCYk6vk0YwqguEEbMWaPAqk4d8vaEMe4LO+rzNjpYZq4R52qENBLF28PJTB2LV8hX8Y6 JHbrqEf71R33cBqaPoqNcqLy1/rdd/1+fd4cXtmUVlrpp3h2mUFPZ4oaVTh5mPtLroM+ l3AT1404LK4fbywhbVUKbfYPcFdd97w/57GOObnQSCzqzUPTg7pxtpDQu7/zi11RuJ8M SdUw== MIME-Version: 1.0 X-Received: by 10.140.98.203 with SMTP id o69mr1852821qge.102.1394293549873; Sat, 08 Mar 2014 07:45:49 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.8.137 with HTTP; Sat, 8 Mar 2014 07:45:49 -0800 (PST) In-Reply-To: References: <20140301143607.13a96bd6@zeta.dino.sk> <20140301200546.7ff373d1@zeta.dino.sk> <20140301231239.023b8733@zeta.dino.sk> <20140307140432.0a460da1@zeta.dino.sk> <20140307204230.3c86b9b1@zeta.dino.sk> <20140308140901.19782009@zeta.dino.sk> Date: Sat, 8 Mar 2014 07:45:49 -0800 X-Google-Sender-Auth: fkBIssQgHnXMG46KsuhWA6cGnEM Message-ID: Subject: Re: I (think) the AR8327 switch support now works From: Adrian Chadd To: Milan Obuch Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-mips@freebsd.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2014 15:45:51 -0000 I mean 0x%08x. -a On 8 March 2014 07:44, Adrian Chadd wrote: > Hm, > > On 8 March 2014 05:09, Milan Obuch wrote: >> On Sat, 8 Mar 2014 00:55:38 -0800 >> Adrian Chadd wrote: >> >>> Look at if_arge.c - arge_fetch_mdiobus_clock_rate() . See whether the >>> openwrt config sets the mdiobus frequency to something. >>> >>> The AR9344 defaults to 'MAC_MII_CFG_CLOCK_DIV_58'. >>> >>> Maybe you can fiddle with which divisor it uses. >>> >>> >>> -a >>> >> >> OK, I will try to look there, but in between, some outcome from my >> tests. >> >> 1. AR8327 does not teel much - all I can see there is just >> >> argemdio0: at mem 0x19000000-0x19000fff on nexus0 >> mdio0: on argemdio0 >> mdioproxy0: on mdio0 >> arswitch0: readreg 0: 12041204 >> > > Use 0x08x instead of %d - that way it's more obvious what it's reading. > >> Nothing else. Do you have any idea why there is only one read of >> register at address 0? Where is this read in source? What is in this >> register? It looks like there is expected some other value and >> therefore AR8327 is not recognised. >> >> 2. AR9340 is not correctly initialised, at least I can't see any >> traffic passing to physical port(s) - I can start dhclient arge1 but I >> see nothing at DHCP server comming from that particular MAC, thus no >> address is beeing assigned. If I assign IP manually, packets do not >> reach wire - nothing is seen there. > > If arswitch0 doesn't create an mdiobus1, then it'll not all probe > right. What's the current full dmesg? > > > > -a