Thanks a lot!

Already started from bionic....

Looks like that many arch-dependent (but non-kernel) headers of bionic
are extracted from the sys/arch/arm ... of Open BSD and Net BSD..
Trying to do the same job for mips. Sadly the source code fo mips32
Open BSD is no longer available on the official ftp site, then have to
looks to other ways...

For the system call stubs, I am using the _syscallX assemblers taken
from 2.6.18 linux kernel. Hoping it should be OK to work...


On Mar 28, 1:19 am, David Turner <di...@android.com> wrote:
> On Fri, Mar 27, 2009 at 9:04 AM, zhou <bismack...@gmail.com> wrote:
>
> > Can anybody share some knowledges about the toolchain?
> > Looks like it is based on the gcc 4.2.1.
> > I have tried to diff it against the standard gcc-4.2.1 release, but
> > get an farely large patch....
>
> > What are the main changes and their purpose?
>
> most, if not all, the changes are fixes that have been inserted into later
> versions of GCC.
> I would not worry to much about this toolchain.
>
>
>
> > If we need to port Android to MIPS system, what kind of further
> > changes are needed?
>
> Since you'll be starting from scratch, you should select the best gcc-based
> toolchain you have
> (probably try a recent one), then modify the build system files to support
> "mips" as a valid TARGET_ARCH,
> this probably requires writing a custom build/core/combo/linux-mips.mk file.
>
> After that, you should port the C library, which requires various
> assembler-languages fragments, most
> of these would be available from one of the BSD's projects for you. This
> will also require mips-specific
> Linux kernel headers.
>
> Then port the dynamic linker (bionic/linker) to support MIPS relocations.
>
> The emulator doesn't support MIPS, but you may be able to add a directory
> external/qemu/target-mips
> directory by taking the sources from upstream qemu to do that, you will also
> need a file named
> external/qemu/hw/android_mips.c to initialize your virtual machine.
>
> After this is done, things should be a lot simpler to test and gradually
> improve.
>
> Hope this helps
>
>
>
>
>
> > Thanks- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to