Test commit
[kugel-rb.git] / firmware / test / fat / README
blob02cf7e0e303806247c07fe4b455d266ac95306d8
1 test test
2 foo too three
4 This code is for testing the Rockbox fat code on a dummy drive image file.
6 Dummy image
7 -----------
8 Here's how to create a 1 gig dummy drive image in linux:
10 # dd if=/dev/hda of=disk.img bs=1M count=1024
12 You can then format disk.img as a FAT32 partition:
14 # mkdosfs -F 32 disk.img
16 To mount the image, your linux kernel must include the loopback device:
18 # mount -o loop disk.img /mnt/image
20 Now copy some test data to the disk, umount it and start testing.
23 Test code
24 ---------
25 The files in this dir build the 'fat' program. It will read 'disk.img' and
26 treat is as a real disk, thanks to the ata-sim.c module.
28 Modify the main.c source code to make it perform the tests you want.