apt-get install build-essential bc
git clone https://github.com/yyjdelete/yaffs2.git
cd yaffs2/utils make cp mkyaffs2image /usr/bin