True FFS内核编程
1、格式化FLASH
即使FLASH没有和块设备驱动绑定,也可对其进行格式化。
tffsDevFormat (int tffsDriveNo, int formatArg);
typedef struct
{
tffsFormatParams formatParams;
unsigned formatFlags;
} tffsDevFormatParams;
2、创建Boot Image区域
2.1 创建Boot Image区域
创建Boot Image区域,通过在格式化flash,使TFFS段从某个偏移的位置开始。
tffsFormatParams
typedef struct {
long int bootImageLen; //保留给Boot Image空间大小
unsigned percentUse;
unsigned noOfSpareUnits;