[okl4-developer] Is it possible to have two oklinux cells deployed on the same okl4 micro-kernel ?
Geoffrey Lee
glee at ok-labs.com
Thu Dec 4 13:55:38 EST 2008
On Wed, Dec 03, 2008 at 04:03:39PM +0100, hugues.balp at free.fr wrote:
>
> Dear all,
>
Hugues -
> 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:
This in theory should be possible. If you are building from the
raw source code, the build system is unable to support it at this
point and will need modifications.
>
> - 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... )
>
This is done at configuration time. Devices which are accessible
have their device registers mapped into the cell.
> - how to configure and build such a system without editing the SConscript files
> provided with okl4 ( if possible ) ?
Configuring the layout of your system, including the programs
to include in the final bootable image as well as the devices
and interrupt numbers available to a cell.
>
> - 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... ?
>
Some folks have independently gotten two Linux instances running
independently of OK Labs and have sent success reports, it's not
overly hard, conceptually you include two vmlinux programs
in the weaver.xml configuration, which may need to be built twice
due to different device configurations or final link address.
>
> Thanks in advance,
>
> Hugues Balp.
>
-gl
>
>
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
>
--
More information about the Developer
mailing list