Dear all,
I need to mount yaffs2 as a root filesystem in AM37x. I try the following methods but it's still fail.
A. fastboot.
1.1. modify the bootargs " ... root=/dev/mtdblock4 rootfstype=yaffs2 ... "
1.2. sudo <OMP3EVM>/out/host/linux-x86/bin/fastboot flash system <OMP3EVM>/out/target/product/omap3evm/system.img
2.1 cd <OMP3EVM>/out/target/product/omap3evm/
2.2 mkdir yaffs2_rootfs
2.3 cp -r root/* yaffs2_rootfs
2.4 cp -r system yaffs2_rootfs
2.5 ../../../out/host/linux-x86/bin/mkyaffs2image -s 128 yaffs2_rootfs yaffs2_rootfs.img
2.6 sudo <OMP3EVM>/out/host/linux-x86/bin/fastboot flash system <OMP3EVM>/out/target/product/omap3evm/yaffs2_rootfs.img
B. USE SDcard boot
1.1 cp yaffs2_rootfs.img to SDcard (cp yaffs2_rootfs.img /media/rootfs)
1.2 erase /dev/mtdblock4
1.3 open omap3evm board
root@android:/# dd if=yaffs2_rootfs.img of=/dev/mtdblock4 (the tar function can't be used)
root@android:/# mkdir /mnt
root@android:/# mount -y yaffs2 /dev/block/mtdblock4 /mnt
root@android:/# cd /mnt (I can only see lost+found)
I referred http://processors.wiki.ti.com/index.php/Put_YAFFS_Image_to_Flash, and http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3-DevKit-1.0_DeveloperGuide#To_build_boot_loader_.28u-boot.29 .
However, the ubi root filesystem is work. My problem are:
1. Whether fastboot support yaffs2 ?
2. How can i check my yaffs2_rootfs.img which is built by out/host/linux-x86/bin/mkyaffs2image is correct?
3. How can I use tar function in AM3715 (Android ICS 4.0.3) ? Sorry that i am new for Linux.
Thanks a lot.