How to port andriod on friendly arm ?? ANDRIOD PORTING on MINI 2440 MICRO 2440 (FRIENDLY ARM)
Friday, October 8, 2010
Welcome to CHAITU TECH BITS !
Overview:-
The mini2440 is the perfect hardware platform for android porting All Of Them
Interested To Check Step By Step Process .
The Open Handset Distribution (OHD) is a software distribution for mobile devices,
often referred to as Android, developed by members of the Open Handset Alliance.
Android includes an operating system, middle ware, and key applications typically
required for a mobile device.
This porting guide describes the steps necessary to port Android to a mini 2440 .
Android is designed as a highly-portable, hardware-independent platform based on
Linux, and porting the platform to new devices requires little more than porting the
Linux kernel and developing the Linux drivers necessary for your device.
Basic Android Overview:-
This porting guide is intended for engineers proficient with running (and writing drivers for) Linux on embedded devices.
Assumptions
You are assumed to have a moderate degree of Linux skill, and comfort at the command line.
You should understand how to mount, unmount and prepare file systems on a removable SD card.
You should also have a SD card reader on your Linux machine.
We assume you have formatted the SD card with three partitions, the 2nd partition has an ext2 file system containing the uImage file, the 3rd partition has a ext3 file system containing the contents of the file system.
The first partition contains swap space. You are assumed to be running Linux and have minicom installed. You have minicom configured to communicate to the mini2440 at 155200 baud.
It is also assumed that your mini2440 has a 128M flash.
As the included boot-loaders are specific to this memory size.
Otherwise you should substitute the provided u-boot boot loader with a suitable one compiled for your memory configuration.
Finally you should have 30 - 60 minutes of time available to complete the install.
download this android set-up files and extract
DOWNLOAD ANDROID KIT FROM HERE
TODO:-
provide instructions for SD card prep.
Starting
With the power off, insert the SD card into the mini2440. It must be formatted and
contain the root file system and kernel.
Boot using supervivi off of the NOR flash (switch toward near edge).
Connect the USB transfer cable between the UNIX machine and the mini2440.
You will need to have two terminals open. On the first terminal you will have
started minicom and are communicating with the mini2440.
The second terminal should contain a UNIX shell. Create a directory to contain the
contents of the tarball ( android-install-kit-mini2440.tar.gz). Change to that
directory and extract the contents. This terminal will be used to initiate USB transfers of files to supervivi.
At the supervivi menu, press "q" to drop into the shell.
Load u-boot into ram
Supervivi> load ram 0x31000000 0x0003b29c u
On the 2nd terminal, run
#. /s3c2410_boot_usb u-boot-128MB.bin
On the first terminal verify that the file transferred. (You will see an error on the 2nd terminal, ignore it).
Execute u-boot
Supervivi> go 0x31000000
You should be rewarded with the u-boot prompt
MINI2440 #
Prep the NAND
MINI2440 # nand info
MINI2440 # nand bad
MINI2440 # nand scrub
MINI2240 # nand createbbt
MINI2440 # mtdparts
MINI2440 # set ethaddr 08:00:2f:00:00:06
MINI2440 # dynenv set 40000
MINI2440 # saveenv
There are two options, A and B, only perform one of them!
Why two methods? U-boot is already loaded in memory, we can write the memory to the
NAND and be finished (Option A). However, uboot has a seldom documented ability to
receive files using ymodem. This option does not require a USB data transfer
cable. I include Ymodem transfer instructions to highlight this capability of
u-boot.
Use Option A if you are in a hurry or are happy with the USB transfer method. Use
Option B if you would like to learn to use Ymodem to transfer files to uboot using
the serial port.
Option A, write the copy of u-boot in RAM onto the NAND
Nand write.e 31000000 0 0x0003b29c
End of Option A
Option B; reload u-boot into ram using YMODEM and minicom.
Read ahead and be prepared to act quickly (old-school ymodem upload).
MINI2440 # loady 0x32000000
Press [CTL]+[a] then [s]
An ASCII pop-up should appear, choose ymodem
And ASCII file browser should appear, choose the file using the space key (u-boot-128MEG.bin) then press enter.
You should see the file upload progress screen, with luck your transfer will complete.
Write the file to the NAND
Nand write.e 32000000 0 0x0003b29c
End of Option B
Power the board off
Move the NAND/NOR switch away from the near edge
Power the board on
You should see the u-boot menu
Set the environment to boot off of SD
MINI2440 # setenv bootargs console=ttySAC0, 115200 root=/dev/mmcblk0p3
rootfstype=ext3 mini2440=1tb rootdelay=3 init=/linuxrc
MINI2440 # setenv bootcmd mmcinit \; ext2load mmc 0:2 0x31000000 uImage \; bootm 0x31000000
MINI2440 # saveenv
Rebootdownload android kit from here
About Author
I am Chaitanya , Working As Sr.Software Engineer on Embedded.I am Here to Share My Experience with You people. Coz I believe
In today's environment, hoarding knowledge ultimately erodes your power. If you know something very important, the way to get power is by actually sharing it.Contact Me At embeddedchaitu007@gmail.com.
How to port andriod on friendly arm ?? ANDRIOD PORTING on MINI 2440 MICRO 2440 (FRIENDLY ARM)
2010-10-08T14:39:00+05:30
Unknown
ANDRIOD|
Subscribe to:
Post Comments (Atom)