[okl4-developer] Is it possible to have two oklinux cells deployed on the same okl4 micro-kernel ?

hugues.balp at free.fr hugues.balp at free.fr
Thu Dec 4 02:03:39 EST 2008


		Dear all,

thanks to the reply of Michael Lane I could successfully build and run the
cross-cell-demo example on a versatile platform with the following build
command:

./tools/build.py machine=versatile project=examples pyfreeze=false
EXAMPLE=oklinux,decrypt LINUX_APPS=cross-cell-demo kdb_serial=True
TOOLCHAIN=gnu_arm_eabi_toolchain pistachio.TOOLCHAIN=gnu_arm_toolchain.

I had to specify explicitly the toolchain to avoid a build error when looking
for the shared library ld-linux.so.3 which is supported only by the eabi
toolchain and not the by the default one.

Now I wonder if it is possible or not to deploy two oklinux cells on the same
okl4 micro-kernel ?

In case the answer is true, I don't know:

- how to make sure that no conflict will appear in case the same hardware
devices are accessed concurrently by the two oklinux kernels... ?
( example: serial, timer, ethernet devices... )

- how to configure and build such a system without editing the SConscript files
provided with okl4 ( if possible ) ?

- how to edit the scons build chain two make a test with two oklinux sharing the
same ethernet device...

I have begun to edit the script $OKL4_ROOT_DIR/projects/examples/SConscript in
order to declare a new cell named "oklinux2" that should be valid with an
'oklinux" root cell and tested it with the following command:

./tools/build.py machine=versatile project=examples pyfreeze=false
EXAMPLE=oklinux,oklinux2 LINUX_APPS=hello kdb_serial=True
TOOLCHAIN=gnu_arm_eabi_toolchain pistachio.TOOLCHAIN=gnu_arm_toolchain.

The following error is raised by the script Kenge.py:

/home/hugues/tools/okl4/okl4_3.0/tools/kenge.py:1765
"Two environments with different actions were specified for the same target":
 /home/hugues/tools/okl4/okl4_3.0/build/oklinux/lib/crt0.o

I have joined to this mail the edited SConscript file.

Before to investigate further I just want to make sure it is the good things to
do or not...


Perhaps this kind of test has already been made... ?


	Thanks in advance,

			Hugues Balp.





More information about the Developer mailing list