Incorrect FSINFO trail signature in format function
coran21 opened this issue · 1 comments
coran21 commented
Hello,
I believe the FSINFO trail signature 0xAA550000 is incorrectly stored in the buffer written to the media during the format function.
/* Build the final signature word, this too is used to help verify that this is a FSINFO sector. */
byte_ptr[508] = 0x55;
byte_ptr[509] = 0xAA;
According to the documentation:
FSI_TrailSig 508 4
Value 0xAA550000. This trail signature is used to validate that this is, in fact, an FSInfo sector. Note that the high 2 bytes of this value—which go into the bytes at offsets 510 and 511—match the signature bytes used at the same offsets in sector 0.
So, I believe that the correct code should be:
/* Build the final signature word, this too is used to help verify that this is a FSINFO sector. */
byte_ptr[510] = 0x55;
byte_ptr[511] = 0xAA;
Also, after I formatted the medium and checked it with fsck, I got this message:
FSINFO sector has bad magic number(s):
Offset 508: 0x0000aa55 != expected 0xaa550000
Are there any plans to continue with development/bug fixing of Filex?
Thanks,
Petr