From owner-freebsd-mips@FreeBSD.ORG Mon May 20 13:25:33 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 EA236EF9 for ; Mon, 20 May 2013 13:25:33 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-x22b.google.com (mail-ie0-x22b.google.com [IPv6:2607:f8b0:4001:c03::22b]) by mx1.freebsd.org (Postfix) with ESMTP id B9F898D3 for ; Mon, 20 May 2013 13:25:33 +0000 (UTC) Received: by mail-ie0-f171.google.com with SMTP id e11so13796893iej.16 for ; Mon, 20 May 2013 06:25:33 -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=Kv3mwQs+E1zFEonZouBo/0ERY3YHDPBZ7oPEtM+reRs=; b=i2ZMVGhuPJ/Ynxf3fJf7+quZrBlQQrge9S6CW2Hx2vUXg2M0AJuWJZGCPd3rsoSDPC LwAvBFEFjRNo7wnkAyqljdlH7Yq4MneNow1JqBVvzNxW+O6OZcyDbEuYJ08sHr8an39O QubP6CaZ6U8gG8yJ+RH61HeKdGnxEiL9YQ7tJbkvAMbMgtx5m3cyVyHhSNFjZbfUywlM +s2xpzg4v8KGmKUn8S/ymeCRC2WjOp462wsjWLJMI5WzJPT9F3LByv3fPElM3SWUMS2v cFPpxTA3IWCOBXDKJu5J8qKGb9ZN3+ffPz+vAWJMKY6VWnpDAzc7wHZPB+6mnTsluAL+ rOjw== X-Received: by 10.42.95.195 with SMTP id g3mr31513343icn.14.1369056333389; Mon, 20 May 2013 06:25:33 -0700 (PDT) Received: from 53.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id 9sm11422932igy.7.2013.05.20.06.25.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 06:25:32 -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: <20130520110659.1d1d2165@zeta.dino.sk> Date: Mon, 20 May 2013 07:25:30 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: 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> To: Milan Obuch X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQnS0tPg3atAMacPCZMcBlweuEzBD7asZH6kYweVfTR0wqrppGyKVGC/HzldLX/gSrpSplL/ 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 13:25:34 -0000 On May 20, 2013, at 3:06 AM, Milan Obuch wrote: > On Fri, 17 May 2013 10:52:47 -0700, Juli Mallett = > wrote: >=20 >> On Fri, May 17, 2013 at 10:45 AM, Joe Holden >> 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. >>=20 >> 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. >>=20 >> 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.) >>=20 >> 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.) >>=20 >> Thanks, >> Juli. >=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. Warner=