Newbie question booting fiasco0C x64 with genode

Stefan Kalkowski stefan.kalkowski at ...1...
Tue Apr 12 13:14:50 CEST 2011


Hello Robert,

On 04/11/2011 07:35 PM, Robert Holvast wrote:
> Dear all
> 
> I got as far as building fiascoOC on x86-64
> L4Re build successful
> Can create the iso to boot ok
> Genode fiascoOC build successful
> (note in foc.conf generated by create_bulddir to many spaces, blocked
> correctly including the  L4_DIR includes
> aka in my case:
> Org: L4_DIR = /Projects/FiascoOC/src/l4/build
> Changed to:L4_DIR=/Projects/FiascoOC/src/l4/build)

Well, both 'L4_DIR' lines should work correctly. This file gets included
in a makefile not a shell-script, so leading spaces before the
value-assignment should be dropped. (In fact my 'etc/foc.conf' file uses
spaces around the equal sign too). I'm not sure why this could lead to
problems in your situation. Do you have a special 'make' implementation?

> Newbie questions
> How to create boot cd genode

Creation of a boot-cd somehow depends on the scenario you like to start
and which bootloader to use. Nevertheless, there exists a newly
convenient way in Genode's build-system to create an iso image and start
it automatically via qemu. Therefore, one has to declare a run-script
(Tcl script), that contains information about, what binaries have to be
compiled, configuration for the init-process, and what additional files
are needed within the final iso-image.

When having such a run-script (like demo.run), one can build all needed
binaries, create an iso-image and boot it by simply typing, e.g.:

  make run/demo

An example script, that builds and runs Genode's first demo can be found
at 'os/run/demo.run'. More information on the run-tool you can find in
our last release notes (section: Tools):

http://genode.org/documentation/release-notes/11.02#section-30

> How to create a qemu image that can boot on virtual qemu disk volume
> aka partition filetype ext2 fat15 fat32 ?

That is a little bit more complicated, as you have to install the
bootloader within the image by hand. Moreover, I cannot see any
advantage in contrast to the iso-image solution, as long as you use qemu
anyway. Note, that in both cases all binaries are first loaded by the
bootloader into memory and after that used by Genode.

If you don't want the bootloader to load all files at the beginning, but
load them dynamically at runtime, of course you need an additional
service in Genode for that. With respect to providing CD contents, there
exists already a server (at 'os/src/server/iso9660') for that.
If you need to read/write files dynamically from a block-device for some
reason, you need to build a similar component in the first place.

> I want to port ClickRouter to Genode framework
> Which option would be the best if not wanting to use L4Linux
> What i mean is the polling mechanism of clickrouter as i use some of my
> own modules in clickrouter

Well, I don't know much about the ClickRouter. As far as I understand
after quickly reading its README, it's kind of an interpreter, whereby
the given scripts state how network-packet streams are analyzed or
modified, right?

Without knowing much about ClickRouter, I can only say that Genode
provides to you a protocol (nic-session), which allows you to directly
receive and send packets from the network-card, that it contains some
NIC-drivers for widely used NICs (ne2000, e1000, pcnet32...), and the
lightweight IP stack (LwIP), that can be used as a library. Moreover, we
provide a so called nic-bridge, that multiplexes an available NIC by
implementing the concept of a Proxy-ARP.

>From my point of view, you should first figure out, on which components
ClickRouter necessarily depends on. I mean only its core, and not some
GUI or additional modules. After that, you can better estimate whether
its feasibly to port ClickRouter natively to Genode at this point. For
instance, if you figure out that ClickRouter internally uses the Perl
interpreter for parsing its language, or something like that, this would
mean you would have to port the Perl interpreter beforehand.

When you figure out, that there are no insuperable barriers to run
ClickRouter on Genode directly, we should discuss what has to be done
first to port it.

With best regards
Stefan

> 
> Regards
> Robert
> 
> 
> 
> ------------------------------------------------------------------------------
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> 
> 
> 
> _______________________________________________
> Genode-main mailing list
> Genode-main at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main

-- 
Stefan Kalkowski
Genode Labs

http://www.genode-labs.com/ · http://genode.org/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth




More information about the users mailing list