Date: Tue, 16 Jul 2013 10:48:56 -0300 From: Luiz Otavio O Souza <lists.br@gmail.com> To: Adrian Chadd <adrian@freebsd.org> Cc: freebsd-embedded <freebsd-embedded@freebsd.org> Subject: Re: Making Picostation m2HP work Message-ID: <CAB=2f8yPSSpOZBwOv8Xr5=OtM%2BMq0-h-%2B9-tKTgjR7LvCfX6jQ@mail.gmail.com> In-Reply-To: <CAJ-VmokPNDgkdziRFr3-MnDZudskGb0ykRk9jfY1nWhrxBZEKw@mail.gmail.com> References: <CALCpEUHxqyZb1Y5WqsuxjvwY2Pd_xN2%2BoTgsew0DwdRMC6=5Nw@mail.gmail.com> <CAJ-VmomtCNq3KUjVfcaLGjnSLjnvBWKzARs8TzebmN9MdMFkcA@mail.gmail.com> <CALCpEUGmtpVL=Y5Uqiz_h4%2BKgBDH9%2B=vC_DJHyU5rvOGOdiSag@mail.gmail.com> <CALCpEUE%2BDMq9KYBNZfJLx6DTxAY%2B1gv3uLQ3OtO-N1W1zRKL=Q@mail.gmail.com> <CAJ-VmokNR6VzdG7EC0jpEQN40He%2BUR=Y99dmzakXMfO3ojHjqw@mail.gmail.com> <CALCpEUFiQp-UrZHe9X-zxneQUc9p%2BX1Ojbp0F865a1QTPicp%2Bg@mail.gmail.com> <CALCpEUGbk8mCFqOUp6WxfdcH-kveudG-f4S0muUg4aYy0uqBtA@mail.gmail.com> <CAJ-VmomsSBSs9QumGc6z=aYQ0OUqjGcxBnnsy%2B1NR_F83KUzxg@mail.gmail.com> <CALCpEUG4FR2qugb-ZYHG%2BJ7xcOL34edkPx41yOwU7qK-BynGOw@mail.gmail.com> <CAJ-VmokPNDgkdziRFr3-MnDZudskGb0ykRk9jfY1nWhrxBZEKw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 16 July 2013 00:52, Adrian Chadd <adrian@freebsd.org> wrote: > Right, > > you have to get the mdio bus configured up right, then attach arswitch to > it. > > Then you tell arge0/arge1 what PHY it speaks to, via Stefan's mdioproxy > stuff. > > _then_ arge0/arge1 will come up. > > Now, as for how you do that - i'd have to re-read the datasheet and > write some documentation: > > * one of them (I think arge0) is directly glued to arswitch with no > PHY per se - it's hard-programmed with a MIIbus mode (RMGII I think?) > and 100/full or 1000/full > It's usually the arge1 which is dedicated to switch and it's hard-programmed as 1000/full (even when the switch ports are just 10/100). arge0 is the 'WAN' port (using the dedicated PHY 4). The MDIO is at arge0 on ar7240 and at arge1 on ar7241. [...] > > I'll follow this up with a post explaining how the miibus, mdiobus, > mdioproxy stuff and how arswitch is configured. Then I'll braindump > that into the wiki. Thanks Adrian! Stefan also has a nice documentation about how this stuff fits together: https://wiki.freebsd.org/StefanBethke/EtherSwitch http://www.bsdcan.org/2012/schedule/attachments/201_BSDCan-2012-Bethke-Ethernet-Switch-Framework.pdf Luiz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB=2f8yPSSpOZBwOv8Xr5=OtM%2BMq0-h-%2B9-tKTgjR7LvCfX6jQ>