VxWorks on LAN

Source: Internet
Author: User
Modify the hosts file
In the file

/Etc/hosts

Add the following lines:
10.10.0.150 xmdong
10.10.0.151 target
FTP Server
Tornado comes with an FTP server software WFTPD. When the HOST is a linux platform, the TARGET is connected through the network.

You can only download the vxWorks image file from the HOST over FTP.

Open the FTP Server.

Select Security> Users/Rights... Menu, In the Add new user dialog box:

User Name: target,

Password: target,

Home Directory: Here I set it to BIN. You can also set it to another path and remember your settings. After DE

The vxWorks file path defined in FAULT_BOOT_LINE is the relative path with HOME as the root directory. We recommend that you set

Copy the xWorks file to the HOME Directory, so that the path of the vxWorks file is the shortest.

In addition, you can use Logging> Log Options... Menu, select the optional items to observe the FTP Process

.

After configuration, start the FTP Server.

3.4 configure BSP

You can modify the config. h file to configure BSP. This step is critical.

Open the BSPNAME/config. h file.

There will be a DEFAULT_BOOT_LINE Definition Statement for different CPUs around 108 lines of the file, which describes the boot parameters

After the Boot ROM disk is defined correctly, the TARGET machine can be properly guided.

According to our configuration, here we should modify it:

# Elif (CPU = i80133)

# Define DEFAULT_BOOT_LINE

"ElPci (0, 0) xmdong: vxWorks

H = 10.10.0.150 e = 10.10.0.151 u = target pw = target tn = target"

Parameter value description

Boot device elPci 3COM 3C905B Nic

Processor number (0, 0)

Host name xmdong Host name

File name vxWorks VxWorks Image File path name

Host inet (h) 10.10.0.150 Host network interface address

Inet on Ethernet (e) 10.10.0.151 network interface address of the target machine

User (u) target FTP User Name

Password (pw) target FTP Password

Target name (tn) target machine name

For detailed descriptions of Bootstrap parameters, see Tornado User's Guide 2.5.4 Description

Boot Parameters.

BSP includes support for Intel Ether Express PRO100 Nic by default, while we use 3C905B Network

Card, so we need to remove the original definition and add support for our NIC:

# UNDEF include_fei

# Define include_el_3c90x_end/* for our 3Com 3c905b Nic */

New project

Create a new project in tornado. Select "Create a bootable VxWorks image", OK.
N step 1
Name: project2
Location:/tornado/proj/project2 (this path will be mentioned later)
Workspace: add to current Workspace
N step 2
Wocould you like to base your project on: a BSP, pcloud (that is, what we call bspname)
N step 3
Finish
Build Project

In the workspace window of the tornado environment, select the project you created earlier and right-click the project to bring up the menu.

Run rebuild all (VxWorks ).

The build output window shows the build process. Generate the project/default/VxWorks image after successful execution.

File.

Copy the project/default/VxWorks file to the bin directory. Because in the process of configuring the FTP server,

We configure the bin directory as the Home Directory of the FTP user target. If you configure the project/default directory
HOME Directory to save the copy operation.
Boot ROM

In the Tornado menu, select Build> Build Boot ROM...

In the displayed dialog box:

Select a BSP: pc486

Select an Image to Build: bootrom_uncmp

OK.

The Build Output window shows the build process. Bootrom is generated under the BSPNAME directory.

_ Uncmp file.

Here, you can also select bootrom. You have not tried other products.

3.8 create boot disk

Copy the BSPNAME/bootrom_uncmp file generated in the previous step to the BIN directory.
Open a konsole window.

Enter the BIN directory:

$ Cd tornado/host/x86-linuxbin

Run the mkboot program:

Mkboot/dev/sda bootrom_uncmp

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.