From owner-freebsd-embedded@FreeBSD.ORG Wed Nov 30 01:06:51 2011 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69F241065670; Wed, 30 Nov 2011 01:06:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id D75EB8FC0A; Wed, 30 Nov 2011 01:06:50 +0000 (UTC) Received: by vbbfr13 with SMTP id fr13so3470693vbb.13 for ; Tue, 29 Nov 2011 17:06:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5i7KiSAfuCglX+g9x0vBpa8DrvUvIr8aLDmJqvIiSyw=; b=KPcqqOtOAuJi4l6ddVgCtHYB9dYwnDn6VuKeWzy2XoInDovXIDCxWnwr+/AIjWwyO3 7ICW4p3lH0iRq1YpKgM/9YJ4O3CIUXm5MS41LwhYuYdj3Hb0cANDDETx7VolQRqbgfoN LsbmoUBDhClOVAsExErMynmbBaPyYfS5GC83c= MIME-Version: 1.0 Received: by 10.52.34.211 with SMTP id b19mr110100vdj.112.1322615209764; Tue, 29 Nov 2011 17:06:49 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.186.74 with HTTP; Tue, 29 Nov 2011 17:06:49 -0800 (PST) In-Reply-To: <86030CEE-6839-4B96-ACDC-2BA9AC1E4AE4@lassitu.de> References: <68ABED76-CB1F-405A-8036-EC254F7511FA@lassitu.de> <3B3DB17D-BF87-40EE-B1C1-445F178E8844@lassitu.de> <86030CEE-6839-4B96-ACDC-2BA9AC1E4AE4@lassitu.de> Date: Wed, 30 Nov 2011 09:06:49 +0800 X-Google-Sender-Auth: sWqFwJxWSB4g8X6fbBs4YVOcmvU Message-ID: From: Adrian Chadd To: Stefan Bethke Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Marius Strobl , Aleksandr Rybalko , freebsd-embedded@freebsd.org Subject: Re: TL-WR1043: switch X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2011 01:06:51 -0000 On 30 November 2011 06:59, Stefan Bethke wrote: > I couldn't get iic to work, so I rolled my own userland bitbanging utilit= y, based roughly on the OpenWrt code (minus some small bugs) and the datash= eet. > > I can read and write registers, but to my consternation, most of the func= tionality (MIB counters, ST controls, etc.) seems to be somehow disabled or= just plain missing. > > I'll try to get a basic utility up and running to use the basic VLAN mode= (not the table-based mode) tomorrow. =A0Once that's working suffiently wel= l, I could make it into a stand-alone driver, or see if it can be integrate= d into Aleksandrs work. Cool! Let's see if we can at least use it as a test point to compare ray's switch framework code against. Ideally it'll be another switch driver, perhaps split into three bits - core, i2c glue, miibus glue. I wonder why the iic driver doesn't work. I'd ideally like to glue the switch core to either an i2c bus (for those switches which sit on i2c) or via an MII PHY, where appropriate. ray@ and marius@ may have a better idea about how to handle this. Thanks for your interest and development work with this! I'll be back on track in a couple of weeks and we can integrate all this stuff back into -HEAD. Adrian