Changes between Version 6 and Version 7 of Developer/VirtualMachines/VirtualBox


Ignore:
Timestamp:
Jun 10, 2010, 4:07:16 PM (9 years ago)
Author:
Cdcs
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Developer/VirtualMachines/VirtualBox

    v6 v7  
    4141You 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.
    4242
    43 We 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:
     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:'''
    4444
    4545{{{
     
    6262when 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".
    6363
    64 You also need to change the "username=" option in "[TFTP-OPTIONS]" to your username. eg:"username=cdcs"
     64'''You also need to change the "username=" option in "[TFTP-OPTIONS]" to your username. eg:"username=cdcs"'''
    6565
    6666Once you have made these changes you are ready to run the server:
     
    9898we will use the etherboot bootloader.
    9999
    100 A floppy image with the bootloader can be configured and obtained online. To do so you need to go [http://rom-o-matic.net/ here] and select the most recent production release of gPXE.
     100A floppy image with the bootloader can be configured and obtained online. To do so '''you need to go [http://rom-o-matic.net/ here] and select the most recent production release of gPXE'''.
    101101
    102 This will lead to a configuration page with several bootloader options. For the time being just get sure that the first option(Choose an output format:) is in "Floppy bootable image" and press "Get Image".
     102This will lead to a configuration page with several bootloader options. '''For the time being just get sure that the first option(Choose an output format:) is in "Floppy bootable image" and press "Get Image".'''
    103103= The virtual machine =
    104104
     
    116116The third configuration page will allow you to create or select a virtual disk. If you want a virtual harddisk create one and select its size. Creating a Virtual disk is not mandatory, you can still boot RTEMS without having one.
    117117
    118 Now that we have concluded creating the virtual machine, we will need to change some options. Select the virtual machine in VirtualBox and press "Settings".The virtual machine settings page will open. This page allows to add disks, change allocated memory, change number of processors among other options.
     118Now that we have concluded creating the virtual machine, we will need to change some options. '''Select the virtual machine in VirtualBox and press "Settings"'''.The virtual machine settings page will open. This page allows to add disks, change allocated memory, change number of processors among other options.
    119119
    120 Select "Storage" on the right panel and then press "Empty" that is underneath the "Floppy Controller". Now press the Browse button that is in front of "Floppy Device" and a new window will open. Press "Add", then change the "Filter:" option in the browse windows from "Image Files" to "All files" and select the .dsk floppy image file that you downloaded earlier.
     120'''Select "Storage" on the right panel and then press "Empty" that is underneath the "Floppy Controller". Now press the Browse button that is in front of "Floppy Device" and a new window will open. Press "Add", then change the "Filter:" option in the browse windows from "Image Files" to "All files" and select the .dsk floppy image file that you downloaded earlier.'''
    121121
    122122This is how it should look:
     
    125125image2
    126126
    127 In the "Network" options the "Adapter-1" shall be attached to "NAT".
     127'''In the "Network" options the "Adapter-1" shall be attached to "NAT".'''
    128128
    129129Now we are ready to the next step.= First boot =
     
    132132You shall now have the virtual machine configured with the bootloader floppy image and the opentftp server configured and running with the path to your application.
    133133
    134 In VirtualBox press Start to initiate the virtual machine. The bootloader should start to run, and you have to press "Ctrl+B" to start the gPXE command line.
     134'''In VirtualBox press Start to initiate the virtual machine. The bootloader should start to run, and you have to press "Ctrl+B" to start the gPXE command line.'''
    135135
    136136Once in the command line issue:
     
    159159
    160160If it fails with a "permision denied" please chown and chmod your executable. If it fails with "not found" or similar please check your tftp server configuration(check your server root).
    161 = Get the bootloader Part II =
     161= Automate the boot loader =
    162162
    163163
    164164Now we will automate the booting process.
    165165
    166 First go back to the bootloader configuration [http://rom-o-matic.net/ page], but this time select the "Customize" option. If you know what you are doing you can deselect several drivers and protocols, if not let it be.
     166'''First go back to the bootloader configuration [http://rom-o-matic.net/ page]''', but this time select the "Customize" option. If you know what you are doing you can deselect several drivers and protocols, if not let it be.
    167167
    168 Now go to the "Embedded Script:" area in the bottom of the page and add this:
     168'''Now go to the "Embedded Script:" area in the bottom of the page and add this:'''
    169169
    170170{{{