Loading component configuration from file with lx_fs.

Mikael Sahlström mick.sahlstrom at ...9...
Mon Jan 25 15:37:37 CET 2016


Hi!

I would like to load a component configuration from a file on linux. So
I've added a lx_fs and a fs_rom component that replaces my dynamic_rom
component without changing any code in my component. So far is everything
good (I hope!).

To my questions:
1. How do I state which file to read?
2. My understanding is that the root attribute in lx_fs defines which
directory genode will see as root. But anything except "/" here results in
the error message "Session root directory "..." does not exist".
3. Do I write the same thing in the config file as I did when having the
dynamic_rom (<config attribute="value" .... />)?

My configuration:
<start name="component">
   <resource name="RAM" quantum="5M"/>
   <route>
    <service name="ROM">
      <child name="fs_rom"/>
    </service>
     <any-service> <parent/> <any-child/> </any-service>
   </route>
  </start>

  <start name="fs_rom">
    <resource name="RAM" quantum="4M" />
    <provides> <service name="ROM" /> </provides>
    <route>
      <service name="File_system"> <child name="lx_fs" /> </service>
      <any-service> <parent/> <any-child/> </any-service>
    </route>
  </start>

  <start name="lx_fs">
    <resource name="RAM" quantum="4M" />
    <provides> <service name="File_system" /> </provides>
    <config> <policy label="fs_rom" root="/" writable="no" /> </config>
  </start>

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genode.org/pipermail/users/attachments/20160125/78257817/attachment.html>


More information about the users mailing list