From owner-freebsd-mips@FreeBSD.ORG Wed Apr 6 21:40:09 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 3FDA81065670 for ; Wed, 6 Apr 2011 21:40: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 15F838FC12 for ; Wed, 6 Apr 2011 21:40:08 +0000 (UTC) X-ASG-Debug-ID: 1302125251-2c50440d0001-aJzRFu Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id C3d1WA45bhFKcgSU; Wed, 06 Apr 2011 14:27:31 -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, 6 Apr 2011 14:27:31 -0700 From: Patrick Mahan X-Barracuda-BBL-IP: fe80::7042:d8c2:5973:c523 X-Barracuda-RBL-IP: fe80::7042:d8c2:5973:c523 To: Andrew Duane , Juli Mallett Date: Wed, 6 Apr 2011 14:27:15 -0700 X-ASG-Orig-Subj: RE: Trouble making a filesystem Thread-Topic: Trouble making a filesystem Thread-Index: Acv0nlZQBcFXrWBpSpCUssnwCWcp0AAALEfwAACAnsA= Message-ID: <32AB5C9615CC494997D9ABB1DB12783C024E7F4F1A@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: x-cr-hashedpuzzle: BiA1 DGzd DWgX FtSJ JzYu KE1c Nofg Nvnp RTz1 S+fI UQq5 WizL XdrQ Yjqj gNJ7 kGCH; 3; YQBkAHUAYQBuAGUAQABqAHUAbgBpAHAAZQByAC4AbgBlAHQAOwBqAG0AYQBsAGwAZQB0AHQAQABmAHIAZQBlAGIAcwBkAC4AbwByAGcAOwBtAGkAcABzAEAAZgByAGUAZQBiAHMAZAAuAG8AcgBnAA==; Sosha1_v1; 7; {B2CF6A22-9792-4AB5-BBA9-1C8211B61515}; cABtAGEAaABhAG4AQABhAGQAYQByAGEAbgBlAHQALgBjAG8AbQA=; Wed, 06 Apr 2011 21:27:15 GMT; UgBFADoAIABUAHIAbwB1AGIAbABlACAAbQBhAGsAaQBuAGcAIABhACAAZgBpAGwAZQBzAHkAcwB0AGUAbQA= x-cr-puzzleid: {B2CF6A22-9792-4AB5-BBA9-1C8211B61515} 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: 1302125251 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com 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: Wed, 06 Apr 2011 21:40:09 -0000 > -----Original Message----- > From: owner-freebsd-mips@freebsd.org [mailto:owner-freebsd- > mips@freebsd.org] On Behalf Of Andrew Duane > Sent: Wednesday, April 06, 2011 2:15 PM > To: Juli Mallett > Cc: mips@freebsd.org > Subject: RE: Trouble making a filesystem > > Some sample files are: > > /sbin/init: ELF 64-bit MSB MIPS32 rel2 executable, MIPS, version 1 > (FreeBSD), for FreeBSD 9.0 (900034), statically linked, not stripped > /bin/cat: ELF 64-bit MSB MIPS32 rel2 executable, MIPS, version 1 > (FreeBSD), for FreeBSD 9.0 (900034), dynamically linked (uses shared libs= ), > not stripped > > /sbin/init works, it is statically linked. /bin/cat does not, it is > dynamically linked. It could be an issue with the linker not being packag= ed > or some other configuration issue, like ldscript not being there. > > > I tried the "make distribute" and it yelled at me for /base not existing. > DESTDIR is set to my local directory, which worked for installworld, but > distribute seems to forcibly override it to /base > For the dynamically linked images, what does ldd show? Is it possible that the kernel is able to find ldd? I ran into this a couple times when portin= g linux to a new platform and usually when it tried to exec ldd it failed bec= ause ldd was either missing (or in the case of a cavium port, it had failed to b= uild a 64-bit version on a 32-bit host system). Patrick > > /Andrew > > > -----Original Message----- > From: juli@clockworksquid.com [mailto:juli@clockworksquid.com] On Behalf = Of > Juli Mallett > Sent: Wednesday, April 06, 2011 5:05 PM > To: Andrew Duane > Cc: mips@freebsd.org > Subject: Re: Trouble making a filesystem > > On Wed, Apr 6, 2011 at 13:58, Andrew Duane wrote: > > I'm having trouble making a working filesystem for my OCTEON1 kernel to > run 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 rebui= lt > "/bin/sh" as a static executable, it worked OK. I guess I could manually > fix every Makefile to use static linking, but that seems absurd. > > It would probably be helpful to include your build scripts and the > output of 'file' on one of the troublesome binaries. > > > 2) Some things aren't being populated. For example, that the only thing > in the buildworld output of etc is sendmail. In the installworld output > there are a handful of subdirectorties, but no "rc" files. > > You need 'make distribute DESTDIR=3D/whatever'. Or is it make > distribution? Something. Then you'll just need to set up fstab and > rc.conf > > > 3) Eventually, the kernel tips over with: > > > > panic: sched_priority: invalid priority 231: nice 0, ticks 1955000 > ftick 14022821 ltick 14023821 tick pri 59 > > I've never seen this. Sounds like a problem with signed vs. unsigned > chars for priorities. Most of those should be fixed these days, > though. > _______________________________________________ > 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"