Professional Documents
Culture Documents
Installing VMware:
The first step is to install VMware workstation to install a virtual machine on your PC.
Go to the Tools folder G:\Robonova CD\Tools and then G:\Robonova CD\Tools\VMwarePlayer to get
the installation file.
Install the file and run VMware for non-professional use and it will not require any license.
You can also use the latest edition of VMware available on the internet.
The GUI will look like this on successful installation.
Here, I have already installed a virtual machine Ubuntu 64 bit. You can install multiple virtual machines
using this workstation.
-1-
CSE5037 Robotics-II
Installing Ubuntu:
Hanback has already given a setup of custom made Ubuntu 10 with preinstalled packages required for code
compilations. The setup is available at G:\Robonova CD\images\VM_Ubuntu .
Double click on VM_Ubuntu.exe and run the program.
You can change the installation location and then press the first button which was already highlighted.
The setup will complete the installation in a few minutes and close. Keep the VMware workstation closed
while installing Ubuntu. This step has installed a virtual machine having Ubuntu 10 and all the packages
on our given location.
Now, open VMware workstation and click on Open a virtual machine. I had installed my virtual machine
to the location C:\Users\6\Documents\Virtual Machines and now you should browse to
C:\Users\6\Documents\Virtual Machines\VM_Ubuntu and select Ubuntu.vmx file to open the virtual
machine. The VMware workstation will have the following look now.
-2-
CSE5037 Robotics-II
Then you should click on Play virtual machine and the OS will start loading. While loading, if asked for
Click on I copied it. On successful booting, you’ll find the login screen.
We suggest you to select other user and login with the following credentials:
User name: root
Password: hanback
Even if you use VM_Ubuntu, then also the password is hanback.
-3-
CSE5037 Robotics-II
And copy the folder to the Desktop location of the virtual machine.
-4-
CSE5037 Robotics-II
Now, open terminal and browse to the folder 5.2
The folder contains already compiled code with object file Hello already created.
Before we can compile our own code, we need to setup the cross compiler.
Then we need to edit the .bash_profile file of our profile to set the PATH.
Type command vi ~/.bash_profile
And then in the file write
export PATH=/usr/local/arm/arm-2009q3/bin:$PATH
and save and exit the file.
Then to set the PATH in the current session type:
source ~/.bash_profile
-5-
CSE5037 Robotics-II
Now we can run the code with the command ./Hello
These files will not run in Ubuntu here and need to be transferred to the Robonova robot where these can
be executed.
Now, first of all, we need to configure the serial port communication of minicom with command
sudo minicom –s
-6-
CSE5037 Robotics-II
Select Serial port setup and make sure that you have the following configurations.
Now exit the configuration and you’ll be connected to the Robonova robot. If the screen doesn’t show
anything, then restart the robot. The Robot will ask for the login credential and enter root when asked for.
We can now transfer our compiled executable files to Robonova and run those using this terminal. I have
created a directory Testcodes to transfer such codes and run them.
To transfer a file from VM_Ubuntu 10 to Robonova, use the command lrz
After that press ctrl+a and then s (press z for all the options). Then select zmodem option and press enter.
-7-
CSE5037 Robotics-II
Using space and enter buttons select the file to be transferred and press enter to transfer. Remember, that if
your current folder already has the same file name, then it will not transfer. Therefor you should first delete
the existing file and then transfer.
The folder contains the uploaded file now. We can see that using the command ls. And run the executable
file with ./Hello
This way we can compile other programs in VM_Ubuntu using make command and then bring them to
Robonova using lrz and run on Robonova.
-8-