File written, under FreeDOS, on spi flash (formatted as FAT12) is not found in Linux
I have a development board which has an spi flash. Under linux, this flash is mounted as MTD block device. I'm using the formatting tool provided by manufacturer, called spitool.exe. If I write file to the flash when I want to read it under FreeDOS it is not found. Otherwise If I write file under FreeDOS it is not found under Linux. The flash is formatted as FAT12 disk. BIOS emulates the spi flash as a floppy disk. The superblock is written by the spitool.exe. Why is it occurring?
I read the flash in raw mode and I realized that the Directory Entry of the file (in root directory) was written at different byte offset when the file was written under FreeDOS in relation to Linux. Root Directory Entries can only be written starting at sector 13 up to sector 27. But under FreeDOS the Root Directory Entries was written starting at sector 41.
Any help will be appreciated.