errors getting python up-and-running

lkcl luke.leighton at gmail.com
Fri Nov 26 06:55:19 CET 2010


belay that - i found how to do it.

entry x86-fb
  modaddr  0x002000000
  kernel   fiasco -serial_esc
  roottask moe rom/hello.lua
  module   l4re
  module   ned
  module   hello.lua
  module   hello
  module x86-fb.cfg
  module x86-fb.io
  module x86-legacy.devs
  module l4re
  module io
  module fbterminal
  module fb-drv
  module mag
  module python
  module libld-l4.so
  module libc_be_file_stdin.so
  module libc_be_socket_noop.so
  module libc_be_sig.so
  module libc_be_l4refile.so
  module libc_be_l4re.so
  module lib4re.so
  module libl4util.so
  module libl4sys.so
  module r/libpthread.so
  module libevent.so
  module r/libsupc++.so
  module r/libstdc++.so
  module r/libuc_c.so
  module libc_support_misc.so
  module libm_support.so
  module lib4re-util.so
  module libdl.so

and then copied the example x86-fb.cfg (called it hello.lua, don't ask, but
it matches above...) and added:

function start_with_terminal(e, res, p)
  local c = {
              fb = mag_caps.svc:create(L4.Proto.Goos, res),
              term = l:new_channel():svr(),
            };
  l:start({ caps = c }, "rom/fbterminal");
  e.log = c.term:m("ro");
  l:start(e, p);
end

start_with_terminal({}, "400x300", "rom/ned -i");
start_with_terminal({}, "400x300", "rom/python");


ok the rom/ned -i isn't needed but the rom/python is :)


so... yah, that was a pain, but i got there, yaay! :)  ok.  rrrright. 
files.  how the heck do i get files in (e.g. some python modules).  i see
there's some here:

lkcl at teenymac:~/src/l4ka/build-x86_64$ ls -altr lib/amd64_K8/l4f/python-mod/
total 20
lrwxrwxrwx 1 lkcl lkcl   92 2010-11-26 05:10 operator.so ->
/home/lkcl/src/l4ka/build-x86_64/pkg/python/lib/objs/OBJ-amd64_K8-l4f/python-mod/operator.so
lrwxrwxrwx 1 lkcl lkcl   94 2010-11-26 05:10 _functools.so ->
/home/lkcl/src/l4ka/build-x86_64/pkg/python/lib/objs/OBJ-amd64_K8-l4f/python-mod/_functools.so
lrwxrwxrwx 1 lkcl lkcl   96 2010-11-26 05:10 _collections.so ->
/home/lkcl/src/l4ka/build-x86_64/pkg/python/lib/objs/OBJ-amd64_K8-l4f/python-mod/_collections.s
drwxr-xr-x 2 lkcl lkcl 4096 2010-11-26 05:10 .
drwxr-xr-x 4 lkcl lkcl 4096 2010-11-26 05:10 ..
lkcl at teenymac:~/src/l4ka/build-x86_64$ 

is that... basically it? then include the file e.g. site.py as a module?
there must be a "good" way to do this, surely.

tia,

l.

-- 
View this message in context: http://old.nabble.com/errors-getting-python-up-and-running-tp30308895p30308896.html
Sent from the L4 mailing list archive at Nabble.com.





More information about the l4-hackers mailing list