From owner-freebsd-mips@FreeBSD.ORG Fri Jan 17 19:24:43 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 80BB7E3F for ; Fri, 17 Jan 2014 19:24:43 +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 3CFB1121A for ; Fri, 17 Jan 2014 19:24:43 +0000 (UTC) Received: by mail-qa0-f42.google.com with SMTP id k4so3704692qaq.15 for ; Fri, 17 Jan 2014 11:24: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:content-transfer-encoding; bh=boD5V8KPO5csxZvZXBSxL3GHkn3qOg+kjhUjveZa698=; b=06qKkftQn1Z19f20tEmTJPrReQv2Yh3oFAft5Gb8xdEbAb01iS7newSXJwhxvU9Diq 294Jsvs7hslRyD59yI6rIGDPjHIFOw6BF2rUWlFu3QCe2dDtQDT56H8UPQSNjhaL5uDx tWheVaSm+crEL7HULenBRTpJReeyB46GfVjUd6WMgx1T6dKQmg/wjsmgJ3Uf6yoIC6kq WKGEyI9WRbLh7lZ0hQyNh+hW41Ofg+G4AiYM5eXU9miXGeRsM8i1ceGwTAuyJ7X+Iis7 bblAdZCOJn8dw6z39UQaN0y+t2I1UBHGUGrUmqBtyZqQ9PFF/r0FZvpew0P7HfVbH2lc zzmQ== MIME-Version: 1.0 X-Received: by 10.224.16.72 with SMTP id n8mr6120270qaa.76.1389986682457; Fri, 17 Jan 2014 11:24:42 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.52.8 with HTTP; Fri, 17 Jan 2014 11:24:42 -0800 (PST) In-Reply-To: <1389768053.407517990@f357.i.mail.ru> References: <1388404360.131024714@f310.i.mail.ru> <1388826328.503909163@f428.i.mail.ru> <1389768053.407517990@f357.i.mail.ru> Date: Fri, 17 Jan 2014 11:24:42 -0800 X-Google-Sender-Auth: R1kj16vc_sPhWhdC4G9irENtAJs Message-ID: Subject: Re: Re[6]: RB450G compiling the kernel From: Adrian Chadd To: Anton Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable 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: Fri, 17 Jan 2014 19:24:43 -0000 Hi! Cool! Would you mind filing a PR so we can get these bits into FreeBSD-HEAD= ? Thanks! -a On 14 January 2014 22:40, Anton wrote: > Hi Adrian, > > I use the kernel created from the rev. 234999 with some patches. > I added mmcsd because my system is installed to the memory card > and I use etherswitch implementation taken from the last HEAD revisions. > > =F3=D5=C2=C2=CF=D4=C1, 4 =D1=CE=D7=C1=D2=D1 2014, 17:29 -08:00 =CF=D4 Adr= ian Chadd : > > Right. Well, let's try and figure out exactly what we should commit to > freebsd-head so we have a known working kernel config + hints for the > RB450. > > Thanks! > > > -a > > > On 4 January 2014 01:05, Anton wrote: >> Adrian, >> >> I'm using the custom hints for RB450 without including other hint files. >> Maybe my mistake was in this. >> -- >> >> =D7=D4=CF=D2=CE=C9=CB, 31 =C4=C5=CB=C1=C2=D2=D1 2013=C7., 21:57 +0400 = =CF=D4 Adrian Chadd >> : >> >> Which kernel configuration file are you building with? >> >> -a >> >> On 31 December 2013 00:23, Anton < felix_mail@mail.ru > wrote: >>> Adrian thanks! >>> >>> I resolved the problem. There was need to add both options in hints fil= e >>> at >>> the same time. >>> >>> hints.argemdio.0.at=3D"nexus0" >>> hints.argemdio.0. >>> .... >>> hints.arge.0.at=3D"nexus0" >>> hints.arge.0. >>> .... >>> >>> =F0=CF=CE=C5=C4=C5=CC=D8=CE=C9=CB, 30 =C4=C5=CB=C1=C2=D2=D1 2013, 11:38= -08:00 =CF=D4 Adrian Chadd >>> < adrian@freebsd.org >: >>> >>> On 30 December 2013 03:52, =E1=CE=D4=CF=CE =F0=C5=D4=D5=C8=CF=D7 < feli= x_mail@mail.ru > wrote: >>>> >>>> Hi, >>>> Can you help me? How can I use AR7161 + AR8316 as two interfaces >>>> available >>>> to the kernel? Etherswitch is very good solution, but he's black box f= or >>>> me. >>>> If I try to compile kernel with switch - all is Ok, but in this case >>>> system >>>> have only one arge1. >>>> I need to route traffic between arge0 and arge1 ports... How, how can = I >>>> do >>>> it? :) >>> >>> Well, it depends on how it's wired up. >>> >>> The AR8316 (and other atheros switches) have an option to peel off one >>> of the ports as a dedicated PHY port, for situations where you have >>> two MACs on the SoC and you want to have a WAN port and multiple LAN >>> ports. >>> >>> Theres three ways to do it: >>> >>> * have one MAC port, map all switch ports to it, then peel off lan/wan >>> via VLAN ids >>> * have two MAC ports, have one port dedicated as a pass-through PHY >>> for the WAN port and the rest be switch ports for the LAN (vlan or >>> otherwise) >>> * a hybrid - have two MAC ports, and just map them using vlan ids or >>> per-port vlans as required. >>> >>> So it boils down to whether the RB450G wires both arge interfaces to >>> the switch. If so, you can peel off a dedicated WAN PHY/port by >>> configuring up the 'phy4cpu' option in the hints file. Otherwise it's >>> vlans all the way down. >>> >>> >>> -adrian >>> >>> >>> >>> -- >>> Anton > > > > -- > =E6=C5=CC=C9=CB=D3 =EB.