<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Geoff:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>This is great news. Thank you for taking the time to work on
this unique project. We appreciate your contributions to the Developers Mailing
List and your efforts to add to the Wiki. You are welcome to login to the Wiki:
<a href="http://wiki.ok-labs.com/">http://wiki.ok-labs.com/</a> and post any
and all materials which you believe to be valuable to the Community. If you
need any assistance, we are happy to help walk through this. Alternatively, you
can send us any material you would like posted and we can help do this on your behalf.
<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Keep up the good work and let us know how we can be of any
assistance. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Tim Heath<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Community Development Manager<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Open Kernel Labs<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>200 S. Wacker Dr. 15th FL<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Chicago, IL 60606 USA<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>o&nbsp; +1 312 924-1073<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>m +1 312 718-3037<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>timh@ok-labs.com<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal style='margin-left:.5in'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> developer-bounces@okl4.org
[mailto:developer-bounces@okl4.org] <b>On Behalf Of </b>Geoff White<br>
<b>Sent:</b> Wednesday, June 11, 2008 00:43<br>
<b>To:</b> developer<br>
<b>Subject:</b> [okl4-developer] 2.1 Ubuntu VMware VM<o:p></o:p></span></p>

</div>

<p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<p class=MsoNormal style='margin-left:.5in'>I have a 2.1 based VMware VM that
has a fully installed Ubuntu 8.04 desktop system with OKL4 and OKLinux sources
installed along with the appropriate toolchain. The OKLinux kernel&nbsp;
configs and some of the sources are modified a little to enable LANCE ethernet
support so the target VM can actually communicate with the outside world if you
are running it under VMware Workstation/Player or ESX.&nbsp; The compressed tar
ball is 1.5GB.&nbsp; I'd like to turn this over to OK-Labs or get it up on the
wiki as a torrent.&nbsp; What shoukd the next step be?&nbsp; Here is the
README.txt...<o:p></o:p></p>

</blockquote>

<div>

<p class=MsoNormal style='margin-left:.5in'><br>
How to use this package to do OKL4 development.<br>
------------------------------------------------<br>
<br>
Hello, if your reading this, chances are that you have successfully booted up
the OKL4 VM that runs under VMware platforms:&nbsp; The package contains:<br>
<br>
&nbsp;&nbsp;&nbsp; oklinux.vmx - virtual machine definition for an Ubuntu 8.04
VM that &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; acts as the &quot;development&quot; platform for the 2.1
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
release of OKL4 and OKLinux<br>
<br>
&nbsp;&nbsp;&nbsp; oklinux.vmdk - the Virtual disk that contains all of the
software<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; oklinux-s00x.vmdk -
upto 2G &quot;segments containing the &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; virtual disk for the Ubuntu system<br>
<br>
&nbsp;&nbsp;&nbsp; iguana-vm.vmx - virtual machine definition for the intel
IA32 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &quot;target&quot; machine<br>
&nbsp;&nbsp;&nbsp; iguana-vm.vmdk, iguana-vm-flat.vmdk&nbsp; - 100MB virtual
disk that will &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; hold the bootable OKL4 image<br>
<br>
There may be other files in the directory, but these are the files that are
absolutely necessary for development to take place.<br>
<br>
This directory is a little different from the typical VMware VM
directory.&nbsp; It actually contains TWO VMs, one is the development machine,
one is fhe target.&nbsp; The directory contains TWO .vmx definitions as well as
TWO virtual disks.&nbsp; Note tht the iguana-vm.vmdk is &quot;shared&quot;
between the two VMs, BUT NEVER WHEN BOTH VMS are powered on at the same time.
Essentially we start up the development VM with the iguana-vm.vmdk connected,
we build our target image, and load it onto this disk, urrently via the
command:<br>
<br>
dd if=.../build/image/c.img of=/dev/sdb bs=1024<br>
<br>
Thic creates a bootable image that the iguana-vm will boot from when it is
powered on.&nbsp; This disk is ALWAYS connected to the iguana-vm Virtual
Machine, but only connected to the oklinux VM when you are loading a compiled
image onto this disk to be used y the iguana-vm.&nbsp; <br>
<br>
You can build the basic OKL4 with OKLinux by executing the script<br>
./buildme<br>
<br>
in the okl4_2.1 directory.&nbsp; It will build everything in okl4_2.1/build and
start up the image in the qemu emulator.<br>
To break out of the qemu emulator, perform cntl-a-x<br>
<br>
You can do some basic testing via Qemu, when you are ready, <br>
cd build/images<br>
dd if=c.img of=/dev/sdb bs=1024<br>
<br>
when this completes, shutdown the development machine. When&nbsp; it's powered
off, edit settings and remove the iguana-vm.vmdk (100MB) from the oklinux VM
definition.&nbsp; Once you have done that, you can power on the oklinux VM and
when it is completely booted up, open Gtkterm, this is connected to /dev/ttys0
of the development machine, the other side is (virtually) connected to
/dev/ttys0 of the target VM, iguana-vm.&nbsp; Now, if your using Vmware
workstation, go to File-&gt;Open-&gt; browse to
oklinux-&gt;iguana-vm-&gt;iguana-vm.vmx<br>
checkto make sure the 100MB iguana-vm disk is connected. Power on this VM and
then switch back to the oklinux console, you should see output spewing out of
the Gtkterm window and, if your lucky, a # prompt&nbsp; when the spew stops ;)<br>
<br>
<br>
How to change and remake the kernel for OKLinux<br>
------------------------------------------------<br>
<br>
make sure to add ncurses support to your version of ubuntu<br>
<br>
<br>
cd linux/kernel-2.6.23-v2/<br>
then copy l4linux_config_&lt;arch&gt; to .config<br>
make menuconfig ARCH=l4 SYSTEM=i386<br>
select your desired configuration with the curses gui<br>
then copy .config to l4_linux_config_ia32_whatever<br>
make mrproper<br>
<br>
And add some code to tools/machines.py for a new target using your new<br>
linux configuration file.<br>
<br>
To enable DMA so that the VMware virtual ethernet device can perform DMA...<br>
commented out the BUG() assert on line 149 in
.../include/asm-l4/i386/dma-mapping.h <br>
<br>
&nbsp;<o:p></o:p></p>

</div>

</div>

</body>

</html>