Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Mar 2010 11:37:31 +0530
From:      "C. Jayachandran" <c.jayachandran@gmail.com>
To:        Juli Mallett <jmallett@freebsd.org>
Cc:        freebsd-mips@freebsd.org
Subject:   Re: USB support for RMI processors
Message-ID:  <98a59be81003012207s1f0af94bse9caa468d76ec989@mail.gmail.com>
In-Reply-To: <eaa228be1003012057nd382421vf4386953542243dc@mail.gmail.com>
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> <eaa228be1003012057nd382421vf4386953542243dc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 2, 2010 at 10:27 AM, Juli Mallett <jmallett@freebsd.org> wrote:
> On Mon, Mar 1, 2010 at 20:53, C. Jayachandran <c.jayachandran@gmail.com> =
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.



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