summaryrefslogtreecommitdiff
path: root/firmware/test/fat/README
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-10-20 22:50:58 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-10-20 22:50:58 +0000
commitb7b48fea02fdac51071eef084a980cee4bcba221 (patch)
treeca2e1f55fd67cda98b395eb0259d14426865af4f /firmware/test/fat/README
parent1df1e51a030e3a7c87f7e882f67b3c7588353300 (diff)
downloadrockbox-b7b48fea02fdac51071eef084a980cee4bcba221.zip
rockbox-b7b48fea02fdac51071eef084a980cee4bcba221.tar.gz
rockbox-b7b48fea02fdac51071eef084a980cee4bcba221.tar.bz2
rockbox-b7b48fea02fdac51071eef084a980cee4bcba221.tar.xz
Snapshot of file writing code. Bugs remain. Only short names are supported yet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2726 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/test/fat/README')
-rw-r--r--firmware/test/fat/README25
1 files changed, 25 insertions, 0 deletions
diff --git a/firmware/test/fat/README b/firmware/test/fat/README
new file mode 100644
index 0000000..76141c0
--- /dev/null
+++ b/firmware/test/fat/README
@@ -0,0 +1,25 @@
+This code is for testing the Rockbox fat code on a dummy drive image file.
+
+Dummy image
+-----------
+Here's how to create a 1 gig dummy drive image in linux:
+
+# dd if=/dev/hda of=disk.img bs=1M count=1024
+
+You can then format disk.img as a FAT32 partition:
+
+# mkdosfs -F 32 disk.img
+
+To mount the image, your linux kernel must include the loopback device:
+
+# mount -o loop disk.img /mnt/image
+
+Now copy some test data to the disk, umount it and start testing.
+
+
+Test code
+---------
+The files in this dir build the 'fat' program. It will read 'disk.img' and
+treat is as a real disk, thanks to the ata-sim.c module.
+
+Modify the main.c source code to make it perform the tests you want.