VxWorks environment Configuration

Source: Internet
Author: User

Reprinted please mark the Source: http://blog.csdn.net/zgh1988/article/details/7994538

1. Preparations

(1) Vmware

(2) a pc with Windows XP or Windows 7 installed

(3) Tornado 2.2 For pcpentium CD1 and Tornado 2.2for pcpentium CD2 are tornado installation programs, BSP components, and windml installation programs, respectively.

(4) ramdisknt is used as a virtual floppy disk tool on Windows NT.

(5) due to Tornado built-in PC-NET NIC Driver problems, so need to download amd PC-NET Nic VxWorks System driver, ln97xend. C and ln97xend. h.

2. Install tornado

(1) install tornado 2.2 For pcpentium CD1

Installation Options:

Tornado registry:

Backward compatibility:

License Management Configuration:

License Management installation options:

Registration:

Copy the license. dat in the crack directory to the C: \ flexlm directory. If this directory is not available, create a new one. Set the following environment variable: lm_license_file = c: \ flexlm \ license. dat.

(2) install tornado 2.2 For pcpentium CD2

Install the SDK.

3. Compile the NIC Driver

(1) The amd NIC Driver we downloaded will

Replace ln97xend. C with D: \ tornado2.2 \ target \ SRC \ DRV \ end \ ln97xend. c

Replace ln97xend. h with D: \ tornado2.2 \ target \ H \ DRV \ end \ ln97xend. h.

(2) open a console window and run the batch processing program D: \ tornado2.2 \ host \ x86-win32 \ bin \ torvars. bat

(3) locate D: \ tornado2.2 \ target \ SRC \ DRV \ end again.

(4) run the command: Make CPU = Pentium tool = GNU ln97xend. o

If the following error occurs:

Solve the problem as follows:

Re-enter D: \ tornado2.2 \ host \ x86-win32 \ bin

Run the command CP ccpentium.exe cc.exe

Then return D: \ tornado2.2 \ target \ SRC \ DRV \ end again to execute the above command. Some warnings will occur, but ignore it directly.

(5) Cut the generated ln97xend. O to D: \ tornado2.2 \ target \ Lib \ Pentium \ common.

Then, locate the console to this directory.

Run the following command:Arpentium-D libdrv. A ln97xend. oDelete the original ln97xend module of libdrv.,

Then run the following command:Arpentium-ra iolicomend. O libdrv. A ln97xend. oAdd the new module we just created.

4. modify the configuration file

(1) first, locate the Directory D: \ tornado2.2 \ target \ config \ pcpentium and open the config. h file under the directory;

First, find the place where default_boot_line macro is defined. modify the definition of the pre-processing condition CPU = Pentium branch as follows:

# Definedefault_boot_line \

"Lnpci (0, 0) your_host_name: D: \ vxworksh = 192.168.80.169 E = 192.168.80.254 u = target PW = VxWorks Tn = target"

Where:

Lnpci (0th) specifies that 0th NICs and processors are used. The lnpci identifier varies depending on the driver used, but lnpci can be used here;

Your_host_name specifies the name of your host. You can use the host name of windows. If you have not re-created a user, it is administrator;

D: \ VxWorks specifies the complete download path of the VxWorks image;

H = 192.168.0.16 is the IP address of the host, which is the IP address of the system you are currently using;

E = 192.168.0.25 is the IP address of the target machine, that is, the IP address of the VxWorks operating system in the future. You only need to specify an IP address that does not conflict with each other, assume that your IP address and Host IP address are in the same network segment;

U = target specifies the FTP server user name, which is used to download the VxWorks image.

PW = 123 is the password of the FTP server user name, that is, the password of the target.

Tn = target specifies the name of the target machine. You can specify the name as needed;

(2) Next we need to specify what NIC Driver to use. First, find the section "Network Driver options ".

Text, you can see that a series of macro definitions about the NIC driver are defined after this annotation. Ensure that the include_end and include_ln_97x_end macros are in the defined State (define), and other macros are in the UNDEF state );

By default, the Vxworks system does not accept input from external input devices (such as keyboards) or output data to external output devices (such as monitors. To facilitate debugging, we must change its default status. Find and locate the macro include_pc_console, and make sure it is in the defined State (define;

(3) modify the config. h file

# Change definesys_warm_type sys_warm_fd

# Definesys_warm_type sys_warm_bios

If this parameter is not modified, an error occurs: 0x2dd0d4 (tboot): sysnvramget: Open failed.

So far, the configuration. h file has been modified, and the modification is saved.

(4) then open the sysln97xend. c file in the same directory.

The purpose of this step is to make the NIC work properly. First, locate the text "memory-mapped Io base" and change the previous parameter from pcirsrc [endunit]. BAR [1] to none. Do not forget to save it.

1. Compile the boot program

Build --> build boot Rom

Bootrom will be saved in the D: \ tornado2.2 \ target \ config \ pcpentium directory

6. Create and generate a bootrom, and then create a VxWorks image.

(1) create a "bootable VxWorks image" Project

(2) Select the required VxWorks component. Select at least the telnet server component and target shell component.

After the selection is complete, build --> build; copy VxWorks under the project directory to the D: \ directory.

Directory of VxWorks: D: \ tornado2.2 \ target \ proj \ project0 \ default

7. Create a boot disk

(1) virtual floppy disk

Click Start and open "my computer" to see if A is a floppy disk? If it does not exist, the virtual floppy disk fails. If it exists, the operation is successful. Continue with the following command.

(2) Our bootrom exists in D: \ tornado2.2 \ target \ config \ pcpentium, So we switch the console to this directory. Run the following command:

Mkboot A: bootrom

After the operation is successful, disk A contains a bootrom. SYS file. The boot disk is successful.

8. Configure the FTP server

Start --> all programs --> tornado2.2 --> FTP server to open the FTP server

Security --> User/rights --> New User

User name must be the same as the environment we configured above, so it is the target

Pass word must be the same as the Environment configured above, so the password is 123

Here, the home directory is d :\. I often accidentally set it to D: \ VxWorks, which is wrong.

After setting, select target and done each time after FTP is used.

 

Logging --> logging options record logs

9. Run VxWorks

(1) Virtual Machine properties: network adapter --> network connection select bridged

Floopy --> connection --> use physical drive:

(2) Open the FTP server and select target --> done.

(3) Running virtual machines

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.