Android Compiling Virtual Machine

From Wandboard Wiki
Jump to: navigation, search

Introduction

Here is a guide regarding compile android with a virtual machine.

Host OS is a PC with 64bit Windows/Ubuntu

Guest OS is a Ubuntu-12.04 64bit.

Username and password are both imx6.

Download and Install VMPlayer

Go to http://www.vmware.com/products/player/

Download VMware Player and VMware Player Plus for Windows

or VMware Player and VMware Player Plus for Linux 64-bit

Install it to your windows or ubuntu.

Download Pre-installed VM

Paste the link below to your browser.

http://www.wandboard.org/images/downloads/wand_imx6_dev_vm.zip

Download and uncompress. Use the VMplayer to execute the virtual machine.


Download and Compile Android

Source code tarball

http://www.wandboard.org/images/downloads/wandboard_android-4.3_fullsource_20140205.tar.xz
md5sum : b7d744c31883c0faf9b27a7b4c8559b9 

Download and uncompress it.

$ wget http://www.wandboard.org/images/downloads/wandboard_android-4.3_fullsource_20140205.tar.xz
$ tar xvf wandboard_android-4.3_fullsource_20140205.tar.xz

Build Process

$ cd wandboard-4.3-pre-source/wand-4.3
$ source build/envsetup.sh
$ lunch wandboard-userdebug
$ make -j4

Create SDCARD

$ sudo dd if=/dev/zero of=/dev/sdX bs=1M count=1
$ sudo ./wand_fsl_sdcard-part.sh /dev/sdX
$ dd if=wand-4.3/bootable/bootloader/uboot-imx/SPL of=/dev/sdX bs=1K seek=1
$ sudo mount -t vfat /dev/sdX1 /media/imx6
$ sudo mount -t ext4 /dev/sdX5 /media/system
$ mkdir -p /media/imx6/boot
$ cp wand-4.3/kernel_imx/arch/arm/boot/uImage /media/imx6/boot/
$ cp wand-4.3/bootable/bootloader/uboot-imx/u-boot.img /media/imx6/boot/
$ cp wand-4.3/bootable/bootloader/uboot-imx/out.bmp.gz /media/imx6/boot/
$ cp wand-4.3/bootable/bootloader/uboot-imx/uEnv.txt /media/imx6/boot/
$ mkimage -A arm -O linux -T ramdisk -C none -a 0x10800800 -n "Android Root Filesystem" -d wand-4.3/out/target/product/wandboard/ramdisk.img /media/imx6/boot/uramdisk.img
$ sudo cp -a wand-4.3/out/target/product/wandboard/system/* /media/system/
$ sudo umount /dev/sdX*

Compatible Google APPS

gapps-jb-20130813-signed.zip