Search This Blog

Jun 2, 2011

Create VMware image contains Ubuntu 11.04 64bit and Androidr10.2

Android R10.2 need 64 bit environment, we choose latest Ubuntu 11.04 64 bit.

Create 64bit VMware image

Use VMware to create to 64 bit image, it will promote that need to enable VP in PC BIOS setting. We enable VP and poweroff/poweron again, and then we get VMware 64 bit image.

Download Ubuntu 11.04 64bit version and Android r10.2

Get Ubuntu 11.04 from http://www.ubuntu.com/download/ubuntu/download
Get Android r10.2 from freescale extranet.

Be a root user

$ sudo passwd
enter root user password, reboot, select "other" and then login as root.

Setup proxy

Click System->Preference->Network proxy
setup your proxy setting and apply
Click System->Administration->Synaptic Package Manager
setup proxy and apply

Install all required package

$ apt-get install rpm m4 patch bison libncurses5-dev g++ zlib1g-dev nfs-common nfs-kernel-server xinetd tftp tftpd gkermit git-core flex gperf libsdl1.2-dev libwxgtk2.6-dev build-essential curl valgrind libreadline5-dev ccache telnetd ssh samba gettext libgtk2.0-dev libdbus-glib-1-dev liborbit2-dev intltool libtool uuid-dev liblzo2-dev gparted git-doc git-email git-gui meld openbsd-inetd sun-java6-jdk pidgin-sipe pidgin g++-multilib lib32ncurses5-dev ia32-libs lib32readline5-dev lib32z-dev

Build Uboot Images

$ cd ~/myandroid/bootable/bootloader/uboot-imx
$ export ARCH=arm
$ export CROSS_COMPILE=~/myandroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
Command to build for i.MX53 TABLET board is:
$ make distclean
$ make mx53_smd_android_config
$ make

Build Kernel Image

Assume you had already built uboot. mkimage was generated under myandroid/bootable/bootloader/uboot-imx/tools/ and it's in your PATH
$ export PATH=~/myandroid/bootable/bootloader/uboot-imx/tools:$PATH
$ cd ~/myandroid/kernel_imx
$ export ARCH=arm
$ export CROSS_COMPILE=~/myandroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
$ make imx5_android_defconfig
Generate ".config" according to default config file under arch/cd ~/arm/configs.
$ make uImage

Build Android Image

$ cd ~/myandroid
$ export ARCH=arm
$ export CROSS_COMPILE=~/myandroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
Command to build for i.MX53 TABLET board is:
$ source build/envsetup.sh
$ lunch imx53_smd-user
$ make
"imx53_smd" is the product names (see ~/myandroid/device/fsl/product)
After build, check build_*_android.log to make sure no build error.

No comments: