CN102968319A - VxWorks image loading method - Google Patents

VxWorks image loading method Download PDF

Info

Publication number
CN102968319A
CN102968319A CN2012104583363A CN201210458336A CN102968319A CN 102968319 A CN102968319 A CN 102968319A CN 2012104583363 A CN2012104583363 A CN 2012104583363A CN 201210458336 A CN201210458336 A CN 201210458336A CN 102968319 A CN102968319 A CN 102968319A
Authority
CN
China
Prior art keywords
vxworks
disk
dos
operating system
loading method
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
Application number
CN2012104583363A
Other languages
Chinese (zh)
Inventor
夏夕盛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Traffic Control Technology Co Ltd
Original Assignee
Beijing Traffic Control Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Traffic Control Technology Co Ltd filed Critical Beijing Traffic Control Technology Co Ltd
Priority to CN2012104583363A priority Critical patent/CN102968319A/en
Publication of CN102968319A publication Critical patent/CN102968319A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a VxWorks image loading method, which comprises the following steps of: conducting DOS (disk operating system) booting to the disk of a target machine and creating a boot sector of the booted disk, wherein the boot sector is used for loading a bootrom file; initializing the CPU (central processing unit) of the target machine; initializing the minimum operating system of the target machine; entering a DOS through an ROM-DOS booting method; and in the DOS, using the boot sector to load the bootrom file and using the bootrom file to load a VxWorks image into an RAM (random access memory). By adopting the technical scheme provided by the invention, the problems that the image loading success rate is low, the maximum allowable disc capacity is small, the software is inconvenient to update and the engineering application is not facilitated in the VxWorks operating system in the prior art are solved.

Description

The loading method of VxWorks reflection
Technical field
The present invention relates to technical field of embedded operating, particularly a kind of loading method of VxWorks reflection.
Background technology
Vxworks operating system is the cover embedded real-time operating system that Wind River company provides, and has the real-time response of interrupting to external world and the characteristics of supporting multitask.Vxworks operating system based on X86-based guides start-up course as shown in Figure 1, comprises the steps:
1, CPU initialization: be solidificated in the bootstrap among the ROM of CPU by execution, finish CPU, clock, storehouse initial work, make the normal operation of CPU and instruction pointer is pointed to a fixing address;
2, I operational system initialization: the fixing address of sensing began to carry out after the CPU initialization was finished, point to BIOS or bootrom initialize routine based on the CPU of X86-based, finish initial work such as comprising Memory Controller Hub and various essential input-output apparatus, Magnetic Disk Controller, north and south bridge;
3, the vxworks operating system reflection loads: after the VxWorks reflection loads, whole hardware, the operating system nucleus that comprises CPU carried out initialization, and finish the loading of application program.
The VxWorks reflection is comprised of text chunk (.text/.code), data segment (.data) and BSS section (.bss).Text chunk is equivalent to code segment, is comprised of some instructions; Data segment is comprised of global variable and the static variable of some initialization; The BSS section is comprised of global variable and the static variable of un-initialized.
In engineering is used, vxworks operating system mainly adopts the mode of Bootable Image to guide startup, the VxWorks kernel of bootstrap is downloaded among the ROM, when system powers on, the rom boot sector loads bootrom, then by bootrom the VxWorks of bootstrap is videoed to be loaded among the RAM and carries out.
Vxworks operating system is applied in the engineering practice, mainly contains following three key issues:
1, sets up the vxworks operating system of stable target machine bootstrap;
2, mass storage support: the ROM of the at present maximum support of vxworks operating system 4GB, and engineering often needs more jumbo ROM in using;
3, be suitable for the loading scheme of software upgrading.
Wherein, the loading scheme of vxworks operating system support comprises: change the software memories such as EEPROM or FLASH; Use again programming FLASH of emulator; Set up the network connection of target machine and host, upgrade by setting up cross integration development environment; Connecting foundation intersection succession development environment by serial ports upgrades; Application software realizes upgrading module in advance to be used for the resolving network upgrade instruction, carries out image file and upgrades.
As mentioned above, the vxworks operating system of X86-based main VxWorks reflection that adopts bootstrap in engineering is used.After I operational system initialization was finished, CPU pointed to the fixed address of ROM, and the ROM fixed address loads bootrom, then the VxWorks reflection was loaded on the RAM operation.The principle that the vxworks operating system reflection loads as shown in Figure 2.
When engineering is used, the vxsys tool making VxWorks boot sector that ROM fixed address boot provides by Wind River company, and by bootrom.sys file load vxworks operating system.
There are three problems in such vxworks operating system:
The one, the disk size maximum allows for 4GB, is not easy to the expansion in the engineering application;
The 2nd, it is lower to load VxWorks reflection success ratio, and to load the loss that unsuccessfully brings be difficult to the appraisal to the VxWorks reflection during engineering was used;
The 3rd, VxWorks software can only upgrade by traditional loading scheme, is unfavorable for the engineering application.
Summary of the invention
(1) technical matters to be solved
Fundamental purpose of the present invention is to solve in the prior art vxworks operating system reflection, and to load success ratio low, is unfavorable for the problem that engineering is used.
(2) technical scheme
In order to solve the problems of the technologies described above, the present invention proposes a kind of loading method of VxWorks reflection.Described loading method may further comprise the steps:
S1, the disk of target machine is carried out the DOS guiding, and make the boot sector of the disk after the guiding, wherein, described boot sector is used for loading the bootrom file;
S2, the CPU of described target machine is carried out initialization;
S3, the I operational system of described target machine is carried out initialization;
S4, by the mode of ROM-DOS guiding, enter dos operating system;
S5, in described dos operating system, utilize the described bootrom file of described boot sector load, and utilize described bootrom file that VxWorks reflection is loaded among the RAM.
Optionally, after the step S1, also comprise step before the step S2:
S1-1, the disk after the described guiding is carried out subregion, obtain a plurality of disk partition, wherein, first disk partition in described a plurality of disk partition is set to boot partition, and the file layout of described boot partition is FAT32.
Optionally, after the step S3, also comprise step before the step S4:
S3-1, judge whether the USB interface of described target machine is connected with VxWorks image update control module, if so, then enters step S3-2, otherwise, step S4 entered;
S3-2, by the mode of USB-DOS guiding, enter dos operating system;
S3-3, in described dos operating system, utilize described VxWorks image update control module, VxWorks reflection is upgraded, upgrade entering step S5 after finishing.
Optionally, the capacity of described disk is not less than 8GB.
Optionally, described disk is the CF card.
Optionally, also comprise step before the step S1:
S0, described CF card is identified as local disk.
Optionally, the capacity of described boot partition is not more than 4GB.
Optionally, step S3-3 further comprises: described VxWorks image update control module is controlled described target machine is indicated the VxWorks image update by the mode of acousto-optic state.
(3) beneficial effect
The technical scheme that the present invention proposes has following advantage:
1, copying means by disk partition and guiding, can improve at the version of VxWorks 5.5.1 the support for disk size, by the engineering application verification, can the support capacity be the disk of 16GB at least.
2, the tradition at the X86-based vxworks operating system loads insertion DOS guiding step in the flow process, improved the stability that the VxWorks reflection loads, encapsulation by dos operating system, reduce the dependence of vxworks operating system for minimum running environment, improved the success ratio that the VxWorks reflection loads.
3, make the user can convenient by USB interface, hommization carry out the renewal of VxWorks product image file.
The present invention is particularly suited for being applied in the vehicle-carrying communication opertaing device of subway signal system, and vxworks operating system reflection loading procedure is stable, supports large capacity disc, and software upgrading is convenient, fast.
Description of drawings
Fig. 1 is the process flow diagram that the vxworks operating system guiding starts in the prior art.
Fig. 2 is the principle schematic that the vxworks operating system reflection loads in the prior art.
Fig. 3 is the process flow diagram of the loading method of the VxWorks reflection that proposes of the present invention.
Fig. 4 is a kind of process flow diagram of preferred implementation of the loading method of the VxWorks reflection that proposes of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in further detail.
The present invention proposes a kind of loading method of VxWorks reflection, as shown in Figure 3, described loading method may further comprise the steps:
S1, the disk of target machine is carried out the DOS guiding, and make the boot sector of the disk after the guiding, wherein, described boot sector is used for loading the bootrom file;
S2, the CPU of described target machine is carried out initialization;
S3, the I operational system of described target machine is carried out initialization;
S4, by the mode of ROM-DOS guiding, enter dos operating system;
S5, in described dos operating system, utilize the described bootrom file of described boot sector load, and utilize described bootrom file that VxWorks reflection is loaded among the RAM.
Preferably, after the step S1, also comprise step before the step S2:
S1-1, the disk after the described guiding is carried out subregion, obtain a plurality of disk partition, wherein, first disk partition in described a plurality of disk partition is set to boot partition, and the file layout of described boot partition is FAT32.
Preferably, the capacity of described boot partition is not more than 4GB.
Preferably, the capacity of described disk is not less than 8GB.
Preferably, described disk is the CF card.
Preferably, also comprise step before the step S1:
S0, described CF card is identified as local disk.
Generally speaking, when the equipment such as CF card, USB flash disk are connected to computing machine by USB interface, can be identified as movable memory equipment by computing machine, be very difficult and guide with subregion to movable memory equipment in Windows operating system.The technical scheme that the present invention proposes at first utilizes driver that the CF card is identified as local disk, then guides with subregion to process, and can address the above problem well.Certainly, also can under the DOS system environments, utilize DOS partition order and instrument to carry out subregion, so just not have the problem identified under the Windows environment.Simultaneously, for the CF card behind the subregion, the content of its second subregion can't read under the Windows environment, but just can address this problem after the CF card is identified as local disk.
A kind of preferred implementation of the technical scheme that the present invention proposes also comprises step as shown in Figure 4 after step S3, before the step S4:
S3-1, judge whether the USB interface of described target machine is connected with VxWorks image update control module, if so, then enters step S3-2, otherwise, step S4 entered;
S3-2, by the mode of USB-DOS guiding, enter dos operating system;
S3-3, in described dos operating system, utilize described VxWorks image update control module, VxWorks reflection is upgraded, upgrade entering step S5 after finishing.
Preferably, step S3-3 further comprises: described VxWorks image update control module is controlled described target machine is indicated the VxWorks image update by the mode of acousto-optic state.
The loading method of above-mentioned VxWorks reflection is carrying out subregion and is making on the basis of boot sector to large capacity disc, load modification boot sector information in the flow process at traditional X-ray 86 framework vxworks operating systems, insert the DOS vectoring phase, isolate the loading and the dependence of VxWorks guiding for hardware environment of VxWorks reflection by dos operating system, thereby improve stability and the availability of the loading of VxWorks reflection.
Simultaneously, the loading method of described VxWorks reflection upgrades VxWorks product image file, and can point out with the form of acousto-optic by USB interface:
But enter the minimum operational system after 1, the CPU power-up initializing is finished, insert if detect the USB flash disk that stores VxWorks image update control module, then load USB flash disk DOS operation, otherwise guide startup by target machine self disk;
2, USB flash disk DOS is guided through the DOS application program instructions, upgrades the VxWorks image file, and Action Target machine hummer and LED lamp flash for prompting, indication VxWorks image update state;
3, after the VxWorks image update was finished, the hummer sound finished and the flicker of LED lamp finishes, and dos operating system utilizes disk boot sector load bootrom and then loads the VxWorks reflection, the application program after operation is upgraded, software upgrading.
The above only is preferred implementation of the present invention; should be pointed out that for the person of ordinary skill of the art, under the prerequisite that does not break away from the technology of the present invention principle; can also make some improvement and replacement, these improvement and replacement also should be considered as protection scope of the present invention.

Claims (8)

1. the loading method of VxWorks reflection is characterized in that described loading method may further comprise the steps:
S1, the disk of target machine is carried out the DOS guiding, and make the boot sector of the disk after the guiding, wherein, described boot sector is used for loading the bootrom file;
S2, the CPU of described target machine is carried out initialization;
S3, the I operational system of described target machine is carried out initialization;
S4, by the mode of ROM-DOS guiding, enter dos operating system;
S5, in described dos operating system, utilize the described bootrom file of described boot sector load, and utilize described bootrom file that VxWorks reflection is loaded among the RAM.
2. loading method according to claim 1 is characterized in that, also comprises step after the step S1, before the step S2:
S1-1, the disk after the described guiding is carried out subregion, obtain a plurality of disk partition, wherein, first disk partition in described a plurality of disk partition is set to boot partition, and the file layout of described boot partition is FAT32.
3. loading method according to claim 1 is characterized in that, also comprises step after the step S3, before the step S4:
S3-1, judge whether the USB interface of described target machine is connected with VxWorks image update control module, if so, then enters step S3-2, otherwise, step S4 entered;
S3-2, by the mode of USB-DOS guiding, enter dos operating system;
S3-3, in described dos operating system, utilize described VxWorks image update control module, VxWorks reflection is upgraded, upgrade entering step S5 after finishing.
4. loading method according to claim 1 is characterized in that, the capacity of described disk is not less than 8GB.
5. according to claim 1 or 4 described loading methods, it is characterized in that described disk is the CF card.
6. loading method according to claim 5 is characterized in that, also comprises step before the step S1:
S0, described CF card is identified as local disk.
7. loading method according to claim 2 is characterized in that, the capacity of described boot partition is not more than 4GB.
8. loading method according to claim 3 is characterized in that, step S3-3 further comprises: described VxWorks image update control module is controlled described target machine is indicated the VxWorks image update by the mode of acousto-optic state.
CN2012104583363A 2012-11-14 2012-11-14 VxWorks image loading method Pending CN102968319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104583363A CN102968319A (en) 2012-11-14 2012-11-14 VxWorks image loading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104583363A CN102968319A (en) 2012-11-14 2012-11-14 VxWorks image loading method

Publications (1)

Publication Number Publication Date
CN102968319A true CN102968319A (en) 2013-03-13

Family

ID=47798477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104583363A Pending CN102968319A (en) 2012-11-14 2012-11-14 VxWorks image loading method

Country Status (1)

Country Link
CN (1) CN102968319A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103679057A (en) * 2013-12-18 2014-03-26 上海斐讯数据通信技术有限公司 Bootrom two-stage menu implementation method based on VxWorks operating system
CN105573795A (en) * 2015-12-21 2016-05-11 苏州长风航空电子有限公司 Embedded guiding method for airborne indicator
CN106406909A (en) * 2016-10-14 2017-02-15 重庆金美通信有限责任公司 Method for optimizing VxWorks startup process by using ARJ compressed file
CN106407156A (en) * 2016-09-23 2017-02-15 深圳震有科技股份有限公司 A method and a system for BOOTROM guiding multi-core CPU boot
CN112231002A (en) * 2020-10-15 2021-01-15 天津津航计算技术研究所 Quick starting method for VxWorks operating system under PowerPC

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1517899A (en) * 2003-01-14 2004-08-04 联想(北京)有限公司 Method of renewing operating system of embedded equipment
CN1779641A (en) * 2004-11-25 2006-05-31 英特维数位科技股份有限公司 Frame for updating data of computer system and method thereof
CN1885922A (en) * 2005-06-22 2006-12-27 厦门华侨电子企业有限公司 Method for carrying out TV set software upgrade and its device
CN101515239A (en) * 2009-04-08 2009-08-26 南京航空航天大学 Quick start method of X86 flight control computer
CN101807156A (en) * 2010-03-04 2010-08-18 广东宝莱特医用科技股份有限公司 Equipment and method for maintaining and updating system through interface medium
CN201570018U (en) * 2009-12-30 2010-09-01 青岛海信宽带多媒体技术有限公司 Device for updating device program
CN201600922U (en) * 2009-12-17 2010-10-06 北京网尚文化传播有限公司 Movie and television service system and special-purpose USB flash disk thereof
CN102169441A (en) * 2011-03-18 2011-08-31 浪潮电子信息产业股份有限公司 Rapid deployment method for blade operation system
CN202362768U (en) * 2011-12-14 2012-08-01 天津七一二通信广播有限公司 USB (universal serial bus) maintenance tool for locomotive table equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1517899A (en) * 2003-01-14 2004-08-04 联想(北京)有限公司 Method of renewing operating system of embedded equipment
CN1779641A (en) * 2004-11-25 2006-05-31 英特维数位科技股份有限公司 Frame for updating data of computer system and method thereof
CN1885922A (en) * 2005-06-22 2006-12-27 厦门华侨电子企业有限公司 Method for carrying out TV set software upgrade and its device
CN101515239A (en) * 2009-04-08 2009-08-26 南京航空航天大学 Quick start method of X86 flight control computer
CN201600922U (en) * 2009-12-17 2010-10-06 北京网尚文化传播有限公司 Movie and television service system and special-purpose USB flash disk thereof
CN201570018U (en) * 2009-12-30 2010-09-01 青岛海信宽带多媒体技术有限公司 Device for updating device program
CN101807156A (en) * 2010-03-04 2010-08-18 广东宝莱特医用科技股份有限公司 Equipment and method for maintaining and updating system through interface medium
CN102169441A (en) * 2011-03-18 2011-08-31 浪潮电子信息产业股份有限公司 Rapid deployment method for blade operation system
CN202362768U (en) * 2011-12-14 2012-08-01 天津七一二通信广播有限公司 USB (universal serial bus) maintenance tool for locomotive table equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
杨扬 等: "《基于VxWorks的大容量多分区硬盘驱动开发》", 《单片机与嵌入式***应用》, vol. 2007, no. 12, 31 December 2007 (2007-12-31), pages 66 - 68 *
王永亮: "《基于VxWorks的无人机飞行控制软件设计与开发》", 《中国优秀硕士学位论文全文数据库(电子期刊)工程科技II辑》, vol. 2011, no. 6, 15 June 2011 (2011-06-15), pages 031 - 98 *
王飞: "《无人直升机嵌入式飞行控制***研究平台》", 《中国优秀硕士学位论文全文数据库(电子期刊)工程科技II辑》, vol. 2007, no. 6, 15 June 2007 (2007-06-15), pages 031 - 152 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103679057A (en) * 2013-12-18 2014-03-26 上海斐讯数据通信技术有限公司 Bootrom two-stage menu implementation method based on VxWorks operating system
CN103679057B (en) * 2013-12-18 2018-01-02 上海斐讯数据通信技术有限公司 The second-level menu implementation method of bootstrap bootrom based on vxworks operating system
CN105573795A (en) * 2015-12-21 2016-05-11 苏州长风航空电子有限公司 Embedded guiding method for airborne indicator
CN105573795B (en) * 2015-12-21 2019-05-24 苏州长风航空电子有限公司 A kind of embedded bootstrap technique for airborne indicator
CN106407156A (en) * 2016-09-23 2017-02-15 深圳震有科技股份有限公司 A method and a system for BOOTROM guiding multi-core CPU boot
CN106407156B (en) * 2016-09-23 2018-11-23 深圳震有科技股份有限公司 The method and system of one BOOTROM guidance multi-core CPU starting
CN106406909A (en) * 2016-10-14 2017-02-15 重庆金美通信有限责任公司 Method for optimizing VxWorks startup process by using ARJ compressed file
CN112231002A (en) * 2020-10-15 2021-01-15 天津津航计算技术研究所 Quick starting method for VxWorks operating system under PowerPC

Similar Documents

Publication Publication Date Title
CN109478135B (en) Computer system and method for rebooting a computer system
KR101574403B1 (en) Combined virtual graphics device
US9372754B2 (en) Restoring from a legacy OS environment to a UEFI pre-boot environment
CN106990958B (en) Expansion assembly, electronic equipment and starting method
JP6272991B2 (en) Selective power management for pre-boot firmware updates
US20140325496A1 (en) Apparatus and method for firmware upgrade using usb
WO2013078397A1 (en) Computing platform performance management with ras services
CN102968319A (en) VxWorks image loading method
CN101421701A (en) Direct boot arrangement using a NAND flash memory
CN102662717A (en) Bootstrap starting method of embedded system
CN111857776A (en) Online upgrading method for application programs of DSP (digital Signal processor) board cards
CN101639786A (en) Method and device for guiding starting of embedded operation system
CN105144096A (en) Minimizing switchover time during operating system kernel update in a hot swappable program memory
CN104156234A (en) Multi-core processor starting and bootloader big-little endian mode adapting method device
CN109189500B (en) Download storage and guide loading method and system for satellite-borne computer application software
CN103729219A (en) Method and system for framing UEFI BIOS (unified extensible firmware interface basic input/output system)
CN103984572A (en) Method and equipment for realizing computer installation and operating system switch without CD driver
CN104866397A (en) Computer System And Control Method
CN101281485B (en) Computer testing method without hard disc
CN111930575A (en) Firmware acquisition method and device and electronic equipment
US10592425B2 (en) Virtualizing NVDIMM WPQ flushing with minimal overhead
CN100498710C (en) Method for reading and electing read only memory program code on self-storing mechanism
CN105204896A (en) BootLoader design method of digital storage oscilloscope
CN106909347A (en) A kind of UEFI firmware implementation methods of portable computer
CN104182271A (en) Virtualization implementation method based on SW processor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130313