Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2012 05:41:54 +1100
From:      "Michael Vale" <masked@internode.on.net>
To:        "Garrett Cooper" <yanegomi@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: FreeBSD in Google Code-In 2012? You can help too!
Message-ID:  <15F942BDB56940058DE34EB37A9F3ED5@forexamplePC>
In-Reply-To: <CAGH67wRO8bOsqsp-dRh9pMpR1VwbNNDu77Fm_D_nwRLwvo35Jw@mail.gmail.com>
References:  <050788AC7FD04B00828B9FE758F2BC92@forexamplePC> <CAGH67wRO8bOsqsp-dRh9pMpR1VwbNNDu77Fm_D_nwRLwvo35Jw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
yeah i'm aware of most of these good points you raise, however would not 
know how to implement my first syscall, i've been saving/bookmarking 
resources which i believe could be helpful.  i would definately need a 
mentor on this project.  it would be great also to see freebsd/zrouter on 
300% more mips devices as most only have 4MB flash and this is one thing we 
really need to get the filesizes down (don't forget bionic (derived from bsd 
libc for android) bionics libc is very small, smaller infact than musl, 
however i'm not sure how complete, and i believe much of the same work is 
required as android uses the linux kernel.

-----Original Message----- 
From: Garrett Cooper
Sent: Friday, October 26, 2012 3:10 AM
To: Michael Vale
Cc: freebsd-current@freebsd.org
Subject: Re: FreeBSD in Google Code-In 2012? You can help too!

On Thu, Oct 25, 2012 at 9:03 AM, Michael Vale <masked@internode.on.net> 
wrote:
>
> -----Original Message----- From: Michael Vale
> Sent: Friday, October 26, 2012 3:02 AM
> To: Stefan Esser
>
> Subject: Re: FreeBSD in Google Code-In 2012? You can help too!
>
> yeah it builds fine as it has no dependencies.
>
> currently it only has syscalls for linux (emulation) and any binary app 
> you
> build against it has to be brandelf'd Linux.
>
> I would like to see the freebsd syscalls, mutex/futexes coded into it so 
> it
> could be a drop in replacement for the bsd toolchain when cross-compiling
> for mips / zrouter.org.
>
> plus i believe the mips kernel doesn't have linux emulation. (i could be
> wrong).  but yeah, a native port would require kernel hacking skills.

    Only x86 has Linux compat support (amd64. i386, and pc98), and
true amd64 (64-bit, biarch) Linux compat is missing, FYI. It's a
doable task, but there would need to be some fudging done with the
syscall table (I committed a script in LTP which groks unistd.h for
this info on Linux), you'd need to add architecture dependent
syscalls, and do some other fun tasks.
Cheers,
-Garrett
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" 




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