From owner-freebsd-mips@FreeBSD.ORG Wed Apr 6 21:05:17 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 3A88D106564A for ; Wed, 6 Apr 2011 21:05:17 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 006C88FC1B for ; Wed, 6 Apr 2011 21:05:16 +0000 (UTC) Received: by yie12 with SMTP id 12so846127yie.13 for ; Wed, 06 Apr 2011 14:05:16 -0700 (PDT) Received: by 10.151.27.16 with SMTP id e16mr81704ybj.356.1302123916109; Wed, 06 Apr 2011 14:05:16 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.151.13.12 with HTTP; Wed, 6 Apr 2011 14:04:56 -0700 (PDT) In-Reply-To: References: From: Juli Mallett Date: Wed, 6 Apr 2011 14:04:56 -0700 X-Google-Sender-Auth: wmRmpCa1tR8NGyl7IBBdEEys1UM Message-ID: To: Andrew Duane Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:05:17 -0000 On Wed, Apr 6, 2011 at 13:58, 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. 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.