Porting Andorid for MIPS

58 views
Skip to first unread message

manjunatha srinivasan

unread,
Apr 13, 2009, 9:57:54 AM4/13/09
to android...@googlegroups.com
Hi
What are major changes has to come in while porting android for MIPS platform(sigma design board)? 

Regards
Manjuantha Srinivasan N

hoegaar...@gmail.com

unread,
Apr 13, 2009, 8:07:57 PM4/13/09
to android-porting
See the following threads,

http://groups.google.com/group/android-porting/browse_thread/thread/6633bf1e3397efaf/a96c9a4bd570d097

On 4月13日, 午後10:57, manjunatha srinivasan

manjunatha srinivasan

unread,
Apr 17, 2009, 4:03:30 AM4/17/09
to android...@googlegroups.com
Hi David Turner
Thanks for reply .

From link below i found the basic idea of porting C library for
MIPS. My doubt is any android specific change required in porting, or
is it a basic porting steps followed in every new processor
architecture. Please clarify.

Regards
Manjunatha Srinivasan N

http://groups.google.com/group/android-porting/browse_thread/thread/6633bf1e3397efaf/a96c9a4bd570d097

manjunatha srinivasan

unread,
Apr 17, 2009, 4:10:17 AM4/17/09
to android...@googlegroups.com
What are the steps involved of porting of bionic and dalvik for MIPS?
Please provide any sample link of x86 arch porting as cross reference.

Regards
Manjunatha Srinivasan N

David Turner

unread,
Apr 17, 2009, 12:49:14 PM4/17/09
to android...@googlegroups.com
Porting the C library to a new CPU architecture requires at the very minimum the following:

- modify SYSCALLS.TXT to include the MIPS-specific Linux kernel syscalls
- modify bionic/libc/tools/gensyscalls.py to add MIPS-specific assembly fragments for the syscall stub generator
- probably modify bionic/libc/tools/checksyscalls.py to support MIPS as well
- a set of Linux kernel that should be placed into bionic/libc/kernel/original. *Please* read the docs in bionic/libc/kernel/ to understand what this means
- modify bionic/libc/kernel-tools/default.py to support MIPS as well
- re-generate cleaned-up kernel headers through bionic/libc/kernel/tools/update-all.py
- re-generate MIPS-specific syscall stubs through your updated gensyscalls.py script
- provide MIPS-specific assembly sources for a few things, like the ones on bionic/libc/arch-arm/. Most of these can be taken from recent OpenBSD sources
- testing, testing, testing...

I advise you to send patches for review on Gerrit so we can see what you're trying to do and tell you if it's ok, etc..

2009/4/17 manjunatha srinivasan <manjunatha...@gmail.com>

manjunatha srinivasan

unread,
Apr 21, 2009, 6:31:54 AM4/21/09
to android...@googlegroups.com
Hi David Turner
Thanks for reply.

2009/4/17 David Turner <di...@android.com>:


> Porting the C library to a new CPU architecture requires at the very minimum
> the following:

Before porting MIPS based bionic C library for Android, i believe that
MIPS cross binutils, MIPS cross gcc are to be set ready for
compilation. If so, Is cross-gcc (4.2.1), cross-binutils(2.17) are to
be compiled from source code and what is the compilation procedure and
where to place in directory structure?

Regards
Manjuantha Srinivasan N

Reply all
Reply to author
Forward
0 new messages