From owner-freebsd-mips@FreeBSD.ORG Tue Mar 2 06:07:41 2010 Return-Path: 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 839761065674; Tue, 2 Mar 2010 06:07:41 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 501C08FC16; Tue, 2 Mar 2010 06:07:40 +0000 (UTC) Received: by pwj1 with SMTP id 1so712394pwj.13 for ; Mon, 01 Mar 2010 22:07:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=cKLZc3PAPTRrRuvAP+HyjAyZRyV7jwblkj+g0p9Lb1A=; b=VJhkEDhYkQIqaE1pgFLtBnIvukraapQFdDJGhls8SjTe5OszI8hz3uT49Q0GWhPbyr 2EbbE7paDaetuSSKIDq5g03WXfS9x25IPIDVKdD+T4ipCk3VXwY5ogElKLC3GZyZ6okv H3xtrSvJLlqEFJ5/ppSMfBIILsa0JBlTSj9GI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Mq8HKr4pQgk3WgUUmNG2oEW2s9vHExGw4PE+NU10+eoiBFfE6XyChah5ozSrQKnT32 S9qdm/B4Hp4h+uTP3WRhLr8hBqaBE3MRcVH2IOchOr310/xwQFxIoZrWfvouSE6fPSlh HRax+cWSvzG0WRQG4+U1qBp6q9dsBO9DcfKm8= MIME-Version: 1.0 Received: by 10.141.214.24 with SMTP id r24mr3124537rvq.27.1267510051698; Mon, 01 Mar 2010 22:07:31 -0800 (PST) In-Reply-To: References: <98a59be81002230021j6a0cc408j99fe6a5d57a21aff@mail.gmail.com> <98a59be81003010632n526acfd0i57c58bca8645d62@mail.gmail.com> <5B27996C-CAAC-4C87-BF9A-D914B57E175F@lakerest.net> <20100301.163233.4959786962507439.imp@bsdimp.com> <98a59be81003012053w81c3b4cxf25d1157abfe3114@mail.gmail.com> Date: Tue, 2 Mar 2010 11:37:31 +0530 Message-ID: <98a59be81003012207s1f0af94bse9caa468d76ec989@mail.gmail.com> From: "C. Jayachandran" To: Juli Mallett 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2010 06:07:41 -0000 On Tue, Mar 2, 2010 at 10:27 AM, Juli Mallett wrote: > On Mon, Mar 1, 2010 at 20:53, C. Jayachandran = 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 but > breaks o32 support; it should be obvious how to fix that: > > http://svn.freebsd.org/viewvc/base/user/jmallett/octeon/sys/mips/mips/tra= p.c?r1=3D204399&r2=3D204534&sortby=3Ddate > > 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. > > BTW I've found it very useful to work with WITHOUT_DYNAMICROOT while I > worked on the issues more fundamental than the rtld problem. =A0Trivial > signals seemed to work fine. I did the rtld internally for 6.4 almost the same way, i.e, have a static root and get a simple program going, in my case it was on the lines of 'printf("%p\n", printf);'. Another useful thing is to have is a hacked version of printf which does not the libc but does the write syscall in assembly directly, this was useful to print out debug stuff from rtld code. Regards, JC.