From owner-freebsd-mips@FreeBSD.ORG Mon Mar 17 00:30:04 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 BE2CC6F6 for ; Mon, 17 Mar 2014 00:30:04 +0000 (UTC) Received: from mail-qc0-x229.google.com (mail-qc0-x229.google.com [IPv6:2607:f8b0:400d:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7C9957A3 for ; Mon, 17 Mar 2014 00:30:04 +0000 (UTC) Received: by mail-qc0-f169.google.com with SMTP id i17so5250044qcy.14 for ; Sun, 16 Mar 2014 17:30:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=p0IqGvvg0P1eE7sGOkmIfQSoz7jUxX0lwQhP59c3WeU=; b=U8QD5GxiTnDwwEndrTgPQNbO6xh9/ajGnhKkFeLLhzup3tZFpLFGov06uvlY7/Ri01 nRkI1nADwtMs9hu4qQdBvXzQyT99fNL6AsdE3+cHh7lBF8TTA4NC3fjMwuRuKiGJg/mm 7pS8LuQ63q8paIzzC2UkgskNUDzLyP+Bp3pXEADh9faFZijJUmSh0Whq0Cd7RXbaSO5A kxbt65Lk//ryVGzEHvYv+M5TMiPt/6iFhizEP5jn4HufQpSnicICHwqdL1++Ezv/Plfh O1qCUm0mrivIpFa4A7dRZ5/AfSzvgM0FKcwc01RwwLASoJa9ZApDHi/tBB7eUG2GDg/S nNVA== MIME-Version: 1.0 X-Received: by 10.224.123.137 with SMTP id p9mr24486619qar.39.1395016203665; Sun, 16 Mar 2014 17:30:03 -0700 (PDT) Received: by 10.224.8.137 with HTTP; Sun, 16 Mar 2014 17:30:03 -0700 (PDT) In-Reply-To: <20140316223337.530e6efe@zeta.dino.sk> References: <20140316223337.530e6efe@zeta.dino.sk> Date: Sun, 16 Mar 2014 17:30:03 -0700 Message-ID: Subject: Re: db120 (mips74k) boot messages; further help wanted 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: Mon, 17 Mar 2014 00:30:04 -0000 Hi, What did we try? We did fix the AR8327 version id stuff, so now it's the MDIO stability that's the problem. Try arge_reset_miibus() - you could override mdio_div with different values of MAC_MII_CFG_CLOCK_DIV_* values. -a On 16 March 2014 14:33, Milan Obuch wrote: > On Sun, 16 Mar 2014 01:46:05 -0700 > Adrian Chadd wrote: > >> Hi, >> >> Now that I've mostly finished the DB120 port and Sean's working on the >> DIR-825 (rev C1) port, I thought I'd just give a boot example of this >> platform. >> > > On RB2011 it works too, but network part is still a problem I did not > solve. > >> It's quite a sweet mips board. I haven't yet booted a full rootfs via >> USB; that's what I'll do tomorrow or Monday. I'll start stress testing >> the userland and VM then. But it works great as an AP. >> >> https://code.google.com/p/freebsd-wifi-build/wiki/AtherosReferenceDB120 >> >> I'm hoping the DIR-825 C1 port will be just as stable as the DB120 is >> for me. >> >> Now, the missing bits: >> >> * NAND flash controller - I'm making a start on this now; > > That's great, keep us informed - I will test it on my RB2011 too. > >> * I2S - I'll port this over afterward, so we can have sound on boards >> that ship with sound; >> * AR8327 VLAN (tagged and per-port) support - someone else will have >> to crime this from openwrt. I may eventually get around to it, but >> it'll take some time. I don't currently use the VLAN stuff at home and >> I haven't yet set this up as a router gateway so I don't need the >> LAN/WAN port distinction. >> > > Well, as Atheros934x SoC has actually two network intefaces (arge0 and > arge1), you could use them for outer/inner interface, even if it does > not make it to the full use of device. Anyway, I would like to play > with vlan support, unfortunately mdio does not yet work for me yet. > Sometimes it works and switch looks to be recognised correctly, but > even then it is not properly initialised and no network traffic passes > through. The same is valid for both external and intenal switch. > >> Thanks to Hiren/Sean for persevering on the DIR-825 rev C1 board port. >> The config files and build script stuff should be committed in various >> places in the next couple of days. >> > > I would be happy to post my configs and have them in src tree, but it > is not yet ready. Network must work reliably first. > > Regards, > Milan