FS#11599 - Make simulator able to emulate storage with a file instead of using OS fs functions

Attached to Project: Rockbox
Opened by amaury pouly (pamaury) - Friday, 03 September 2010, 10:45 GMT
Task Type Patches
Category Simulator
Status New
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


This patchs modifies the simulator so that it can emulate the storage layer. More preciserly, it enables all the storage code and simply redirect all storage_{read,write, ...} to a file. This way, all fs functions used are the one of rockbox, which allows to debug the FAT code for example.

To run this, apply the patch and modify the makefile to add this: -DROCKBOX_SIMULATE_STORAGE_LAYER
to the line:
export GCCOPTS=....

When running the simulator, it expects to read from file simdisk.raw. You can change this by using the --root option:
./rockboxui --root <file>

The code doesn't work for me, FAT code seems to choke on something for now, I'm not sure why.
This task depends upon