VMware Virtual Machine vxwoks5.5 entire process

Source: Internet
Author: User
Tags gz file ftp transfer

VMware Virtual Machine vxwoks5.5 entire process

2011-06-22 10:06:51| Category: VMware related | Report | Font size Subscription

Recently in the study of VxWorks, to run on the VMware virtual Pentium processor on the VxWorks, so on the reference online Daniel's documents, but in some key place to pass, so extensive search information, cost a lot of effort finally put VxWorks entreat to the virtual machine. In order to avoid the first entry into the VxWorks circle of colleagues to take the same detour, decided to pay attention to all the places are written down, by the way also a memorial.

The overall process is divided into the following steps:

1, compile the network card driver.

2, modify some files.

3, compile the bootrom and put it in the boot disk.

4, compile VxWorks image.

5. Use FTP to upload the VxWorks image to the virtual machine.

6. Configure target server to debug the destination board application on the host.

My tornado installed directory is: E:\tornado2.2\ ... (I did not put the number 2.2 on the first time I loaded tornado2.2, the lesson is: Compile the Bootram when the time pass.) )

The steps are as follows:

Put tornado, this is needless to say.

Download a ramdisknt installed, open can set the floppy drive, save, restart the machine, the computer has a floppy drive (a:).

First, compile the network card driver

Go to http://www.amd.com/us-en/connectivitysolutions/productinformation/0,,50_2330_6629_2452^2454^2488,00. HTML Web Download driver: x86 END Driver for VxWorks. Double-click the downloaded file, keep the next step until finished, put C:\pcnet\vxworks_ End directory to extract the ln97xEnd.tar1.gz file, get the Ln97xend.tar file, then unzip, get the target folder, put the target folder in the E:\tornado2.2 directory. When prompted to overwrite, click OK.

Click on the Windows System Start menu and enter "cmd" in "Run" to open the console program.

Input: E:\tornado2.2\host\x86-win32\bin\ torvars.bat;

Input: cd/d E:\tornado2.2\target\src\drv\end directory, run:

Make Cpu=pentium Tool=gnu LN97XEND.O (This step will show repeated hints, do not care about it, it will end itself.) Be patient, otherwise the driver compiles incompletely.)

This step will generate the LN97XEND.O file in the E:\tornado2.2\target\src\drv\end directory.

Enter: CD E:\tornado2.2\target\lib\pentium\PENTIUM\common directory and copy the files generated in the previous step ln97xend.o to this directory. Back up this directory.

File libdrv.a; Run command arpentium-d libdrv.a ln97xend.o, delete libdrv.a module, and then Run command: Ln97xend arpentium-ra IOLICOMEND.O LN97XEND.O.

Ii. Modification of documents

Open file: E:tornado2.2\target\config\pcpentium\config.h file.

Locate the/*default boot line */That row, modify the preprocessing condition CPU = = Pentium Branch is defined as follows: "Lnpci (0,0) cherish:d:\\vxworks h=192.168.100.145 e= 192.168.100.14 u=target pw=vxworks Tn=target "(This is what I set up)

LNPCI (0,0) Specifies the use of the No. 0 Nic and the No. 0 processor

Cherish is the name of my computer.

D:\\vxworks is the path that stores the operating system image, which is also mentioned when it is transmitted by FTP.

The IP behind h=192.168.100.145 H comes from the host network card.

e=192.168.100.14 This IP is for the target board, and the above IP to be in the same network segment, and it can not be the host's local area network host IP conflicts.

U=target that is: User name, after the FTP transfer is also used. can be set casually

Pw=vxworks and user name corresponding to the password, after the FTP transfer is also used. can be set casually

Tn=target is the target board name. can be set casually

Find the Network Driver Options section of the text, which is about the network card driver macro definition. Inside these macros, just make sure that Include_end macros and include_ln_97x_end are defined states, and other macros are undefined.

Then find the Include_pc_console text and change the macro to a defined state.

This file has been modified and saved.

Open file: E:\tornado2.2\target\config\pcPentium\sysLn97xEnd.c. Locate the memory-mapped IO base text,

Modify the previous parameter from pcirsrc[endunit].bar[1] to none. Save.

Third, compile the bootrom and put it in the boot disk.

Open the Tornado development tool and select the build Boot ROM under the Build menu.

Select Pcpentium in the BSP list and select Bootrom and GNU in the image to build list, respectively. When the selection is complete, click the OK button to start the bootloader compilation. Compile

The resulting file bootrom will be saved in the E:\tornado2.2\target\config\pcPentium directory.

Input CD E:\tornado2.2\target\config\pcPentium

Enter Mkboot A:bootrom. In this way the floppy drive (a:) has the code to start the virtual machine.

Four, compile VxWorks image.

Create a "bootable VxWorks image" project;

Select the VxWorks component you want. In this example we have selected two important components: Telnet server and Target shell. The former allows us to log into the VxWorks operating system via the Telnet protocol, while the latter allows us to control the VxWorks system via the command line. Compile the operating system after the selection is complete. Put the compiled operating system image on the D:\ (This is determined by the default boot line parameter).

V. Use FTP to upload the VxWorks image to the virtual machine

Run VMware to build a virtual machine. Most use the default settings, only select "Other" when selecting the operating system. Ethernet connection mode Select the default bridge.

Open the tornado2.2 FTP server and select the "Users/rights" submenu under the "Security" menu.

First, delete the target username: do this: Click the User drop-down list box, and then click Target to delete. (This is determined by default boot line parameters)

Do this: Click "New", enter the user name target (this is the default boot line parameters determined), password VxWorks. Path Write D:\ (which is also determined by default boot line). then click Done. This is done by telling the host that the virtual machine will communicate with the target user name and host.

To facilitate debugging, we also open the log function of the FTP server. Select the "Logging Options" submenu under the "Logging" menu and the following dialog box appears, in addition to

"Winsock Calls", leave all other options turned on.

Keep the FTP server window open (so that FTP servers are running).

Start the virtual machine, the virtual machine can start from a disk, wait 7 seconds, the VM with FTP from the host load VxWorks operating system. After loading, you can see some tasks by entering the I command in the VxWorks operating system environment of the virtual machine.

Six. Configure target server to debug the destination board application on the host.

Before you configure target server, set the Ethernet property of the VMware software to host-only. Otherwise, target server is not connected (I am stuck here for a half day).

After changing the properties, you can ping the target board IP in the console window of the console (this is 192.168.100.14, as determined by the default boot line parameter). If you can ping, the host and virtual machines are connected.

Open the Tornado development environment, select the Tools->target server->configure menu,

Fill in the "Description" with a name, such as "ABCD", select "Wdbrpc" in "Available back" and fill in the target machine in the IP address box below.

IP address, here is "192.168.100.14." (default_boot_line parameter); change the Target Server Properties drop-down box to the Core File

and Symbols ", and select the full path of the image in" File ", here is" D:\vxWorks "(as determined by the default BOOT line parameter).

Click the "Launch" button to start the target server.

Go back to the Tornado development environment and select [email=] [email protected]_host_name] from the list of Target server dropdown boxes on the toolbar [email protected]_host_name[/email ]”。 At this point you will find some of the tools

Tool buttons that were previously in the disabled state are now active.

Now you can compile an application, create a new application project, and toolchain the PENTIUMGNU. Add C source File

such as: #include "vxworks.h"

#include "TimexLib.h"

#include "stdio.h"

void Test ()

{

int i=0;

while (i<100)

{

i++;

printf ("%d\n", I);

}

printf ("%d\n", I);

}

Compile, download. Then open the shell under tornado2.2 and run test. You can see the results on the virtual machine and debug.

Reproduced in: http://xingpenghe.blog.163.com/blog/static/4320699820102280181838/

VMware Virtual Machine vxwoks5.5 entire process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.