Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2013 11:06:59 +0200
From:      Milan Obuch <freebsd-mips@dino.sk>
To:        Juli Mallett <jmallett@FreeBSD.org>
Cc:        Aleksandr Rybalko <ray@ddteam.net>, freebsd-mips@freebsd.org
Subject:   Re: Ubiquiti EdgeRouter Lite works multi-user with -CURRENT.
Message-ID:  <20130520110659.1d1d2165@zeta.dino.sk>
In-Reply-To: <CACVs6=-0URQ2f7UqVxRdpuGpf103KOW9CTF6FFCGaGhvg3jOMw@mail.gmail.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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.)
> 
> The octeon_gpio_pins array probably needs to be configured at boot
> based on board type.  (So it should normally be 16 items (or 16 plus a
> terminator) and get filled out by board type, I'd say.)
> 
> Thanks,
> Juli.

Hi,

I am trying to compile new kernel to test GPIO pins, however, no
success for some time - kernel linking ends with error:

linking kernel.debug
ld: kernel.debug: warning: allocated section `.sdata' not in segment
ethernet-common.o: In function `cvm_assign_mac_address':
/usr/src/sys/mips/cavium/octe/ethernet-common.c:110: undefined
reference to
`cvmx_mgmt_port_num_ports' /usr/src/sys/mips/cavium/octe/ethernet-common.c:110:
relocation truncated to fit: R_MIPS_26 against
`cvmx_mgmt_port_num_ports' *** Error code 1

Searching in /sys/mips/cavium for cvmx_mgmt_port_num_ports is not
successfull - any insight here?

Milan



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