summaryrefslogtreecommitdiff
path: root/firmware/test/fat/README
diff options
context:
space:
mode:
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 0000000000..76141c0044
--- /dev/null
+++ b/firmware/test/fat/README
@@ -0,0 +1,25 @@
1This code is for testing the Rockbox fat code on a dummy drive image file.
2
3Dummy image
4-----------
5Here's how to create a 1 gig dummy drive image in linux:
6
7# dd if=/dev/hda of=disk.img bs=1M count=1024
8
9You can then format disk.img as a FAT32 partition:
10
11# mkdosfs -F 32 disk.img
12
13To mount the image, your linux kernel must include the loopback device:
14
15# mount -o loop disk.img /mnt/image
16
17Now copy some test data to the disk, umount it and start testing.
18
19
20Test code
21---------
22The files in this dir build the 'fat' program. It will read 'disk.img' and
23treat is as a real disk, thanks to the ata-sim.c module.
24
25Modify the main.c source code to make it perform the tests you want.