Discussion:
tar archive and sd_card partition
John David
2016-09-26 20:56:35 UTC
Permalink
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
Nobody III
2016-09-27 03:18:45 UTC
Permalink
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/>
Post by John David
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
https://lists.sourceforge.net/lists/listinfo/genode-main
Loading...