From owner-freebsd-mips@FreeBSD.ORG Sat Mar 1 17:07:44 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 17ECC844 for ; Sat, 1 Mar 2014 17:07:44 +0000 (UTC) Received: from mail-qa0-x235.google.com (mail-qa0-x235.google.com [IPv6:2607:f8b0:400d:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C4F3E1AFB for ; Sat, 1 Mar 2014 17:07:43 +0000 (UTC) Received: by mail-qa0-f53.google.com with SMTP id w8so519151qac.12 for ; Sat, 01 Mar 2014 09:07:42 -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=nD1MfNulfcb+oxJzT9lMimMBycHo5Y710OZ9siUIcwU=; b=Js+VtKsrGaQ4dfFiCWPtvLjLnv3LyBvFHwgbyh6zs7Ygf3zjDjqTSOPJVoVDIw9zxo J1K5ib8IFCsbaqxMFm3nj9ry2F8y7PmijfwmwTkHogH0IoyDfq4pKZ+TanbkYVdpMHLV rsxyRM3ZUi+GK3kps4k89gs3DhrB+oBS3PG/pkU6zeDp+h6LoLOmKPGIxhhsaGqnRrMc Hpg6GBRQngpZ8TYES249/N3kfEaG/Qs+qTCGNfyTp6GFTE+FMBf0aD9LADTMjBDywvK1 s1ZGRm3CvOrWvW61PQs85s6Gt5zpYw27FT9RtkjEC7rSH4lc14awOax3FSqcJg/kA8b4 la7A== MIME-Version: 1.0 X-Received: by 10.224.61.2 with SMTP id r2mr12364575qah.49.1393693662919; Sat, 01 Mar 2014 09:07:42 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.16.10 with HTTP; Sat, 1 Mar 2014 09:07:42 -0800 (PST) In-Reply-To: <20140301143607.13a96bd6@zeta.dino.sk> References: <20140301143607.13a96bd6@zeta.dino.sk> Date: Sat, 1 Mar 2014 09:07:42 -0800 X-Google-Sender-Auth: l-n37DNYTYTpd0dvIDNwZTfGMuo 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, 01 Mar 2014 17:07:44 -0000 Yeah, USB still doesn't work. I don't know why that is. :( Are the flash IDs from Linux? I can commit those easily enough. Thanks, -a On 1 March 2014 05:36, Milan Obuch wrote: > On Sat, 1 Mar 2014 02:06:49 -0800 > Adrian Chadd wrote: > >> Hi, >> >> I think I just figured out the last bits of missing magic to get the >> AR8327 to work out of the box. VLANs just plain don't work yet, so >> don't ask me about that. Also if port 6 is hooked up to anything (it >> isn't on my DB120) then please let me know; I'd really like to debug >> that particular support. >> >> But, I'm now using my DB120 development board (AR9344, dual-band wifi >> and AR8327 switch) as an AP. I'll move to using it as my day to day >> access point and see what happens. >> >> Next - those mikrotik boards. And maybe Sean's DIR-825 rev C1. >> >> >> -a >> > > Hi, > > I am still not able to get ethernet working on Routerboard 2011L... I > did a fresh recompile with current HEAD sources, but neither AR8327 nor > AR8227 switch chip is recognised and properly initialised. My setup is > basically the same as in message sent in December 8, 2013 - see > http://lists.freebsd.org/pipermail/freebsd-mips/2013-December/003182.html > although I experiment with various hints and configs, but based on > DB120 used as a reference point. It looks like something's different... > > Also, ehci does not work either - I just see this: > > ugen0.1: at usbus0 > uhub0: on usbus0 > uhub0: 1 port with 1 removable, self powered > usb_alloc_device: set address 2 failed (USB_ERR_IOERROR, ignored) > usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR > usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored) > usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR > usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored) > usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR > usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored) > usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR > usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored) > usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR > ugen0.2: at usbus0 (disconnected) > > I was able to modify mx25l.c so at least SPI flash is recognised with > following patch: > > Index: /data/src/11/sys/dev/flash/mx25l.c > =================================================================== > --- /data/src/11/sys/dev/flash/mx25l.c (revision 262653) > +++ /data/src/11/sys/dev/flash/mx25l.c (working copy) > @@ -110,6 +110,9 @@ > { "SST25VF032B", 0xbf, 0x254a, 64 * 1024, 64, FL_ERASE_4K | > FL_ERASE_32K }, > /* Winbond -- w25x "blocks" are 64K, "sectors" are 4KiB */ > + { "w25x10", 0xef, 0x3011, 64 * 1024, 2, FL_ERASE_4K }, > + { "w25x20", 0xef, 0x3011, 64 * 1024, 4, FL_ERASE_4K }, > + { "w25x40", 0xef, 0x3011, 64 * 1024, 8, FL_ERASE_4K }, > { "w25x32", 0xef, 0x3016, 64 * 1024, 64, FL_ERASE_4K }, > { "w25q32", 0xef, 0x4016, 64 * 1024, 64, FL_ERASE_4K }, > { "w25q64", 0xef, 0x4017, 64 * 1024, 128, FL_ERASE_4K }, > > I am still (somehow blindly) trying, no success yet... > > Regards, > Milan