Difference between revisions of "AXY:Virtual Box MIB"

From SoftMC-Wiki
Jump to: navigation, search
m (Installation)
m (Installation)
Line 71: Line 71:
  
 
[[File:vb14.png|picture| Network ]]
 
[[File:vb14.png|picture| Network ]]
 +
 
<big>Serial Configuration. you may want to have serial ( rs232 ), as mc needs it from time to time. Click on "Serial Ports" and have "Port Numner" equal COM1 </big>
 
<big>Serial Configuration. you may want to have serial ( rs232 ), as mc needs it from time to time. Click on "Serial Ports" and have "Port Numner" equal COM1 </big>
  
Line 76: Line 77:
  
 
<big>Shared folder. It is possible sometimes to share a folder between the host to the target. you may choose any directory in the host as depicted bellow </big>
 
<big>Shared folder. It is possible sometimes to share a folder between the host to the target. you may choose any directory in the host as depicted bellow </big>
 +
 
[[File:vb18.png|picture| shared disk ]]
 
[[File:vb18.png|picture| shared disk ]]
 +
 +
<big>We are done with the configuration. Click on Start . screen will be black for few seconds, and then a count down will appear. Do no do anything.</big>
  
 
[[File:vb16.png|picture| Disk ]]
 
[[File:vb16.png|picture| Disk ]]
t
 
<big>We are done with the configuration. Click on Start . screen will be black for few seconds, and then a count down will appear. Do no do anything.</big>
 
[[File:vb17.png|picture| boot ]]
 
  
 
<big>you are booting into the boot loader. There is a menu, do not do anything. ubunto is booting the preempt rt kernel </big>
 
<big>you are booting into the boot loader. There is a menu, do not do anything. ubunto is booting the preempt rt kernel </big>
  
[[File:vb19.png|picture| grub ]]
+
[[File:vb17.png|picture| boot ]]
  
 +
<big>Ok. ubunto loaded. In the first boot the mouse may be lost of fuzzy. please reboot again .  Once reboot is complete, click on the Terminal icon. Let us examine what is
 +
this machine.</big> 
  
mouse lost in first boot.
+
[[File:vb19.png|picture| Xwindows ]]
  
 
=== Virtual MIB as a Codeasys ===
 
=== Virtual MIB as a Codeasys ===

Revision as of 09:31, 17 October 2012

This document describe how to install and build a MIB in a virtual box.

Abstract

There are several usage for the Virtual Box MIB.

  • Virtual MIB as a build machine
  • Virtual MIB as a Codeasys
  • Virtual MIB as mini build machine

Virtual MIB as a build machine

A machine running Ubunto. It provides a full working environment, such as eclipse,gitk, 3s and so on. This machine comes with two kernels, preempt rt and native ubunto kernel. The native kernel comes with ubunto installation, the preempt rt kernel provides a coherent real time operating system to run mc. A cohernet real time operating system here means a system that prioritize threads as mc expects, that is, by their priority.


Installation

First download Virtual Box for windows ( ie . if you are running windows )

Grab the virtual disks from //domainaxy/IL/MC/Linux/Ubunto-Lite-Preempt-RT. They are about 4GB combined so it would probably take some time to download. Directory

Now please follow these steps to create a virtual machine. Launch the virtual box.


vbox

Click on the New button, the bellow window will appear. Enter the word "Ubunto" and press Next.

ubunto

Next, Choose amount of RAM memory. I decided to use 1GB. The do not choose too much as it will slow the host machine.

RAM

Choose the boot disk. Choose vbox-amcs-v1-disk1 and then "Open"

Disk

You should have a bootable image ready

Disk

We need to configure it a little, so choose Settings for the ubunto machine Disk

Click "Storage". we will add an additional disk. on the sata controller, click on "Add Hard Disk " icon

Disk

The bellow window pops


Disk

choose vbox-amcs-v1-disk2 as a secondary disk

Disk

This how this operation ends

disk2

Network configration. we configure the virtual box to become part of the LAN. Click on "Network -->" "attached to" and choose Bridged Adapter.

Network

Serial Configuration. you may want to have serial ( rs232 ), as mc needs it from time to time. Click on "Serial Ports" and have "Port Numner" equal COM1

Serial

Shared folder. It is possible sometimes to share a folder between the host to the target. you may choose any directory in the host as depicted bellow

shared disk

We are done with the configuration. Click on Start . screen will be black for few seconds, and then a count down will appear. Do no do anything.

Disk

you are booting into the boot loader. There is a menu, do not do anything. ubunto is booting the preempt rt kernel

boot

Ok. ubunto loaded. In the first boot the mouse may be lost of fuzzy. please reboot again . Once reboot is complete, click on the Terminal icon. Let us examine what is this machine.

Xwindows

Virtual MIB as a Codeasys

Virtual MIB as mini build machine

Virtual MIB, binary only

Getting the Virtual MIB

Execution of mc simulation mode - binary only

First, to install mc , please grab //domainaxy/IL/MC/Linux/mc_sim/mc_sim.tar.gz , copy it into the virtual machine and into a directory with enough space ( ie, not / ) and acts as follows.

open the ball

$ gunzip mc_sim.tar.gz

$ tar xvf mc_strim.tar


$ cd mc_sim

run mc as follows: $ source run_sim.sh