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