OpenCores
Issue List
File System #34
Closed mclovin opened this issue about 12 years ago
mclovin commented about 12 years ago

Hello. Can you help me, by suggesting a documentation of a similar file system to the one provided at filesys.c? Thank you in advance.

mclovin commented about 12 years ago

Hello. Can you help me, by suggesting a documentation of a similar file system to the one provided at filesys.c? Thank you in advance.

P.S sorry for that, but I, accidentally, put my comments on the description area.

rhoads commented about 12 years ago

I'm not sure that I understand your question. Are you looking for documentation about filesys.c or are you looking for documentation on any file system (http://en.wikipedia.org/wiki/Flash_file_system or http://www.yaffs.net/) or are you looking for a different implementation of a file system?

Steve

mclovin commented about 12 years ago

I am writing my undergraduate thesis on the Plasma RTOS and i am focusing on the filesystem capabilities. I have managed to get the main idea. However, it still seems complicated (filesystem). That's, why, i seek for a similar documentation as a reference.

Thank you for your response. Kyriakos

P.S If you compile filesystem.c as it is, you get files with their data split into their blocks? Or you get one block instead with blockIndex 0? As far as, i can tell, in order to achieve the first one you have to declare the mediaType member of the rootFileEntry as FILE_MEDIA_RAM. Am i correct?

mclovin commented about 12 years ago

I have forgot to mention that i am not using flash.c, nor i am focusing on it.

rhoads commented almost 12 years ago

Every block is 512 bytes long with the first four bytes used as a pointer to the next block. The file system supports both a RAM file system and a flash file system. Most of the complication results in supporting flash where a bit can be cleared easily but can only be set by erasing the entire bank.

The top most root block is part of the RAM file system. The flash file system is then "mounted" at "/flash".

Directories are files that contain an array of file entries. If a file is modified the file entry is marked as invalid and a new file entry is appended at the end of the directory file. The flash file system permits files to be appended but not modified.

rhoads closed this almost 12 years ago

Assignee
No one
Labels
Request