Questions tagged [fat]

FAT short for File Allocation Table is the name of a computer file system architecture and a family of industry standard file systems utilizing it.

188 questions
1
vote
0 answers

U-Boot: 'dlmalloc.c:2084: malloc_extend_top: Assertion failed' when reading large file from MMC FAT

I want to read a file (675 bytes) from the FAT on my MMC. I use the function file_fat_read(), which is called in spl.c. My code is shown below. Reading smaller files is not a problem. However, reading larger files returns the following error und…
Richard Laurant
  • 647
  • 1
  • 8
  • 21
1
vote
1 answer

Understanding FAT16

I'm developing a flash based USB mass storage device with FAT16 file system. It's working properly, however I have difficulties understanding what's happening on the FAT segments. When I begin, I have a single file, 56 bytes long on the root…
stdcall
  • 27,613
  • 18
  • 81
  • 125
1
vote
1 answer

Editing FatFS generic example for dsPIC

I'm attempting to use FatFS (http://elm-chan.org/fsw/ff/00index_e.html) as a means to communicate with an SD card, using SPI. The FatFS website has a number of examples, however I'm not finding them easy to understand or follow. Two examples apply…
ritchie888
  • 583
  • 3
  • 12
  • 27
1
vote
3 answers

converting little endian hex to big endian decimal in C

I am trying to understand and implement a simple file system based on FAT12. I am currently looking at the following snippet of code and its driving me crazy: int getTotalSize(char * mmap) { int *tmp1 = malloc(sizeof(int)); int *tmp2 =…
user1411893
  • 608
  • 2
  • 8
  • 19
1
vote
0 answers

SDFatLib for Python?

Scenario: I've got a TTL-JPEG Camera, SD Card Holder Board, and a Synapse RF Module to play with. Trying to combine these 3 devices to create a wireless camera that can shoot videos, store them on the SD card using SPI, and then retrieve them as…
user112016322
  • 688
  • 3
  • 11
  • 26
1
vote
2 answers

FAT System Identification of free space and structure of entry files?

Been seaching google for a good explanation for how FAT systems identify free space and the structure of FAT Entry files. Alot of the explanations ive found are quite hard to follow can anyone help brief sum these up? i understand that clusters are…
user1949280
  • 75
  • 2
  • 8
1
vote
3 answers

Compute The Next Cluster

Recently I read some nice tutorials about OS development on BrokenThorn : it's a nice OSDev series. I have some trouble to understand the idea of "computing the next cluster" when I want to load the stage 2 of our bootloader. The code is : …
smainoo
  • 139
  • 5
1
vote
1 answer

How to build an Android NDK app on FAT

I'm using the FAT32 file system in Linux (as I need to also access it on Windows and OSX), but when I compile with ndk-build I get the error install: setting permissions for `./libs/armeabi/libfoo.so': Operation not permitted I gather it's trying…
Warpspace
  • 3,215
  • 3
  • 21
  • 24
1
vote
1 answer

how to distinguish directory and file entry in fat16?

If in fat16 system i am much confused about distinguishing a sub-directory and a file. As sub directory and a file have similar structure, how do we distinguish a directory and a file and how do we traverse through directories to reach the file? …
sheeru
  • 482
  • 4
  • 13
1
vote
3 answers

Does FAT disallow undirected cycles?

For educational purposes, I'm rolling my own FAT reader (allows you to browse a drive, etc). My current issue is determining the current working directory (such as for the prompt in a typical command prompt). As far as I can tell, the directory…
Cannoliopsida
  • 3,044
  • 5
  • 36
  • 61
1
vote
3 answers

how to query a folder structure (files, directories)

I need to query folder structure. In other words I need to be able to access directory structure by SQL. I'm thinking of that there should be some OLE DB provider or some ODBC driver for that purpose. My friend said to google "folder monitoring" but…
avagyan
1
vote
3 answers

FAT 12 Implementation

I have been following the Operating System development tutorial on http://www.brokenthorn.com. Right now I'm trying to setup the BIOS parameter block with this code: jmp loader bpbName db "NubOS",0,0,0 bpbBytesPerSector: DW…
Hudson Worden
  • 2,263
  • 8
  • 30
  • 45
1
vote
1 answer

File creation at the file system level

I am working on the FAT file system code in Linux Kernel 3.3. For a project, I need to create a file at mount time, in the root directory of the mounted filesystem. I've figured out where to write the code to create it, but have a few questions…
Sankarnm
  • 111
  • 1
  • 7
1
vote
2 answers

Using Sparkfun's MP3 player shield with an Arduino Ethernet Pro - SPI problems

I'm using the Arduino Ethernet Pro board and MP3 player shield from Sparkfun (http://www.sparkfun.com/products/10536 and http://www.sparkfun.com/products/10628) I tried to use the examples provided by Sparkfun but i keep running in to the same…
CodeMonkey
  • 114
  • 1
  • 7
0
votes
1 answer

NTFS and FAT : the difference internally

I've been searching about this on google, but I get a lot of external information like: it is self healing and more stable etc etc.. Can someone explain the internal workings of the two systems, in terms of how they store data, retrieve them and…
Kshitij Banerjee
  • 1,678
  • 1
  • 19
  • 35