Mounting an IFS

Once the kernel is running, you can mount image filesystems. The syntax for this is:

mount -tifs -o offset=XXXXXXXX,size=YYYYYYYY /dev/mem /mountpoint

The variables are:

XXXXXXXX
The physical address of an area of contiguous memory (linear) that contains a binary image filesystem.
YYYYYYYY
The size of the image, rounded up to the next highest page boundary.
/mountpoint
The name of the mountpoint for the image filesystem.

For example, suppose an image filesystem starts at physical address 0x600000 and is a size of 0x23A5C. You can use the mkifs -v command to determine the size when you build the image. The next highest 4-KB page boundary is 0x24000. Suppose we want to mount this image as /ifs2. The syntax would be:

mount -tifs -o offset=0x600000,size=0x24000 /dev/mem /ifs2