Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2013 09:33:31 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Milan Obuch <freebsd-mips@dino.sk>
Cc:        Aleksandr Rybalko <ray@ddteam.net>, freebsd-mips@freebsd.org
Subject:   Re: Ubiquiti EdgeRouter Lite works multi-user with -CURRENT.
Message-ID:  <89337D9B-56D9-4DD5-B096-8BB7FD95D3A8@bsdimp.com>
In-Reply-To: <20130520172935.312f8c64@zeta.dino.sk>
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> <519A3D8E.7010106@rewt.org.uk> <20130520172935.312f8c64@zeta.dino.sk>

next in thread | previous in thread | raw e-mail | index | archive | help

On May 20, 2013, at 9:29 AM, Milan Obuch wrote:

> On Mon, 20 May 2013 16:13:18 +0100, Joe Holden <lists@rewt.org.uk>
> wrote:
>=20
>> Milan Obuch wrote:
>>> On Mon, 20 May 2013 07:25:30 -0600, Warner Losh <imp@bsdimp.com>
>>> wrote:
>>>=20
>>>> On May 20, 2013, at 3:06 AM, Milan Obuch wrote:
>>>>=20
>=20
> [ snip ]
>=20
>>>>> Hi,
>>>>>=20
>>>>> I am trying to compile new kernel to test GPIO pins, however, no
>>>>> success for some time - kernel linking ends with error:
>>>>>=20
>>>>> 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
>>>>>=20
>>>>> Searching in /sys/mips/cavium for cvmx_mgmt_port_num_ports is not
>>>>> successfull - any insight here?
>>>> This is in the sys/contrib/octeon-sdk tree. I've built kernels
>>>> since then.
>>>>=20
>>>> Warner
>>>=20
>>> Thanks, I found it - device octm was unknowingly commented out.
>>> Maybe as I have no octm in devinfo I left it out, no idea. Now it
>>> works.
>>>=20
>>> Back to the original talk - GPIO. I found on Edgerouter Lite pin 11
>>> is used for reset switch - aka 'Factory Default' button.
>>>=20
>>> 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.
>>>=20
>>> 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?
>>>=20
>>> Regards,
>>> Milan
>=20
>> I haven't seen that, but as a buildworld+kernel takes a couple of
>> days I'm a week or so behind (I know I know, cross building, but
>> still)
>>=20
>=20
> Well, I use both cross building and native building. My devices are =
not
> the top in speed scale, so both building moethods are usable for me.
> Native building is kind of stability benchmark for me... Anyway,
> sometimes I am a bit behind, too.

I'm surprised you said a week. Buildworld for me is 8 hours, and a =
kernel build without modules is on the order of 2-4 (I haven't kept as =
close a track of that). But this is on my eval board with a 6-core =
600MHz processor.

Warner=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?89337D9B-56D9-4DD5-B096-8BB7FD95D3A8>