From owner-freebsd-mips@FreeBSD.ORG Mon Aug 23 11:07:03 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 158941065673 for ; Mon, 23 Aug 2010 11:07:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DE5A58FC1F for ; Mon, 23 Aug 2010 11:07:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7NB72v6089131 for ; Mon, 23 Aug 2010 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7NB723g089129 for freebsd-mips@FreeBSD.org; Mon, 23 Aug 2010 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 23 Aug 2010 11:07:02 GMT Message-Id: <201008231107.o7NB723g089129@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-mips@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-mips@FreeBSD.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2010 11:07:03 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o misc/147471 mips [headers] [patch] whitespace discrepancy in sys/mips/i 1 problem total. From owner-freebsd-mips@FreeBSD.ORG Tue Aug 24 07:34:06 2010 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B4A110656A8; Tue, 24 Aug 2010 07:34:06 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id C2B808FC0A; Tue, 24 Aug 2010 07:34:05 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.3) with ESMTP id o7O7Y47K059198; Tue, 24 Aug 2010 03:34:04 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.3/Submit) id o7O7Y4BN059192; Tue, 24 Aug 2010 07:34:04 GMT (envelope-from tinderbox@freebsd.org) Date: Tue, 24 Aug 2010 07:34:04 GMT Message-Id: <201008240734.o7O7Y4BN059192@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [releng_8 tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 07:34:06 -0000 TB --- 2010-08-24 07:01:13 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2010-08-24 07:01:13 - starting RELENG_8 tinderbox run for mips/mips TB --- 2010-08-24 07:01:13 - cleaning the object tree TB --- 2010-08-24 07:01:39 - cvsupping the source tree TB --- 2010-08-24 07:01:39 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/RELENG_8/mips/mips/supfile TB --- 2010-08-24 07:02:20 - building world TB --- 2010-08-24 07:02:20 - MAKEOBJDIRPREFIX=/obj TB --- 2010-08-24 07:02:20 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2010-08-24 07:02:20 - TARGET=mips TB --- 2010-08-24 07:02:20 - TARGET_ARCH=mips TB --- 2010-08-24 07:02:20 - TZ=UTC TB --- 2010-08-24 07:02:20 - __MAKE_CONF=/dev/null TB --- 2010-08-24 07:02:20 - cd /src TB --- 2010-08-24 07:02:20 - /usr/bin/make -B buildworld >>> World build started on Tue Aug 24 07:02:21 UTC 2010 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies [...] mkdep -f .depend -a /src/usr.bin/c89/c89.c echo c89: /obj/mips/src/tmp/usr/lib/libc.a >> .depend ===> usr.bin/c99 (depend) rm -f .depend mkdep -f .depend -a /src/usr.bin/c99/c99.c echo c99: /obj/mips/src/tmp/usr/lib/libc.a >> .depend ===> usr.bin/calendar (depend) make: don't know how to make locale.c. Stop *** Error code 2 Stop in /src/usr.bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2010-08-24 07:34:04 - WARNING: /usr/bin/make returned exit code 1 TB --- 2010-08-24 07:34:04 - ERROR: failed to build world TB --- 2010-08-24 07:34:04 - 1150.28 user 488.13 system 1971.91 real http://tinderbox.freebsd.org/tinderbox-releng_8-RELENG_8-mips-mips.full From owner-freebsd-mips@FreeBSD.ORG Tue Aug 24 09:47:43 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28A3A106564A for ; Tue, 24 Aug 2010 09:47:43 +0000 (UTC) (envelope-from euphoria@billyfranks.com) Received: from mk-filter-1-a-1.mail.uk.tiscali.com (mk-filter-1-a-1.mail.uk.tiscali.com [212.74.100.52]) by mx1.freebsd.org (Postfix) with ESMTP id B8F3B8FC12 for ; Tue, 24 Aug 2010 09:47:42 +0000 (UTC) X-Trace: 478373659/mk-filter-1.mail.uk.tiscali.com/B2C/$b2c-THROTTLED-DYNAMIC/b2c-CUSTOMER-DYNAMIC-IP/79.69.56.121/None/euphoria@billyfranks.com X-SBRS: None X-RemoteIP: 79.69.56.121 X-IP-MAIL-FROM: euphoria@billyfranks.com X-SMTP-AUTH: X-Originating-Country: GB/UNITED KINGDOM X-MUA: aspNetEmail ver 3.6.1.5 X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEABMwc0xPRTh5/2dsb2JhbACgPXK5P4U3BA X-IronPort-AV: E=Sophos;i="4.56,262,1280703600"; d="scan'208";a="478373659" Received: from 79-69-56-121.dynamic.dsl.as9105.com (HELO BillyPC) ([79.69.56.121]) by smtp.tiscali.co.uk with SMTP; 24 Aug 2010 10:36:51 +0100 From: "Billy Franks" To: "freebsd-mips@freebsd.org" Date: Tue, 24 Aug 2010 10:23:14 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: aspNetEmail ver 3.6.1.5 Message-ID: Subject: Free compilation album from legendary songsmith Billy Franks - With an introduction by best selling author, Christopher Brookmyre X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: euphoria@billyfranks.com List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 09:47:43 -0000 Hi,=0D=0A=0D=0A=22Penning Classics and garnering praise from Bono, Peter = Gabriel =26 Oasis=22 THE GUARDIAN=0D=0A=0D=0A=22Songwriting from the top = drawer=22 TIME OUT=2E=0D=0A=0D=0A=22Imagine McCartney=27s craftsmanship a= nd Springsteen=27s power and you=27ll get the gist=22 Q MAGAZINE=0D=0A=0D= =0A=0D=0A=0D=0AAs it seems I am only really know by famous novelists and = rock stars, I thought I might introduce myself by giving awayt a free com= pilation of 12 of my best songs from 6 albums spanning 2 decades=2E=0D=0A= =0D=0ATo grab your=27s just email euphoria=40billyfranks=2Ecom and you = will get the download link=2E=0D=0A=0D=0AIf ya want to read Christopher B= rookmyres introduction, here it is:=0D=0A=0D=0AEuphoria=0D=0A=0D=0AIt?s t= he first word that always comes to mind whenever I attempt to describe Bi= lly Franks? music=2E It refers primarily to an almost excessive feeling o= f joy, but for me the more important aspect that connects it to these son= gs is that sense of being consumed by an emotion; that sense of an unstop= pable, volcanic, up-rushing of passion, that exhilarating but tantalising= feeling you get when you are experiencing something that cannot be expre= ssed in mere language, nor even mere music=2E =0D=0A=0D=0AAnybody can wri= te a song about love=2E Not anybody can make you feel love, feel loss, fe= el pain, feel desire, feel ecstasy=2E Not anybody can make you feel eupho= ria=2E Billy Franks can=2E=0D=0A=0D=0AChristopher Brookmyre=0D=0A From owner-freebsd-mips@FreeBSD.ORG Tue Aug 24 11:50:01 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D710B1065697; Tue, 24 Aug 2010 11:50:01 +0000 (UTC) (envelope-from swarron@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3ABB18FC08; Tue, 24 Aug 2010 11:50:00 +0000 (UTC) Received: by bwz20 with SMTP id 20so1031410bwz.13 for ; Tue, 24 Aug 2010 04:50:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=z2BL0hhzW9uzAl6haEBMojkCrhRZzzxUahr7tc76uww=; b=WhM9KeBNydZiBpx8GtB8WeHW2ZbSZLEEbgQo9uCt3Ig4c2kUOGuKRExCkw3EjXMQG2 lV1+QVHXlK5TYjmLe9KMx5CzJKCPzxEqNkd7QBGWXaOODhSvY77thXXibWMQoTHYO2cP hc756Pw4EAVeiijKRiR1QjYn/7CrK+7BSADYM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=kFgGxBTR5g6XNmvG9spuu7njnZX6nb9vLL3LmXgSLtl1qK9DyCsIjQj2T6KnIA6XIg 6MpExsIm8PdDmo8mnud823jdB5LqGIKMJ564ve8R/Ndux3K/iG6DUbYtUGs1VdzcVwgH 9+mr7tK1gPJB+/7nBTfwEH3/ZhytfqKzjpegg= MIME-Version: 1.0 Received: by 10.204.84.37 with SMTP id h37mr4487162bkl.201.1282648711718; Tue, 24 Aug 2010 04:18:31 -0700 (PDT) Received: by 10.204.65.130 with HTTP; Tue, 24 Aug 2010 04:18:31 -0700 (PDT) Date: Tue, 24 Aug 2010 19:18:31 +0800 Message-ID: From: "S.W Arron" To: Oleksandr Tymoshenko , freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Has the mips branch code been merged into the head main-line? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 11:50:01 -0000 Hi, Oleksandr It seems that the mips branch is removed from the base/projects/mips in the svn repository, and i can't "svn update" to update the mips code. But "svn diff" is still ok, very strange. It is appreciated if some help can be provided. Since 8.0 there is mips directory in sys/, not sure the mips branch code has already been merged into the mainline. Can you help confirm it or give some instruction where to get the latest version for freebsd-mips? Thanks a lot! From owner-freebsd-mips@FreeBSD.ORG Tue Aug 24 12:03:18 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C1161065675 for ; Tue, 24 Aug 2010 12:03:18 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id E69968FC21 for ; Tue, 24 Aug 2010 12:03:17 +0000 (UTC) Received: by iwn36 with SMTP id 36so7553678iwn.13 for ; Tue, 24 Aug 2010 05:03:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=0cFDGbRZv1U/Kv17pDcPXWf5CdsZ1z/9RpijZcgZG/Q=; b=og8AXWFhm/lRskiU7VVj+lbk0kXysoauPxYaDJCS1w04oBIX1wfnznepFXNvN/eVKI lSpJXisdmeIkXeZ1IuuvLdPNhN68z0iNjMw0VH21FUn2m1Yi/2OUBTTsCvkpgqs7IUaj WufIRjuuFnkv58Ymhav78D8dQYrLDtkv3foh0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=UedT1mK7R0tuQYSjgY+JsZGyn3rPHpS4qazJvGMeMkj04niPuHqtCrQAm7rztUAYK6 /ruhW+LyUNleBcms3y5l/dXZhml/Pf2kbB85Gp5ZLxaYGsMJ+fOCf3ImBimfTqtgm9P1 sQAz1hRsprPs15dwbWlRklNeDxiH1BIbtCbRw= MIME-Version: 1.0 Received: by 10.231.184.168 with SMTP id ck40mr7499849ibb.174.1282651397004; Tue, 24 Aug 2010 05:03:17 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.231.168.14 with HTTP; Tue, 24 Aug 2010 05:03:16 -0700 (PDT) In-Reply-To: References: Date: Tue, 24 Aug 2010 20:03:16 +0800 X-Google-Sender-Auth: SouQKjMEhFBRY20JHwCGZ7GrJHs Message-ID: From: Adrian Chadd To: "S.W Arron" Content-Type: text/plain; charset=ISO-8859-1 Cc: Oleksandr Tymoshenko , freebsd-mips@freebsd.org Subject: Re: Has the mips branch code been merged into the head main-line? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 12:03:18 -0000 The mips branch contents is now in -HEAD. Adrian On 24 August 2010 19:18, S.W Arron wrote: > Hi, Oleksandr > > It seems that the mips branch is removed from the base/projects/mips in the > svn repository, and i can't "svn update" to update the mips code. But "svn > diff" is still ok, very strange. It is appreciated if some help can be > provided. > > Since 8.0 there is mips directory in sys/, not sure the mips branch code has > already been merged into the mainline. Can you help confirm it or give some > instruction where to get the latest version for freebsd-mips? Thanks a lot! > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" > From owner-freebsd-mips@FreeBSD.ORG Tue Aug 24 16:03:40 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0424B10656A3; Tue, 24 Aug 2010 16:03:40 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id B96398FC16; Tue, 24 Aug 2010 16:03:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7OFxOKo066818; Tue, 24 Aug 2010 09:59:24 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 24 Aug 2010 09:59:34 -0600 (MDT) Message-Id: <20100824.095934.469056195874343280.imp@bsdimp.com> To: swarron@gmail.com From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: gonzo@FreeBSD.org, freebsd-mips@FreeBSD.org Subject: Re: Has the mips branch code been merged into the head main-line? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 16:03:40 -0000 In message: "S.W Arron" writes: : Hi, Oleksandr : : It seems that the mips branch is removed from the base/projects/mips in the : svn repository, and i can't "svn update" to update the mips code. But "svn : diff" is still ok, very strange. It is appreciated if some help can be : provided. : : Since 8.0 there is mips directory in sys/, not sure the mips branch code has : already been merged into the mainline. Can you help confirm it or give some : instruction where to get the latest version for freebsd-mips? Thanks a lot! The mips code has been merged to the mainline. projects/mips has been svn deleted since we've collapsed it all into head. Juli Mallet does have a Cavium Octeon branch, but I believe almost all the changes (and all the important ones) have been merged. FreeBSD 8.x has some mips code, but the mips code in -current is much better. There's talk about merging it back to 8, but that's a lot of work that nobody has had time to do so far. Warner From owner-freebsd-mips@FreeBSD.ORG Tue Aug 24 16:37:41 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFB8F1065673 for ; Tue, 24 Aug 2010 16:37:41 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 285098FC12 for ; Tue, 24 Aug 2010 16:37:40 +0000 (UTC) Received: by ewy26 with SMTP id 26so3982029ewy.13 for ; Tue, 24 Aug 2010 09:37:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=lrQFcROexWr8Z/mdLIWu0bvF6uZBC+Mwgan2tgpb9RY=; b=h+K1GGr0zJ+wQBkukrwTea5YvabytJ+8si/vcJdrlo1EN7xElnmqpo6iihZC9eByvA C1MuXFaxO/u8Q4hn2+ReqtzPwvAu+PSH113b3udAIEDE/mGMWmzf4ANu42Wn0KxfKHRs O/6AN4541GrUGD5NP9+aOh8jwWCkdtbSBN+Ls= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=vFvOiu3d9Dlf3NdzwNfmwkOr7KlLydiRZhS9NSC340qwxMwY0wEjWMDpohS+VkJCCh eOhy5BjQmwpxlZp/8+o1iIjpOlfHBOELemoaT05IZYdKiPdTcDW2tQ6ggopIaQO8dgOQ 1fgGbKGIs5D3SPh5Bqfaj2/HzBVxY6mEMiMTA= MIME-Version: 1.0 Received: by 10.216.59.131 with SMTP id s3mr6097028wec.71.1282667859799; Tue, 24 Aug 2010 09:37:39 -0700 (PDT) Received: by 10.216.156.135 with HTTP; Tue, 24 Aug 2010 09:37:38 -0700 (PDT) In-Reply-To: <20100824.095934.469056195874343280.imp@bsdimp.com> References: <20100824.095934.469056195874343280.imp@bsdimp.com> Date: Tue, 24 Aug 2010 22:07:38 +0530 Message-ID: From: "Jayachandran C." To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: gonzo@freebsd.org, swarron@gmail.com, freebsd-mips@freebsd.org Subject: Re: Has the mips branch code been merged into the head main-line? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 16:37:41 -0000 On Tue, Aug 24, 2010 at 9:29 PM, M. Warner Losh wrote: > In message: > =A0 =A0 =A0 =A0 =A0 =A0"S.W Arron" writes: > : Hi, Oleksandr > : > : It seems that the mips branch is removed from the base/projects/mips in= the > : svn repository, and i can't "svn update" to update the mips code. But "= svn > : diff" is still ok, very strange. It is appreciated if some help can be > : provided. > : > : Since 8.0 there is mips directory in sys/, not sure the mips branch cod= e has > : already been merged into the mainline. Can you help confirm it or give = some > : instruction where to get the latest version for freebsd-mips? Thanks a = lot! > > The mips code has been merged to the mainline. =A0projects/mips has been > svn deleted since we've collapsed it all into head. =A0Juli Mallet does > have a Cavium Octeon branch, but I believe almost all the changes (and > all the important ones) have been merged. =A0FreeBSD 8.x has some mips > code, but the mips code in -current is much better. =A0There's talk > about merging it back to 8, but that's a lot of work that nobody has > had time to do so far. Is there any writeup on how this is done - if it is just a matter of svn merge and fixing up may be I can have a go at this. JC. From owner-freebsd-mips@FreeBSD.ORG Tue Aug 24 21:22:24 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D84D1065673 for ; Tue, 24 Aug 2010 21:22:24 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 7E7D58FC15 for ; Tue, 24 Aug 2010 21:22:24 +0000 (UTC) X-ASG-Debug-ID: 1282684245-506138f60001-1gY7mK Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id 7P7Ge0oEFMwyWbXp for ; Tue, 24 Aug 2010 14:10:45 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523]) by SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523%14]) with mapi; Tue, 24 Aug 2010 14:10:45 -0700 From: Patrick Mahan X-Barracuda-BBL-IP: fe80::7042:d8c2:5973:c523 X-Barracuda-RBL-IP: fe80::7042:d8c2:5973:c523 To: "freebsd-mips@freebsd.org" Date: Tue, 24 Aug 2010 14:10:43 -0700 X-ASG-Orig-Subj: MIPS supported gdb Thread-Topic: MIPS supported gdb Thread-Index: ActD0NBJyy3azWKkSISjFgnh3MsicA== Message-ID: <32AB5C9615CC494997D9ABB1DB12783C024C875463@SJ-EXCH-1.adaranet.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282684245 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Subject: MIPS supported gdb X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 21:22:24 -0000 All, I need to know if building gdb (either as a cross-tool or as a native image= ) is supported for the MIPS architecture. We are building a version of FreeBSD 8.0 which I have checked and see that = building gdb is disabled there. However, if I can build it from HEAD, that would be great. Target System Octeon EBHT5800 Eval board w/ 4 Gbytes RAM Host build system FreeBSD 8.0 amd64 Or should I pull down the gdb sources directly from GNU and try to build th= e gdb as a cross tool? Thanks for you input, Patrick Kernel Tech Lead, Adara Networks From owner-freebsd-mips@FreeBSD.ORG Wed Aug 25 02:44:57 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00DC61065672; Wed, 25 Aug 2010 02:44:57 +0000 (UTC) (envelope-from swarron@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5945D8FC14; Wed, 25 Aug 2010 02:44:55 +0000 (UTC) Received: by bwz20 with SMTP id 20so325675bwz.13 for ; Tue, 24 Aug 2010 19:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=zkj3SvjWEFdArhdrgpIUF+ef/MXeUsMg3JJJ0eeH0UY=; b=Ru/Nk4WMMBKuui3Kt6qNIBtzT5zsj96OF1492lrUFv8+dnB3p1HrTAsqd2yoiqZDVw acIZf9OJjTIKyXku4wCaGmENVXAeYNAIqdwf2664WA43385NnB9uPgjJs4ysEARuxAlE j9X+NG/zYWrulB8DGPYjIdUeX76QD6qhSI8/8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=tHNgMTIk0A25icn0VvTvBmVgvgnPSrLHc1CdqKAw8h27SGKCwVvESknzJkfTmBWtEH Re75wHMDHPZCc8/xqHZJP2qY8NZCGOkeauDjm9YRrBF+yaeYb3OWHY41sttbHQr/kWwS gSmkH4z/jrutnTPbNDaWliX631cMhdffwI6Zk= MIME-Version: 1.0 Received: by 10.204.69.200 with SMTP id a8mr5451193bkj.36.1282704293113; Tue, 24 Aug 2010 19:44:53 -0700 (PDT) Received: by 10.204.34.211 with HTTP; Tue, 24 Aug 2010 19:44:53 -0700 (PDT) In-Reply-To: References: <20100824.095934.469056195874343280.imp@bsdimp.com> Date: Wed, 25 Aug 2010 10:44:53 +0800 Message-ID: From: "S.W Arron" To: "Jayachandran C." Content-Type: text/plain; charset=ISO-8859-1 Cc: gonzo@freebsd.org, freebsd-mips@freebsd.org Subject: Re: Has the mips branch code been merged into the head main-line? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 02:44:57 -0000 Get it. Thanks for the confirmation. From the experience, head seems much stable than the old branch. There is some kernel crash in the old mips branch when tested in gxemul while gone in the head. On 8/25/10, Jayachandran C. wrote: > On Tue, Aug 24, 2010 at 9:29 PM, M. Warner Losh wrote: >> In message: >> "S.W Arron" writes: >> : Hi, Oleksandr >> : >> : It seems that the mips branch is removed from the base/projects/mips in >> the >> : svn repository, and i can't "svn update" to update the mips code. But >> "svn >> : diff" is still ok, very strange. It is appreciated if some help can be >> : provided. >> : >> : Since 8.0 there is mips directory in sys/, not sure the mips branch code >> has >> : already been merged into the mainline. Can you help confirm it or give >> some >> : instruction where to get the latest version for freebsd-mips? Thanks a >> lot! >> >> The mips code has been merged to the mainline. projects/mips has been >> svn deleted since we've collapsed it all into head. Juli Mallet does >> have a Cavium Octeon branch, but I believe almost all the changes (and >> all the important ones) have been merged. FreeBSD 8.x has some mips >> code, but the mips code in -current is much better. There's talk >> about merging it back to 8, but that's a lot of work that nobody has >> had time to do so far. > > Is there any writeup on how this is done - if it is just a matter of > svn merge and fixing up may be I can have a go at this. > > JC. > From owner-freebsd-mips@FreeBSD.ORG Wed Aug 25 03:31:53 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62EE410656A9; Wed, 25 Aug 2010 03:31:53 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id F041F8FC12; Wed, 25 Aug 2010 03:31:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7P3Psec002355; Tue, 24 Aug 2010 21:25:54 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 24 Aug 2010 21:26:05 -0600 (MDT) Message-Id: <20100824.212605.575506241433842730.imp@bsdimp.com> To: swarron@gmail.com From: "M. Warner Losh" In-Reply-To: References: <20100824.095934.469056195874343280.imp@bsdimp.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: gonzo@FreeBSD.ORG, freebsd-mips@FreeBSD.ORG Subject: Re: Has the mips branch code been merged into the head main-line? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 03:31:53 -0000 In message: "S.W Arron" writes: : Get it. Thanks for the confirmation. From the experience, head seems : much stable than the old branch. There is some kernel crash in the old : mips branch when tested in gxemul while gone in the head. Yea, lots of work has been done on -current to make the mips tree more stable. Warner : On 8/25/10, Jayachandran C. wrote: : > On Tue, Aug 24, 2010 at 9:29 PM, M. Warner Losh wrote: : >> In message: : >> "S.W Arron" writes: : >> : Hi, Oleksandr : >> : : >> : It seems that the mips branch is removed from the base/projects/mips in : >> the : >> : svn repository, and i can't "svn update" to update the mips code. But : >> "svn : >> : diff" is still ok, very strange. It is appreciated if some help can be : >> : provided. : >> : : >> : Since 8.0 there is mips directory in sys/, not sure the mips branch code : >> has : >> : already been merged into the mainline. Can you help confirm it or give : >> some : >> : instruction where to get the latest version for freebsd-mips? Thanks a : >> lot! : >> : >> The mips code has been merged to the mainline. projects/mips has been : >> svn deleted since we've collapsed it all into head. Juli Mallet does : >> have a Cavium Octeon branch, but I believe almost all the changes (and : >> all the important ones) have been merged. FreeBSD 8.x has some mips : >> code, but the mips code in -current is much better. There's talk : >> about merging it back to 8, but that's a lot of work that nobody has : >> had time to do so far. : > : > Is there any writeup on how this is done - if it is just a matter of : > svn merge and fixing up may be I can have a go at this. : > : > JC. : > : : From owner-freebsd-mips@FreeBSD.ORG Wed Aug 25 14:07:11 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 017CA1065693; Wed, 25 Aug 2010 14:07:11 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 310568FC08; Wed, 25 Aug 2010 14:07:09 +0000 (UTC) Received: by wwd20 with SMTP id 20so17402wwd.1 for ; Wed, 25 Aug 2010 07:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=NHyiKigcpWfuxX3RCkLW5ZlBBiQjK6iFq+flq6F8nMw=; b=WxdK8DYjy3w5l9lqWlUnS8350dMGzCE1FhmzYgpRU2Oz36iCyo3BHnz7q36Fk+ASf0 ZSCAwAjaW1YneCK3W1DbBe7OpB0Vn3wVZWQXM6gD5wKQdPDzPJI1RYeo7EReeA6YPxRh 2ONKW/6RYy8Nz5gX0Qy0yyMtKe3BmRzAlg9uM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=G5utIubKuFGMRAczmg57SV4bOwOkO8DhfT27axFMDlk5L6JI0NEMW9al/R/YkTuwk8 F+eskFvgkSo3Dr7u2VpvK354PKy5YD7QQBO7SMdy5jFAtcsiQuhJ4UaZe3uuHiQFcKFr qPAbdK9pbAHZqo0BQ7sn39k03qLzTGxdLOSaM= MIME-Version: 1.0 Received: by 10.216.131.161 with SMTP id m33mr7435675wei.13.1282745229020; Wed, 25 Aug 2010 07:07:09 -0700 (PDT) Received: by 10.216.156.135 with HTTP; Wed, 25 Aug 2010 07:07:08 -0700 (PDT) In-Reply-To: References: <4C41A248.8090605@FreeBSD.org> <4C41B4CF.6080409@FreeBSD.org> <4C4205CC.6080700@FreeBSD.org> <4C4ED247.80701@FreeBSD.org> <4C555CF7.5080101@FreeBSD.org> <4C5977BC.1060104@FreeBSD.org> Date: Wed, 25 Aug 2010 19:37:08 +0530 Message-ID: From: "Jayachandran C." To: Neel Natu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Randall Stewart , Alexander Motin , freebsd-mips@freebsd.org Subject: Re: [RFC] Event timers on MIPS X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 14:07:11 -0000 On Thu, Aug 19, 2010 at 7:25 AM, Neel Natu wrote: > Hi JC, > > On Wed, Aug 18, 2010 at 7:45 AM, Jayachandran C. > wrote: >> On Wed, Aug 4, 2010 at 7:52 PM, Alexander Motin wrote: >>> Neel Natu wrote: >>>> Thanks for taking the time to review the patch. Here is the updated pa= tch: >>>> http://people.freebsd.org/~neel/tick_diff.txt >>> >>> Seems fine. >>> >>>> On Sun, Aug 1, 2010 at 4:39 AM, Alexander Motin wrot= e: >>>>> "t_upper++;" there looks a bit strange, as it is not written back. Th= e >>>>> wrapping stuff won't work if this timer interrupts were not used. >>>> >>>> This part is intentional. >>>> >>>> I wanted only clock_intr() to update the cached values of >>>> 'counter_upper' and 'counter_lower_last' and tick_ticker() to sample a >>>> consistent snapshot of the tuple and then operate on it. >>>> >>>> I have added an XXX comment to describe the dependency. We can revisit >>>> this if we change the default timer in mips. >>> >>> It's not about default timer, but about having any other timer. But if >>> you wish so, it should be enough for now. >> >> I'm seeing a problem with the timer code on XLR, when I run ping: >> >> xlrboard# ping 192.168.30.1 >> PING 192.168.30.1 (192.168.30.1): 56 data bytes >> 64 bytes from 192.168.30.1: icmp_seq=3D0 ttl=3D64 time=3D0.649 ms >> 64 bytes from 192.168.30.1: icmp_seq=3D1 ttl=3D64 time=3D362.624 ms >> 64 bytes from 192.168.30.1: icmp_seq=3D2 ttl=3D64 time=3D0.219 ms >> 64 bytes from 192.168.30.1: icmp_seq=3D3 ttl=3D64 time=3D362.631 ms >> 64 bytes from 192.168.30.1: icmp_seq=3D4 ttl=3D64 time=3D-362.168 ms >> 64 bytes from 192.168.30.1: icmp_seq=3D5 ttl=3D64 time=3D362.628 ms >> 64 bytes from 192.168.30.1: icmp_seq=3D6 ttl=3D64 time=3D0.234 ms >> 64 bytes from 192.168.30.1: icmp_seq=3D7 ttl=3D64 time=3D362.631 ms >> 64 bytes from 192.168.30.1: icmp_seq=3D8 ttl=3D64 time=3D0.483 ms >> >> This happens with the current XLR code, and even after updating it >> from mips/mips/tick.c (to take in Neel's changes). >> >> Due to the way our network driver works, there is a likely that the >> ping packets are received by different CPUs every time, but having the >> negative time there seems to indicate some issue. =A0Also on XLR the >> count registers are not synchronized across cores, so the values will >> be different for each CPU. >> >> =A0I will look at some more, but meanwhile, any clue on what might be >> wrong would be helpful. =A0I still haven't done the PIC timer based >> timecount, that might fix it, if it is due to the count registers >> being out of sync. >> > > Can you try pinning the ping process to cpu 0 and repeat your test? > > Something like "cpuset -l 0 ping a.b.c.d". With cpuset, I get a negative time about every few seconds, I have not tried to debug this further. I ended up providing a PIC based platform_timecounter, which I needed to do anyway, and now I get sane values. JC. From owner-freebsd-mips@FreeBSD.ORG Wed Aug 25 21:02:24 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7795106566B for ; Wed, 25 Aug 2010 21:02:24 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id ACFB18FC13 for ; Wed, 25 Aug 2010 21:02:24 +0000 (UTC) X-ASG-Debug-ID: 1282769026-506148460001-1gY7mK Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id TvGPXC5OY9Ka2RYh for ; Wed, 25 Aug 2010 13:43:46 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523]) by SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523%14]) with mapi; Wed, 25 Aug 2010 13:43:47 -0700 From: Patrick Mahan X-Barracuda-BBL-IP: fe80::7042:d8c2:5973:c523 X-Barracuda-RBL-IP: fe80::7042:d8c2:5973:c523 To: "freebsd-mips@freebsd.org" Date: Wed, 25 Aug 2010 13:43:44 -0700 X-ASG-Orig-Subj: Is the MIPS kernel buildable from HEAD? Thread-Topic: Is the MIPS kernel buildable from HEAD? Thread-Index: ActEljXA2QVUM+4BQ2ClUA+tCpypFA== Message-ID: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.adaranet.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282769026 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Subject: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 21:02:24 -0000 All, Is it possible to build the MIPS kernel from HEAD? Or is the current devel= opment still external to the HEAD branch? Thanks, Patrick Adara Networks, Inc From owner-freebsd-mips@FreeBSD.ORG Wed Aug 25 21:17:51 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 668B41065693 for ; Wed, 25 Aug 2010 21:17:51 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id CE2E78FC1A for ; Wed, 25 Aug 2010 21:17:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7PLDOu7014036; Wed, 25 Aug 2010 15:13:24 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 25 Aug 2010 15:13:25 -0600 (MDT) Message-Id: <20100825.151325.645538350615354761.imp@bsdimp.com> To: PMahan@adaranet.com From: "M. Warner Losh" In-Reply-To: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.adaranet.com> References: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.adaranet.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-mips@FreeBSD.org Subject: Re: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 21:17:51 -0000 In message: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.adaranet.com> Patrick Mahan writes: : Is it possible to build the MIPS kernel from HEAD? Or is the : current development still external to the HEAD branch? Yes. The tip of head is where the mips action is these days. There is no external development branch. There is one issue, however. If you are building for one of the 64-bit processors a 64-bit kernel, then the required userland won't build. There's still issues that need to be sorted out... Warner From owner-freebsd-mips@FreeBSD.ORG Wed Aug 25 21:34:56 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 476221065693 for ; Wed, 25 Aug 2010 21:34:56 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 295568FC08 for ; Wed, 25 Aug 2010 21:34:55 +0000 (UTC) X-ASG-Debug-ID: 1282772095-506148eb0001-TrbQWW Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id a4XzoR1EEXCoJ5zJ; Wed, 25 Aug 2010 14:34:55 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523]) by SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523%14]) with mapi; Wed, 25 Aug 2010 14:34:55 -0700 From: Patrick Mahan X-Barracuda-BBL-IP: fe80::7042:d8c2:5973:c523 X-Barracuda-RBL-IP: fe80::7042:d8c2:5973:c523 To: "M. Warner Losh" Date: Wed, 25 Aug 2010 14:34:53 -0700 X-ASG-Orig-Subj: RE: Is the MIPS kernel buildable from HEAD? Thread-Topic: Is the MIPS kernel buildable from HEAD? Thread-Index: ActEmvl7201eWmsvSfmMcfnAnxDbXAAAe7nQ Message-ID: <32AB5C9615CC494997D9ABB1DB12783C024C8755B1@SJ-EXCH-1.adaranet.com> References: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.adaranet.com> <20100825.151325.645538350615354761.imp@bsdimp.com> In-Reply-To: <20100825.151325.645538350615354761.imp@bsdimp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282772095 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Cc: "freebsd-mips@FreeBSD.org" Subject: RE: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 21:34:56 -0000 Warner, I'm trying to build it for a Cavium eval board EBT5800 - and I am getting the following error(s): Octeon ebt5800# bootoctlinux 20000000 ELF file is 32 bit Skipping non LOAD program header (type 0x6) Skipping non LOAD program header (type 0x3) Skipping non LOAD program header (type 0x70000000) Have you seen this? This is trying to build it with OCTEON1-32 configuration file. Thanks, Patrick > -----Original Message----- > From: M. Warner Losh [mailto:imp@bsdimp.com] > Sent: Wednesday, August 25, 2010 2:13 PM > To: Patrick Mahan > Cc: freebsd-mips@FreeBSD.org > Subject: Re: Is the MIPS kernel buildable from HEAD? > > In message: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH- > 1.adaranet.com> > Patrick Mahan writes: > : Is it possible to build the MIPS kernel from HEAD? Or is the > : current development still external to the HEAD branch? > > Yes. The tip of head is where the mips action is these days. There > is no external development branch. > > There is one issue, however. If you are building for one of the > 64-bit processors a 64-bit kernel, then the required userland won't > build. There's still issues that need to be sorted out... > > Warner From owner-freebsd-mips@FreeBSD.ORG Wed Aug 25 21:42:37 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CFF3106564A for ; Wed, 25 Aug 2010 21:42:37 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 36A4C8FC17 for ; Wed, 25 Aug 2010 21:42:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7PLfjbY014251; Wed, 25 Aug 2010 15:41:45 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 25 Aug 2010 15:41:46 -0600 (MDT) Message-Id: <20100825.154146.1055929314527823379.imp@bsdimp.com> To: PMahan@adaranet.com From: "M. Warner Losh" In-Reply-To: <32AB5C9615CC494997D9ABB1DB12783C024C8755B1@SJ-EXCH-1.adaranet.com> References: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.adaranet.com> <20100825.151325.645538350615354761.imp@bsdimp.com> <32AB5C9615CC494997D9ABB1DB12783C024C8755B1@SJ-EXCH-1.adaranet.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-mips@FreeBSD.org Subject: Re: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 21:42:37 -0000 In message: <32AB5C9615CC494997D9ABB1DB12783C024C8755B1@SJ-EXCH-1.adaranet.com> Patrick Mahan writes: : Warner, : : I'm trying to build it for a Cavium eval board EBT5800 - and I am getting : the following error(s): : : Octeon ebt5800# bootoctlinux 20000000 : ELF file is 32 bit : Skipping non LOAD program header (type 0x6) : Skipping non LOAD program header (type 0x3) : Skipping non LOAD program header (type 0x70000000) : : : Have you seen this? Yes. What SDK are you using? : This is trying to build it with OCTEON1-32 configuration file. I've loaded both OCTEON1 and OCTEON1-32 on a uboot from the 1.9.0 SDK. I've had OCTEON1 fail on an older uboot. warner : Thanks, : : Patrick : : > -----Original Message----- : > From: M. Warner Losh [mailto:imp@bsdimp.com] : > Sent: Wednesday, August 25, 2010 2:13 PM : > To: Patrick Mahan : > Cc: freebsd-mips@FreeBSD.org : > Subject: Re: Is the MIPS kernel buildable from HEAD? : > : > In message: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH- : > 1.adaranet.com> : > Patrick Mahan writes: : > : Is it possible to build the MIPS kernel from HEAD? Or is the : > : current development still external to the HEAD branch? : > : > Yes. The tip of head is where the mips action is these days. There : > is no external development branch. : > : > There is one issue, however. If you are building for one of the : > 64-bit processors a 64-bit kernel, then the required userland won't : > build. There's still issues that need to be sorted out... : > : > Warner : : From owner-freebsd-mips@FreeBSD.ORG Wed Aug 25 21:49:44 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8C02106566B for ; Wed, 25 Aug 2010 21:49:44 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 75E708FC1D for ; Wed, 25 Aug 2010 21:49:44 +0000 (UTC) Received: by wwb13 with SMTP id 13so1585001wwb.31 for ; Wed, 25 Aug 2010 14:49:43 -0700 (PDT) Received: by 10.216.184.19 with SMTP id r19mr5812092wem.36.1282772982332; Wed, 25 Aug 2010 14:49:42 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.216.5.5 with HTTP; Wed, 25 Aug 2010 14:47:55 -0700 (PDT) In-Reply-To: <32AB5C9615CC494997D9ABB1DB12783C024C8755B1@SJ-EXCH-1.adaranet.com> References: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.adaranet.com> <20100825.151325.645538350615354761.imp@bsdimp.com> <32AB5C9615CC494997D9ABB1DB12783C024C8755B1@SJ-EXCH-1.adaranet.com> From: Juli Mallett Date: Wed, 25 Aug 2010 14:47:55 -0700 X-Google-Sender-Auth: 7Nb2ArUGGaNvXS-whaYd5n6MLNg Message-ID: To: Patrick Mahan Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-mips@FreeBSD.org" Subject: Re: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 21:49:44 -0000 Hi Patrick, Those aren't errors per se; if nothing is happening after that, something else is wrong. If you aren't using a recent U-Boot, I suggest installing a recent U-Boot. If you are using a recent U-Boot and know how to recompile it, I can send you patches that might help. There is an unused data structure, linux_app_boot_info_t, which clobbers some of the memory used for launching multiple processors in U-Boot 1.9.0. I have patches to remove it if you would like to give that a try. Thanks, Juli. On Wed, Aug 25, 2010 at 14:34, Patrick Mahan wrote: > Warner, > > I'm trying to build it for a Cavium eval board EBT5800 - =A0and I am gett= ing > the following error(s): > > Octeon ebt5800# bootoctlinux 20000000 > ELF file is 32 bit > Skipping non LOAD program header (type 0x6) > Skipping non LOAD program header (type 0x3) > Skipping non LOAD program header (type 0x70000000) > > > Have you seen this? > > This is trying to build it with OCTEON1-32 configuration file. > > Thanks, > > Patrick > >> -----Original Message----- >> From: M. Warner Losh [mailto:imp@bsdimp.com] >> Sent: Wednesday, August 25, 2010 2:13 PM >> To: Patrick Mahan >> Cc: freebsd-mips@FreeBSD.org >> Subject: Re: Is the MIPS kernel buildable from HEAD? >> >> In message: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH- >> 1.adaranet.com> >> =A0 =A0 =A0 =A0 =A0 =A0 Patrick Mahan writes: >> : Is it possible to build the MIPS kernel from HEAD? =A0Or is the >> : current development still external to the HEAD branch? >> >> Yes. =A0The tip of head is where the mips action is these days. =A0There >> is no external development branch. >> >> There is one issue, however. =A0If you are building for one of the >> 64-bit processors a 64-bit kernel, then the required userland won't >> build. =A0There's still issues that need to be sorted out... >> >> Warner > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" > From owner-freebsd-mips@FreeBSD.ORG Wed Aug 25 22:02:20 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 103031065675 for ; Wed, 25 Aug 2010 22:02:20 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id E3C4B8FC22 for ; Wed, 25 Aug 2010 22:02:19 +0000 (UTC) X-ASG-Debug-ID: 1282773739-5061494c0001-TrbQWW Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id afuSmxuE3OiZ5vhi; Wed, 25 Aug 2010 15:02:19 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523]) by SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523%14]) with mapi; Wed, 25 Aug 2010 15:02:19 -0700 From: Patrick Mahan X-Barracuda-BBL-IP: fe80::7042:d8c2:5973:c523 X-Barracuda-RBL-IP: fe80::7042:d8c2:5973:c523 To: "M. Warner Losh" Date: Wed, 25 Aug 2010 15:02:16 -0700 X-ASG-Orig-Subj: RE: Is the MIPS kernel buildable from HEAD? Thread-Topic: Is the MIPS kernel buildable from HEAD? Thread-Index: ActEnm89HhbWs5umSBGA9S6xpVr1gwAAjIOQ Message-ID: <32AB5C9615CC494997D9ABB1DB12783C024C8755CC@SJ-EXCH-1.adaranet.com> References: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.adaranet.com> <20100825.151325.645538350615354761.imp@bsdimp.com> <32AB5C9615CC494997D9ABB1DB12783C024C8755B1@SJ-EXCH-1.adaranet.com> <20100825.154146.1055929314527823379.imp@bsdimp.com> In-Reply-To: <20100825.154146.1055929314527823379.imp@bsdimp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282773739 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Cc: "freebsd-mips@FreeBSD.org" Subject: RE: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 22:02:20 -0000 > -----Original Message----- > From: M. Warner Losh [mailto:imp@bsdimp.com] > Sent: Wednesday, August 25, 2010 2:42 PM > To: Patrick Mahan > Cc: freebsd-mips@FreeBSD.org > Subject: Re: Is the MIPS kernel buildable from HEAD? > > In message: <32AB5C9615CC494997D9ABB1DB12783C024C8755B1@SJ-EXCH- > 1.adaranet.com> > Patrick Mahan writes: > : Warner, > : > : I'm trying to build it for a Cavium eval board EBT5800 - and I am > getting > : the following error(s): > : > : Octeon ebt5800# bootoctlinux 20000000 > : ELF file is 32 bit > : Skipping non LOAD program header (type 0x6) > : Skipping non LOAD program header (type 0x3) > : Skipping non LOAD program header (type 0x70000000) > : > : > : Have you seen this? > > Yes. What SDK are you using? > The SDK is 1.8.1, using uboot 1.1.1. > : This is trying to build it with OCTEON1-32 configuration file. > > I've loaded both OCTEON1 and OCTEON1-32 on a uboot from the 1.9.0 > SDK. I've had OCTEON1 fail on an older uboot. > Okay, that might be it. Not having recently retrieved an SDK from Cavium, what SDK version should I be using? Or should I just update uboot from outside Cavium sources? The LED display is showing 'TRAP' so I know something has died. I seem to recall there was something about the boot block pointer being invalid or NULL. Thanks, Patrick > warner > > : Thanks, > : > : Patrick > : > : > -----Original Message----- > : > From: M. Warner Losh [mailto:imp@bsdimp.com] > : > Sent: Wednesday, August 25, 2010 2:13 PM > : > To: Patrick Mahan > : > Cc: freebsd-mips@FreeBSD.org > : > Subject: Re: Is the MIPS kernel buildable from HEAD? > : > > : > In message: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH- > : > 1.adaranet.com> > : > Patrick Mahan writes: > : > : Is it possible to build the MIPS kernel from HEAD? Or is the > : > : current development still external to the HEAD branch? > : > > : > Yes. The tip of head is where the mips action is these days. There > : > is no external development branch. > : > > : > There is one issue, however. If you are building for one of the > : > 64-bit processors a 64-bit kernel, then the required userland won't > : > build. There's still issues that need to be sorted out... > : > > : > Warner > : > : From owner-freebsd-mips@FreeBSD.ORG Wed Aug 25 22:07:54 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46F25106566C; Wed, 25 Aug 2010 22:07:54 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id DC7078FC15; Wed, 25 Aug 2010 22:07:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7PM2CcP014451; Wed, 25 Aug 2010 16:02:13 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 25 Aug 2010 16:02:14 -0600 (MDT) Message-Id: <20100825.160214.864843819430707347.imp@bsdimp.com> To: jmallett@FreeBSD.ORG From: "M. Warner Losh" In-Reply-To: References: <20100825.151325.645538350615354761.imp@bsdimp.com> <32AB5C9615CC494997D9ABB1DB12783C024C8755B1@SJ-EXCH-1.adaranet.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: PMahan@adaranet.com, freebsd-mips@FreeBSD.ORG Subject: Re: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 22:07:54 -0000 In message: Juli Mallett writes: : Hi Patrick, : = : Those aren't errors per se; if nothing is happening after that, : something else is wrong. If you aren't using a recent U-Boot, I : suggest installing a recent U-Boot. If you are using a recent U-Boot= : and know how to recompile it, I can send you patches that might help.= : There is an unused data structure, linux_app_boot_info_t, which : clobbers some of the memory used for launching multiple processors in= : U-Boot 1.9.0. I have patches to remove it if you would like to give : that a try. I've also noticed that each of the boards have a different load address. Maybe 200000000 isn't right for your hardware? : Thanks, : Juli. : = : On Wed, Aug 25, 2010 at 14:34, Patrick Mahan wr= ote: : > Warner, : > : > I'm trying to build it for a Cavium eval board EBT5800 - =A0and I a= m getting : > the following error(s): : > : > Octeon ebt5800# bootoctlinux 20000000 : > ELF file is 32 bit : > Skipping non LOAD program header (type 0x6) : > Skipping non LOAD program header (type 0x3) : > Skipping non LOAD program header (type 0x70000000) : > : > : > Have you seen this? : > : > This is trying to build it with OCTEON1-32 configuration file. : > : > Thanks, : > : > Patrick : > : >> -----Original Message----- : >> From: M. Warner Losh [mailto:imp@bsdimp.com] : >> Sent: Wednesday, August 25, 2010 2:13 PM : >> To: Patrick Mahan : >> Cc: freebsd-mips@FreeBSD.org : >> Subject: Re: Is the MIPS kernel buildable from HEAD? : >> : >> In message: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH- : >> 1.adaranet.com> : >> =A0 =A0 =A0 =A0 =A0 =A0 Patrick Mahan writes= : : >> : Is it possible to build the MIPS kernel from HEAD? =A0Or is the : >> : current development still external to the HEAD branch? : >> : >> Yes. =A0The tip of head is where the mips action is these days. =A0= There : >> is no external development branch. : >> : >> There is one issue, however. =A0If you are building for one of the= : >> 64-bit processors a 64-bit kernel, then the required userland won'= t : >> build. =A0There's still issues that need to be sorted out... : >> : >> Warner : > _______________________________________________ : > freebsd-mips@freebsd.org mailing list : > http://lists.freebsd.org/mailman/listinfo/freebsd-mips : > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.= org" : > : = : = From owner-freebsd-mips@FreeBSD.ORG Wed Aug 25 22:12:24 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE1D6106567A for ; Wed, 25 Aug 2010 22:12:24 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 9C49F8FC15 for ; Wed, 25 Aug 2010 22:12:24 +0000 (UTC) X-ASG-Debug-ID: 1282773487-506149460001-1gY7mK Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id U2iAuFDpzymi4jy8; Wed, 25 Aug 2010 14:58:07 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523]) by SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523%14]) with mapi; Wed, 25 Aug 2010 14:58:07 -0700 From: Patrick Mahan X-Barracuda-BBL-IP: fe80::7042:d8c2:5973:c523 X-Barracuda-RBL-IP: fe80::7042:d8c2:5973:c523 To: Juli Mallett Date: Wed, 25 Aug 2010 14:58:05 -0700 X-ASG-Orig-Subj: RE: Is the MIPS kernel buildable from HEAD? Thread-Topic: Is the MIPS kernel buildable from HEAD? Thread-Index: ActEn267BthEomMbS7mb0jAe0VLOXwAAMZ8g Message-ID: <32AB5C9615CC494997D9ABB1DB12783C024C8755C6@SJ-EXCH-1.adaranet.com> References: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.adaranet.com> <20100825.151325.645538350615354761.imp@bsdimp.com> <32AB5C9615CC494997D9ABB1DB12783C024C8755B1@SJ-EXCH-1.adaranet.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282773487 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Cc: "freebsd-mips@FreeBSD.org" Subject: RE: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 22:12:24 -0000 > -----Original Message----- > From: juli@clockworksquid.com [mailto:juli@clockworksquid.com] On Behalf = Of > Juli Mallett > Sent: Wednesday, August 25, 2010 2:48 PM > To: Patrick Mahan > Cc: M. Warner Losh; freebsd-mips@FreeBSD.org > Subject: Re: Is the MIPS kernel buildable from HEAD? > > Hi Patrick, > > Those aren't errors per se; if nothing is happening after that, > something else is wrong. If you aren't using a recent U-Boot, I > suggest installing a recent U-Boot. If you are using a recent U-Boot > and know how to recompile it, I can send you patches that might help. > There is an unused data structure, linux_app_boot_info_t, which > clobbers some of the memory used for launching multiple processors in > U-Boot 1.9.0. I have patches to remove it if you would like to give > that a try. > Hi Juli, Okay, I was going on with what I was seeing here versus what I see when we boot our internal FreeBSD 8.0 MIPS32 image we are building. I'm using the u-boot that comes with the eval board - U-Boot 1.1.1 (Development build) (Build time: Feb 6 2009 - 12:34:20) EBT5800 board revision major:2, minor:0, serial #: 2008-2.0-00308 OCTEON CN5860-NSP pass 2.0, Core clock: 750 MHz, DDR clock: 400 MHz (800 Mh= z dat a rate) DRAM: 2048 MB Flash: 8 MB Clearing DRAM........ done BIST check passed. Net: octeth0, octeth1, octeth2, octeth3 Bus 0 (CF Card): OK ide 0: Model: CF 1GB Firm: 20071116 Ser#: TSS25014080506093731 Type: Removable Hard Disk Capacity: 967.6 MB =3D 0.9 GB (1981728 x 512) Octeon ebt5800# We never see any of those errors when booting our image. Thanks, Patrick > Thanks, > Juli. > > On Wed, Aug 25, 2010 at 14:34, Patrick Mahan wrote: > > Warner, > > > > I'm trying to build it for a Cavium eval board EBT5800 - and I am > getting > > the following error(s): > > > > Octeon ebt5800# bootoctlinux 20000000 > > ELF file is 32 bit > > Skipping non LOAD program header (type 0x6) > > Skipping non LOAD program header (type 0x3) > > Skipping non LOAD program header (type 0x70000000) > > > > > > Have you seen this? > > > > This is trying to build it with OCTEON1-32 configuration file. > > > > Thanks, > > > > Patrick > > > >> -----Original Message----- > >> From: M. Warner Losh [mailto:imp@bsdimp.com] > >> Sent: Wednesday, August 25, 2010 2:13 PM > >> To: Patrick Mahan > >> Cc: freebsd-mips@FreeBSD.org > >> Subject: Re: Is the MIPS kernel buildable from HEAD? > >> > >> In message: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH- > >> 1.adaranet.com> > >> Patrick Mahan writes: > >> : Is it possible to build the MIPS kernel from HEAD? Or is the > >> : current development still external to the HEAD branch? > >> > >> Yes. The tip of head is where the mips action is these days. There > >> is no external development branch. > >> > >> There is one issue, however. If you are building for one of the > >> 64-bit processors a 64-bit kernel, then the required userland won't > >> build. There's still issues that need to be sorted out... > >> > >> Warner > > _______________________________________________ > > freebsd-mips@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" > > From owner-freebsd-mips@FreeBSD.ORG Wed Aug 25 22:15:49 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 053D7106564A for ; Wed, 25 Aug 2010 22:15:49 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 97C948FC15 for ; Wed, 25 Aug 2010 22:15:48 +0000 (UTC) Received: by wwd20 with SMTP id 20so606424wwd.1 for ; Wed, 25 Aug 2010 15:15:47 -0700 (PDT) Received: by 10.227.145.20 with SMTP id b20mr7980974wbv.28.1282774547307; Wed, 25 Aug 2010 15:15:47 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.216.5.5 with HTTP; Wed, 25 Aug 2010 15:15:27 -0700 (PDT) In-Reply-To: <20100825.160214.864843819430707347.imp@bsdimp.com> References: <20100825.151325.645538350615354761.imp@bsdimp.com> <32AB5C9615CC494997D9ABB1DB12783C024C8755B1@SJ-EXCH-1.adaranet.com> <20100825.160214.864843819430707347.imp@bsdimp.com> From: Juli Mallett Date: Wed, 25 Aug 2010 15:15:27 -0700 X-Google-Sender-Auth: ysDCji3D9BsCK0Cr-eT98gU-88k Message-ID: To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: PMahan@adaranet.com, freebsd-mips@freebsd.org Subject: Re: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 22:15:49 -0000 On Wed, Aug 25, 2010 at 15:02, M. Warner Losh wrote: > In message: > =A0 =A0 =A0 =A0 =A0 =A0Juli Mallett writes: > : Hi Patrick, > : > : Those aren't errors per se; if nothing is happening after that, > : something else is wrong. =A0If you aren't using a recent U-Boot, I > : suggest installing a recent U-Boot. =A0If you are using a recent U-Boot > : and know how to recompile it, I can send you patches that might help. > : There is an unused data structure, linux_app_boot_info_t, which > : clobbers some of the memory used for launching multiple processors in > : U-Boot 1.9.0. =A0I have patches to remove it if you would like to give > : that a try. > > I've also noticed that each of the boards have a different load > address. =A0Maybe 200000000 isn't right for your hardware? If it were wrong you'd be (very unlikely) to see it recognized as an ELF fi= le. I don't understand you silly people who use addresses by hand instead of 0 which uses $(loadaddr) (only with Octeon U-Boot, though) which is usually correct for the board, anyway :) From owner-freebsd-mips@FreeBSD.ORG Wed Aug 25 22:29:09 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CB9810656A7 for ; Wed, 25 Aug 2010 22:29:09 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 41F3C8FC12 for ; Wed, 25 Aug 2010 22:29:09 +0000 (UTC) X-ASG-Debug-ID: 1282775348-506149a80001-1gY7mK Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id x77p1A7ggwkgjnI5; Wed, 25 Aug 2010 15:29:08 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523]) by SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523%14]) with mapi; Wed, 25 Aug 2010 15:29:08 -0700 From: Patrick Mahan X-Barracuda-BBL-IP: fe80::7042:d8c2:5973:c523 X-Barracuda-RBL-IP: fe80::7042:d8c2:5973:c523 To: Juli Mallett , "M. Warner Losh" Date: Wed, 25 Aug 2010 15:28:50 -0700 X-ASG-Orig-Subj: RE: Is the MIPS kernel buildable from HEAD? Thread-Topic: Is the MIPS kernel buildable from HEAD? Thread-Index: ActEoxK3Xlkpn1cxSmm/FVE9Lm5+hgAAYdzA Message-ID: <32AB5C9615CC494997D9ABB1DB12783C024C8755D9@SJ-EXCH-1.adaranet.com> References: <20100825.151325.645538350615354761.imp@bsdimp.com> <32AB5C9615CC494997D9ABB1DB12783C024C8755B1@SJ-EXCH-1.adaranet.com> <20100825.160214.864843819430707347.imp@bsdimp.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-hashedpuzzle: CRi6 ClXX CuQS C7eo EvZn IPF8 MRTa NOaB UQrO XbjX Xenv Y2My Z6IX dr+e gp0R i0L2; 3; ZgByAGUAZQBiAHMAZAAtAG0AaQBwAHMAQABmAHIAZQBlAGIAcwBkAC4AbwByAGcAOwBpAG0AcABAAGIAcwBkAGkAbQBwAC4AYwBvAG0AOwBqAG0AYQBsAGwAZQB0AHQAQABmAHIAZQBlAGIAcwBkAC4AbwByAGcA; Sosha1_v1; 7; {E88009A8-EB86-4A5F-921B-190EFE618D8A}; cABtAGEAaABhAG4AQABhAGQAYQByAGEAbgBlAHQALgBjAG8AbQA=; Wed, 25 Aug 2010 22:28:50 GMT; UgBFADoAIABJAHMAIAB0AGgAZQAgAE0ASQBQAFMAIABrAGUAcgBuAGUAbAAgAGIAdQBpAGwAZABhAGIAbABlACAAZgByAG8AbQAgAEgARQBBAEQAPwA= x-cr-puzzleid: {E88009A8-EB86-4A5F-921B-190EFE618D8A} acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282775348 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Cc: "freebsd-mips@freebsd.org" Subject: RE: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 22:29:09 -0000 > -----Original Message----- > From: juli@clockworksquid.com [mailto:juli@clockworksquid.com] On Behalf = Of > Juli Mallett > Sent: Wednesday, August 25, 2010 3:15 PM > To: M. Warner Losh > Cc: Patrick Mahan; freebsd-mips@freebsd.org > Subject: Re: Is the MIPS kernel buildable from HEAD? > > On Wed, Aug 25, 2010 at 15:02, M. Warner Losh wrote: > > In message: > > > Juli Mallett writes: > > : Hi Patrick, > > : > > : Those aren't errors per se; if nothing is happening after that, > > : something else is wrong. If you aren't using a recent U-Boot, I > > : suggest installing a recent U-Boot. If you are using a recent U-Boot > > : and know how to recompile it, I can send you patches that might help. > > : There is an unused data structure, linux_app_boot_info_t, which > > : clobbers some of the memory used for launching multiple processors in > > : U-Boot 1.9.0. I have patches to remove it if you would like to give > > : that a try. > > > > I've also noticed that each of the boards have a different load > > address. Maybe 200000000 isn't right for your hardware? > > If it were wrong you'd be (very unlikely) to see it recognized as an ELF > file. > > I don't understand you silly people who use addresses by hand instead > of 0 which uses $(loadaddr) (only with Octeon U-Boot, though) which is > usually correct for the board, anyway :) Because we are hoary old silly kernel people who still remember using punch= -tape and still don't trust these new fangled serial consoles... VBEG I've used 20000000, 18000000 and 21000000. It seems dependent upon the Oct= eon eval board. Patrick From owner-freebsd-mips@FreeBSD.ORG Wed Aug 25 22:42:24 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A62851065672 for ; Wed, 25 Aug 2010 22:42:24 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 849038FC16 for ; Wed, 25 Aug 2010 22:42:24 +0000 (UTC) X-ASG-Debug-ID: 1282775166-506149a00001-yGkwLM Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id mtHMefu9GGVsVfep; Wed, 25 Aug 2010 15:26:06 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523]) by SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523%14]) with mapi; Wed, 25 Aug 2010 15:26:06 -0700 From: Patrick Mahan X-Barracuda-BBL-IP: fe80::7042:d8c2:5973:c523 X-Barracuda-RBL-IP: fe80::7042:d8c2:5973:c523 To: "M. Warner Losh" , "jmallett@FreeBSD.ORG" Date: Wed, 25 Aug 2010 15:26:04 -0700 X-ASG-Orig-Subj: RE: Is the MIPS kernel buildable from HEAD? Thread-Topic: Is the MIPS kernel buildable from HEAD? Thread-Index: ActEofee1Df6hOxSTvOSBqlS0BvwQgAAkvhQ Message-ID: <32AB5C9615CC494997D9ABB1DB12783C024C8755D7@SJ-EXCH-1.adaranet.com> References: <20100825.151325.645538350615354761.imp@bsdimp.com> <32AB5C9615CC494997D9ABB1DB12783C024C8755B1@SJ-EXCH-1.adaranet.com> <20100825.160214.864843819430707347.imp@bsdimp.com> In-Reply-To: <20100825.160214.864843819430707347.imp@bsdimp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282775166 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Cc: "freebsd-mips@FreeBSD.ORG" Subject: RE: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 22:42:24 -0000 > -----Original Message----- > From: M. Warner Losh [mailto:imp@bsdimp.com] > Sent: Wednesday, August 25, 2010 3:02 PM > To: jmallett@FreeBSD.ORG > Cc: Patrick Mahan; freebsd-mips@FreeBSD.ORG > Subject: Re: Is the MIPS kernel buildable from HEAD? > > In message: > Juli Mallett writes: > : Hi Patrick, > : > : Those aren't errors per se; if nothing is happening after that, > : something else is wrong. If you aren't using a recent U-Boot, I > : suggest installing a recent U-Boot. If you are using a recent U-Boot > : and know how to recompile it, I can send you patches that might help. > : There is an unused data structure, linux_app_boot_info_t, which > : clobbers some of the memory used for launching multiple processors in > : U-Boot 1.9.0. I have patches to remove it if you would like to give > : that a try. > > I've also noticed that each of the boards have a different load > address. Maybe 200000000 isn't right for your hardware? > It is what we have been using successfully here. Octeon ebt5800# printenv loadaddr loadaddr=3D0x20000000 Patrick > > : Thanks, > : Juli. > : > : On Wed, Aug 25, 2010 at 14:34, Patrick Mahan wrot= e: > : > Warner, > : > > : > I'm trying to build it for a Cavium eval board EBT5800 - and I am > getting > : > the following error(s): > : > > : > Octeon ebt5800# bootoctlinux 20000000 > : > ELF file is 32 bit > : > Skipping non LOAD program header (type 0x6) > : > Skipping non LOAD program header (type 0x3) > : > Skipping non LOAD program header (type 0x70000000) > : > > : > > : > Have you seen this? > : > > : > This is trying to build it with OCTEON1-32 configuration file. > : > > : > Thanks, > : > > : > Patrick > : > > : >> -----Original Message----- > : >> From: M. Warner Losh [mailto:imp@bsdimp.com] > : >> Sent: Wednesday, August 25, 2010 2:13 PM > : >> To: Patrick Mahan > : >> Cc: freebsd-mips@FreeBSD.org > : >> Subject: Re: Is the MIPS kernel buildable from HEAD? > : >> > : >> In message: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH- > : >> 1.adaranet.com> > : >> Patrick Mahan writes: > : >> : Is it possible to build the MIPS kernel from HEAD? Or is the > : >> : current development still external to the HEAD branch? > : >> > : >> Yes. The tip of head is where the mips action is these days. There > : >> is no external development branch. > : >> > : >> There is one issue, however. If you are building for one of the > : >> 64-bit processors a 64-bit kernel, then the required userland won't > : >> build. There's still issues that need to be sorted out... > : >> > : >> Warner > : > _______________________________________________ > : > freebsd-mips@freebsd.org mailing list > : > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > : > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.or= g" > : > > : > : From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 03:14:10 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF3C61065674 for ; Thu, 26 Aug 2010 03:14:10 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 52A818FC0A for ; Thu, 26 Aug 2010 03:14:09 +0000 (UTC) Received: by wyb33 with SMTP id 33so1789471wyb.13 for ; Wed, 25 Aug 2010 20:14:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=nNjBLLE6jsc7LVUEiiO1HzvmEleBEMyXyZ0Qlg2OwbI=; b=GmrrFGNksroiH8f6dXbPnK0xHfD8/omD3OCeWeDTOMfchqyKEUVeyKmguqupzeV2EJ d+PDpPR8UoJ39ECFEsSYsZAm8zO/W4egJzMat531YxVtQ8wjGtOA643neJiN8pAP18eg ZuE1K9DjBuyi2ohXZsgMeyFlWPLmJatARv86c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=oJ08VZPzIGESySty3TTUklXiOIVuip0uRiFVEuwUxG4Ek7ebElXb/A4ZADBOudCV47 US+Z4LYtrhG3AWAr1b4A9RKHqmYG5M8ceYXmfqzYfzKFoh6q7TJu4Dx9ibHhBOAlqd5T +Qbc6j4b9eLX1B+sEs/nX91cR6FuT9CYAcrNY= MIME-Version: 1.0 Received: by 10.227.147.79 with SMTP id k15mr8121555wbv.128.1282792449080; Wed, 25 Aug 2010 20:14:09 -0700 (PDT) Received: by 10.216.156.135 with HTTP; Wed, 25 Aug 2010 20:14:09 -0700 (PDT) In-Reply-To: <20100825.151325.645538350615354761.imp@bsdimp.com> References: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.adaranet.com> <20100825.151325.645538350615354761.imp@bsdimp.com> Date: Thu, 26 Aug 2010 08:44:09 +0530 Message-ID: From: "Jayachandran C." To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: PMahan@adaranet.com, freebsd-mips@freebsd.org Subject: Re: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 03:14:10 -0000 On Thu, Aug 26, 2010 at 2:43 AM, M. Warner Losh wrote: > In message: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.adarane= t.com> > =A0 =A0 =A0 =A0 =A0 =A0Patrick Mahan writes: > : Is it possible to build the MIPS kernel from HEAD? =A0Or is the > : current development still external to the HEAD branch? > > Yes. =A0The tip of head is where the mips action is these days. =A0There > is no external development branch. > > There is one issue, however. =A0If you are building for one of the > 64-bit processors a 64-bit kernel, then the required userland won't > build. =A0There's still issues that need to be sorted out... The 64-bit userland builds for me with -DWITHOUT_CDDL -DWITHOUT_USB -DWITHOUT_BLUETOOTH -DWITHOUT_RESCUE - are you referring to these, or are there other issues? Thanks. JC. From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 03:31:06 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EADAA1065672 for ; Thu, 26 Aug 2010 03:31:06 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id ABF308FC0C for ; Thu, 26 Aug 2010 03:31:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7Q3Q4w8016669; Wed, 25 Aug 2010 21:26:04 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 25 Aug 2010 21:26:06 -0600 (MDT) Message-Id: <20100825.212606.29593247944527246.imp@bsdimp.com> To: c.jayachandran@gmail.com From: "M. Warner Losh" In-Reply-To: References: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.adaranet.com> <20100825.151325.645538350615354761.imp@bsdimp.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: PMahan@adaranet.com, freebsd-mips@freebsd.org Subject: Re: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 03:31:07 -0000 In message: "Jayachandran C." writes: : On Thu, Aug 26, 2010 at 2:43 AM, M. Warner Losh wrot= e: : > In message: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.a= daranet.com> : > =A0 =A0 =A0 =A0 =A0 =A0Patrick Mahan writes: : > : Is it possible to build the MIPS kernel from HEAD? =A0Or is the : > : current development still external to the HEAD branch? : > : > Yes. =A0The tip of head is where the mips action is these days. =A0= There : > is no external development branch. : > : > There is one issue, however. =A0If you are building for one of the : > 64-bit processors a 64-bit kernel, then the required userland won't= : > build. =A0There's still issues that need to be sorted out... : = : The 64-bit userland builds for me with -DWITHOUT_CDDL -DWITHOUT_USB : -DWITHOUT_BLUETOOTH -DWITHOUT_RESCUE - are you referring to these, o= r : are there other issues? I think you can drop the WITHOUT_CDDL now. :) Warner From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 05:35:02 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 506291065693 for ; Thu, 26 Aug 2010 05:35:02 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 054CB8FC16 for ; Thu, 26 Aug 2010 05:35:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7Q5TL4B017665; Wed, 25 Aug 2010 23:29:21 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 25 Aug 2010 23:29:23 -0600 (MDT) Message-Id: <20100825.232923.287595822763821210.imp@bsdimp.com> To: c.jayachandran@gmail.com From: "M. Warner Losh" In-Reply-To: References: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.adaranet.com> <20100825.151325.645538350615354761.imp@bsdimp.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: PMahan@adaranet.com, freebsd-mips@FreeBSD.org Subject: Re: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 05:35:02 -0000 In message: "Jayachandran C." writes: : On Thu, Aug 26, 2010 at 2:43 AM, M. Warner Losh wrot= e: : > In message: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.a= daranet.com> : > =A0 =A0 =A0 =A0 =A0 =A0Patrick Mahan writes: : > : Is it possible to build the MIPS kernel from HEAD? =A0Or is the : > : current development still external to the HEAD branch? : > : > Yes. =A0The tip of head is where the mips action is these days. =A0= There : > is no external development branch. : > : > There is one issue, however. =A0If you are building for one of the : > 64-bit processors a 64-bit kernel, then the required userland won't= : > build. =A0There's still issues that need to be sorted out... : = : The 64-bit userland builds for me with -DWITHOUT_CDDL -DWITHOUT_USB : -DWITHOUT_BLUETOOTH -DWITHOUT_RESCUE - are you referring to these, o= r : are there other issues? I can do a buildworld now without any of these flags. I don't know what the bluetooth issue is/was, but it doesn't kill the build. I fixed the CDDL issue, and papered over the uath and rescue issues in the build system. I can now build a n64 world in -current. I haven't had a chance to run it yet, but hope to soon. My CN38xx board doesn't like the 32-bit kernel anymore... It also doesn't like the 64-bit kernel, but I think that's a uboot issue. It seems older ldscripts didn't tickle the bugs the current one does (on the other hand, the old ldscripts only worked on the CN38xx board). On the other hand, SDK 1.9.0's uboot on another board works fine with the 64-bit kernel. Warner From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 05:46:27 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6EF11065674 for ; Thu, 26 Aug 2010 05:46:27 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 76B308FC0C for ; Thu, 26 Aug 2010 05:46:27 +0000 (UTC) Received: by wyb33 with SMTP id 33so1999563wyb.13 for ; Wed, 25 Aug 2010 22:46:26 -0700 (PDT) Received: by 10.227.136.146 with SMTP id r18mr8343088wbt.53.1282801586309; Wed, 25 Aug 2010 22:46:26 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.216.5.5 with HTTP; Wed, 25 Aug 2010 22:46:06 -0700 (PDT) In-Reply-To: <20100825.232923.287595822763821210.imp@bsdimp.com> References: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.adaranet.com> <20100825.151325.645538350615354761.imp@bsdimp.com> <20100825.232923.287595822763821210.imp@bsdimp.com> From: Juli Mallett Date: Wed, 25 Aug 2010 22:46:06 -0700 X-Google-Sender-Auth: x0zWgEa2t7c8RLxUcP3Mwh7Copw Message-ID: To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: PMahan@adaranet.com, freebsd-mips@freebsd.org Subject: Re: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 05:46:27 -0000 On Wed, Aug 25, 2010 at 22:29, M. Warner Losh wrote: > I can now build a n64 world in -current. =A0I haven't had a chance to > run it yet, but hope to soon. =A0My CN38xx board doesn't like the 32-bit > kernel anymore... =A0It also doesn't like the 64-bit kernel, but I think > that's a uboot issue. =A0It seems older ldscripts didn't tickle the bugs > the current one does (on the other hand, the old ldscripts only worked > on the CN38xx board). =A0On the other hand, SDK 1.9.0's uboot on another > board works fine with the 64-bit kernel. I'm having no trouble with kernel and world on two CN5020 boards and no trouble with starting the kernel on a CN5860-based board. The CN5860 board has problems I'm dealing with. That said, the two CN5020 boards are running with this patch to U-Boot, which I really did find was necessary because the address the (unused) data was stored at conflicts with the per-CPU storage area, IIRC. http://people.freebsd.org/~jmallett/no-labi.diff I have a more conservative ldscript that I can check in and move the Octeon kernel configurations to, which gets rid of the non-executable program headers that generate messages. All that really matters is that we not have multiple executable program headers because that completely breaks the Octeon ELF loading code. Juli. From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 05:53:33 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33D2C106564A for ; Thu, 26 Aug 2010 05:53:33 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id BB5D58FC0A for ; Thu, 26 Aug 2010 05:53:32 +0000 (UTC) Received: by wwd20 with SMTP id 20so1160640wwd.1 for ; Wed, 25 Aug 2010 22:53:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=koLMZDedjJzRYD6lzg59WVveER2vQa8QaJ3m+JXONW8=; b=dB59VC/Zg70QvLMKq728c2WfBGSJu5osPX7w/vk3zoYAqxbsjIhkUlTo/YD5VWvqMN cSPZ9Uh7abwoGK+KwKGnANFBz0vYeDAiONK6pnExSPCS5ticAg1MEnE12vN+my77sqEo Pf1sZd6B2Mssdi0wupdZMxx61dOmaKWg6YcVs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=vnBcIdNY1K1+HSnyyY3KY7sPRh2NiUhY034T4+QAL6z1SZpxXvU2/uy7+WLAcKKLBx 2EmpAUUpfhiGS7UrxlRCSX5TaIcjIoNFtXuUXhyun58jsRKKxg3ezpPqqRI93LnSEvxm /tHc3UEYZjSOTAggvvYHct7c84I0Y57bSbPm0= MIME-Version: 1.0 Received: by 10.216.203.71 with SMTP id e49mr8348357weo.60.1282802011831; Wed, 25 Aug 2010 22:53:31 -0700 (PDT) Received: by 10.216.156.135 with HTTP; Wed, 25 Aug 2010 22:53:31 -0700 (PDT) In-Reply-To: <20100825.232923.287595822763821210.imp@bsdimp.com> References: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.adaranet.com> <20100825.151325.645538350615354761.imp@bsdimp.com> <20100825.232923.287595822763821210.imp@bsdimp.com> Date: Thu, 26 Aug 2010 11:23:31 +0530 Message-ID: From: "Jayachandran C." To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: PMahan@adaranet.com, freebsd-mips@freebsd.org Subject: Re: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 05:53:33 -0000 On Thu, Aug 26, 2010 at 10:59 AM, M. Warner Losh wrote: > In message: > =A0 =A0 =A0 =A0 =A0 =A0"Jayachandran C." write= s: > : On Thu, Aug 26, 2010 at 2:43 AM, M. Warner Losh wrote: > : > In message: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.ada= ranet.com> > : > =A0 =A0 =A0 =A0 =A0 =A0Patrick Mahan writes: > : > : Is it possible to build the MIPS kernel from HEAD? =A0Or is the > : > : current development still external to the HEAD branch? > : > > : > Yes. =A0The tip of head is where the mips action is these days. =A0Th= ere > : > is no external development branch. > : > > : > There is one issue, however. =A0If you are building for one of the > : > 64-bit processors a 64-bit kernel, then the required userland won't > : > build. =A0There's still issues that need to be sorted out... > : > : The 64-bit userland builds for me with =A0-DWITHOUT_CDDL -DWITHOUT_USB > : -DWITHOUT_BLUETOOTH =A0-DWITHOUT_RESCUE - are you referring to these, o= r > : are there other issues? > > I can do a buildworld now without any of these flags. =A0I don't know > what the bluetooth issue is/was, but it doesn't kill the build. =A0I If I remember correctly, one of those uses ld to convert a binary blob to a object file, and that failed because the generated object was not of the correct abi. I had thought it it be a toolchain/bfd issue, but did not dig further. JC. From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 10:44:48 2010 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E0451065698; Thu, 26 Aug 2010 10:44:48 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id BF9B78FC18; Thu, 26 Aug 2010 10:44:47 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.3) with ESMTP id o7QAilcB014461; Thu, 26 Aug 2010 06:44:47 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.3/Submit) id o7QAiksl014450; Thu, 26 Aug 2010 10:44:46 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 26 Aug 2010 10:44:46 GMT Message-Id: <201008261044.o7QAiksl014450@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 10:44:48 -0000 TB --- 2010-08-26 10:40:55 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2010-08-26 10:40:55 - starting HEAD tinderbox run for mips/mips TB --- 2010-08-26 10:40:55 - cleaning the object tree TB --- 2010-08-26 10:41:16 - cvsupping the source tree TB --- 2010-08-26 10:41:16 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/mips/mips/supfile TB --- 2010-08-26 10:41:48 - building world TB --- 2010-08-26 10:41:48 - MAKEOBJDIRPREFIX=/obj TB --- 2010-08-26 10:41:48 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2010-08-26 10:41:48 - TARGET=mips TB --- 2010-08-26 10:41:48 - TARGET_ARCH=mips TB --- 2010-08-26 10:41:48 - TZ=UTC TB --- 2010-08-26 10:41:48 - __MAKE_CONF=/dev/null TB --- 2010-08-26 10:41:48 - cd /src TB --- 2010-08-26 10:41:48 - /usr/bin/make -B buildworld >>> World build started on Thu Aug 26 10:41:49 UTC 2010 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] "/src/share/mk/bsd.arch.inc.mk", line 7: if-less elif "/src/Makefile.mips", line 3: Malformed conditional (${TARGET_ABI} == "n64") "/src/Makefile.mips", line 5: if-less endif "/src/share/mk/bsd.arch.inc.mk", line 9: if-less elif "/src/Makefile.mips", line 3: Malformed conditional (${TARGET_ABI} == "n64") "/src/Makefile.mips", line 5: if-less endif "/src/share/mk/bsd.arch.inc.mk", line 11: if-less endif make: fatal errors encountered -- cannot continue *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2010-08-26 10:44:46 - WARNING: /usr/bin/make returned exit code 1 TB --- 2010-08-26 10:44:46 - ERROR: failed to build world TB --- 2010-08-26 10:44:46 - 151.11 user 54.55 system 231.52 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-mips-mips.full From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 12:51:35 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22FE910656A3 for ; Thu, 26 Aug 2010 12:51:35 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id CC5288FC13 for ; Thu, 26 Aug 2010 12:51:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7QCiX3K022127; Thu, 26 Aug 2010 06:44:33 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 26 Aug 2010 06:44:35 -0600 (MDT) Message-Id: <20100826.064435.690091871583279020.imp@bsdimp.com> To: c.jayachandran@gmail.com From: "M. Warner Losh" In-Reply-To: References: <20100825.232923.287595822763821210.imp@bsdimp.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: PMahan@adaranet.com, freebsd-mips@FreeBSD.org Subject: Re: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 12:51:35 -0000 In message: "Jayachandran C." writes: : On Thu, Aug 26, 2010 at 10:59 AM, M. Warner Losh wro= te: : > In message: : > =A0 =A0 =A0 =A0 =A0 =A0"Jayachandran C." = writes: : > : On Thu, Aug 26, 2010 at 2:43 AM, M. Warner Losh = wrote: : > : > In message: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH= -1.adaranet.com> : > : > =A0 =A0 =A0 =A0 =A0 =A0Patrick Mahan writ= es: : > : > : Is it possible to build the MIPS kernel from HEAD? =A0Or is t= he : > : > : current development still external to the HEAD branch? : > : > : > : > Yes. =A0The tip of head is where the mips action is these days.= =A0There : > : > is no external development branch. : > : > : > : > There is one issue, however. =A0If you are building for one of = the : > : > 64-bit processors a 64-bit kernel, then the required userland w= on't : > : > build. =A0There's still issues that need to be sorted out... : > : : > : The 64-bit userland builds for me with =A0-DWITHOUT_CDDL -DWITHOU= T_USB : > : -DWITHOUT_BLUETOOTH =A0-DWITHOUT_RESCUE - are you referring to th= ese, or : > : are there other issues? : > : > I can do a buildworld now without any of these flags. =A0I don't kn= ow : > what the bluetooth issue is/was, but it doesn't kill the build. =A0= I : = : If I remember correctly, one of those uses ld to convert a binary blo= b : to a object file, and that failed because the generated object was no= t : of the correct abi. I had thought it it be a toolchain/bfd issue, but= : did not dig further. Yes. that's right. It generates the wrong ABI. Warner From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 15:27:55 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC2CB1065697 for ; Thu, 26 Aug 2010 15:27:54 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id BA0C88FC08 for ; Thu, 26 Aug 2010 15:27:54 +0000 (UTC) X-ASG-Debug-ID: 1282836473-5061551a0001-TrbQWW Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id HUBuPE2BsR3AJCtp; Thu, 26 Aug 2010 08:27:53 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523]) by SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523%14]) with mapi; Thu, 26 Aug 2010 08:27:54 -0700 From: Patrick Mahan X-Barracuda-BBL-IP: fe80::7042:d8c2:5973:c523 X-Barracuda-RBL-IP: fe80::7042:d8c2:5973:c523 To: "M. Warner Losh" , "c.jayachandran@gmail.com" Date: Thu, 26 Aug 2010 08:27:51 -0700 X-ASG-Orig-Subj: RE: Is the MIPS kernel buildable from HEAD? Thread-Topic: Is the MIPS kernel buildable from HEAD? Thread-Index: ActE4G68x2PUblwPQkiQ3WzhV4lrywASg7cQ Message-ID: <32AB5C9615CC494997D9ABB1DB12783C024C875653@SJ-EXCH-1.adaranet.com> References: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH-1.adaranet.com> <20100825.151325.645538350615354761.imp@bsdimp.com> <20100825.232923.287595822763821210.imp@bsdimp.com> In-Reply-To: <20100825.232923.287595822763821210.imp@bsdimp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282836473 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Cc: "freebsd-mips@FreeBSD.org" Subject: RE: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 15:27:55 -0000 > -----Original Message----- > From: M. Warner Losh [mailto:imp@bsdimp.com] > Sent: Wednesday, August 25, 2010 10:29 PM > To: c.jayachandran@gmail.com > Cc: Patrick Mahan; freebsd-mips@FreeBSD.org > Subject: Re: Is the MIPS kernel buildable from HEAD? > > In message: > "Jayachandran C." writes: > : On Thu, Aug 26, 2010 at 2:43 AM, M. Warner Losh wrote: > : > In message: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH- > 1.adaranet.com> > : > Patrick Mahan writes: > : > : Is it possible to build the MIPS kernel from HEAD? Or is the > : > : current development still external to the HEAD branch? > : > > : > Yes. The tip of head is where the mips action is these days. There > : > is no external development branch. > : > > : > There is one issue, however. If you are building for one of the > : > 64-bit processors a 64-bit kernel, then the required userland won't > : > build. There's still issues that need to be sorted out... > : > : The 64-bit userland builds for me with -DWITHOUT_CDDL -DWITHOUT_USB > : -DWITHOUT_BLUETOOTH -DWITHOUT_RESCUE - are you referring to these, or > : are there other issues? > > I can do a buildworld now without any of these flags. I don't know > what the bluetooth issue is/was, but it doesn't kill the build. I > fixed the CDDL issue, and papered over the uath and rescue issues in > the build system. > > I can now build a n64 world in -current. I haven't had a chance to > run it yet, but hope to soon. My CN38xx board doesn't like the 32-bit > kernel anymore... It also doesn't like the 64-bit kernel, but I think > that's a uboot issue. It seems older ldscripts didn't tickle the bugs > the current one does (on the other hand, the old ldscripts only worked > on the CN38xx board). On the other hand, SDK 1.9.0's uboot on another > board works fine with the 64-bit kernel. > Warner, We build o32 with our modified FreeBSD 8.0 that boots under the SDK 1.8.1 on a CN58XX. However, I was looking at the ldscript that we use versus the one in use for you. We are using what is basically sys/conf/ldscript.m= ips. Also, I think our problem is with the a3 register passed in as part of platform_start() in cavium/octeon_machdep.c. We have the following in mips/lowcore.S - #if defined(TARGET_OCTEON) la a0, app_descriptor_addr sw a3, 0(a0) /* Store app descriptor ptr */ #endif So we are storing the value of a3 into a global that we later use in octeon32/Octeon_machdep.c - static void mips_boot_params_init(void) { int descriptor_not_parsed =3D 1; if ((app_descriptor_addr =3D=3D 0) || (app_descriptor_addr >=3D 0xA= fffffff)) { printf("address of app_descriptor is %x\n", app_descriptor_addr); } else { app_desc_ptr =3D (octeon_boot_descriptor_t *) app_descripto= r_addr; octeon_bd_ver =3D app_desc_ptr->desc_version; ... I am need to investigate, but I think we found that a3 was getting clobbere= d on the inbound call to platform_start(). Patrick From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 15:42:24 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDC8D10656A7 for ; Thu, 26 Aug 2010 15:42:24 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id BE8078FC14 for ; Thu, 26 Aug 2010 15:42:24 +0000 (UTC) X-ASG-Debug-ID: 1282836657-506155260001-1gY7mK Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id pKMJbdUxhMtrG9gE; Thu, 26 Aug 2010 08:30:57 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523]) by SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523%14]) with mapi; Thu, 26 Aug 2010 08:30:57 -0700 From: Patrick Mahan X-Barracuda-BBL-IP: fe80::7042:d8c2:5973:c523 X-Barracuda-RBL-IP: fe80::7042:d8c2:5973:c523 To: S.W Arron , Oleksandr Tymoshenko , "freebsd-mips@freebsd.org" Date: Thu, 26 Aug 2010 08:30:55 -0700 X-ASG-Orig-Subj: RE: Has the mips branch code been merged into the head main-line? Thread-Topic: Has the mips branch code been merged into the head main-line? Thread-Index: ActEzewSJNeivH8dQS+sjvbKRi9powAZY+4Q Message-ID: <32AB5C9615CC494997D9ABB1DB12783C024C875656@SJ-EXCH-1.adaranet.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282836657 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Cc: Subject: RE: Has the mips branch code been merged into the head main-line? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 15:42:24 -0000 S.W Arron, As I was told yesterday, it has been merged into Head. So if you pull from= there you should have the latest mips code. Patrick Adara Networks > -----Original Message----- > From: owner-freebsd-mips@freebsd.org [mailto:owner-freebsd- > mips@freebsd.org] On Behalf Of S.W Arron > Sent: Tuesday, August 24, 2010 4:19 AM > To: Oleksandr Tymoshenko; freebsd-mips@freebsd.org > Subject: Has the mips branch code been merged into the head main-line? > > Hi, Oleksandr > > It seems that the mips branch is removed from the base/projects/mips in t= he > svn repository, and i can't "svn update" to update the mips code. But "sv= n > diff" is still ok, very strange. It is appreciated if some help can be > provided. > > Since 8.0 there is mips directory in sys/, not sure the mips branch code > has > already been merged into the mainline. Can you help confirm it or give so= me > instruction where to get the latest version for freebsd-mips? Thanks a lo= t! > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 15:49:46 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0795D1065698 for ; Thu, 26 Aug 2010 15:49:46 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A9AF28FC15 for ; Thu, 26 Aug 2010 15:49:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7QFkS6B023948; Thu, 26 Aug 2010 09:46:28 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 26 Aug 2010 09:46:30 -0600 (MDT) Message-Id: <20100826.094630.94843338838666386.imp@bsdimp.com> To: PMahan@adaranet.com From: "M. Warner Losh" In-Reply-To: <32AB5C9615CC494997D9ABB1DB12783C024C875653@SJ-EXCH-1.adaranet.com> References: <20100825.232923.287595822763821210.imp@bsdimp.com> <32AB5C9615CC494997D9ABB1DB12783C024C875653@SJ-EXCH-1.adaranet.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-mips@FreeBSD.org Subject: Re: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 15:49:46 -0000 In message: <32AB5C9615CC494997D9ABB1DB12783C024C875653@SJ-EXCH-1.adaranet.com> Patrick Mahan writes: : : : > -----Original Message----- : > From: M. Warner Losh [mailto:imp@bsdimp.com] : > Sent: Wednesday, August 25, 2010 10:29 PM : > To: c.jayachandran@gmail.com : > Cc: Patrick Mahan; freebsd-mips@FreeBSD.org : > Subject: Re: Is the MIPS kernel buildable from HEAD? : > : > In message: : > "Jayachandran C." writes: : > : On Thu, Aug 26, 2010 at 2:43 AM, M. Warner Losh wrote: : > : > In message: <32AB5C9615CC494997D9ABB1DB12783C024C875590@SJ-EXCH- : > 1.adaranet.com> : > : > Patrick Mahan writes: : > : > : Is it possible to build the MIPS kernel from HEAD? Or is the : > : > : current development still external to the HEAD branch? : > : > : > : > Yes. The tip of head is where the mips action is these days. There : > : > is no external development branch. : > : > : > : > There is one issue, however. If you are building for one of the : > : > 64-bit processors a 64-bit kernel, then the required userland won't : > : > build. There's still issues that need to be sorted out... : > : : > : The 64-bit userland builds for me with -DWITHOUT_CDDL -DWITHOUT_USB : > : -DWITHOUT_BLUETOOTH -DWITHOUT_RESCUE - are you referring to these, or : > : are there other issues? : > : > I can do a buildworld now without any of these flags. I don't know : > what the bluetooth issue is/was, but it doesn't kill the build. I : > fixed the CDDL issue, and papered over the uath and rescue issues in : > the build system. : > : > I can now build a n64 world in -current. I haven't had a chance to : > run it yet, but hope to soon. My CN38xx board doesn't like the 32-bit : > kernel anymore... It also doesn't like the 64-bit kernel, but I think : > that's a uboot issue. It seems older ldscripts didn't tickle the bugs : > the current one does (on the other hand, the old ldscripts only worked : > on the CN38xx board). On the other hand, SDK 1.9.0's uboot on another : > board works fine with the 64-bit kernel. : > : : Warner, : : We build o32 with our modified FreeBSD 8.0 that boots under the SDK 1.8.1 : on a CN58XX. However, I was looking at the ldscript that we use versus : the one in use for you. We are using what is basically sys/conf/ldscript.mips. That's good to know... : Also, I think our problem is with the a3 register passed in as part of : platform_start() in cavium/octeon_machdep.c. We have the following in : mips/lowcore.S - : : #if defined(TARGET_OCTEON) : la a0, app_descriptor_addr : sw a3, 0(a0) /* Store app descriptor ptr */ : #endif : : So we are storing the value of a3 into a global that we later use in : octeon32/Octeon_machdep.c - Yea. The old code did that. We removed it because we were passing a3 into the platform_start routine directly. I had to fix some of locore to not clobber the a3 register, however, to make it useful... A quick look at locore.S shows : static void : mips_boot_params_init(void) : { : int descriptor_not_parsed = 1; : : if ((app_descriptor_addr == 0) || (app_descriptor_addr >= 0xAfffffff)) { : printf("address of app_descriptor is %x\n", : app_descriptor_addr); : } else { : : app_desc_ptr = (octeon_boot_descriptor_t *) app_descriptor_addr; : octeon_bd_ver = app_desc_ptr->desc_version; : ... : : : I am need to investigate, but I think we found that a3 was getting clobbered on : the inbound call to platform_start(). You might try not using the app_desc_ptr at all. It used to be possible to boot things w/o it before Juli's changes. I haven't tried since then. Also, there was a bug with the bzero in locore where it would round to the next page bogusly. As a result, it overwrote part of the app_descriptor leading to much confusion inside the kernel... You might also try poking some kind of character into the LEDs at different points to see how far you get. When I've seen uboot bugs, they have kept me from even getting to the first line of locore.S. Warner From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 16:16:52 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F2231065674 for ; Thu, 26 Aug 2010 16:16:52 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 405728FC1F for ; Thu, 26 Aug 2010 16:16:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7QGA3PQ024163; Thu, 26 Aug 2010 10:10:03 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 26 Aug 2010 10:10:06 -0600 (MDT) Message-Id: <20100826.101006.597119736749536018.imp@bsdimp.com> To: PMahan@adaranet.com From: "M. Warner Losh" In-Reply-To: <20100826.094630.94843338838666386.imp@bsdimp.com> References: <20100825.232923.287595822763821210.imp@bsdimp.com> <32AB5C9615CC494997D9ABB1DB12783C024C875653@SJ-EXCH-1.adaranet.com> <20100826.094630.94843338838666386.imp@bsdimp.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-mips@FreeBSD.org Subject: Re: Is the MIPS kernel buildable from HEAD? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 16:16:52 -0000 In message: <20100826.094630.94843338838666386.imp@bsdimp.com> "M. Warner Losh" writes: : : Also, I think our problem is with the a3 register passed in as part of : : platform_start() in cavium/octeon_machdep.c. We have the following in : : mips/lowcore.S - : : : : #if defined(TARGET_OCTEON) : : la a0, app_descriptor_addr : : sw a3, 0(a0) /* Store app descriptor ptr */ : : #endif : : : : So we are storing the value of a3 into a global that we later use in : : octeon32/Octeon_machdep.c - : : Yea. The old code did that. We removed it because we were passing a3 : into the platform_start routine directly. I had to fix some of locore : to not clobber the a3 register, however, to make it useful... A quick : look at locore.S shows that I forgot to finish this paragraph... "shows that all the a* registers aren't used at all, so should be passed unmodified into platform_start. Warner From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 23:06:59 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E68CE1065679 for ; Thu, 26 Aug 2010 23:06:59 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id CECFA8FC0C for ; Thu, 26 Aug 2010 23:06:59 +0000 (UTC) X-ASG-Debug-ID: 1282864019-50615b030001-TrbQWW Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id TG44UHcdt7gsYMNm for ; Thu, 26 Aug 2010 16:06:59 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from mycroft.adaranet.com (10.10.24.100) by SJ-EXCH-1.adaranet.com (10.10.1.29) with Microsoft SMTP Server (TLS) id 8.1.240.5; Thu, 26 Aug 2010 16:06:59 -0700 Message-ID: <4C76F4B6.5050607@adaranet.com> X-Barracuda-BBL-IP: nil Date: Thu, 26 Aug 2010 16:11:50 -0700 From: Patrick Mahan User-Agent: Thunderbird 2.0.0.23 (X11/20091021) MIME-Version: 1.0 To: "freebsd-mips@FreeBSD.org" X-ASG-Orig-Subj: Cannot build the Mips 32 bit kernel Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282864019 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Cc: Subject: Cannot build the Mips 32 bit kernel X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 23:07:00 -0000 This is with the latest download from the HEAD: % svn info Path: . URL: svn://svn.freebsd.org/base/head Repository Root: svn://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 211846 Node Kind: directory Schedule: normal Last Changed Author: imp Last Changed Rev: 211846 Last Changed Date: 2010-08-26 08:49:52 -0700 (Thu, 26 Aug 2010) I have attached my modified OCTEON1-32 for you folks to look at. The kernel is compiling with no errors, but when it goes to link, I am seeing a lot of the following errors: Compile command cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/home/mahan/src/FreeBSD.org/sources/HEAD/head/sys -I/home/mahan/src/FreeBSD.org/sources/HEAD/head/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=1000 --param large-function-growth=100000 -EB -fno-pic -mno-abicalls -G0 -EB -march=octeon -msoft-float -ffreestanding -Werror /home/mahan/src/FreeBSD.org/sources/HEAD/head/sys/dev/md/md.c Error generated by the linker md.o(.text+0x99c): In function `mdstart_malloc': /home/mahan/src/FreeBSD.org/sources/HEAD/head/sys/dev/md/md.c:424: undefined reference to `__divdi3' md.o(.text+0x9d0):/home/mahan/src/FreeBSD.org/sources/HEAD/head/sys/dev/md/md.c:425: undefined reference to `__divdi3' md.o(.text+0x2698): In function `mdctlioctl': /home/mahan/src/FreeBSD.org/sources/HEAD/head/sys/dev/md/md.c:845: undefined reference to `__divdi3' md.o(.text+0x27b8):/home/mahan/src/FreeBSD.org/sources/HEAD/head/sys/dev/md/md.c:851: undefined reference to `__divdi3' md.o(.text+0x2dbc):/home/mahan/src/FreeBSD.org/sources/HEAD/head/sys/dev/md/md.c:1142: undefined reference to `__moddi3' Other files affected: geom_dev.c geom_disk.c geom_io.c g_part.c kern_acct.c et.al. I include the compile command so you could see what was being using to generate the .o files. I have the full build log available (along with my build script) for anyone who wants to view it. All help is appreciated, Thanks, Patrick From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 23:16:33 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5569F10656A3 for ; Thu, 26 Aug 2010 23:16:33 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 013868FC16 for ; Thu, 26 Aug 2010 23:16:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7QNFgH0027798; Thu, 26 Aug 2010 17:15:42 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 26 Aug 2010 17:15:45 -0600 (MDT) Message-Id: <20100826.171545.705015198975915183.imp@bsdimp.com> To: pmahan@adaranet.com From: "M. Warner Losh" In-Reply-To: <4C76F4B6.5050607@adaranet.com> References: <4C76F4B6.5050607@adaranet.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: Cannot build the Mips 32 bit kernel X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 23:16:33 -0000 In message: <4C76F4B6.5050607@adaranet.com> Patrick Mahan writes: : I have attached my modified OCTEON1-32 for you folks to look at. And the mailing list helpfully stripped it :( Warner From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 23:19:12 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED648106564A for ; Thu, 26 Aug 2010 23:19:12 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 8F2808FC16 for ; Thu, 26 Aug 2010 23:19:12 +0000 (UTC) Received: by wwb34 with SMTP id 34so681844wwb.31 for ; Thu, 26 Aug 2010 16:19:11 -0700 (PDT) Received: by 10.216.176.8 with SMTP id a8mr31983wem.93.1282864751262; Thu, 26 Aug 2010 16:19:11 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.216.5.5 with HTTP; Thu, 26 Aug 2010 16:18:51 -0700 (PDT) In-Reply-To: <20100826.171545.705015198975915183.imp@bsdimp.com> References: <4C76F4B6.5050607@adaranet.com> <20100826.171545.705015198975915183.imp@bsdimp.com> From: Juli Mallett Date: Thu, 26 Aug 2010 16:18:51 -0700 X-Google-Sender-Auth: Jr2uKURosDUzqtH-3PXG-kxJOdY Message-ID: To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: Cannot build the Mips 32 bit kernel X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 23:19:13 -0000 On Thu, Aug 26, 2010 at 16:15, M. Warner Losh wrote: > In message: <4C76F4B6.5050607@adaranet.com> > =A0 =A0 =A0 =A0 =A0 =A0Patrick Mahan writes: > : I have attached my modified OCTEON1-32 for you folks to look at. > > And the mailing list helpfully stripped it :( What's going on here is that we use ISA_MIPS32 bogusly (using it at all is bad enough, but...) namely we use it to determine whether to link in the relevant bits of libkern. I'm not sure what the best thing to do is. I've thought about creating a .c file that includes the libkern bits depending on the ABI that's being used, so that we can get config out of the business of handling this. In short: your config probably lacks and should have (even though it's actually wrong) options ISA_MIPS32. From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 23:31:26 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 891FD1065695; Thu, 26 Aug 2010 23:31:26 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 395D68FC15; Thu, 26 Aug 2010 23:31:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7QNPnQ6027938; Thu, 26 Aug 2010 17:25:49 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 26 Aug 2010 17:25:52 -0600 (MDT) Message-Id: <20100826.172552.898177426545476456.imp@bsdimp.com> To: jmallett@freebsd.org From: "M. Warner Losh" In-Reply-To: References: <4C76F4B6.5050607@adaranet.com> <20100826.171545.705015198975915183.imp@bsdimp.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: Cannot build the Mips 32 bit kernel X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 23:31:26 -0000 In message: Juli Mallett writes: : On Thu, Aug 26, 2010 at 16:15, M. Warner Losh wrote:= : > In message: <4C76F4B6.5050607@adaranet.com> : > =A0 =A0 =A0 =A0 =A0 =A0Patrick Mahan writes: : > : I have attached my modified OCTEON1-32 for you folks to look at. : > : > And the mailing list helpfully stripped it :( : = : What's going on here is that we use ISA_MIPS32 bogusly (using it at : all is bad enough, but...) namely we use it to determine whether to : link in the relevant bits of libkern. I'm not sure what the best : thing to do is. I've thought about creating a .c file that includes : the libkern bits depending on the ABI that's being used, so that we : can get config out of the business of handling this. Agreed. ISA_MIPS32 seemed like a good idea when I did it. But now I agree with you: its rather lame. : In short: your config probably lacks and should have (even though it'= s : actually wrong) options ISA_MIPS32. Warner From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 23:35:52 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFB50106564A for ; Thu, 26 Aug 2010 23:35:52 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5D2498FC13 for ; Thu, 26 Aug 2010 23:35:51 +0000 (UTC) Received: by eyx24 with SMTP id 24so2009595eyx.13 for ; Thu, 26 Aug 2010 16:35:51 -0700 (PDT) Received: by 10.216.88.204 with SMTP id a54mr43818wef.30.1282865747242; Thu, 26 Aug 2010 16:35:47 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.216.5.5 with HTTP; Thu, 26 Aug 2010 16:35:27 -0700 (PDT) In-Reply-To: <4C76FA9F.2070805@adaranet.com> References: <4C76F4B6.5050607@adaranet.com> <20100826.171545.705015198975915183.imp@bsdimp.com> <4C76FA9F.2070805@adaranet.com> From: Juli Mallett Date: Thu, 26 Aug 2010 16:35:27 -0700 X-Google-Sender-Auth: lXk6HPPlYEJgp_tV93m-GB833D0 Message-ID: To: Patrick Mahan Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-mips@freebsd.org" Subject: Re: Cannot build the Mips 32 bit kernel X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 23:35:53 -0000 On Thu, Aug 26, 2010 at 16:37, Patrick Mahan wrote: > We build for mips o32 under 8.0 and our kernel (before we insert the > rootfile system) is > > -rwxr-xr-x =A01 pmahan =A0pmahan =A038155521 Aug 24 19:22 kernel.octeon.3= 2 > > Where when we build it off of head we are seeing > > -rwxr-xr-x =A01 pmahan =A0pmahan =A0243364423 Aug 26 09:45 kernel.octeon.= 32 > > ~38 Mbytes versus ~243 Mbytes > > a 6x increase in size. =A0So I was playing around with the configuration > file to decide what to leave out. That must be either some difference in allocating space for the root filesystem or related to having a lot of debugging info and not stripping the one from HEAD. The Cavium Simple Executive (I don't know if the proprietary port you're using uses it or not) adds some bloat, but nothing like that much. My kernels, n64 and o32 both, are around 8M. I'm not embedding any sort of root filesystem. From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 23:42:25 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 489BF1065672 for ; Thu, 26 Aug 2010 23:42:25 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 2CAB58FC08 for ; Thu, 26 Aug 2010 23:42:24 +0000 (UTC) X-ASG-Debug-ID: 1282865525-50615b640001-1gY7mK Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id nB8cBhybJLtDvwoS; Thu, 26 Aug 2010 16:32:05 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from mycroft.adaranet.com (10.10.24.100) by SJ-EXCH-1.adaranet.com (10.10.1.29) with Microsoft SMTP Server (TLS) id 8.1.240.5; Thu, 26 Aug 2010 16:32:04 -0700 Message-ID: <4C76FA9F.2070805@adaranet.com> X-Barracuda-BBL-IP: nil Date: Thu, 26 Aug 2010 16:37:03 -0700 From: Patrick Mahan User-Agent: Thunderbird 2.0.0.23 (X11/20091021) MIME-Version: 1.0 To: Juli Mallett X-ASG-Orig-Subj: Re: Cannot build the Mips 32 bit kernel References: <4C76F4B6.5050607@adaranet.com> <20100826.171545.705015198975915183.imp@bsdimp.com> In-Reply-To: Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282865525 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Cc: "freebsd-mips@freebsd.org" Subject: Re: Cannot build the Mips 32 bit kernel X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 23:42:25 -0000 Juli Mallett wrote: > On Thu, Aug 26, 2010 at 16:15, M. Warner Losh wrote: >> In message: <4C76F4B6.5050607@adaranet.com> >> Patrick Mahan writes: >> : I have attached my modified OCTEON1-32 for you folks to look at. >> >> And the mailing list helpfully stripped it :( > > What's going on here is that we use ISA_MIPS32 bogusly (using it at > all is bad enough, but...) namely we use it to determine whether to > link in the relevant bits of libkern. I'm not sure what the best > thing to do is. I've thought about creating a .c file that includes > the libkern bits depending on the ABI that's being used, so that we > can get config out of the business of handling this. > > In short: your config probably lacks and should have (even though it's > actually wrong) options ISA_MIPS32. Nice to have someone who is prescient ;-) Yes, our current configuration was leaving this out and I wanted to build without it. I am trying to detemine where the, pardon my language, bloat is coming from. We build for mips o32 under 8.0 and our kernel (before we insert the rootfile system) is -rwxr-xr-x 1 pmahan pmahan 38155521 Aug 24 19:22 kernel.octeon.32 Where when we build it off of head we are seeing -rwxr-xr-x 1 pmahan pmahan 243364423 Aug 26 09:45 kernel.octeon.32 ~38 Mbytes versus ~243 Mbytes a 6x increase in size. So I was playing around with the configuration file to decide what to leave out. Patrick From owner-freebsd-mips@FreeBSD.ORG Fri Aug 27 01:41:40 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 160821065695; Fri, 27 Aug 2010 01:41:40 +0000 (UTC) (envelope-from swarron@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6BC928FC0A; Fri, 27 Aug 2010 01:41:39 +0000 (UTC) Received: by bwz20 with SMTP id 20so1887635bwz.13 for ; Thu, 26 Aug 2010 18:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=F+NkxjHGEuwJ+Bl/ynTK6+6WBxaSwrfrHJVBfdcjtwM=; b=WBj7mj73NGIAo/vRUpCBV1bOqzBDa/EKPaNExkH8hZQrT3/II2opkeFlbrwCc+mWwf bwxfnPay0fdD8f50acyAktFjpt0ng0oJDuPU+i871Q/2VljB7512olCwH96NG1ZBGHJe 1gU50lP7mzAdwoH8wgWYqPwvtdTKLvGkFQcb0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=cB2VV8lVOOL74vCaKs6Y7W2pZT9iUpFDMHnoocC67G0VWajZsohtU3kMrH8097S8ae w73zoa2ETcxkSYU6TQEPm4gmx50RQXdRIvyO4nIJxF9JaNckhilyCWeioevCE8xPtpQ1 UlaPMfHl+A9LBfjsSkflBy2sa6Z4ldL1jfX08= MIME-Version: 1.0 Received: by 10.204.55.195 with SMTP id v3mr6943378bkg.128.1282873298208; Thu, 26 Aug 2010 18:41:38 -0700 (PDT) Received: by 10.204.34.211 with HTTP; Thu, 26 Aug 2010 18:41:38 -0700 (PDT) In-Reply-To: <32AB5C9615CC494997D9ABB1DB12783C024C875656@SJ-EXCH-1.adaranet.com> References: <32AB5C9615CC494997D9ABB1DB12783C024C875656@SJ-EXCH-1.adaranet.com> Date: Fri, 27 Aug 2010 09:41:38 +0800 Message-ID: From: "S.W Arron" To: Patrick Mahan Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Oleksandr Tymoshenko , "freebsd-mips@freebsd.org" Subject: Re: Has the mips branch code been merged into the head main-line? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 01:41:40 -0000 Patrick, Thanks for the confirmation. I have updated the code from mailine and it is more stable when tested in gxemul:) On Thu, Aug 26, 2010 at 11:30 PM, Patrick Mahan wrote: > S.W Arron, > > As I was told yesterday, it has been merged into Head. So if you pull from > there > you should have the latest mips code. > > Patrick > Adara Networks > > > -----Original Message----- > > From: owner-freebsd-mips@freebsd.org [mailto:owner-freebsd- > > mips@freebsd.org] On Behalf Of S.W Arron > > Sent: Tuesday, August 24, 2010 4:19 AM > > To: Oleksandr Tymoshenko; freebsd-mips@freebsd.org > > Subject: Has the mips branch code been merged into the head main-line? > > > > Hi, Oleksandr > > > > It seems that the mips branch is removed from the base/projects/mips in > the > > svn repository, and i can't "svn update" to update the mips code. But > "svn > > diff" is still ok, very strange. It is appreciated if some help can be > > provided. > > > > Since 8.0 there is mips directory in sys/, not sure the mips branch code > > has > > already been merged into the mainline. Can you help confirm it or give > some > > instruction where to get the latest version for freebsd-mips? Thanks a > lot! > > _______________________________________________ > > freebsd-mips@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" > From owner-freebsd-mips@FreeBSD.ORG Fri Aug 27 07:51:30 2010 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96FBB1065674; Fri, 27 Aug 2010 07:51:30 +0000 (UTC) (envelope-from jchandra@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6D79D8FC0C; Fri, 27 Aug 2010 07:51:30 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7R7pUvO087101; Fri, 27 Aug 2010 07:51:30 GMT (envelope-from jchandra@freefall.freebsd.org) Received: (from jchandra@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7R7pUEO087097; Fri, 27 Aug 2010 07:51:30 GMT (envelope-from jchandra) Date: Fri, 27 Aug 2010 07:51:30 GMT Message-Id: <201008270751.o7R7pUEO087097@freefall.freebsd.org> To: pluknet@gmail.com, jchandra@FreeBSD.org, freebsd-mips@FreeBSD.org From: jchandra@FreeBSD.org Cc: Subject: Re: misc/147471: [headers] [patch] whitespace discrepancy in sys/mips/include/memdev.h X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 07:51:30 -0000 Synopsis: [headers] [patch] whitespace discrepancy in sys/mips/include/memdev.h State-Changed-From-To: open->closed State-Changed-By: jchandra State-Changed-When: Fri Aug 27 07:48:56 UTC 2010 State-Changed-Why: Fixed by r211862. This revision also fixes other whitespace issues in sys/mips/include. http://www.freebsd.org/cgi/query-pr.cgi?pr=147471 From owner-freebsd-mips@FreeBSD.ORG Fri Aug 27 08:00:21 2010 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A588410656B9 for ; Fri, 27 Aug 2010 08:00:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1A15D8FC0C for ; Fri, 27 Aug 2010 08:00:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7R80BlR088109 for ; Fri, 27 Aug 2010 08:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7R80B0m088108; Fri, 27 Aug 2010 08:00:11 GMT (envelope-from gnats) Date: Fri, 27 Aug 2010 08:00:11 GMT Message-Id: <201008270800.o7R80B0m088108@freefall.freebsd.org> To: freebsd-mips@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: misc/147471: commit references a PR X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 08:00:21 -0000 The following reply was made to PR misc/147471; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: misc/147471: commit references a PR Date: Fri, 27 Aug 2010 07:46:06 +0000 (UTC) Author: jchandra Date: Fri Aug 27 07:45:50 2010 New Revision: 211862 URL: http://svn.freebsd.org/changeset/base/211862 Log: Whitespace fixes in mips/include, remove unused 'struct tlb' from locore.h PR: misc/147471 Modified: head/sys/mips/include/atomic.h head/sys/mips/include/locore.h head/sys/mips/include/memdev.h head/sys/mips/include/pcb.h head/sys/mips/include/regnum.h head/sys/mips/include/ucontext.h Modified: head/sys/mips/include/atomic.h ============================================================================== --- head/sys/mips/include/atomic.h Fri Aug 27 05:29:59 2010 (r211861) +++ head/sys/mips/include/atomic.h Fri Aug 27 07:45:50 2010 (r211862) @@ -48,7 +48,7 @@ static __inline void mips_sync(void) { - __asm __volatile (".set noreorder\n\t" + __asm __volatile (".set noreorder\n\t" "sync\n\t" "nop\n\t" "nop\n\t" Modified: head/sys/mips/include/locore.h ============================================================================== --- head/sys/mips/include/locore.h Fri Aug 27 05:29:59 2010 (r211861) +++ head/sys/mips/include/locore.h Fri Aug 27 07:45:50 2010 (r211862) @@ -24,15 +24,13 @@ */ #ifndef _MIPS_LOCORE_H -#define _MIPS_LOCORE_H +#define _MIPS_LOCORE_H #include #include #include #include -struct tlb; - /* * CPU identification, from PRID register. */ @@ -47,22 +45,22 @@ typedef int mips_prid_t; #define MIPS_PRID_REV_MAJ(x) ((MIPS_PRID_REV(x) >> 4) & 0x0f) /* MIPS32/64 */ -#define MIPS_PRID_CID(x) (((x) >> 16) & 0x00ff) /* Company ID */ -#define MIPS_PRID_CID_PREHISTORIC 0x00 /* Not MIPS32/64 */ -#define MIPS_PRID_CID_MTI 0x01 /* MIPS Technologies, Inc. */ -#define MIPS_PRID_CID_BROADCOM 0x02 /* Broadcom */ -#define MIPS_PRID_CID_ALCHEMY 0x03 /* Alchemy Semiconductor */ -#define MIPS_PRID_CID_SIBYTE 0x04 /* SiByte */ -#define MIPS_PRID_CID_SANDCRAFT 0x05 /* SandCraft */ -#define MIPS_PRID_CID_PHILIPS 0x06 /* Philips */ -#define MIPS_PRID_CID_TOSHIBA 0x07 /* Toshiba */ -#define MIPS_PRID_CID_LSI 0x08 /* LSI */ +#define MIPS_PRID_CID(x) (((x) >> 16) & 0x00ff) /* Company ID */ +#define MIPS_PRID_CID_PREHISTORIC 0x00 /* Not MIPS32/64 */ +#define MIPS_PRID_CID_MTI 0x01 /* MIPS Technologies, Inc. */ +#define MIPS_PRID_CID_BROADCOM 0x02 /* Broadcom */ +#define MIPS_PRID_CID_ALCHEMY 0x03 /* Alchemy Semiconductor */ +#define MIPS_PRID_CID_SIBYTE 0x04 /* SiByte */ +#define MIPS_PRID_CID_SANDCRAFT 0x05 /* SandCraft */ +#define MIPS_PRID_CID_PHILIPS 0x06 /* Philips */ +#define MIPS_PRID_CID_TOSHIBA 0x07 /* Toshiba */ +#define MIPS_PRID_CID_LSI 0x08 /* LSI */ /* 0x09 unannounced */ /* 0x0a unannounced */ -#define MIPS_PRID_CID_LEXRA 0x0b /* Lexra */ -#define MIPS_PRID_CID_RMI 0x0c /* RMI */ -#define MIPS_PRID_CID_CAVIUM 0x0d /* Cavium */ -#define MIPS_PRID_COPTS(x) (((x) >> 24) & 0x00ff) /* Company Options */ +#define MIPS_PRID_CID_LEXRA 0x0b /* Lexra */ +#define MIPS_PRID_CID_RMI 0x0c /* RMI */ +#define MIPS_PRID_CID_CAVIUM 0x0d /* Cavium */ +#define MIPS_PRID_COPTS(x) (((x) >> 24) & 0x00ff) /* Company Options */ #ifdef _KERNEL #ifdef __HAVE_MIPS_MACHDEP_CACHE_CONFIG Modified: head/sys/mips/include/memdev.h ============================================================================== --- head/sys/mips/include/memdev.h Fri Aug 27 05:29:59 2010 (r211861) +++ head/sys/mips/include/memdev.h Fri Aug 27 07:45:50 2010 (r211862) @@ -28,7 +28,7 @@ */ #define CDEV_MINOR_MEM 0 -#define CDEV_MINOR_KMEM 1 +#define CDEV_MINOR_KMEM 1 d_open_t memopen; d_read_t memrw; Modified: head/sys/mips/include/pcb.h ============================================================================== --- head/sys/mips/include/pcb.h Fri Aug 27 05:29:59 2010 (r211861) +++ head/sys/mips/include/pcb.h Fri Aug 27 07:45:50 2010 (r211862) @@ -58,20 +58,20 @@ struct pcb /* these match the regnum's in regnum.h * used by switch.S */ -#define PCB_REG_S0 0 -#define PCB_REG_S1 1 -#define PCB_REG_S2 2 -#define PCB_REG_S3 3 -#define PCB_REG_S4 4 -#define PCB_REG_S5 5 -#define PCB_REG_S6 6 -#define PCB_REG_S7 7 -#define PCB_REG_SP 8 -#define PCB_REG_S8 9 -#define PCB_REG_RA 10 -#define PCB_REG_SR 11 -#define PCB_REG_GP 12 -#define PCB_REG_PC 13 +#define PCB_REG_S0 0 +#define PCB_REG_S1 1 +#define PCB_REG_S2 2 +#define PCB_REG_S3 3 +#define PCB_REG_S4 4 +#define PCB_REG_S5 5 +#define PCB_REG_S6 6 +#define PCB_REG_S7 7 +#define PCB_REG_SP 8 +#define PCB_REG_S8 9 +#define PCB_REG_RA 10 +#define PCB_REG_SR 11 +#define PCB_REG_GP 12 +#define PCB_REG_PC 13 #ifdef _KERNEL Modified: head/sys/mips/include/regnum.h ============================================================================== --- head/sys/mips/include/regnum.h Fri Aug 27 05:29:59 2010 (r211861) +++ head/sys/mips/include/regnum.h Fri Aug 27 07:45:50 2010 (r211862) @@ -46,20 +46,20 @@ * in pcb.h and is used by * swtch.S */ -#define PREG_S0 0 -#define PREG_S1 1 -#define PREG_S2 2 -#define PREG_S3 3 -#define PREG_S4 4 -#define PREG_S5 5 -#define PREG_S6 6 -#define PREG_S7 7 -#define PREG_SP 8 -#define PREG_S8 9 -#define PREG_RA 10 -#define PREG_SR 11 -#define PREG_GP 12 -#define PREG_PC 13 +#define PREG_S0 0 +#define PREG_S1 1 +#define PREG_S2 2 +#define PREG_S3 3 +#define PREG_S4 4 +#define PREG_S5 5 +#define PREG_S6 6 +#define PREG_S7 7 +#define PREG_SP 8 +#define PREG_S8 9 +#define PREG_RA 10 +#define PREG_SR 11 +#define PREG_GP 12 +#define PREG_PC 13 /* * Location of the saved registers relative to ZERO. Modified: head/sys/mips/include/ucontext.h ============================================================================== --- head/sys/mips/include/ucontext.h Fri Aug 27 05:29:59 2010 (r211861) +++ head/sys/mips/include/ucontext.h Fri Aug 27 07:45:50 2010 (r211862) @@ -48,13 +48,13 @@ typedef struct __mcontext { int mc_onstack; /* sigstack state to restore */ register_t mc_pc; /* pc at time of signal */ register_t mc_regs[32]; /* processor regs 0 to 31 */ - register_t sr; /* status register */ - register_t mullo, mulhi; /* mullo and mulhi registers... */ + register_t sr; /* status register */ + register_t mullo, mulhi; /* mullo and mulhi registers... */ int mc_fpused; /* fp has been used */ f_register_t mc_fpregs[33]; /* fp regs 0 to 31 and csr */ register_t mc_fpc_eir; /* fp exception instruction reg */ void *mc_tls; /* pointer to TLS area */ - int __spare__[8]; /* XXX reserved */ + int __spare__[8]; /* XXX reserved */ } mcontext_t; #endif @@ -101,7 +101,7 @@ typedef struct __mcontext { #define UCR_SP UCTX_REG(29) #define UCR_S8 UCTX_REG(30) #define UCR_RA UCTX_REG(31) -#define UCR_SR UCTX_REG(32) +#define UCR_SR UCTX_REG(32) #define UCR_MDLO UCTX_REG(33) #define UCR_MDHI UCTX_REG(34) _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-mips@FreeBSD.ORG Fri Aug 27 16:07:25 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9B4110656A6 for ; Fri, 27 Aug 2010 16:07:25 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id CBE0E8FC15 for ; Fri, 27 Aug 2010 16:07:25 +0000 (UTC) X-ASG-Debug-ID: 1282925245-5061655e0001-1gY7mK Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id KF3wJBykGCzVnFZO; Fri, 27 Aug 2010 09:07:25 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from mycroft.adaranet.com (10.10.24.100) by SJ-EXCH-1.adaranet.com (10.10.1.29) with Microsoft SMTP Server (TLS) id 8.1.240.5; Fri, 27 Aug 2010 09:07:25 -0700 Message-ID: <4C77E3E6.8060002@adaranet.com> X-Barracuda-BBL-IP: nil Date: Fri, 27 Aug 2010 09:12:22 -0700 From: Patrick Mahan User-Agent: Thunderbird 2.0.0.23 (X11/20091021) MIME-Version: 1.0 To: Juli Mallett X-ASG-Orig-Subj: Re: Cannot build the Mips 32 bit kernel References: <4C76F4B6.5050607@adaranet.com> <20100826.171545.705015198975915183.imp@bsdimp.com> <4C76FA9F.2070805@adaranet.com> In-Reply-To: Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282925245 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Cc: "freebsd-mips@freebsd.org" Subject: Re: Cannot build the Mips 32 bit kernel X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 16:07:26 -0000 Juli Mallett wrote: > On Thu, Aug 26, 2010 at 16:37, Patrick Mahan wrote: >> We build for mips o32 under 8.0 and our kernel (before we insert the >> rootfile system) is >> >> -rwxr-xr-x 1 pmahan pmahan 38155521 Aug 24 19:22 kernel.octeon.32 >> >> Where when we build it off of head we are seeing >> >> -rwxr-xr-x 1 pmahan pmahan 243364423 Aug 26 09:45 kernel.octeon.32 >> >> ~38 Mbytes versus ~243 Mbytes >> >> a 6x increase in size. So I was playing around with the configuration >> file to decide what to leave out. > > That must be either some difference in allocating space for the root > filesystem or related to having a lot of debugging info and not > stripping the one from HEAD. The Cavium Simple Executive (I don't > know if the proprietary port you're using uses it or not) adds some > bloat, but nothing like that much. My kernels, n64 and o32 both, are > around 8M. I'm not embedding any sort of root filesystem. Okay, problem solved, pilot error (sort of :-p). It was a case of allocating space for the root filesystem. We have build scripts that are suppose to winnow down the stuff put into world/ after we finish a 'buildworld'. This winnowing reduces the overall size of the root filesystem. The script then compares the size of the created filesystem image to the value of MD_ROOT_SIZE in OCTEON1-32 and if it is too small, increase it to the correct size and rebuild the kernel. It seems that our initial build, the root filesystem was not reduced in size and this caused MD_ROOT_SIZE to be set to a really large size and subsequent builds do not reduce the size of MD_ROOT_SIZE thus the resultant kernel builds were too large. It wasn't till I went back and pulled a fresh checkout and carefully ran our build scripts one at a time that I figured this out. I've got some code that is not ready for prime time for building the embedded root filesystem more like how linux uses its initramfs. This method does require messing with a large array in place to hold the root filesystem. Instead, it will be captured in its own data section. Patrick From owner-freebsd-mips@FreeBSD.ORG Fri Aug 27 16:40:22 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7023C1065707 for ; Fri, 27 Aug 2010 16:40:22 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 53A898FC16 for ; Fri, 27 Aug 2010 16:40:22 +0000 (UTC) X-ASG-Debug-ID: 1282927221-506165d40001-1gY7mK Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id jwJNjRe5FlarTNhQ for ; Fri, 27 Aug 2010 09:40:21 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from mycroft.adaranet.com (10.10.24.100) by SJ-EXCH-1.adaranet.com (10.10.1.29) with Microsoft SMTP Server (TLS) id 8.1.240.5; Fri, 27 Aug 2010 09:40:21 -0700 Message-ID: <4C77EB9F.4020705@adaranet.com> X-Barracuda-BBL-IP: nil Date: Fri, 27 Aug 2010 09:45:19 -0700 From: Patrick Mahan User-Agent: Thunderbird 2.0.0.23 (X11/20091021) MIME-Version: 1.0 To: "freebsd-mips@freebsd.org" X-ASG-Orig-Subj: Now partially booting on our CN58XX eval board Content-Type: multipart/mixed; boundary="------------040107090108070808070506" X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282927221 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Subject: Now partially booting on our CN58XX eval board X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 16:40:22 -0000 --------------040107090108070808070506 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Okay, We have it now starting to boot on our eval board with the 1.8.1 SDK bootloader. It panic's on a bad address during a device attach, perhaps in the ethernet driver setup? I am attaching the output from the console below. I do see in the console output 'Octeon SDK: Cavium Networks Octeon SDK version 1.9.0, build 312' Which I am assuming is the cavium SDK pieces being included as part of the mips kernel. Warner, is this what you would see on happen on under 1.8.1? I am attaching (again) my kernel config. Is anything else needed? Patrick Adara Networks ======================================================================= FreeBSD 9.0 (HEAD) MIPS o32 kernel image with an embedded root filesystem - U-Boot 1.1.1 (Development build) (Build time: Feb 6 2009 - 12:34:20) EBT5800 board revision major:2, minor:0, serial #: 2008-2.0-00308 OCTEON CN5860-NSP pass 2.0, Core clock: 750 MHz, DDR clock: 400 MHz (800 Mhz data rate) DRAM: 2048 MB Flash: 8 MB Clearing DRAM........ done BIST check passed. Net: octeth0, octeth1, octeth2, octeth3 Bus 0 (CF Card): OK ide 0: Model: CF 1GB Firm: 20071116 Ser#: TSS25014080506093731 Type: Removable Hard Disk Capacity: 967.6 MB = 0.9 GB (1981728 x 512) Octeon ebt5800# tftp 20000000 mahan/kern.mips90 Interface 1 has 4 ports (RGMII) Using octeth0 device TFTP from server 10.10.29.252; our IP address is 10.10.21.80 Filename 'mahan/kern.mips90'. Load address: 0x20000000 Loading: ################################################octeth0: Up 1000 Mbps Full duplex (port 16) ################# ################################################################# ################################################################# ################################################################# #################### done Bytes transferred = 40081218 (2639742 hex), 12406 Kbytes/sec Octeon ebt5800# bootoctlinux 20000000 ELF file is 32 bit Skipping non LOAD program header (type 0x6) Skipping non LOAD program header (type 0x3) Skipping non LOAD program header (type 0x70000000) Allocated memory for ELF segment: addr: 0x1000000, size 0x259e6c0 Loading .text @ 0x810000d4 (2760492 bytes) Loading .MIPS.stubs @ 0x812a2000 (16 bytes) Loading .rodata @ 0x812a4000 (46304 bytes) Loading .reginfo @ 0x812af4e0 (24 bytes) Loading .rodata.str1.4 @ 0x812af4f8 (151424 bytes) Loading set_sysctl_set @ 0x812d4478 (3744 bytes) Loading set_sysinit_set @ 0x812d5318 (1944 bytes) Loading set_sysuninit_set @ 0x812d5ab0 (1040 bytes) Loading .interp @ 0x812d5ec0 (13 bytes) Loading .dynsym @ 0x812d5ed0 (79632 bytes) Loading .dynstr @ 0x812e95e0 (75807 bytes) Loading .hash @ 0x812fbe00 (36312 bytes) Loading set_kdb_dbbe_set @ 0x81304bd8 (8 bytes) Loading set_modmetadata_set @ 0x81304be0 (552 bytes) Loading set_cons_set @ 0x81304e08 (8 bytes) Loading .data @ 0x81304e10 (36178576 bytes) Loading set_pcpu @ 0x835858c0 (3328 bytes) Loading .got @ 0x835865c0 (7604 bytes) Loading .rld_map @ 0x83588374 (4 bytes) Loading .sdata @ 0x83588378 (8 bytes) Clearing .bss @ 0x83588380 (90944 bytes) ## Loading Linux kernel with entry point: 0x810000e0 ... Bootloader: Done loading app on coremask: 0x1 Boot Descriptor Ver: 6 -> 1/2 CPU clock: 750MHz Core Mask: 0 Board Type: 15 Revision: 2/0 Mac Address 00.0F.B7.10.50.22 (14) Board: EBT5800 Model: CN5860p2.0-750-NSP Cache info: picache_stride = 4096 picache_loopcount = 8 pdcache_stride = 128 pdcache_loopcount = 64 cpu0: Cavium processor v8.3 MMU: Standard TLB, 64 entries L1 i-cache: 4 ways of 64 sets, 128 bytes per line L1 d-cache: 64 ways of 1 sets, 128 bytes per line Config1=0xfe3303da Config3=0x1080 Physical memory chunk(s): 0x359f000 - 0xff9efff, 211812352 bytes (51712 pages) 0x20000000 - 0x7fffffff, 1610612736 bytes (393216 pages) Maxmem is 0x80000000 KDB: debugger backends: ddb KDB: current backend: ddb Octeon SDK: Cavium Networks Octeon SDK version 1.9.0, build 312 Available Octeon features: SAAD ZIP CRYPTO KEY_MEMORY LED_CONTROLLER TRA DFA Copyright (c) 1992-2010 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-CURRENT #1: Thu Aug 26 18:10:29 PDT 2010 mahan@mycroft.adaranet.com:/home/mahan/src/FreeBSD.org/sources/HEAD/mips32/obj/mips.mips/home/mahan/src/FreeBSD.org/sources/HEAD/hes real memory = 1822425088 (1779712K bytes) Physical memory chunk(s): 0x0362b000 - 0x0ff9efff, 211238912 bytes (51572 pages) 0x20000000 - 0x7dddffff, 1574830080 bytes (384480 pages) avail memory = 1782566912 (1699MB) null: random: mem: nexus0: clock0: on nexus0 clock0: [FILTER] Timecounter "MIPS32" frequency 750000000 Hz quality 800 Event timer "MIPS32" frequency 750000000 Hz quality 800 rnd0: on nexus0 ciu0: on nexus0 ciu0: [FILTER] obio0 on ciu0 uart1: on obio0 uart1: [FILTER] uart1: fast interrupt uart1: console (115200,n,8,1) uart0: on obio0 uart0: [FILTER] uart0: fast interrupt uart0: console (115200,n,8,1) octebus0: on ciu0 cavium-ethernet: Cavium Networks Octeon SDK version 1.9.0, build 312 octebus0: [MPSAFE] octebus0: [FILTER] Interface 1 has 4 ports (RGMII) panic: cvmx_phys_to_ptr: mapping high address (0x2090a880) not yet supported. Tracing pid 0 tid 100000 td 0x8358bb90 db_trace_thread+30 (?,?,?,?) ra 810058c4 sp 835b05e0 sz 24 810057a8+11c (810e6ee8,?,ffffffff,?) ra 81005208 sp 835b05f8 sz 32 81004e74+394 (?,?,?,?) ra 81005398 sp 835b0618 sz 168 db_command_loop+78 (?,?,?,?) ra 81007b28 sp 835b06c0 sz 24 81007a20+108 (?,?,?,?) ra 810e6c60 sp 835b06d8 sz 424 kdb_trap+108 (?,?,?,?) ra 8125e018 sp 835b0880 sz 32 trap+efc (?,?,?,?) ra 81254ba8 sp 835b08a0 sz 176 MipsKernGenException+13c (0,a,835aefe4,2) ra 810e6ee8 sp 835b0950 sz 200 kdb_enter+50 (?,?,?,?) ra 810ac9b8 sp 835b0a18 sz 24 panic+f8 (?,812af1f4,0,2090a880) ra 81283f94 sp 835b0a30 sz 40 cvmx_cmd_queue_initialize+418 (?,?,?,?) ra 812969dc sp 835b0a58 sz 64 cvmx_pko_config_port+554 (0,10,?,?) ra 81286520 sp 835b0a98 sz 96 cvmx_helper_initialize_packet_io_global+5d8 (?,?,?,?) ra 8127af40 sp 835b0af8 sz 208 cvm_oct_init_module+40c (c581c880,?,?,?) ra 8128363c sp 835b0bc8 sz 96 8128361c+20 (?,?,?,?) ra 810e0028 sp 835b0c28 sz 24 device_attach+348 (?,?,?,?) ra 810e18d4 sp 835b0c40 sz 64 device_probe_and_attach+3c (?,?,?,?) ra 810e190c sp 835b0c80 sz 24 bus_generic_attach+20 (?,?,?,?) ra 81272b74 sp 835b0c98 sz 24 812729e0+194 (?,?,?,?) ra 810e0028 sp 835b0cb0 sz 80 device_attach+348 (?,?,?,?) ra 810e18d4 sp 835b0d00 sz 64 device_probe_and_attach+3c (?,?,?,?) ra 810e190c sp 835b0d40 sz 24 bus_generic_attach+20 (?,?,?,?) ra 8126cc98 sp 835b0d58 sz 24 8126cc74+24 (?,?,?,?) ra 810e0028 sp 835b0d70 sz 24 device_attach+348 (?,?,?,?) ra 810e18d4 sp 835b0d88 sz 64 device_probe_and_attach+3c (?,?,?,?) ra 810e1b94 sp 835b0dc8 sz 24 bus_generic_new_pass+10c (?,?,?,?) ra 810dced0 sp 835b0de0 sz 40 bus_set_pass+c0 (?,?,?,?) ra 810dcf2c sp 835b0e08 sz 40 root_bus_configure+14 (?,?,?,?) ra 81253d7c sp 835b0e30 sz 24 81253d6c+10 (?,?,?,?) ra 8104f200 sp 835b0e48 sz 24 mi_startup+110 (?,?,?,?) ra 81000178 sp 835b0e60 sz 32 _start+98 (?,?,?,?) ra 0 sp 835b0e80 sz 0 pid 0 --------------040107090108070808070506 Content-Type: text/plain; name="OCTEON1-32" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="OCTEON1-32" # OCTEON1 -- Configuration kernel for all Octeon1 SoCs from Cavium Networks # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # # $FreeBSD$ machine mips cpu CPU_CNMIPS ident OCTEON1 # Don't build any modules yet. makeoptions MODULES_OVERRIDE="" makeoptions TARGET_BIG_ENDIAN=defined makeoptions ARCH_FLAGS="-march=octeon" makeoptions LDSCRIPT_NAME=ldscript.mips.octeon1.32 makeoptions KERNLOADADDR=0x81000000 include "../cavium/std.octeon1" hints "OCTEON1.hints" #Default places to look for devices. makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols options ISA_MIPS32 options DDB options KDB options SCHED_4BSD #4BSD scheduler options PREEMPTION options INET #InterNETworking #options NFSCLIENT #Network Filesystem Client #options NFS_ROOT #NFS usable as /, requires NFSCLIENT options PSEUDOFS #Pseudo-filesystem framework options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions #options ROOTDEVNAME=\"ufs:ad0s1a\" # Original options NO_SWAPPING options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options UFS_ACL #Support for access control lists options UFS_DIRHASH #Improve performance on big directories # Debugging for use in -current #options DEADLKRES #Enable the deadlock resolver #options INVARIANTS #Enable calls of extra sanity checking #options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS #options WITNESS #Enable checks to detect deadlocks and cycles #options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed #options SMP # Board-specific support that cannot be auto-detected at runtime. #options OCTEON_VENDOR_LANNER # Support for Lanner boards. #options OCTEON_BOARD_CAPK_0100ND # Support for CAPK-0100nd. device loop device ether device md device uart nodevice uart_ns8250 device pty device miibus device octe #options VERBOSE_SYSINIT device bpf device random # # Use the following for Compact Flash file-system #device cf #options ROOTDEVNAME=\"ufs:cf0s2a\" # Unmask if compact flash is needed as RFS # # Use the following for RFS in mem-device options MD_ROOT options ROOTDEVNAME=\"ufs:md0\" options MD_ROOT_SIZE = 35184 --------------040107090108070808070506-- From owner-freebsd-mips@FreeBSD.ORG Fri Aug 27 17:39:52 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B6A61065673 for ; Fri, 27 Aug 2010 17:39:52 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id D2C018FC13 for ; Fri, 27 Aug 2010 17:39:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7RHb6GG052883; Fri, 27 Aug 2010 11:37:07 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 27 Aug 2010 11:37:11 -0600 (MDT) Message-Id: <20100827.113711.641066760578782485.imp@bsdimp.com> To: pmahan@adaranet.com From: "M. Warner Losh" In-Reply-To: <4C77EB9F.4020705@adaranet.com> References: <4C77EB9F.4020705@adaranet.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: Now partially booting on our CN58XX eval board X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 17:39:52 -0000 In message: <4C77EB9F.4020705@adaranet.com> Patrick Mahan writes: : We have it now starting to boot on our eval board with the 1.8.1 SDK : bootloader. : : It panic's on a bad address during a device attach, perhaps in the : ethernet driver setup? I am attaching the output from the console : below. : : I do see in the console output : : 'Octeon SDK: Cavium Networks Octeon SDK version 1.9.0, build 312' : : Which I am assuming is the cavium SDK pieces being included as part of : the mips kernel. That's right. This is the cnusers.org SDK that we've included in the kernel. : Warner, is this what you would see on happen on under 1.8.1? No. I have older uboot systems, and they refuse to properly load the kernel. see below... : I am attaching (again) my kernel config. Is anything else needed? : : Patrick : Adara Networks [trimmed] : octebus0: [FILTER] : Interface 1 has 4 ports (RGMII) : panic: cvmx_phys_to_ptr: mapping high address (0x2090a880) not yet : supported. I am seeing this when I boot a 32-bit kernel on two of the three boards I have access to (both of them, btw, have older uboot loaders on them). The problem here is that cvmx_phys_to_ptr only supports direct mapping, so we can only use the first 512MB of memory. Juli and I have talked about clamping the available memory to using only the first 512MB on 32-bit kernels, but we don't like this idea and are casting about for others. The 64-bit kernel doesn't suffer this limitation. Warner From owner-freebsd-mips@FreeBSD.ORG Fri Aug 27 18:11:08 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE789106567A for ; Fri, 27 Aug 2010 18:11:08 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id A36408FC1B for ; Fri, 27 Aug 2010 18:11:08 +0000 (UTC) X-ASG-Debug-ID: 1282932667-506167100001-1gY7mK Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id DR6AjmFK4JkXKPSc; Fri, 27 Aug 2010 11:11:07 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from mycroft.adaranet.com (10.10.24.100) by SJ-EXCH-1.adaranet.com (10.10.1.29) with Microsoft SMTP Server (TLS) id 8.1.240.5; Fri, 27 Aug 2010 11:11:07 -0700 Message-ID: <4C7800E6.4060803@adaranet.com> X-Barracuda-BBL-IP: nil Date: Fri, 27 Aug 2010 11:16:06 -0700 From: Patrick Mahan User-Agent: Thunderbird 2.0.0.23 (X11/20091021) MIME-Version: 1.0 To: "M. Warner Losh" X-ASG-Orig-Subj: Re: Now partially booting on our CN58XX eval board References: <4C77EB9F.4020705@adaranet.com> <20100827.113711.641066760578782485.imp@bsdimp.com> In-Reply-To: <20100827.113711.641066760578782485.imp@bsdimp.com> Content-Type: text/plain; charset="us-ascii"; format=flowed Content-Transfer-Encoding: 7bit X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282932667 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Cc: "freebsd-mips@freebsd.org" Subject: Re: Now partially booting on our CN58XX eval board X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 18:11:08 -0000 M. Warner Losh wrote: > In message: <4C77EB9F.4020705@adaranet.com> > Patrick Mahan writes: > : We have it now starting to boot on our eval board with the 1.8.1 SDK > : bootloader. > : > : It panic's on a bad address during a device attach, perhaps in the > : ethernet driver setup? I am attaching the output from the console > : below. > : > : I do see in the console output > : > : 'Octeon SDK: Cavium Networks Octeon SDK version 1.9.0, build 312' > : > : Which I am assuming is the cavium SDK pieces being included as part of > : the mips kernel. > > That's right. This is the cnusers.org SDK that we've included in the > kernel. > > : Warner, is this what you would see on happen on under 1.8.1? > > No. I have older uboot systems, and they refuse to properly load the > kernel. see below... > > : I am attaching (again) my kernel config. Is anything else needed? > : > : Patrick > : Adara Networks > > [trimmed] > : octebus0: [FILTER] > : Interface 1 has 4 ports (RGMII) > : panic: cvmx_phys_to_ptr: mapping high address (0x2090a880) not yet > : supported. > > I am seeing this when I boot a 32-bit kernel on two of the three > boards I have access to (both of them, btw, have older uboot loaders > on them). > > The problem here is that cvmx_phys_to_ptr only supports direct > mapping, so we can only use the first 512MB of memory. Juli and I > have talked about clamping the available memory to using only the > first 512MB on 32-bit kernels, but we don't like this idea and are > casting about for others. > > The 64-bit kernel doesn't suffer this limitation. > Okay, however, we are currently stuck at 32-bits :-( I have an engineer that thinks this would be fun to resolve, so I am letting him run with this for now. Is this an address coming from the mii layer? Thanks, Patrick Adara Networks From owner-freebsd-mips@FreeBSD.ORG Fri Aug 27 19:57:45 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37D35106567A for ; Fri, 27 Aug 2010 19:57:45 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id CC4448FC12 for ; Fri, 27 Aug 2010 19:57:44 +0000 (UTC) Received: by wwb34 with SMTP id 34so2092895wwb.31 for ; Fri, 27 Aug 2010 12:57:43 -0700 (PDT) Received: by 10.216.131.161 with SMTP id m33mr1388637wei.13.1282939058329; Fri, 27 Aug 2010 12:57:38 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.216.5.5 with HTTP; Fri, 27 Aug 2010 12:57:18 -0700 (PDT) In-Reply-To: <4C7800E6.4060803@adaranet.com> References: <4C77EB9F.4020705@adaranet.com> <20100827.113711.641066760578782485.imp@bsdimp.com> <4C7800E6.4060803@adaranet.com> From: Juli Mallett Date: Fri, 27 Aug 2010 12:57:18 -0700 X-Google-Sender-Auth: 01cIHIf5dyBSCvynx1kCClDhn-Q Message-ID: To: Patrick Mahan Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-mips@freebsd.org" Subject: Re: Now partially booting on our CN58XX eval board X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 19:57:45 -0000 On Fri, Aug 27, 2010 at 11:16, Patrick Mahan wrote: > I have an engineer that thinks this would be fun to resolve, so I am lett= ing > him run with this for now. =A0Is this an address coming from the mii laye= r? I looked at the code and Warner's output a few weeks ago and it seems to be an address coming from the command queue code (cvmx-cmd-queue.{c,h} in the Simple Executive) or maybe it was the FPA code. I think I told Warner that it was happening because mbufs are put into the FPA and we don't have a way to create an ephemeral mapping given a physical address that is not direct-mappable. Making it so that your system won't allocate mbufs above 0x2.... is a quick hack to test that theory and a reasonable workaround for o32 (since Octeon really makes more sense with n64 kernels, at minimum) so I'd suggest modifying the memory setup code in octeon_machdep.c to not add any memory above 512M or whatever. If you have an engineer with some time, though, I'd suggest having them work on COMPAT_FREEBSD32 for o32, which should be around a day or two worth of work and would let you use an n64 kernel. :) Juli.