Learning Porting Android to real device step by step

Discuss porting Android to any device.

Learning Porting Android to real device step by step

Postby CaoMinhVu » Fri Oct 24, 2008 3:44 am

Hi, I want to port Android on a real device, so I think we should start step by step :
1. Compile Android Linux Kernel
2. Port Android on x86 (the same platform we compile kernel)
3. Port Android on target

I've already finished first step. Now, I'm try on second step...
CaoMinhVu
Freshman
Freshman
 
Posts: 4
Joined: Fri Oct 24, 2008 3:14 am

Top

Postby CaoMinhVu » Fri Oct 24, 2008 3:53 am

Here all my work:
Enviroment : Ubuntu Linux
Needed package

o Gnu C 2.95.3 # gcc --version
o Gnu make 3.78 # make --version
o binutils 2.12 # ld -v
o util-linux 2.10o # fdformat --version
o module-init-tools 0.9.10 # depmod -V
o e2fsprogs 1.29 # tune2fs
o jfsutils 1.1.3 # fsck.jfs -V
o reiserfsprogs 3.6.3 # reiserfsck -V 2>&1|grep reiserfsprogs
o xfsprogs 2.1.0 # xfs_db -V
o pcmcia-cs 3.1.21 # cardmgr -V
o quota-tools 3.09 # quota -V
o PPP 2.4.0 # pppd --version
o isdn4k-utils 3.1pre1 # isdnctrl 2>&1|grep version
o nfs-utils 1.0.5 # showmount --version
o procps 3.1.13 # ps --version
o oprofile 0.5.3 # oprofiled --version

+ Create working folder:
#mkdir Android

+ Copy these file to your working folder:
> arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
(Tool chain, used to support compile Android linux kernel)
> linux-2.6.25-android-1.0_r1.tar.gz
(Android linux kernel)
> android-sdk-linux_x86-1.0_r1.zip
(Android SDK)

+ Decompress them all:
#sudo tar -xzvf arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-
-gnu.tar.bz2
->Auto create folder : arm-2007q3

#sudo tar -xjvf linux-2.6.25-android-1.0_r1.tar.gz
->Auto create folder : kernel.git

+ Get device configuration (emulator configuration):
#export PATH=${PATH}:/{your working folder}/android-sdk/tools
#sudo nautilus -> Using photon window, go to working folder and change all
file in /android-sdk/tools to executable mode
#emulator (running emulator to get configuration)
#cd {your working folder}/kernel.git
#adb pull /proc/config.gz ./(get emulator configuration, if error occur, just
wait a second and try this command again)
#gunzip config.gz (Decompress configuration file)
#mv config .config (change file name to .config)
After the steps over, we have emulator configuration file at right location
to compile

+ Compile:
#sudo adt-get install libc6-dev (install missing packet for gcc)
#Copy all file and subfolder from {your working folder}/arm-2007q3/arm-none-linux-gnueabi
/libc/usr/include to /usr/include
#Change makefile in kernel.git :
+CROSS_COMPILE {your working folder}/arm-2007q3/bin/arm-none-linux-gnueabi-
#make
And new kernel image will be created in /kernel.git/arch/arm/boot
CaoMinhVu
Freshman
Freshman
 
Posts: 4
Joined: Fri Oct 24, 2008 3:14 am

Postby CaoMinhVu » Sun Oct 26, 2008 10:23 am

I've finished second step. I need a real board, Who can tell me where I can buy Nokia 810 or ARM9 board?
CaoMinhVu
Freshman
Freshman
 
Posts: 4
Joined: Fri Oct 24, 2008 3:14 am

Postby ninor » Sun Oct 26, 2008 10:29 am

You could contact with Samsung or TI for a special Students board.
Image AndDev: Your Android Development Community / Tutorials | Here's my Basic ToolKit
User avatar
ninor
Moderator
Moderator
 
Posts: 180
Joined: Thu Aug 14, 2008 6:30 pm
Location: Barcelona, Spain

Postby plusminus » Sun Oct 26, 2008 3:00 pm

Or have a look for an OMAP-Zoom, which "officially" supports Android.
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Porting Android to Samsung Glyde (SCH-U940)

Postby geneyess » Wed Jan 07, 2009 11:10 am

I've dabbled into game programming w/ C, C++, and BASIC using directx and open gl, but I have no exp. writing drivers. Can anyone list the necessary skills required to port Android to the Samsung U940 (on top of ubuntu linux)? It's hardware is in dying need of a worthy OS. Please be specific in your responses both neg/pos. I think the glyde uses the Qualcomm MSM6550A w/ a ARM926EJ-S chipset, does anyone know if this fast enough to run android just as fast as the g1? I think the processor is 225mhz or 450mhz, can't find info on ram..maybe...128mb? What exactly would be required once all hardware has been identified? If this is the wrong place to ask this please list a forum where this should be posted so i can delete this, here's a pic of what I think the glyde's insides look like, can anyone confirm?..Thanks
Attachments
MSM6550A.jpg
MSM6550A.jpg (126.42 KiB) Viewed 22671 times
MSM6550A.jpg
MSM6550A.jpg (126.42 KiB) Viewed 22673 times
geneyess
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Jan 07, 2009 10:23 am

Top

Postby CaoMinhVu » Wed Jan 14, 2009 8:48 am

Hi all, I've Tested porting android to beagle board. It's charming! We have instructions here: http://labs.embinux.org/index.php/Andro ... agle_Board
Just do it step by step. But one problem is UI just display on DVI-D. Now, i want to change stream data to S-video, I tried to match driver from Amstrong kernel (go with beagle board) with Linux-omap-kernel. But i can't create file structure in /sys/class like Amstrong ( I had tried to modify init.rc and create the same structure before put it to board, but i fail. When Android start, it's always create its own structure). So, How can i change structure file system in /sys/class ? Please help me!!!
CaoMinhVu
Freshman
Freshman
 
Posts: 4
Joined: Fri Oct 24, 2008 3:14 am

Postby kali » Mon Feb 09, 2009 5:47 am

how to open two emulator with different port simultaneously?
how to open emulator in cmd?
kali
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Tue Jan 27, 2009 1:31 pm

Re: Learning Porting Android to real device step by step

Postby ahmed-elbagoury » Sat Aug 13, 2011 6:19 pm

@CaoMinhVu
Will that requires downloading all the source code of Android ?
Or just download this : linux-2.6.25-android-1.0_r1.tar.gz

Thanks
ahmed-elbagoury
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Aug 13, 2011 5:49 pm

Re: Learning Porting Android to real device step by step

Postby nuetronprotron » Tue Mar 06, 2012 11:37 am

Hi kali,
if u want it from eclipse then u can start the as many emulators from avd manager.
if you want from command line then try to follow this link
http://developer.android.com/guide/deve ... lator.html

I think this information is helpful to you.I am sorry i may be little bit late,sorry buddy my late reply is because of my professors.I HOPE you will pardon them.
nuetronprotron
Developer
Developer
 
Posts: 37
Joined: Tue Jan 10, 2012 10:22 am

Re: Learning Porting Android to real device step by step

Postby anniedulce » Mon Apr 16, 2012 12:55 pm

nuetronprotron wrote:Hi kali,
if u want it from eclipse then u can start the as many emulators from avd manager.
if you want from command line then try to follow this link
http://developer.android.com/guide/deve ... lator.html

I think this information is helpful to you.I am sorry i may be little bit late,sorry buddy my late reply is because of my professors.I HOPE you will pardon them.



This tutorial is amazing
Rizecorp Android Development, Android Mobile Apps
anniedulce
Experienced Developer
Experienced Developer
 
Posts: 84
Joined: Mon Mar 05, 2012 12:28 pm

Top

Return to Porting Android

Who is online

Users browsing this forum: No registered users and 1 guest