From owner-freebsd-mips@FreeBSD.ORG Mon May 20 15:33:37 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 77DC53C5 for ; Mon, 20 May 2013 15:33:37 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-oa0-f47.google.com (mail-oa0-f47.google.com [209.85.219.47]) by mx1.freebsd.org (Postfix) with ESMTP id 3E5A412E for ; Mon, 20 May 2013 15:33:36 +0000 (UTC) Received: by mail-oa0-f47.google.com with SMTP id m1so7942438oag.34 for ; Mon, 20 May 2013 08:33:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=D7vQhO7AONF0rCzS+c/Rvmvla7MfQTOSZ2tQLvZTjaY=; b=gj9L0gCzal3C/p8uv2O6B81d1R5bgGLot9J4eqvKE+DubioGQqEeOk1AjijsbA4xFp Mr2uwbwCZKfT0MiyB5JnDFP0XvgWsJHioguH56OpAZKTEbeP6NbwK0k21StNv85GVjtg deWuqnGaP2Pu1Agx8yoLio0lrwTSqVitEomkXFw3v2vWNcRSxZKzkYa5SKqEq7ytQix9 e2hQQw1RjFc66HDw7YWZbXjJVqWXgvXUfFtmdq/I9+nJcqgI6n2U0sh2eN0Xd1JWovso L3IVQWiRMmzK++Cs2qFheABlBDdP6SRuh7xHow/AUnTPK2rLziEK+mAzjg+It1hp4wxo MUEQ== X-Received: by 10.60.59.198 with SMTP id b6mr29617196oer.84.1369064016142; Mon, 20 May 2013 08:33:36 -0700 (PDT) Received: from monkey-bot.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPSA id jt9sm20662929obc.0.2013.05.20.08.33.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 08:33:35 -0700 (PDT) Sender: Warner Losh Subject: Re: Ubiquiti EdgeRouter Lite works multi-user with -CURRENT. Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <20130520172935.312f8c64@zeta.dino.sk> Date: Mon, 20 May 2013 09:33:31 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <89337D9B-56D9-4DD5-B096-8BB7FD95D3A8@bsdimp.com> References: <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> <20130520110659.1d1d2165@zeta.dino.sk> <20130520164001.5f7d99b8@zeta.dino.sk> <519A3D8E.7010106@rewt.org.uk> <20130520172935.312f8c64@zeta.dino.sk> To: Milan Obuch X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQkvvVew6wA1GBDNFxZQ7Pa1SaHXROxm5SuIyHkOT60RQX5X9BuHvR9DU+5QjXNeA/TIx0gR Cc: Aleksandr Rybalko , freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 May 2013 15:33:37 -0000 On May 20, 2013, at 9:29 AM, Milan Obuch wrote: > On Mon, 20 May 2013 16:13:18 +0100, Joe Holden > wrote: >=20 >> Milan Obuch wrote: >>> On Mon, 20 May 2013 07:25:30 -0600, Warner Losh >>> 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, caps: >>> when not pressed and >>> pin 11: 0 F/D, caps: >>> 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=