在EeePC上運行Android!(也是代碼下載配置編譯的流程!)

來源:互聯網
上載者:User
Building Android (Cupcake) for the Eee PC 701

請想深入學習研究Android的朋友加Opendroid QQ群81410571,我們目前已成功移植android到s3c2440及virtualbox等。正在籌划進一步深入學習計劃!

 

This page was created by compiling lots of the information found here: http://groups.google.com/group/android-porting.
If you are interested in helping to further Android usage on an x86
platform, please join that group and contribute any information you may
have.

This assumes you are running some flavor of Ubuntu. If you aren't, I'm sorry, I can't really help with your specific distro.

Moving on. Open a terminal session on your Ubuntu machine.

Change directories to your home directory if you aren't already there:

$ cd ~

Prepare your environment:

$ sudo apt-get install flex bison gperf libsdl-dev libesd0-dev
libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
valgrind


Install repo:

$ curl http://android.git.kernel.org/repo >~/bin/repo

$ chmod a+x ~/bin/repo

Make your working directory. For the purposes of this documentation, we will assume the working directory is android-eee:

$ mkdir android-eee

Change directories to your working directory:

$ cd android-eee

Initialize the cupcake repo:

$ repo init -u git://android.git.kernel.org/platform/manifest.git

Create the local_manifest.xml file which tells repo about the eee_701 branch in cupcake:

$ cd .repo
$ touch local_manifest.xml

Open local_manifest.xml in your favorite text editor. Paste the following text into local_manifest.xml

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project name="platform/vendor/asus/eee_701" path="vendor/asus/eee_701"/>
</manifest>

Save and close local_manifest.xml

Change directories back to your working directory:

$ cd ~/android-eee

Sync the repo (this might take a while):

$ repo sync

Build the image file (this might take a really LONG while):

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

Put the installer_img file on a USB stick.

$ dd if=out/target/product/eee_701/installer.img of=/dev/<usbstick of your choice> ; sync

Boot your EeePC from the USB stick you just created and watch it go.
This will wipe your EeePC so if you have stuff you'd like to keep,
either back up before you install or don't install at all.

Note: Currently the .img file creation fails due to a bug. A fix for the bug is waiting for approval.

Please email androideeepc@gmail.com if you see errors in the doc or if you would like to help get this working for other Eee PC models.

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.