Skip to content
gsmcmullin edited this page Sep 8, 2011 · 16 revisions

OpenFat is a Fat Filesystem for embedded processors, created by the Electronics Research Group at the University of Otago, and supported by a grant from the New Zealand Ministry of Science and Innovation. The majority of the coding is done by Gareth McMullin.

Build an ARM Toolchain

Unless you already have one, build a toolchain see here for instructions. The rest of this tutorial assumes that you have built the toolchain with PREFIX=/usr.

apt-get build-dep gcc-4.5
./summon_arm_toolchain SUDO=sudo PREFIX=/usr

Build OpenFat

Get a copy of the openfat source from here

Steps:

tar -zxf tmolteno_openfat_xxx.tar.gz
cd openfat_xxxx
make HOST=stm32
cd stm32
make

Testing Openfat

To test, you need a Fat32 image. To do this,

cd unix
sudo make fat32.img
sudo mount -o loop fat32.img /media/test
sudo cp Makefile /media/test
sudo umount /media/test
The last line copies a file onto the fat32 filesystem. Now test with
./fattest
You should see a listing of the contents of the fat32 filesystem.
Clone this wiki locally