CN106406909A - Method for optimizing VxWorks startup process by using ARJ compressed file - Google Patents

Method for optimizing VxWorks startup process by using ARJ compressed file Download PDF

Info

Publication number
CN106406909A
CN106406909A CN201610894849.7A CN201610894849A CN106406909A CN 106406909 A CN106406909 A CN 106406909A CN 201610894849 A CN201610894849 A CN 201610894849A CN 106406909 A CN106406909 A CN 106406909A
Authority
CN
China
Prior art keywords
vxworks
arj
file
compressed file
image
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
CN201610894849.7A
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.)
Chongqing Jinmei Communication Co Ltd
Original Assignee
Chongqing Jinmei Communication 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 Chongqing Jinmei Communication Co Ltd filed Critical Chongqing Jinmei Communication Co Ltd
Priority to CN201610894849.7A priority Critical patent/CN106406909A/en
Publication of CN106406909A publication Critical patent/CN106406909A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1417Boot up procedures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for optimizing a VxWorks system startup process by using an ARJ compressed file. A redundant backup of a VxWorks system image is provided by using the ARJ compressed file; a decompression function is implanted into a guidance code; if the condition that a VxWorks image file cannot be normally loaded is found out when a system startup guide program runs, the decompression function is called to generate an available VxWorks image file again and then the system is restarted, so that the system image can be normally loaded. The method has the beneficial technical effects that the method for optimizing the VxWorks system startup process by using the ARJ compressed file is provided, the VxWorks image file can be automatically restored without human intervention when damaged, the phenomenon that equipment cannot be started due to the damage to the VxWorks image file can be avoided and the reliability of the equipment is improved. According to the method, the redundant backup is provided by using the ARJ compressed file and occupation of a storage space of a FLASH is small.

Description

A kind of method that utilization ARJ compressed file optimizes VxWorks Booting sequence
Technical field
The invention belongs to the VxWorks system map file of military communication technical field, more particularly, to vxworks operating system Booting sequence.
Background technology
In military communication technical field, vxworks operating system is used widely.When system starts, VxWorks The normal startup of system image is particularly important.VxWorks image file typically leaves in the FLASH of EM equipment module, due to army The reasons such as the residing harsh and unforgiving environments of thing communication, it may occur that the phenomenon of VxWorks image file damage, lead to EM equipment module cannot open Dynamic.Additionally, the memory space very little of FLASH is it is impossible to by the way of direct Backup Images file.
In general, vxworks operating system includes guidance code and system image.Wherein guidance code is VxWorks The BOOTROM that under operating system, compilation of source code generates, Main Function is the minimum hardware cell of initialization, can to load The system image of vxworks operating system.In the initial designs of vxworks operating system, there is provided start configuration parameter (bootline), after system electrification startup, that is, execute the guidance code of vxworks operating system, read and parse this startup After configuration parameter, carry out startup configuration according to starting configuration parameter, then according to start configuration loading vxworks operating system be System image, thus start vxworks operating system.
ARJ is one of the most widely used compressed software nineties.It is low to system performance requirements, and compression ratio is higher, pressure Contracting decompression speed is fast.Additionally, free source code is provided on internet, can easily embed it in various systems Go.
Content of the invention
The invention discloses a kind of method that utilization ARJ compressed file optimizes VxWorks system Booting sequence, using ARJ Compressed file provides the redundancy backup of VxWorks system image, implants ARJ decompressing function in guidance code.When system opens When dynamic bootstrap is run, if find VxWorks image file cannot normal load, call ARJ decompressing function again to give birth to Become available VxWorks image file, then restart system, you can normal load system image.The technical side that the present invention adopts Case is as follows:
1) ARJ decompressing function is transplanted in VxWorks development environment;
2) improve the boot flow of guidance code, guidance code adds ARJ compressed file verifying function;
3) improve guidance code boot flow, when VxWorks image file cannot normal load when, call ARJ decompression work( Available VxWorks image file can be regenerated;
4) improve the boot flow of guidance code, after decompression generates VxWorks image file success, automatically restart system;
5) by the BOOTROM programming after improving in the EPROM of EM equipment module;
6) in EM equipment module normal work, the ARJ compressed file of VxWorks system image is uploaded to EM equipment module In FLASH.
The method have the benefit that:Provide a kind of utilization ARJ compressed file and optimize VxWorks system Booting sequence Method, can automatically recover without human intervention when VxWorks image file damages, be avoided that due to VxWorks image file Destroy the phenomenon leading to equipment cannot start, improve the reliability of equipment.Method adopts ARJ compressed file as backup, right The memory space of FLASH takies little.
Brief description
Fig. 1, the BOOTROM boot flow of initial designs;
Fig. 2, the BOOTROM boot flow of Curve guide impeller.
Specific embodiment
This utilizes the method that ARJ compressed file optimizes VxWorks system Booting sequence as depicted in figs. 1 and 2, and its feature exists In comprising the steps of:
1) ARJ decompressing function is transplanted in VxWorks development environment;
2) improve the boot flow of guidance code, guidance code adds ARJ compressed file verifying function;
3) improve guidance code boot flow, when VxWorks image file cannot normal load when, call ARJ decompression work( Can, regenerate available VxWorks image file;
4) improve the boot flow of guidance code, after the VxWorks image file that decompression generates can use, automatically restart system;
5) by the BOOTROM programming after improving in the EPROM of EM equipment module;
6) in EM equipment module normal work, the ARJ compressed file of VxWorks system image is uploaded to EM equipment module In FLASH.
Step 2) in also include:Need verification ARJ compressed file whether there is, and whether there is in verification compressed file VxWorks image file.
Step 3) in also include:Should decompress again after the VxWorks image file of first deletion error, or adopt in decompression Take from the mode of dynamic covering, file path should keep constant.
The above, the only present invention preferably specific embodiment, but protection scope of the present invention is not limited thereto, Any those familiar with the art the invention discloses technical scope in, technology according to the present invention scheme and its Inventive concept equivalent or change in addition, all should be included within the scope of the present invention.

Claims (4)

1. a kind of utilization ARJ compressed file optimizes the method for VxWorks system Booting sequence it is characterised in that including following walking Suddenly:
1) ARJ decompressing function is transplanted in VxWorks development environment;
2) improve the boot flow of guidance code, guidance code adds ARJ compressed file verifying function;
3) improve guidance code boot flow, when VxWorks image file cannot normal load when, call ARJ decompression work( Can, regenerate available VxWorks image file;
4) improve the boot flow of guidance code, after the VxWorks image file that decompression generates can use, automatically restart system;
5) by the BOOTROM programming after improving in the EPROM of EM equipment module;
6) in EM equipment module normal work, the ARJ compressed file of VxWorks system image is uploaded to EM equipment module In FLASH.
2. step 2) in also include:Need verification ARJ compressed file whether there is, and whether there is in verification compressed file VxWorks image file.
3. step 3) in also include:Should decompress again after the VxWorks image file of first deletion error, or take in decompression Automatically the mode covering, file path should keep constant.
4. the method that a kind of utilization ARJ compressed file according to claim 1 optimizes VxWorks system Booting sequence, its It is characterised by, the ARJ compressed file of VxWorks system image adopts external tool to generate, and can be under VxWorks environment Decompress successfully.
CN201610894849.7A 2016-10-14 2016-10-14 Method for optimizing VxWorks startup process by using ARJ compressed file Pending CN106406909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610894849.7A CN106406909A (en) 2016-10-14 2016-10-14 Method for optimizing VxWorks startup process by using ARJ compressed file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610894849.7A CN106406909A (en) 2016-10-14 2016-10-14 Method for optimizing VxWorks startup process by using ARJ compressed file

Publications (1)

Publication Number Publication Date
CN106406909A true CN106406909A (en) 2017-02-15

Family

ID=59229111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610894849.7A Pending CN106406909A (en) 2016-10-14 2016-10-14 Method for optimizing VxWorks startup process by using ARJ compressed file

Country Status (1)

Country Link
CN (1) CN106406909A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1521630A (en) * 2003-02-12 2004-08-18 微星科技股份有限公司 Method and apparatus for restoring mapping files in system embedded electronic device
CN101169723A (en) * 2006-10-25 2008-04-30 深圳市研祥智能科技股份有限公司 Embedded type operating system mapping file guiding method and device
CN102819441A (en) * 2012-07-25 2012-12-12 中国航天科技集团公司第九研究院第七七一研究所 Quick starting method of Vxworks system based on multimedia personal computer (MPC) 5200 B
CN102968319A (en) * 2012-11-14 2013-03-13 北京交控科技有限公司 VxWorks image loading method
CN103092632A (en) * 2011-10-28 2013-05-08 研祥智能科技股份有限公司 Installation method of VxWorks operating system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1521630A (en) * 2003-02-12 2004-08-18 微星科技股份有限公司 Method and apparatus for restoring mapping files in system embedded electronic device
CN101169723A (en) * 2006-10-25 2008-04-30 深圳市研祥智能科技股份有限公司 Embedded type operating system mapping file guiding method and device
CN103092632A (en) * 2011-10-28 2013-05-08 研祥智能科技股份有限公司 Installation method of VxWorks operating system
CN102819441A (en) * 2012-07-25 2012-12-12 中国航天科技集团公司第九研究院第七七一研究所 Quick starting method of Vxworks system based on multimedia personal computer (MPC) 5200 B
CN102968319A (en) * 2012-11-14 2013-03-13 北京交控科技有限公司 VxWorks image loading method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
傅颖军: "文件压缩在VxWorks操作系统的应用", 《移动通信》 *

Similar Documents

Publication Publication Date Title
KR101467515B1 (en) Apparatus and method for booting based on a snapshot image
US10114655B2 (en) Rapid start up method for electronic equipment
CN110413230B (en) Embedded system construction method and storage medium
CN102141923B (en) Memory file system loading method and device
KR20120024906A (en) Handling errors during device bootup from a non-volatile memory
CN101571807A (en) System with firmware and starting method thereof
CN108228077B (en) Storage area management method, operation method, device, equipment and readable medium
CN104077167A (en) Boot loading method and device based on NAND FLASH
CN111488589A (en) Safe and trusted boot and firmware upgrade system and method based on hardware write protection
US9218249B2 (en) Electronic apparatus, method of restoring guid partition table (GPT) and computer-readable recording medium
CN113434182A (en) Method and device for realizing immediate effect of firmware upgrade of solid state disk and computer equipment
CN109871334B (en) Cable modem and method of operation
CN106406909A (en) Method for optimizing VxWorks startup process by using ARJ compressed file
CN111338652B (en) Operating system mirror image manufacturing method, device, equipment and medium
CN110908722B (en) Method and device applied to starting of operating system, electronic equipment and storage medium
CN102256275A (en) Method and mobile communication terminal for power failure protection in factory resetting process
CN111273928A (en) Self-upgrading bootloader design method
CN106681761B (en) Interactive upgrading method and system
CN111399926A (en) Method and device for downloading starting program
CN116028267A (en) Dual-system secure mobile phone resetting method and device, server and storage medium
CN113778485A (en) System operation method and device of electronic chip, electronic chip and storage medium
CN112667444A (en) System upgrading method, storage medium and terminal equipment
CN101566951A (en) Computer system and BIOS structure thereof as well as turn-on method
CN114461338B (en) virtio driver injection method and device
CN116700061B (en) Quick starting method based on safe starting technology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170215

WD01 Invention patent application deemed withdrawn after publication