I'm trying to implement SCSI commands onto a VNC2 chip by FTDI for what will be a flash drive (more to come later, this is first stage). I am getting into the commands and realized I'm confused about what needs to be on my device. Am I able to statically allocate a chunk of memory to act as my storage location? And then I can just use that area for some basic reads and writes? Or do I need to set up a system of functions for doing some fun stuff? I wrote a FAT32 driver in college for a class and I remember having to do a lot of calculations based on sectors and sizes and all sorts of little pieces. If I allocate an area that holds an MBR, then Boot sectors, etc., Is that all I need in terms of the FAT system? Is it the host that takes care of all the functions for accessing, writing, and updating that data in my allocated spot? I'm sure the SCSI commands will actually be taking care of it on the device end, but will the host tell me through SCSI what areas to update? Or will I have to implement that functionality as well?
Thanks for the help!