https://wiki.tudos.org/ikiw/api.php?action=feedcontributions&user=Jester&feedformat=atomTUDOS-Wiki - User contributions [en]2024-03-29T09:24:21ZUser contributionsMediaWiki 1.41.0https://wiki.tudos.org/ikiw/index.php?title=L4Linux/ser_shm&diff=283L4Linux/ser shm2011-11-29T23:21:40Z<p>Jester: </p>
<hr />
<div>== L4Linux shared memory serial communication ==<br />
<br />
The driver '''l4ser_shm''' can connect two L4Linuxes, providing tty interfaces (ttyLsX) and using a shared memory to exchange data. To use the driver to make sure to include in your L4Linux build, it's available under that L4Linux/stub drivers menu.<br />
<br />
For the first Linux add as a kernel parameter:<br />
l4ser_shm.add=shmns,create<br />
<br />
For the second add as a kernel parameter:<br />
l4ser_shm.add=shmns<br />
<br />
In the start script, add:<br />
<br />
local shmns = L4.default_loader:create_namespace({ shm = "placeholder" });<br />
<br />
and add '''shmns''' with '''rw''' rights to both L4Linuxes:<br />
<br />
caps = { .... , shmns = shmns:mode("rw"), .... }<br />
<br />
Boot both instances and do the following tasks: <br />
<br />
You need to add a tty device to both instances<br />
mknod /dev/ttyLs0 c 204 15<br />
<br />
Then run<br />
getty 115200 /dev/ttyLs0<br />
on one instance and<br />
microcom -c 115200 /dev/ttyLs0<br />
to connect to this console from the other instance</div>Jesterhttps://wiki.tudos.org/ikiw/index.php?title=L4Linux/ser_shm&diff=282L4Linux/ser shm2011-11-29T23:19:40Z<p>Jester: </p>
<hr />
<div>== L4Linux shared memory serial communication ==<br />
<br />
The driver '''l4ser_shm''' can connect two L4Linuxes, providing tty interfaces (ttyLsX) and using a shared memory to exchange data. To use the driver to make sure to include in your L4Linux build, it's available under that L4Linux/stub drivers menu.<br />
<br />
For the first Linux add as a kernel parameter:<br />
l4ser_shm.add=shmns,create<br />
<br />
For the second add as a kernel parameter:<br />
l4ser_shm.add=shmns<br />
<br />
In the start script, add:<br />
<br />
local shmns = L4.default_loader:create_namespace({ shm = "placeholder" });<br />
<br />
and add '''shmns''' with '''rw''' rights to both L4Linuxes:<br />
<br />
caps = { .... , shmns = shmns:mode("rw"), .... }<br />
<br />
You need to add a tty device to both instances:<br />
mknod /dev/ttyLs0 c 204 15<br />
<br />
Then run <br />
getty 115200 /dev/ttyLs0<br />
on one instance and<br />
microcom -c 115200 /dev/ttyLs0<br />
to connect to this console from the other instance</div>Jesterhttps://wiki.tudos.org/ikiw/index.php?title=L4Linux/ser_shm&diff=281L4Linux/ser shm2011-11-29T23:10:33Z<p>Jester: Created page with "== L4Linux shared memory network == The driver '''l4ser_shm''' can connect two L4Linuxes, providing tty interfaces (ttyLsX) and using a shared memory to exchange data. To use th..."</p>
<hr />
<div>== L4Linux shared memory network ==<br />
<br />
The driver '''l4ser_shm''' can connect two L4Linuxes, providing tty interfaces (ttyLsX) and using a shared memory to exchange data. To use the driver to make sure to include in your L4Linux build, it's available under that L4Linux/stub drivers menu.<br />
<br />
For the first Linux add as a kernel parameter:<br />
l4ser_shm.add=shmns,create<br />
<br />
For the second add as a kernel parameter:<br />
l4ser_shm.add=shmns<br />
<br />
In the start script, add:<br />
<br />
local shmns = L4.default_loader:create_namespace({ shm = "placeholder" });<br />
<br />
and add '''shmns''' with '''rw''' rights to both L4Linuxes:<br />
<br />
caps = { .... , shmns = shmns:mode("rw"), .... }<br />
<br />
You need to add a tty device to both instances:<br />
mknod /dev/ttyLs0 c 204 15<br />
<br />
Then run <br />
getty 115200 /dev/ttyLs0<br />
on one instance and<br />
microcom -c 115200 /dev/ttyLs0<br />
to connect to this console from the other instance</div>Jesterhttps://wiki.tudos.org/ikiw/index.php?title=L4Linux&diff=280L4Linux2011-11-29T23:03:01Z<p>Jester: </p>
<hr />
<div>L4Linux is a port of the Linux kernel to L4, running as a normal user program besides other applications.<br />
<br />
The following pages are available:<br />
* [http://os.inf.tu-dresden.de/L4/LinuxOnL4/download.shtml Download]<br />
* [[L4Linux/configurations]]<br />
* [[L4Linux/build]] Quick build instruction<br />
* [[L4Linux/options]] Generic runtime options available <br />
* [[L4Linux/shmnet]] How to use the l4shmnet driver<br />
* [[L4Linux/ser_shm]] How to use the l4ser_shm driver<br />
* [http://os.inf.tu-dresden.de/L4/LinuxOnL4/ L<sup>4</sup>Linux] Website<br />
** [http://os.inf.tu-dresden.de/L4/LinuxOnL4/build-2.6.shtml Build instructions]</div>Jester