Android source code will generate three image files after compiling
SYSTEM.IMG->YAFFS2 Format
USERDATA.IMG->YAFFS2 Format
Ramdisk.img->cpio
The first two files can be mounted, but ubantu14.04 does not support the YAFFS2 format by default and requires compiling the kernel.
Software that resolves this format under Windows
Ramdisk.img
First of all
File ramdisk.img
Ramdisk.img:gzip compressed data, from Unix
See the files that were compressed for gzip, rename ramdisk.img to ramdisk.img.gz
MV Ramdisk.img ramdisk.img.gz
Then use file to look at the ramdisk.img, this time for
Ramdisk.img:ASCII Cpio Archive (SVR4 with no CRC)
Use Cpio to extract content from the Ramdisk.img
mkdir Temp CP Temp cpio-i-F. /ramdisk.img.gz
Just unzip it open.
After the actual compilation is completed in the Out folder
System.img->system Folder
Userdata.img->data Folder
Ramdisk.img-root Folder
Ramdisk.img equivalent to the root directory
System.img and userdata.img are mounted to RAMDisk's system and data folders, respectively.
Android Image File description