Create an android root file system

Source: Internet
Author: User

1. Compile the Souce code of the entire android system. After compilation, three image files ramdisk. IMG, system. IMG, and userdata. IMG will be generated.

2. Unzip ramdisk. IMG:

MV ramdisk. IMG ramdisk.gz

Mkdir out

CD out & cpio-I-f ../ramdisk.gz

 

3. Cross-compile busybox. You only need to compile tar. Can it be from http://blog.chinaunix.net/u/20947/showart.php? Id = 1913228 download.

 

4. Install busybox

ADB Shell

ADB push busybox/data/busybox

CD/data/busybox;./busybox -- install

Chmod 555/system/bin/busybox

5. Copy the system and data directory

/Data/busybox tar CVF/data/data.tar/Data

/Data/busybox tar CVF/data/system.tar/System

ADB pull/data/system.tar

ADB pull/data/data.tar

 

6. Copy the contents of system.tar and data.tar to the system and Data Directories decompressed by ramdisk.

7. Create/dev directory

7. generation tools mkyaffs2image and mkyaffs

Http://www.aleph1.co.uk/cgi-bin/viewcvs.cgi/yaffs2/

./Mkyaffs2image system/system. img

 

8. Use mkyaffs2image to create the entire root file system

 

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.