Making the driver
You should use the following command to make the driver:
make F3S_VER=3 MTD_VER=2
Parent topic:
Building your flash filesystem driver