Running the FERRET Examples

Adam Lackorzynski adam at os.inf.tu-dresden.de
Tue Feb 10 23:58:25 CET 2015


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                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/



More information about the l4-hackers mailing list