Running the FERRET Examples

Karl Steger karl.steger at fastmail.fm
Mon Feb 9 13:38:26 CET 2015


Hi L4 hackers,

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");

Thanks and regards,
Karl




More information about the l4-hackers mailing list