From owner-freebsd-mips@FreeBSD.ORG  Tue Mar  2 05:19:59 2010
Return-Path: <owner-freebsd-mips@FreeBSD.ORG>
Delivered-To: freebsd-mips@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 20E68106566C;
	Tue,  2 Mar 2010 05:19:59 +0000 (UTC) (envelope-from imp@bsdimp.com)
Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85])
	by mx1.freebsd.org (Postfix) with ESMTP id D43998FC12;
	Tue,  2 Mar 2010 05:19:58 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o225EWFJ056916;
	Mon, 1 Mar 2010 22:14:32 -0700 (MST) (envelope-from imp@bsdimp.com)
Date: Mon, 01 Mar 2010 22:14:46 -0700 (MST)
Message-Id: <20100301.221446.690091871650373431.imp@bsdimp.com>
To: jmallett@freebsd.org
From: "M. Warner Losh" <imp@bsdimp.com>
In-Reply-To: <eaa228be1003012057nd382421vf4386953542243dc@mail.gmail.com>
References: <20100301.163233.4959786962507439.imp@bsdimp.com>
	<98a59be81003012053w81c3b4cxf25d1157abfe3114@mail.gmail.com>
	<eaa228be1003012057nd382421vf4386953542243dc@mail.gmail.com>
X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: freebsd-mips@freebsd.org
Subject: Re: USB support for RMI processors
X-BeenThere: freebsd-mips@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Porting FreeBSD to MIPS <freebsd-mips.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-mips>,
	<mailto:freebsd-mips-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-mips>
List-Post: <mailto:freebsd-mips@freebsd.org>
List-Help: <mailto:freebsd-mips-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-mips>,
	<mailto:freebsd-mips-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Mar 2010 05:19:59 -0000

In message: <eaa228be1003012057nd382421vf4386953542243dc@mail.gmail.com=
>
            Juli Mallett <jmallett@freebsd.org> writes:
: On Mon, Mar 1, 2010 at 20:53, C. Jayachandran <c.jayachandran@gmail.c=
om> wrote:
: > The userland compiles with the patches and with -DNO_USB
: > -DNO_BLUETOOTH (using ld to convert binary to n32 obj fails - needs=
 to
: > look at this). But the main battle will be ahead, the syscall,
: > exception and pobably signal handling and executable support needs =
to
: > be fixed before init goes thru. =A0I'm working on this.
: =

: I've made a hackish change to syscall stuff that works well enough bu=
t
: breaks o32 support; it should be obvious how to fix that:
: =

: http://svn.freebsd.org/viewvc/base/user/jmallett/octeon/sys/mips/mips=
/trap.c?r1=3D204399&r2=3D204534&sortby=3Ddate

I think this is why we'll need to know the ABI that the binary is
running :)

: I'm fighting with rtld right now and believe I know the source of my
: misery but my tree has stopped working for some unrelated reason so
: now I'm trying to figure out what I messed up.

__start and rtld is very intimately linked.  And both are sensitive to
the ABI.  I have some saved patches in my tree that I've not had a
chance to test...

: BTW I've found it very useful to work with WITHOUT_DYNAMICROOT while =
I
: worked on the issues more fundamental than the rtld problem.  Trivial=

: signals seemed to work fine.

Yea, me too.  :)

Warner