I'm booting linux with my own
init executable which is written in C.
As a part of my init process, I want to mount a custom filesystem image which was preloaded to the physical memory (let's say at address 0xFFFF0000).
The type of the filesystem image can be changed to whatever will work, as far as it has POSIX (like ext4).
How can I mount the image successfully entirely from physical memory using C code?
What I've tried:
Note: I've enabled loop devices for my system if needed
User contributions licensed under CC BY-SA 3.0