I (think) the AR8327 switch support now works

Milan Obuch freebsd-mips at dino.sk
Fri Mar 7 19:42:34 UTC 2014


On Fri, 7 Mar 2014 10:19:03 -0800
Adrian Chadd <adrian at freebsd.org> wrote:

> On 7 March 2014 05:04, Milan Obuch <freebsd-mips at dino.sk> wrote:
> > On Thu, 6 Mar 2014 23:05:56 -0800
> > Adrian Chadd <adrian at freebsd.org> wrote:
> >
> >> Hi,
> >>
> >> So I'd add some debugging in arswitch_readreg() and
> >> arswitch_writereg() to see what's being read/written. It should be
> >> obviously wrong or not.
> >>
> >> It may be something like the arge0/arge1 MDIO speeds need to be
> >> changed.
> >>
> >>
> >> -a
> >
> > Where is this debugging? I just svn update my src-current tree,
> > built new kernel and does not see any debug info...
> 
> There isn't any; you have to add printfs to them. :)
> 
> 
> -a

Ahh, I misunderstood you, sorry...

So, yes, I did add some printfs, diff in attachment, and voila,
arswitch1 probes and /dev/etherswitch0 got created... so this looks
like some timing issue. I am going to repeat this test with new flash
with fresh world, so I can actually try to do something. In the
meantime, do you have any idea how can I adjust MDIO speed so no printf
is necessary?

Milan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arswitch.diff
Type: text/x-patch
Size: 732 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-mips/attachments/20140307/19808fbf/attachment.bin>


More information about the freebsd-mips mailing list