CN110221870A - The quick start method of VxWorks - Google Patents
The quick start method of VxWorks Download PDFInfo
- Publication number
- CN110221870A CN110221870A CN201910501883.7A CN201910501883A CN110221870A CN 110221870 A CN110221870 A CN 110221870A CN 201910501883 A CN201910501883 A CN 201910501883A CN 110221870 A CN110221870 A CN 110221870A
- Authority
- CN
- China
- Prior art keywords
- vxworks
- grub4dos
- quick start
- start method
- main partition
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of quick start methods of VxWorks, are related to field of software development.Include: that subregion is carried out to hard disk, sets active partition for main partition;GRUB4DOS is installed in main partition;The configuration file for modifying VxWorks, starts VxWorks by GRUB4DOS, modified VxWorks is stored in main partition;Start BIOS, VxWorks are then started by GRUB4DOS.Method provided by the invention starts VxWorks by GRUB4DOS by installing GRUB4DOS in the active partition of hard disk, and the starting time is unrelated with network interface card quantity, whether connects that interchanger is unrelated with network interface card, is capable of the starting speed of pole raising VxWorks.
Description
Technical field
The present invention relates to field of software development more particularly to a kind of quick start methods of VxWorks.
Background technique
Currently, the start-up course of traditional X86 platform computer operation vxworks operating system is very very long, with
For VxWorks 5.5, usually successively start BIOS, bootrom, VxWorks 5.5, if allocation of computer has kilomega network
Whether card, starting time and network interface card connect that interchanger is related, and the starting time is especially grown when being not connected with interchanger, about a few minutes, when
When the multiple Gigabit Ethernet of allocation of computer, the starting time can also be longer.
Summary of the invention
The technical problem to be solved by the present invention is in view of the deficiencies of the prior art, provide a kind of quickly opening for VxWorks
Dynamic method.
The technical scheme to solve the above technical problems is that
A kind of quick start method of VxWorks, comprising:
Subregion is carried out to hard disk, sets active partition for main partition;
GRUB4DOS is installed in the main partition;
The configuration file for modifying VxWorks, starts the VxWorks by GRUB4DOS, modified VxWorks is protected
There are in the main partition;
Start BIOS, the VxWorks are then started by GRUB4DOS.
The beneficial effects of the present invention are: method provided by the invention, by being installed in the active partition of hard disk
GRUB4DOS starts VxWorks by GRUB4DOS, the starting time is unrelated with network interface card quantity, interchanger whether is connect with network interface card without
It closes, is capable of the starting speed of pole raising VxWorks.
The another technical solution that the present invention solves above-mentioned technical problem is as follows:
A kind of storage medium is stored with instruction in the storage medium, when computer reads described instruction, makes the meter
Calculation machine executes the quick start method of VxWorks as described in the above technical scheme.
The another technical solution that the present invention solves above-mentioned technical problem is as follows:
A kind of computer, comprising:
Memory, for storing computer program;
Processor realizes quickly opening for VxWorks as described in the above technical scheme for executing the computer program
Dynamic method.
The advantages of additional aspect of the invention, will be set forth in part in the description, and will partially become from the following description
It obtains obviously, or practice is recognized through the invention.
Detailed description of the invention
Fig. 1 is the flow diagram that the embodiment of the quick start method of VxWorks of the present invention provides;
Fig. 2 is the flow diagram that the other embodiments of the quick start method of VxWorks of the present invention provide.
Specific embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and illustrated embodiment is served only for explaining the present invention,
It is not intended to limit the scope of the present invention.
VxWorks are the real time operating systems that Wind River System company, the U.S. releases, and are embedded developments
The key components of environment.VxWorks are widely used in communication, army with its good reliability and brilliant real-time
In the high-quality precision and sophisticated technologies such as thing, Aeronautics and Astronautics and the high field of requirement of real-time, such as satellite communication, military exercises, trajectory system
It leads, aircraft navigation etc..
For the VxWorks of certain versions, such as VxWorks 5.5, VxWorks 5.4, start-up course is usually to enter
BIOS starts bootroom, starts VxWorks by bootroom, if allocation of computer has Gigabit Ethernet, starts time and net
It is related whether card connects interchanger, it is especially long to be not connected with starting time when interchanger, about a few minutes, if allocation of computer is more
A Gigabit Ethernet, then the starting time can be longer.
Based on this, present applicant proposes a kind of new VxWorks to start method, can reduce opening for VxWorks significantly
The dynamic time.
As shown in Figure 1, the flow diagram that provides of embodiment of the quick start method for VxWorks of the present invention, this is fastly
Fast starting method includes:
S1 carries out subregion to hard disk, hard disk is divided into a main partition, an extension subregion, extension subregion is divided into one
A logical partition, and active partition is set by main partition.
S2 installs GRUB4DOS in main partition.
It should be noted that GRUB4DOS is an outstanding System guides software, it is the one of open source software GNU GRUB
A branch can very easily guide various operating systems, such as DOS, Windows, Linux etc. using GRUB4DOS.
Specifically, start disc operating system MS-DOS7.1 first, run bootlace.com, bootlace.com is
The master of the installation tool of GRUB4DOS, bootlace.com installation grldr leader record to hard disk or hard disk image file draws
Lead record.
It should be understood that the boot sector of floppy disk or floppy image can also be installed to when storage medium is floppy disk.
Then, setting-time-out=0,0x80 ,-time-out=0 are indicated when starting the waiting time 0 second.
Then, the grldr leader record of GRUB4DOS is mounted in the master boot record in main partition, by what is write in advance
Menu.lst is stored in main partition.
Wherein, wherein bootlace.com and grldr comes from grub4dos-0.4.4-2009-01-11.zip,
The content of menu.lst can be with are as follows:
#This is the amount of seconds before booting the default entry
#Set this when you’re sure that the default entry is correct
timeout 0
#Tell which entry to boot by default.Note that this is origin zero
#from the beginning of the file.
default 0
title VxWorks
Kernel--type=netbsd (hd0,0)/VxWorks
S3 modifies the configuration file of VxWorks, starts VxWorks by GRUB4DOS, and modified VxWorks are protected
There are in main partition.
S4 starts BIOS, then starts VxWorks by GRUB4DOS.
Method provided in this embodiment is started by installing GRUB4DOS in the active partition of hard disk by GRUB4DOS
VxWorks, the starting time is unrelated with network interface card quantity, whether connects that interchanger is unrelated with network interface card, is capable of opening for pole raising VxWorks
Dynamic speed.
Optionally, in some embodiments, as shown in Fig. 2, starting BIOS in step S4, then started by GRUB4DOS
Before VxWorks, further includes:
S40 modifies NIC driver, makes not initialize PHY when VxWorks starting initialization network interface card.
Wherein, PHY is physical interface transceiver, by above-mentioned improvement, can further increase the starting speed of VxWorks
Degree.
Optionally, in some embodiments, in step S40, NIC driver is modified, is specifically included:
By the miiPhyInit partial code in the replacement code replacement NIC driver write in advance, replacement code is used
PHY is not initialized when making VxWorks starting initialization network interface card.
For example, being illustrated by taking gei82543End.c as an example below, in LOCAL STATUS
The part miiPhyInit generation is replaced using following content in gei82543linkGMIISetup (END_DEVICE*pDrvCtrl)
Code.
Optionally, in some embodiments, replacement code is also used to initialize PHY when network linking is interrupted, build again
Vertical network connection.
It should be noted that PHY is not initialized when VxWorks start initialization network interface card, when there is network linking interruption
Initialization PHY establishes connection, therefore in VxWorks starting, will not wait auto negotiation because of interchanger PHY initialization is not connect
The time that time-out exits.
Optionally, in some embodiments, in step S2, GRUB4DOS is installed in main partition, is specifically included:
The grldr leader record of GRUB4DOS is mounted in the master boot record in main partition;
The menu.lst write in advance is stored in main partition.
Optionally, in some embodiments, configuration file includes config.h and sysLib.c.
Optionally, in some embodiments, it when configuration file includes config.h and sysLib.c, in step S3, repairs
The configuration file for changing VxWorks, specifically includes:
Modify the macro DEFAULT_BOOT_LINE of config.h;
The instruction that DEFAULT_BOOT_LINE is called by GRUB4DOS is added in sysLib.c.
For example, the macro DEFAULT_BOOT_LINE of config.h can be modified are as follows: #define DEFAULT_BOOT_
LINE\
" ata=1,1 (0,0) host:/ata0/vxWorks h=192.168.0.220e=192.168.0.20:
Ffffff00u=p105d pw=p105d f=0x8tn=tgt s=/ata0a/usrApp.txt o=gei0 "
In another example following content can be added at the end (void) function void sysHwInit0 of sysLib.c:
/*GRUB forces use of DEFAULT_BOOT_LINE*/
* (char*) (BOOT_LINE_ADRS)=EOS;
It is appreciated that in some embodiments, may include such as implementation optional some or all of in the various embodiments described above
Mode.
In other embodiments of the invention, a kind of storage medium is also provided, instruction is stored in the storage medium, works as meter
Calculate machine-readable when taking the instruction, the quick start method for the VxWorks for executing computer as described in any in the various embodiments described above.
Storage medium may include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), deposit at random
The various media that can store program code such as access to memory (RAM, RandomAccessMemory), magnetic or disk.
In other embodiments of the invention, a kind of computer is also provided, comprising:
Memory, for storing computer program;
Processor realizes the quick of the VxWorks as described in any in the various embodiments described above for executing computer program
Starting method.
Reader should be understood that in the description of this specification reference term " one embodiment ", " is shown " some embodiments "
The description of example ", " specific example " or " some examples " etc. mean specific features described in conjunction with this embodiment or example, structure,
Material or feature are included at least one embodiment or example of the invention.In the present specification, above-mentioned term is shown
The statement of meaning property need not be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described
It may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, without conflicting with each other, this
The technical staff in field can be by the spy of different embodiments or examples described in this specification and different embodiments or examples
Sign is combined.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, embodiment of the method described above is only schematical, for example, the division of step, only
A kind of logic flow divides, and there may be another division manner in actual implementation, such as multiple steps can combine or can be with
It is divided into another step, or some features can be ignored or not executed.
More than, only a specific embodiment of the invention, but scope of protection of the present invention is not limited thereto, and it is any to be familiar with
Those skilled in the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or substitutions,
These modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be wanted with right
Subject to the protection scope asked.
Claims (9)
1. a kind of quick start method of VxWorks characterized by comprising
Subregion is carried out to hard disk, sets active partition for main partition;
GRUB4DOS is installed in the main partition;
The configuration file for modifying VxWorks, starts the VxWorks by GRUB4DOS, modified VxWorks is stored in
In the main partition;
Start BIOS, the VxWorks are then started by GRUB4DOS.
2. the quick start method of VxWorks according to claim 1, which is characterized in that then starting BIOS passes through
GRUB4DOS starts before the VxWorks, further includes:
NIC driver is modified, makes not initialize PHY when the VxWorks starting initialization network interface card.
3. the quick start method of VxWorks according to claim 2, which is characterized in that modification NIC driver, tool
Body includes:
The replacement code write in advance is replaced into the miiPhyInit partial code in the NIC driver, the replacement generation
PHY is not initialized when code is for making the VxWorks starting initialization network interface card.
4. the quick start method of VxWorks according to claim 3, which is characterized in that the replacement code is also used to
When network linking is interrupted, the PHY is initialized, network connection is re-established.
5. the quick start method of VxWorks according to claim 1, which is characterized in that installed in the main partition
GRUB4DOS is specifically included:
The grldr leader record of the GRUB4DOS is mounted in the master boot record in the main partition;
The menu.lst write in advance is stored in the main partition.
6. the quick start method of VxWorks according to any one of claim 1 to 5, which is characterized in that the configuration
File includes config.h and sysLib.c.
7. the quick start method of VxWorks according to claim 6, which is characterized in that modify the configuration text of VxWorks
Part specifically includes:
Modify the macro DEFAULT_BOOT_LINE of config.h;
The instruction that DEFAULT_BOOT_LINE is called by GRUB4DOS is added in sysLib.c.
8. a kind of storage medium, which is characterized in that instruction is stored in the storage medium, when computer reads described instruction
When, the quick start method for the VxWorks for executing the computer as described in any one of claims 1 to 7.
9. a kind of computer characterized by comprising
Memory, for storing computer program;
Processor realizes the fast of the VxWorks as described in any one of claims 1 to 7 for executing the computer program
Fast starting method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910501883.7A CN110221870A (en) | 2019-06-11 | 2019-06-11 | The quick start method of VxWorks |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910501883.7A CN110221870A (en) | 2019-06-11 | 2019-06-11 | The quick start method of VxWorks |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110221870A true CN110221870A (en) | 2019-09-10 |
Family
ID=67816361
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910501883.7A Pending CN110221870A (en) | 2019-06-11 | 2019-06-11 | The quick start method of VxWorks |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110221870A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111522591A (en) * | 2020-04-24 | 2020-08-11 | 中电科航空电子有限公司 | Method for realizing quick start software of VxWorks cert and computer program product |
CN111522590A (en) * | 2020-04-24 | 2020-08-11 | 中电科航空电子有限公司 | Method for improving starting speed of VxWorks operating system and application thereof |
CN112231002A (en) * | 2020-10-15 | 2021-01-15 | 天津津航计算技术研究所 | Quick starting method for VxWorks operating system under PowerPC |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030101255A1 (en) * | 2001-09-20 | 2003-05-29 | I-Logix Inc. | Computerized system and method for web enabling and/or web management of embedded applications |
US20120060023A1 (en) * | 2010-09-06 | 2012-03-08 | Samsung Electronics Co., Ltd. | Methods for booting an operating system using non-volatile memory |
CN103942069A (en) * | 2014-04-01 | 2014-07-23 | 西安睿控创合电子科技有限公司 | Quick starting optimizing method based on X86 platform Vxworks operation system |
-
2019
- 2019-06-11 CN CN201910501883.7A patent/CN110221870A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030101255A1 (en) * | 2001-09-20 | 2003-05-29 | I-Logix Inc. | Computerized system and method for web enabling and/or web management of embedded applications |
US20120060023A1 (en) * | 2010-09-06 | 2012-03-08 | Samsung Electronics Co., Ltd. | Methods for booting an operating system using non-volatile memory |
CN103942069A (en) * | 2014-04-01 | 2014-07-23 | 西安睿控创合电子科技有限公司 | Quick starting optimizing method based on X86 platform Vxworks operation system |
Non-Patent Citations (2)
Title |
---|
BROKEN__ARROW: "如何用grub引导启动vxworks", 《新浪博客》 * |
IAMNEWSEA: "Grub4dos安装和启动完全指南", 《博客园》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111522591A (en) * | 2020-04-24 | 2020-08-11 | 中电科航空电子有限公司 | Method for realizing quick start software of VxWorks cert and computer program product |
CN111522590A (en) * | 2020-04-24 | 2020-08-11 | 中电科航空电子有限公司 | Method for improving starting speed of VxWorks operating system and application thereof |
CN111522590B (en) * | 2020-04-24 | 2023-06-20 | 中电科航空电子有限公司 | Method for improving starting speed of VxWorks operating system and application thereof |
CN112231002A (en) * | 2020-10-15 | 2021-01-15 | 天津津航计算技术研究所 | Quick starting method for VxWorks operating system under PowerPC |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110221870A (en) | The quick start method of VxWorks | |
US8032883B2 (en) | Controlling access from the virtual machine to a file | |
US8028155B1 (en) | Initiating an operating system boot from firmware | |
CN103189851B (en) | For network driver being injected equipment and the method for target images | |
US8607253B2 (en) | Virtualized storage assignment method | |
CN103942069B (en) | A kind of quick starting guide method based on X86 platform Vxworks operating systems | |
US8185884B2 (en) | System and method for offline updation of software in virtual machine (VM) images | |
US9098321B2 (en) | Method and computer for controlling virtual machine | |
US7082509B2 (en) | Method and system for allocating memory during system boot to reduce operating system memory resource consumption at run-time | |
CN100524232C (en) | System to accelerate identification of hardware platform classes | |
JPH11502045A (en) | Method and arrangement for providing BIOS to host computer | |
US8056084B2 (en) | Method and system for dynamically reallocating a resource among operating systems without rebooting of the computer system | |
GB2331385A (en) | Updating partition mappings to logical drives in a computer memory device | |
CN109002346B (en) | Conversion method of Windows virtual machine bootstrap program | |
CN101371228B (en) | A procedure for booting a first computer using the operating system of a second computer | |
US7231512B2 (en) | Technique for reconstituting a pre-boot firmware environment after launch of an operating system | |
CN106201653A (en) | A kind of method that vmware virtual machine turns kvm virtual machine | |
US9672047B1 (en) | Systems and methods for accessing a bootable partition on a serial peripheral interface device | |
US8621481B2 (en) | Apparatus and method for performing a rebalance of resources for one or more devices at boot time | |
US10491736B2 (en) | Computer system and method thereof for bluetooth data sharing between UEFI firmware and OS | |
CN110018856A (en) | The method that dynamic modifies UEFI boot sequence | |
CN111679889A (en) | Virtual machine conversion migration method and system | |
CN114443073A (en) | Device and method for rapidly deploying bare metal server | |
CN107193633A (en) | A kind of batch creates the method and device of virtual machine | |
CN110688235A (en) | System and method for sharing wireless connection information between UEFI firmware and OS |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190910 |