Trouble making a filesystem

Andrew Duane aduane at juniper.net
Thu Apr 7 00:07:31 UTC 2011


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 have 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 at juniper.net      Westford, MA  01886-3418

________________________________________
From: Warner Losh [imp at bsdimp.com]
Sent: Wednesday, April 06, 2011 5:16 PM
To: Andrew Duane
Cc: mips at 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 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 rebuilt "/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.

I've not seen this.  However, I did "recently" change the way to build mips from TARGET_ARCH=mips to TARGET_ARCH=mips64eb.  Maybe that's the issue?

> 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.

Do you have a make distribution step in your build scripts?  That's what populates 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 ftick 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 than mid January.  Maybe that's a clue?

Warner



More information about the freebsd-mips mailing list