How to start DoPe and clients ?

Rudolf Weber rwib at web.de
Wed Sep 11 18:16:04 CEST 2013


Hello,

I want to start dope, an fbterminal, and an fb_spectrum,
(using l4re-snapshot-2013060718)
with the following Start-Script:

-- vim:set ft=lua:

loader = L4.default_loader;

-- Start io

vbus_l4linux = loader:new_channel();

local io_buses =
  {
    input = loader:new_channel();
    fbdrv = loader:new_channel();
  };


loader:start(
  {
    caps = {
      sigma0  = L4.cast(L4.Proto.Factory, L4.Env.sigma0):create(L4.Proto.Sigma0);
      icu     = L4.Env.icu;
      input   = io_buses.input:svr();
      fbdrv   = io_buses.fbdrv:svr();
      l4linux = vbus_l4linux:svr();
    },
  }, "rom/io rom/x86-legacy.devs rom/l4lx-x86.io");


-- Start fb-drv (but only if we need to)
local fb = L4.Env.vesa;
if (not fb) then
  fb = loader:new_channel();
  loader:start({ caps = { fb = fb:svr(), vbus = io_buses.fbdrv },
               log      = { "fbdrv", "r" },
               l4re_dbg = L4.Dbg.Warn,
               },
               "rom/fb-drv -m 0x117");
end

local gui_caps = {
                    svc = loader:new_channel(),
                    dope = loader:new_channel(),
                 };

-- Start dope
loader:start(
  {
    caps = {
      vbus = io_buses.input,
      fb   = fb,
      svc  = gui_caps.svc:svr(),
      dope = gui_caps.dope:svr(),
    },
  }, "rom/l4dope");

local term_srv = loader:new_channel();

print("Start FBterminal ");
e=loader:start(
   { caps = {
        fb = gui_caps.svc:create(L4.Proto.Goos, "g=640x480"),
        term = term_srv:svr(),
        },
        log = { "fbterm", "b" },
        l4re_dbg = L4.Dbg.Warn,
   },"rom/fbterminal");

print("Start fb_spectrum");
e2 = loader:start({ caps = {
                fb = gui_caps.svc:create(L4.Proto.Goos, "g=320x480"),
              },
              log      = { "spectrum", "b" },
              l4re_dbg = L4.Dbg.Warn,
            },
            "rom/ex_fb_spectrum_cc");

print("fbterminal exited with: " .. e:wait());
print("ex_fb_spectrum exited with: " .. e2:wait());


--------------------
Result: dope starts, but neither the fbterminal nor the ex_fb_specturm_cc is visible.
(The kerneldebugger shows, that the Tasks are not existent ...)

What is wrong ?

Thank you very much
   Rudolf 

P.S:
I collect my good experience on http://www.infnet.verein.de/betriebssysteme/kleinkernarch/l4/l4re_conf_2013/index.html

with mag it was successfull:
http://www.infnet.verein.de/betriebssysteme/kleinkernarch/l4/l4re_conf_2013/l4magfbterm/index.html




More information about the l4-hackers mailing list