This is a discussion on about tffsBootImagePut - VxWorks ; hi guys, I have a question about tffsBootImagePut. I mounted tffs over amd flash, and I used tffsDevFormat to reserved few sectors for my bootrom. but when I wrote bootrom by tffsBootImagePut, I got an error, and the whole filesystem ...
hi guys,
I have a question about tffsBootImagePut. I mounted tffs over amd
flash, and I used tffsDevFormat to reserved few sectors for my bootrom.
but when I wrote bootrom by tffsBootImagePut, I got an error, and
the whole filesystem could not be used; the only way to restore was
reseting CPU. I used system debug mode to check whether the mtd drivers
were called, there were no calls. Also I debuged tffsBootImagePut
function, I found it falled in TFFS_PHYSICAL_ERASE call.
If I mounted tffs from flash start address, the file system work well.
STATUS sysTffsFormat (void)
{
STATUS status;
tffsDevFormatParams params =
{
{0xa0000l, 99, 1, 0x10000l, NULL, {0,0,0,0}, NULL, 2, 0, NULL},
FTL_FORMAT_IF_NEEDED
};/* reserve 0xa0000 bytes for bootrom */
status = tffsDevFormat (0, (int)¶ms);
return (status);
}
Please help me