First off, you need a filesystem driver. I would suggest using rump_fs, as it seems to be the most stable. Then, in your vfs configuration, you need to attach the filesystem somewhere. External filesystems can be attached much like built-in ones, such as dir, tar, and log. Just add this wherever you want it in the directory structure: <fs/>
On Mon, Sep 26, 2016 at 2:56 PM, John David <johndv2123@...9...> wrote:
Hello,
I have a libc program called my_test, and I want this program to access files from both an archive (myarchive.tar) and an sd_card partition. For this, I have tried to write a run script and run it, but no luck so far. Part of the configuration is below. I would greatly appreciate if you could help me on the configuration.
<start name="sd_card_drv"> <resource name="RAM" quantum="20M"/> <provides><service name="Block"/></provides> </start> <start name="part_blk"> <resource name="RAM" quantum="10M" /> <provides><service name="Block" /></provides> <route> <service name="Block"><child name="sd_card_drv" /></service> <any-service><parent/><any-child/></any-service> </route> <config> <policy label="my_test" partition="2"/> </config> </start> <start name="my_test"> <resource name="RAM" quantum="10M"/> <route> <any-service> <child name="part_blk" /> <parent/> <any-child/> </any-service> </route> <config> <libc stdout="/dev/log" stderr="/dev/log" > <vfs> <dir name="dev"> <log/></dir> <tar name="myarchive.tar"/> </vfs> </libc> </config> </start>
Thanks and best regards, John
genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main