Android image compression and decompression unyaffs and mkyaffs2image

Source: Internet
Author: User

Http://blog.chinaunix.net/space.php? Uid = 25832818 & Do = Blog & id = 3039340

In the Android-SDK folder, platform stores the platform terminology platform corresponding to Android, indicating Android itself (Platform), including all binary files, code libraries, and tools. The emulator provided in the SDK is only one of the many components in the Android platform [Google Android Secrets]
1. decompress the File Download tool wget http://unyaffs.googlecode.com/files/unyaffsand Add the execution permission chmod 777 unyaffs to decompress the system. IMG and userdata. imgunyaffs. /Your + image + name. decompress IMG to the current folder and unzip ramdisk. imgmv ramdisk. IMG ramdisk.gz gunzip ramdisk.gz cpio-id <. /ramdisk
2. Compression file mkyaffs2image command to complete the compression, the file after Android source code compilation to out/host/linux-x86/bin or directly compile the source code

========================================================== =

Mkyaffs2image usage

Http://blog.csdn.net/bjutstar/article/details/7182089

When you use the mkyaffs2image command for the first time in Ubuntu

Mkyaffs2image: Command not found

You also need to install mkyaffs2image

Http://code.google.com/p/fatplus/downloads/detail? Name1_yaffs2-source.tar & can = 2 & Q =

Download yaffs2-source.tar

Decompress the package, enter the utils folder, and then make

Copy the mkyaffs2image file generated after make to the/usr/bin directory.

$ Su
# Cp mkyaffs2image/usr/bin/
# Chmod 777/usr/bin/mkyaffs2image

After

$ Mkyaffs2image
Mkyaffs2image: image building tool for yaffs2 built Jan 6 2012
Usage: mkyaffs2image dir image_file [convert]
Dir the directory tree to be converted
Image_file the output file to hold the image
'Convert' produce a big-Endian image from a little-endian machine

Indicates that the installation is successful, and you can also see the usage of this command

Mkyaffs2image dir image_file

For example, you can use

$ Mkyaffs2image out/target/product/smdkv210/system/out/target/product/smdkv210/system. img

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.