From owner-freebsd-mips@FreeBSD.ORG Thu Apr 7 00:07:31 2011 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 D068F106564A for ; Thu, 7 Apr 2011 00:07:31 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og121.obsmtp.com (exprod7og121.obsmtp.com [64.18.2.20]) by mx1.freebsd.org (Postfix) with ESMTP id 4DB778FC0A for ; Thu, 7 Apr 2011 00:07:27 +0000 (UTC) Received: from P-EMHUB03-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob121.postini.com ([64.18.6.12]) with SMTP ID DSNKTZ0APmSI8YhcX67qLw4jtnpr3hIWjBmF@postini.com; Wed, 06 Apr 2011 17:07:31 PDT Received: from p-emfe02-wf.jnpr.net (172.28.145.25) by P-EMHUB03-HQ.jnpr.net (172.24.192.37) with Microsoft SMTP Server (TLS) id 8.2.254.0; Wed, 6 Apr 2011 17:02:23 -0700 Received: from EMBX01-WF.jnpr.net ([fe80::1914:3299:33d9:e43b]) by p-emfe02-wf.jnpr.net ([fe80::c126:c633:d2dc:8090%11]) with mapi; Wed, 6 Apr 2011 20:04:05 -0400 From: Andrew Duane To: Warner Losh Date: Wed, 6 Apr 2011 20:03:05 -0400 Thread-Topic: Trouble making a filesystem Thread-Index: Acv0oSOxkXoDjeVaQqadL0gVeJOiGwAFgeoU Message-ID: 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 Cc: "mips@freebsd.org" Subject: RE: Trouble making a filesystem 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, 07 Apr 2011 00:07:31 -0000 I was trying to follow the instructions on the MIPS wiki page, but they do = seem to be volatile. I will check my build setup tomorrow and see what I ha= ve for TARGET and TARGET_ARCH and all. I didn't do a distribute step, I was= trying to this afternoon and it just failed completely. -- Andrew Duane Juniper Networks 978-589-0551 10 Technology Park Dr aduane@juniper.net Westford, MA 01886-3418 ________________________________________ From: Warner Losh [imp@bsdimp.com] Sent: Wednesday, April 06, 2011 5:16 PM To: Andrew Duane Cc: mips@freebsd.org Subject: Re: Trouble making a filesystem On Apr 6, 2011, at 2:58 PM, Andrew Duane wrote: > I'm having trouble making a working filesystem for my OCTEON1 kernel to r= un on. I do a "buildworld", but there are three problems: > > 1) Most of the executables won't execute, they give "Exec format error". = The problem seems to be with dynamically linked executables. When I rebuilt= "/bin/sh" as a static executable, it worked OK. I guess I could manually f= ix every Makefile to use static linking, but that seems absurd. I've not seen this. However, I did "recently" change the way to build mips= from TARGET_ARCH=3Dmips to TARGET_ARCH=3Dmips64eb. Maybe that's the issue= ? > 2) Some things aren't being populated. For example, that the only thing i= n the buildworld output of etc is sendmail. In the installworld output ther= e are a handful of subdirectorties, but no "rc" files. Do you have a make distribution step in your build scripts? That's what po= pulates the system with most of /etc and a few other oddities... > 3) Eventually, the kernel tips over with: > > panic: sched_priority: invalid priority 231: nice 0, ticks 1955000 ftic= k 14022821 ltick 14023821 tick pri 59 > > Any thoughts on what I'm missing? Haven't seen that, but I've not run FreeBSD/mips from source built newer th= an mid January. Maybe that's a clue? Warner