Changes between Version 2 and Version 3 of Developer/VirtualMachines/VirtualBox


Ignore:
Timestamp:
Jun 10, 2010, 1:18:59 AM (9 years ago)
Author:
Cdcs
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Developer/VirtualMachines/VirtualBox

    v2 v3  
    3434}}}
    3535VirtualBox installations can become quite tricky because a kernel module needs to be installed, so please refer to the VirtualBox [http://dlc.sun.com.edgesuite.net/virtualbox/3.2.4/UserManual.pdf documentation] if you have any problem.
     36= Get opentftp =
     37
     38
     39Opentftp is a tftp(Trivial File Transfer Protocol) server that will enable us to boot a file from the host computer(the RTEMS application) on the virtual machine.
     40
     41You can get opentftp from [http://sourceforge.net/projects/tftp-server/files/tftp%20server%20multithreaded/opentftpmtV1.62.tar.gz/download here]. The opentftp server comes already compiled, so you only need to run it. The README explains various options for the server, including how to run it as a linux service.
     42
     43We need to change the directory that is mapped in the server to the directory where our rtems applications is( In my case /home/cdcs/testbed-build/). You can do this be opening the opentftp.ini file that stores the server options. In this file find the "[HOME]" marker and place there the path to your application. This is how my file looked:
     44
     45{{{
     46[HOME]
     47#You should specify home directory(s) here
     48#The home directory can be specified
     49#in two different ways, with alias or
     50#bare names without aliases. Using alias you
     51#can specify upto 8 directories like
     52#routers=c:/RouterImages/Images
     53#without aliases, only one directory can
     54#be specified, which will become root
     55#directory for tftp.
     56#mixup of bare names and aliases not allowed
     57#default will be home directory of user
     58/home/cdcs/testbed-build/
     59}}}
     60
     61This option will map the root of the server to "/home/cdcs/testbed-build/". This means that
     62when you access "tftp://127.0.0.1/test.exe" you are accessing "/home/cdcs/testbed-build/test.exe". You can also specify up to 8 aliases, eg: "myhome=/home/cdcs" will map "tftp://127.0.0.1/myhome/test.exe" to "/home/cdcs/test.exe".
     63
     64You also need to change the "username=" option in "[TFTP-OPTIONS]" to your username. eg:"username=cdcs"
     65
     66Once you have made these changes you are ready to run the server:
     67
     68{{{
     69./opentftp -v -i opentftp.ini
     70}}}
     71
     72For me this command produces the following output:
     73
     74{{{
     75[root@cdcs opentftp]# ./opentftpd -v -i opentftpd.ini
     76TFTP Server MultiThreaded Version 1.62 Unix Built 1621
     77
     78starting TFTP...
     79username: cdcs
     80alias / is mapped to /home/cdcs/testbed-build/
     81permitted clients: all
     82server port range: all
     83max blksize: 65464
     84default blksize: 512
     85default timeout: 3
     86file read allowed: Yes
     87file create allowed: No
     88file overwrite allowed: No
     89thread pool size: 1
     90listening on: 0.0.0.0:69
     91}}}