[Note] install android on virtualbox

Source: Internet
Author: User
Get eee 701 vendor patch

 

1. create local_manifest.xml file in. repo directory

2. edit the local_manifest.xml file and append contents as following

<manifest>
<project name="platform/vendor/asus/eee_701" path="vendor/asus/eee_701"/>
</manifest>

 

3. Sync source code

[jelly@localhost:~/work/android]$repo sync

 

 

Compilation kernel image for X86 platform

 

1. copy kernel configuration file (kernel. config) to kernel directory and rename to. config

[jelly@localhost:~/work/android]$cp vendor/asus/eee_701/kernel.config kernel/.config

 

2. Configure kernel and modify following modules to built-in

* Device drivers / Network device support / Ethernet (10 or 100Mbit) / EISA, VLB, PCI and on board controllers / AMD PCnet32 PCI support
* Device drivers / Graphics support / Support for frame buffer devices / VESA VGA graphics support
* Device drivers / Graphics support / Console display driver support / Framebuffer Console support
* Device drivers / Graphics support / Console display driver support / Select Compiled-in fonts (VGA 8×8 font, VGA 8×16 font)

 

3. Cancel following modules

* Device drivers / Real Time Clock / Android alarm driver
* Device drivers / Misc devices / Android pmem allocator

 

4. Compile new kernel image

[jelly@localhost:~/work/android/kernel]$make zImage

 

5. Modify kernel start up arguments and Network Configuration

* append 'vga=788' to BOARD_KERNEL_CMDLINE line in vendor/asus/eee_701/BoardConfig.mk file
* change 'netcfg eth0 dhcp' to 'dhcpcd eth0' in vendor/asus/eee_701/init.eee_701.sh file

 

 

Compile Android Images

 

1. Create bash script for compilation Images

cp kernel/arch/x86/boot/bzImage vendor/asus/eee_701/kernel
mkdir -p out/target/product/eee_701/data/
cp kernel/arch/x86/boot/bzImage out/target/product/eee_701/kernel

TARGET_ARCH=x86 TARGET_PRODUCT=eee_701 DISABLE_DEXPREOPT=true make -j4 installer_img

 

2. Add executable privilege to script file

[jelly@localhost:~/work/android]$chmod +x build.sh

 

3.
The process of image compilation will consume too long times which
Depend on your computer, so drink a cup of coffee for waiting ~~~ :)

[jelly@localhost:~/work/android]$./build.sh

 

4. If no error, there is Installer. IMG file in out/target/product/eee_701 directory

 

Create installable filesystem image for VirtualBox

 

1. Convert Installer. IMG to virtualbox format

[jelly@localhost:~/work/android]$vboxmanage convertfromraw -format vdi installer.img

 

2. Create new Virtual Machine

KERNEL: Linux kernel 2.6
RAM: 256MB
DISK: >= 2G

 

3. Add the VDI disk image to virtualbox

 

Installation Android on VirtualBox

 

1. Start up Virtual Machine

2. Press F12 button and select boot from second disk

3. Press any key in grub panel and press 'E' key to edit startup argument

4. Change HD () to HD () and press 'B' key to continue

5. If installation has finished, please reboot and remove installable disk image from VM Configuration

~~~ The end ~~~

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.