Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2013 17:25:08 +0200
From:      Milan Obuch <freebsd-mips@dino.sk>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Aleksandr Rybalko <ray@ddteam.net>, freebsd-mips@freebsd.org
Subject:   Re: Ubiquiti EdgeRouter Lite works multi-user with -CURRENT.
Message-ID:  <20130520172508.087daf7b@zeta.dino.sk>
In-Reply-To: <C48F8AE6-316B-4C4A-AD2B-739C698B0AAC@bsdimp.com>
References:  <CACVs6=_UHMvo6DSyXzvXxJ0eCcSsC%2Bk3yZ42ia5TGzgHduT2zA@mail.gmail.com> <20130516111059.38543d57@wind.dino.sk> <20130516131642.adfae355aa3bf7767e9b56e5@ddteam.net> <20130516124248.33ae4e05@wind.dino.sk> <51952112.9010607@rewt.org.uk> <20130517192206.5db0533f@zeta.dino.sk> <51966CB6.2040701@rewt.org.uk> <CACVs6=-0URQ2f7UqVxRdpuGpf103KOW9CTF6FFCGaGhvg3jOMw@mail.gmail.com> <20130520110659.1d1d2165@zeta.dino.sk> <D1F45DEB-3C3C-42D1-8EDE-94B18AB32152@bsdimp.com> <20130520164001.5f7d99b8@zeta.dino.sk> <C48F8AE6-316B-4C4A-AD2B-739C698B0AAC@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 20 May 2013 08:49:24 -0600, Warner Losh <imp@bsdimp.com> wrote:

> 
> On May 20, 2013, at 8:40 AM, Milan Obuch wrote:
> 
> > On Mon, 20 May 2013 07:25:30 -0600, Warner Losh <imp@bsdimp.com>
> > wrote:
> > 
> >> On May 20, 2013, at 3:06 AM, Milan Obuch wrote:
> >> 
> >>> On Fri, 17 May 2013 10:52:47 -0700, Juli Mallett
> >>> <jmallett@FreeBSD.org> wrote:
> >>> 
> >>>> On Fri, May 17, 2013 at 10:45 AM, Joe Holden <lists@rewt.org.uk>
> >>>> wrote:
> >>>>> 16 possible pins on the controller?  There is only one pin on
> >>>>> the board, and that is the F/D button on the back.
> >>>> 
> >>>> Octeon supports up to 16 GPIO pins and interrupts.  I'd suspect
> >>>> there are other things connected up with GPIO on-board than GPIO
> >>>> pins exposed to the outside world, but even if that's not the
> >>>> case, that's still the number of GPIO pins the SoC supports.
> >>>> 
> >>>> It's possible that the EdgeRouter Lite uses a different pin for
> >>>> its F/D button.  According to the driver, gonzo used the
> >>>> CAM-0100's pin assignment as the default.  It should be easy to
> >>>> extract a list of pin assignments we care about from looking at
> >>>> the patches from Ubiquiti to the Simple Executive and Linux, but
> >>>> I haven't looked personally.  (I don't ever use GPIO on Octeon.)

[ snip ]

> > Back to the original talk - GPIO. I found on Edgerouter Lite pin 11
> > is used for reset switch - aka 'Factory Default' button.
> > 
> > Status is
> > pin 11:	1	F/D<IN>, caps:<IN,OUT>
> > when not pressed and
> > pin 11:	0	F/D<IN>, caps:<IN,OUT>
> > when pressed.
> 
> Does the GPIO driver work with these?
>

Yes, output is from 'gpioctl -f /dev/gpioc0 -lv' command execution.
Actually, I wrote all 16 pins (0 to 15) in sys/mips/cavium/octeon_gpio.c
so I can see quickly which GPIO pin is connected to reset switch. Pin
11 changed when pressing the switch.

> > However, I found a problem with ethernet driver. It works only in
> > gigabit mode - connected to 100baseT switch is correctly
> > negotiated, it seems, but no traffic flows, either way, probably.
> > What could I do to diagnose root cause of this problem?
> 
> You should be able to force it to 100baseT on a GigE switch as a
> first step to tracking this down. Are you connecting to a 100baseT
> hub or switch? I've had stutter issues with my 100baseT hub so I've
> switched to using the GigE switch entirely... I also switched my
> board from octm to octe interfaces for things like NFS, on the theory
> they are better optimized...
>

Unfortunatelly, my switch seems to be gone now, so I can't test it at a
moment. 100baseT switch I tried it against is not managed. It takes
some time for me to have fully working setup to test it. Now I know it
works against anothetr gigabit card (em driver actually) but not
against 100baseT switch. No traffic is seen, even broadcast is not
there according to tcpdump. 100baseT link is detected correctly,
however, as seen in ifconfig output:

media: Ethernet autoselect (100baseTX <full-duplex>)

and link LED as well (orange vs. green when 1000baseT mode, as described

media: Ethernet autoselect (1000baseT <full-duplex,master>)

in ifconfig output).

> I've been away at BSDcan for about a week, and so my experience is
> about 10-15 days old right now. Today is catchup day at work, but
> I'll try to look to morrow.
> 
> Warner

Well, if anybody has some patch to test, I will. For the time being I
will test other properties of this device...

Regards,
Milan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130520172508.087daf7b>