LAN with VXWorks

xiaoxiao2021-03-06  61

Modify the Hosts file

In the file

/ etc / hosts

Add as follows:

10.10.0.150 xmdong

10.10.0.151 Target

FTP server

Tornado comes with an FTP server software WFTPD. When Host is a Linux platform, Target is connected through the network.

You can only download the VxWorks image file from Host with the FTP protocol.

Open FTP Server.

Select the Security> UserS / Rights ... menu, in the new user dialog:

User name: Target,

Password: target,

Home Directory: Here I am set to bin, you can also set it to other paths to remember your settings. DE

The VxWorks file path defined in Fault_Boot_Line is the relative path of HOME as the root directory. It is recommended to

The xWorks file is copied to the home directory, so the VxWorks file is the shortest path.

In addition, you can select those options to observe the FTP process through the Logging> Log Options ... menu.

Problem.

After configuring it, start the FTP Server.

3.4 Configuring BSP

Configuring the BSP work is done by modifying the config.h file. This step is more important.

Open the bspname / config.h file.

On the 108 line of the file, there will be a default statement for different CPUs, which describes the boot parameters.

The Boot ROM floppy disk created after defining is defined to direct the Target machine.

According to our configuration, here should be modified to:

#elif (CPU == i80486)

#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 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 Target Network Interface Address

User (u) Target FTP User Name

Password (PW) Target FTP password

Target Name (TN) Target Target Name

For a detailed description of the boot parameters, please refer to Tornado User's Guide 2.5.4 Description of

Boot parameters.

The default in the BSP contains support for the Intel Ether Express Pro100 network card, and we use 3C905B network

Card, therefore to remove the original definition, add support for our network card:

#undef include_fei

#DEFINE INCLUDE_EL_3C90X_END / * for Our 3com 3c905b Nic * /

New project

Then create a new project in Tornado. Select "Create A Bootable VxWorks Image", OK.

N Step 1

Name: Project2

Location: / Tornado / Proj / Project2 (later we mention Project) Workspace: add to current workspace

N Step 2

Would you like to base your project on: a BSP, PC486 (that is, we say bspname)

N Step 3

Finish

Build Engineering

In the Workspace window of the Tornado environment, select the newly created project Project, right-click the menu from the mouse button

Execute the Rebuild All (VxWorks).

The Build Output window shows the process of Build. After success, build the Project / Default / VxWorks image

file.

Copy the file Project / Default / VxWorks to the bin directory. Because in the process of configuring the FTP server in front,

We configure the bin directory as the Home directory of the FTP user Target. If you configure the Project / Default directory to

You can save this copy operation.

Boot ROM

Select Build> Build Boot Rom in the Tornado menu ...

In the pop-up dialog:

SELECT A BSP: PC486

Select An Image To Build: Bootrom_Uncmp

OK.

The Build Output window shows the process of Build. If you don't accident, BSPNAME directory will generate bootrom

_Uncmp file.

It is also possible here to choose Bootrom, and the other has not tried it.

3.8 Production Boot Disk

Copy the file BSPNAME / BOOTROM_UNCMP generated by the previous step to the bin directory.

Open a Konsole window.

Enter bin directory:

$ cd tornado / host / x86-linuxbin

Execute the MKBoot program:

Mkboot / dev / sda bootrom_uncmp

转载请注明原文地址:https://www.9cbs.com/read-113152.html

New Post(0)