Just use Linux or something similar and use the lower APIs.
E.g. don't mount a filesystem, use the block device directly in your app.