Download Android x86 source code under ubuntu12.0.4

Source: Internet
Author: User
Tags network function

1. Install ubuntu12.0.4 on a 20 GB hard drive

2. Load the GB hard disk and format it. Create the androidx86 directory. Mount a GB hard disk to the androidx86 directory.

Sudo passwd Root

Su Root

3. CD androidx86

4. mkdir Bin

5. Download Repo

* ***** Introduction to many websitesCurl http://android.git.kernel.org/repo> ~ /Bin/RepoDownload Repo. This is an early path and is no longer available.

* ***** If the following prompt appears, this early repo is used.

{

./Bin/repo: Line 1: The unexpected symbol 'newline' is near a syntax error./bin/repo: Line 1: '<! Doctype HTML public "-// IETF // dtd html 2.0 // en">'

}

 

Correct use (this is the download method provided by the android website)

$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo$ chmod a+x ~/bin/repo

 

6. No curl command is prompted. Use apt-Get install curl to install curl. Chmoda + x bin/repo change mode.

7. Execute bin/repo init-u http://git.android-x86.org/manifest

Fatal: 'git 'is not available

8. Install git. Apt-Get install git

Execute 7 again. Start source code synchronization.

The following error occurs. Because Ping different git.android-x86.org in China ....)

{

Curl: (6) couldn't resolve host 'git .android-x86.org'
Error: Couldn't resolve host 'git .android-x86.org 'while accessing http://git.android-x86.org/manifest/info/refs
Fatal: http request failed

}

Edit file/etc/hosts add 210.240.39.201 git.android-x86.org (this IP is an IP obtained through the Server Ping git.android-x86.org in Japan)

[74.125.31.121 www.android-x86.org]

 

9. Execute again 7

The following error occurs:

{

Error: manifest required for this command -- please run init

}

The system prompts you to add the-B parameter.

10. Visit http://source.android.com/source/build-numbers.htmlpage

[Source code tags and builds] The tag in the following table is the-B parameter.

Run bin/repo init-u http://git.android-x86.org/manifest-B android-4.2.2_r1

Prompt

...........

* [New branch] jb-x86-> origin/jb-x86
Error: Revision android-4.2.2_r1 in manifests not found
Run bin/repo init-u http://git.android-x86.org/manifest-B jb-x86 again

Prompt username and email

11. bin/repo sync

Start source code synchronization.

It will take a long time .......

 

No. The added-J parameter supports multi-thread bin/repo sync-J 10.

Ah .. The speed is completely different. (The 10 m network function can finally be reflected)

 

You can't wait. Go to bed...

 

PS: the download is complete. It uses 12 GB hard disk space.

 

 

 

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.