Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Apr 2011 17:14:39 -0400
From:      Andrew Duane <aduane@juniper.net>
To:        Juli Mallett <jmallett@FreeBSD.org>
Cc:        "mips@freebsd.org" <mips@FreeBSD.org>
Subject:   RE: Trouble making a filesystem
Message-ID:  <AC6674AB7BC78549BB231821ABF7A9AEB52FBD7A79@EMBX01-WF.jnpr.net>
In-Reply-To: <BANLkTimS2qO3Amv4bfm1o84VrMM8mm04uQ@mail.gmail.com>
References:  <AC6674AB7BC78549BB231821ABF7A9AEB52FBD7A34@EMBX01-WF.jnpr.net> <BANLkTimS2qO3Amv4bfm1o84VrMM8mm04uQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 str=
ipped=20

/sbin/init works, it is statically linked. /bin/cat does not, it is dynamic=
ally linked. It could be an issue with the linker not being packaged or som=
e other configuration issue, like ldscript not being there.


I tried the "make distribute" and it yelled at me for /base not existing. D=
ESTDIR is set to my local directory, which worked for installworld, but dis=
tribute seems to forcibly override it to /base


/Andrew
=20

-----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 <aduane@juniper.net> 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.

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 i=
n the buildworld output of etc is sendmail. In the installworld output ther=
e 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:
>
> =A0 panic: sched_priority: invalid priority 231: nice 0, ticks 1955000 ft=
ick 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AC6674AB7BC78549BB231821ABF7A9AEB52FBD7A79>