YAFFS2 kernel configuration
From Texas Instruments Embedded Processors Wiki
Introduction
This page will walk the user through enabling support for the YAFFS/YAFFS2 Flash file system in the MontaVista TI kernel. This support must be enabled to allow the kernel to boot with a YAFFS/YAFFS2 root file system stored in Flash.
Enabling YAFFS/YAFFS2 Support
In order to enable YAFFS/YAFFS2 support in the MontaVista TI kernel the user must compile the YAFFS2 file system into the kernel. Since YAFFS2 includes backwards compatibility with YAFFS only the YAFFS2 support is needed. In this example it is assumed that the user has a copy of the MontaVisti TI kernel in /home/user/workdir/ti-davinci. The following steps will demonstrate how to enable this support:
- Configure the kernel using xconfig
host$ cd /home/user/workdir/ti-davinci host$ make ARCH=arm CROSS_COMPILE=arm_v5t_le- xconfig
- Enable YAFFS2 support
The option for YAFFS2 support is located under File systems - > Miscellaneous filesystems. Select YAFFS2 file system support. For example you should see a screen like the following:
- Save the configuration and exit xconfig
- Compile the kernel with YAFFS2 support
For more details on compiling the kernel please refer to the Building a New Linux Kernel section of the Getting Started Guide for your product. An example command to compile the kernel is:
host$ make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImageLeave a Comment

