skin engine: Relax the AA load width/height checks
[maemo-rb.git] / firmware / test / fat / README
blob58ffe7ffa8984579619d06392efe311cba3fb045
1 This code is for testing the Rockbox fat code on a dummy drive image file.
3 Dummy image
4 -----------
5 Here's how to create a 1 gig dummy drive image in linux:
7 # dd if=/dev/hda of=disk.img bs=1M count=1024
9 You can then format disk.img as a FAT32 partition:
11 # mkdosfs -F 32 disk.img
13 To mount the image, your linux kernel must include the loopback device:
15 # mount -o loop disk.img /mnt/image
17 Now copy some test data to the disk, umount it and start testing.
19 The test script mounts the disk image in order to initialize it will a number
20 of dummy files. Since users are no longer allowed to mount loopback devices,
21 you can either run the test script as root (not recommended) or add a line to
22 your fstab file:
24 /path/to/disk.img /mnt/dummy vfat loop,users,noauto 0 0
27 Test code
28 ---------
29 The files in this dir build the 'fat' program. It will read 'disk.img' and
30 treat is as a real disk, thanks to the ata-sim.c module.
32 Modify the main.c source code to make it perform the tests you want.