Re: Running the FERRET Examples

Adam Lackorzynski <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <[email protected]>
On Mon Feb 09, 2015 at 13:38:26 +0100, Karl Steger wrote:
> I'm trying to run the scalar demo from the FERRET package. Although the
> server loop from "l4/pkg/ferret/server/re/sensordir.cc" starts, no
> scalar sensor is registered in
> "l4/pkg/ferret/examples/demo/scalar_demo/main.c" as the program
> execution pauses at this line:
> 
> ret = ferret_create(srv, 10, 1, 0, FERRET_SCALAR, 0, "0:100:%", s1,
> &malloc);
> 
> which leads to an l4_ipc_call to the sensor directory.
> 
> Could you please tell me if there is a problem with my configuration
> file below or provide a working configuration file?
> 
> >require("L4");
> >
> >local ld = L4.default_loader;
> >local ferret = ld:new_channel();
> >local sensordir = ld:new_channel();
> >
> >ld:start(
> >{ caps = { ferret=ferret:svr(), sensordir=sensordir:svr() }
> >},
> >"rom/ferret_sensor_dir");
> >
> >ld:start(
> >{ caps = { ferret=ferret,  sensordir=sensordir },
> > log = { "f_scalar_demo", "green" }
> >},
> >"rom/fer_scalar_demo");

Does it work with just caps = { ferret=sensordir } for the client?
That's at least my impression when looking a bit through the code.



Adam
-- 
Adam                 [email protected]
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.