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


Ignore:
Timestamp:
Jun 10, 2010, 2:29:26 AM (9 years ago)
Author:
Cdcs
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Developer/VirtualMachines/VirtualBox

    v3 v4  
    7070}}}
    7171
    72 For me this command produces the following output:
     72This command should produce a similar output to the following one:
    7373
    7474{{{
     
    9090listening on: 0.0.0.0:69
    9191}}}
     92
     93Now that we have the tftp server up and running let's go to the next step...
     94= Get the bootloader =
     95
     96
     97Now we must get the bootloader that will fetch our application remotely and boot it. For this purpose
     98we will use the etherboot bootloader.
     99
     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.
     101
     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".
     103= The virtual machine =
     104
     105
     106Now we must configure a virtual machine for RTEMS use.
     107
     108Start VirtualBox and choose "New".
     109
     110image
     111 
     112Give a name to the virtual machine and select "Other"/"Other(Unknown)" in the first page of the virtual machine configuration.
     113
     114In the second page you have to select the available memory for RTEMS(eg:128Mb).
     115
     116The 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.
     117
     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.
     119
     120Select "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.
     121
     122This is how it should look:
     123
     124image1
     125image2
     126
     127In the "Network" options the "Adapter-1" shall be attached to "NAT".
     128
     129Now we are ready to the next step.= First boot =
     130
     131
     132You 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.
     133
     134In 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.
     135
     136Once in the command line issue:
     137
     138{{{
     139dhcp net0
     140}}}
     141
     142{{{
     143config
     144}}}
     145
     146Then a set of network parameters will be printed. Write Down the "gateway" parameter(eg:10.0.2.2)
     147
     148Now it is the time to test if everything is as expected... Issue the following commands:
     149
     150{{{
     151kernel tftp://10.0.2.2/test.exe
     152}}}
     153
     154{{{
     155boot
     156}}}
     157
     158Where 10.0.2.2 is the gateway parameter you wrote down earlier and test.exe is the name of your application. If everything is running fine the RTEMS applications should boot.