Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2013 07:55:37 +0200
From:      Milan Obuch <freebsd-mips@dino.sk>
To:        Joe Holden <lists@rewt.org.uk>
Cc:        Aleksandr Rybalko <ray@ddteam.net>, freebsd-mips@freebsd.org
Subject:   Re: Ubiquiti EdgeRouter Lite works multi-user with -CURRENT.
Message-ID:  <20130523075537.37e4bcba@zeta.dino.sk>
In-Reply-To: <519DA801.2090205@rewt.org.uk>
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> <20130520172508.087daf7b@zeta.dino.sk> <CACVs6=8_y5Rqo9UHnQwbEancfZOqrqEAhcu=EXGGSGLjvayKVg@mail.gmail.com> <20130523070225.4d9a3a59@zeta.dino.sk> <519DA801.2090205@rewt.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 23 May 2013 06:24:17 +0100, Joe Holden <lists@rewt.org.uk>
wrote:

> Milan Obuch wrote:
> > On Mon, 20 May 2013 08:27:40 -0700, Juli Mallett
> > <jmallett@FreeBSD.org> wrote:
> > 
> >> On Mon, May 20, 2013 at 8:25 AM, Milan Obuch <freebsd-mips@dino.sk>
> >> wrote:
> >>> 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.
> >> Could you try commenting out everything but pin 11 in octeon_gpio.c
> >> and rebuilding?  I'm wondering if one of those pins may have been
> >> in-use to talk to some Ethernet hardware or something like that,
> >> and that its operation was disrupted by the GPIO driver.
> > 
> > Hi,
> > 
> > it took me some time to build new kernel, howerver, even with only
> > pin 11 defined in octeon_gpio.c it behaves the same way. If
> > connected to gigabit card it works, connecting to 100 megabit
> > switch meens no network activity. Later today I will test it
> > against other device if something changes.
> > 
> > Regards,
> > Milan
> 
> FWIW I upgraded one of them to latest snapshot and I'm seeing the 
> same... however:
> 
> I checked an older build on a hunch and it's no the link speed that 
> seems to be the problem, if I change the switch port to only
> advertise 100M, the link comes up but nothing makes it onto the wire
> or is received by the kernel.  If I reboot with the port still
> advertising 100M all is well when it comes back up, and vice versa
> with 1000M so it seems to be a problem with the link speed changing
> or going up/down... I'd normally expect to see octe0 up/down logged
> but that doesn't happen, even thuogh ifconfig shows the correct speed
> 

Yes, you are right - now I checked with octe0 connected to 100 megabit
switch and it initializes correctly when booting. When I plug gigabit
card now instead, it does not work - no communication on interface.
Even if I do ifconfig octe down/ifconfig octe up, it does not
transmit/receive packets. So I think problem is phy link speed change
on live system. Reboot in this case is a big hackish 'workaround' for
now - good for tests, not yet fully for real work (but if you know
there will be no link speed change it is OK).

Regards,
Milan



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