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
image
compressed file
Prior art date
Application number
CN201610894849.7A
Other languages
Chinese (zh)
Inventor
雷文虎
孙长龙
窦茂森
罗文�
曾康娟
雷飞鹏
申伟
Original Assignee
重庆金美通信有限责任公司
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 重庆金美通信有限责任公司 filed Critical 重庆金美通信有限责任公司
Priority to CN201610894849.7A priority Critical patent/CN106406909A/en
Publication of CN106406909A publication Critical patent/CN106406909A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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; 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; 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

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

一种利用ARJ压缩文件优化VxWorks启动流程的方法 A method of optimizing the use of ARJ compressed file to start the process of VxWorks

技术领域 FIELD

[0001] 本发明属军用通信技术领域,尤其涉及VxWorks操作系统的VxWorks系统映像文件启动流程。 [0001] The present invention belongs to the technical field of military communications, and particularly to VxWorks operating system image file VxWorks system boot process. 背景技术 Background technique

[0002] 在军用通信技术领域中,VxWorks操作系统得到广泛应用。 [0002] In the technical field of military communications, VxWorks operating system widely used. 在系统启动时,VxWorks 系统映像的正常启动尤为重要。 At system startup, the normal boot VxWorks system image is particularly important. VxWorks映像文件一般存放在设备模块的FLASH中,由于军事通信所处的严酷环境等原因,会发生VxWorks映像文件损坏的现象,导致设备模块无法启动。 VxWorks image files are generally stored in FLASH device module, due to the harsh environment in which the military communications and other reasons, the phenomenon of VxWorks image file corruption can occur, leading to equipment module can not be started. 此外,FLASH的存储空间很小,无法采用直接备份映像文件的方式。 In addition, FLASH storage space is very small, can not be adopted directly backup image file.

[0003] 一般而言,VxWorks操作系统包括引导代码和系统映像。 [0003] Generally, VxWorks operating system includes boot code and system images. 其中引导代码是VxWorks 操作系统下源代码编译生成的B00TR0M,主要作用是初始化最少的硬件单元,以便可以加载VxWorks操作系统的系统映像。 Wherein the boot code is compiled generated source code B00TR0M the VxWorks operating system, the main role is minimal hardware initialization unit, so that the system can load the VxWorks operating system image. 在VxWorks操作系统的初始设计中,提供了启动配置参数(bootline),在系统上电启动后,即执行VxWorks操作系统的引导代码,读取并解析该启动配置参数后,依据启动配置参数进行启动配置,再依据启动配置加载VxWorks操作系统的系统映像,从而启动VxWorks操作系统。 In the initial design of the VxWorks operating system, a boot configuration parameters (bootline), after the system is powered on, the boot code that is executed VxWorks operating system, start to read and parse the configuration parameters, boot configuration parameters according to boot configuration, and then load the system image based on VxWorks operating system boot configuration, which initiates VxWorks operating system.

[0004] ARJ是90年代应用最广泛的压缩软件之一。 [0004] ARJ 1990s one of the most widely used compression software. 它对系统性能要求低,压缩率较高,压缩解压缩速率快。 Its low system performance requirements, higher compression ratio, compression and expansion rate is fast. 此外,互联网上提供免费的源代码,可以方便地将其嵌入到各种系统中去。 Furthermore, free source code on the Internet, it can easily be fitted to various systems. 发明内容 SUMMARY

[0005] 本发明公开了一种利用ARJ压缩文件优化VxWorks系统启动流程的方法,采用ARJ 压缩文件提供VxWorks系统映像的冗余备份,在引导代码中植入ARJ解压缩功能。 [0005] The present invention discloses a method of using optimized VxWorks ARJ compressed file system startup process, the compressed file using ARJ provide redundant VxWorks system image, ARJ decompression function implanted in the boot code. 当系统启动引导程序运行时,若发现VxWorks映像文件无法正常加载,则调用ARJ解压缩功能重新生成可用的VxWorks映像文件,然后重启系统,即可正常加载系统映像。 When the system boot program is running, if found VxWorks image file can not be loaded properly, call the ARJ decompression functions to regenerate available VxWorks image file, then reboot the system, you can load the normal system image. 本发明采用的技术方案如下:1) 将ARJ解压缩功能移植到VxWorks开发环境中;2) 改进引导代码的引导流程,在引导代码中加入ARJ压缩文件校验功能;3) 改进引导代码的引导流程,当VxWorks映像文件无法正常加载时,调用ARJ解压缩功能重新生成可用的VxWorks映像文件;4) 改进引导代码的引导流程,当解压生成VxWorks映像文件成功后,自动重启系统;5) 将改进后的B00TR0M烧写到设备模块的EPR0M中;6) 在设备模块正常工作时,将VxWorks系统映像的ARJ压缩文件上传到设备模块的FLASH 中。 The present invention adopts the technical solution as follows: 1) The ARJ decompression functionality to the development environment VxWorks; 2) improved boot process of the boot code, ARJ compressed file verification function is added in the boot code; 3) improved boot the boot code process, when the VxWorks image file does not load properly, call ARJ decompression function regenerate VxWorks image file is available; 4) improved boot process of the boot code, when extracting generating VxWorks image file successfully, automatically restart the system; 5) will improve after B00TR0M EPR0M programmed into the device module; 6) when the equipment module is working properly, the compressed ARJ VxWorks system image file to upload module FLASH device.

[0006]本发明的有益技术效果是:提供了一种利用ARJ压缩文件优化VxWorks系统启动流程的方法,当VxWorks映像文件损坏时无需人为干预可自动恢复,能避免由于VxWorks映像文件破坏导致设备无法启动的现象,提高设备的可靠性。 [0006] Advantageous effects of the invention are: to provide a method of optimizing the use of compressed file ARJ VxWorks system startup process, when the image file is corrupted VxWorks can be automatically restored without human intervention, to avoid damage caused VxWorks image file apparatus can not starting, and improve equipment reliability. 方法采用ARJ压缩文件作为备份,对FLASH的存储空间占用小。 Methods ARJ compressed file as a backup, the FLASH memory footprint small.

[0007]附图说明 [0007] BRIEF DESCRIPTION OF DRAWINGS

[0008] 图1、初始设计的B00TR0M引导流程;图2、改进设计的B00TR0M引导流程。 [0008] FIG 1, the initial design flow guide B00TR0M; FIG. 2, the improved design B00TR0M boot flow.

[0009]具体实施方式 [0009] DETAILED DESCRIPTION

[0010] 如图1和图2所示该利用ARJ压缩文件优化VxWorks系统启动流程的方法,其特征在于包含如下步骤:1) 将ARJ解压缩功能移植到VxWorks开发环境中;2) 改进引导代码的引导流程,在引导代码中加入ARJ压缩文件校验功能;3) 改进引导代码的引导流程,当VxWorks映像文件无法正常加载时,调用ARJ解压缩功能,重新生成可用的VxWorks映像文件;4) 改进引导代码的引导流程,当解压生成的VxWorks映像文件可用后,自动重启系统;5) 将改进后的B00TR0M烧写到设备模块的EPR0M中;6) 在设备模块正常工作时,将VxWorks系统映像的ARJ压缩文件上传到设备模块的FLASH 中。 [0010] FIGS. 1 and 2 using the method of VxWorks ARJ compressed file system startup process optimization, characterized in that it comprises the following steps: 1) The ARJ decompression functionality to the development environment VxWorks; 2) improved boot code boot process, the boot code is added in the checking function ARJ compressed file; 3) improved boot process of the boot code, when the image file can not be loaded properly VxWorks, ARJ decompression function call, VxWorks regenerate usable image file; 4) improved boot process of the boot code, generated when the decompression VxWorks image file is available, the system automatically restart; 5) B00TR0M the improved programmed into the device module EPR0M; 6) when the equipment module is working properly, the VxWorks system image the ARJ compressed file uploaded to the FLASH device module.

[0011] 步骤2)中还包括:需要校验ARJ压缩文件是否存在,以及校验压缩文件中是否存在VxWorks映像文件。 [0011] Step 2) further comprising: a need to verify that the file exists ARJ compressed, the compressed file and a check whether there VxWorks image file.

[0012] 步骤3)中还包括:应先删除错误的VxWorks映像文件后再解压,或者在解压缩时采取自动覆盖的方式,文件路径应保持不变。 In [0012] Step 3) further comprises: should first delete the wrong file and then extract the VxWorks image, or take the form automatically covered when decompressing the file path should remain unchanged.

[0013] 以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,根据本发明的技术方案及其发明构思加以等同替换或改变,都应涵盖在本发明的保护范围之内。 [0013] The above are only the preferred specific embodiments of the invention, but the scope of the present invention is not limited thereto, any skilled in the art in the art within the technical scope disclosed by the present invention, according to the present invention its aspect of the inventive concept changes or equivalent replacements to be, shall fall within the scope of the present invention.

Claims (4)

1.一种利用ARJ压缩文件优化VxWorks系统启动流程的方法,其特征在于包括如下步骤:1) 将ARJ解压缩功能移植到VxWorks开发环境中;2) 改进引导代码的引导流程,在引导代码中加入ARJ压缩文件校验功能;3) 改进引导代码的引导流程,当VxWorks映像文件无法正常加载时,调用ARJ解压缩功能,重新生成可用的VxWorks映像文件;4) 改进引导代码的引导流程,当解压生成的VxWorks映像文件可用后,自动重启系统;5) 将改进后的B00TR0M烧写到设备模块的EPROM中;6) 在设备模块正常工作时,将VxWorks系统映像的ARJ压缩文件上传到设备模块的FLASH 中。 A method of using a VxWorks ARJ compressed file system startup process optimization, comprising the following steps: 1) The ARJ decompression functionality to the development environment VxWorks; 2) improved flow guide boot code, the boot code ARJ compressed file checking function is added; 3) improved boot process of the boot code, when the image file can not be loaded properly VxWorks, ARJ decompression function call, VxWorks regenerate usable image file; 4) improved boot process of the boot code, when after extracting the resulting VxWorks image file is available, the system automatically restart; 5) will be programmed into the EPROM device improved B00TR0M module; 6) when the equipment module is working properly, the ARJ VxWorks the compressed file system image upload module to the device the FLASH.
2.步骤2)中还包括:需要校验ARJ压缩文件是否存在,以及校验压缩文件中是否存在VxWorks映像文件。 2. Step 2) further comprising: a need to verify whether ARJ compressed file exists and if there VxWorks image file checksum in the compressed file.
3.步骤3)中还包括:应先删除错误的VxWorks映像文件后再解压,或者在解压缩时采取自动覆盖的方式,文件路径应保持不变。 3. Step 3) also includes: should first delete the wrong file and then extract the VxWorks image, or take the form automatically covered when decompressing the file path should remain unchanged.
4.根据权利要求1所述的一种利用ARJ压缩文件优化VxWorks系统启动流程的方法,其特征在于,VxWorks系统映像的ARJ压缩文件采用外部工具生成,且能够在VxWorks环境下解压成功。 The 1 ARJ utilizing the method of file compression process optimization VxWorks system startup, characterized in that, the ARJ VxWorks compressed file system image generated using an external tool, and can be decompressed successfully on VxWorks claims.
CN201610894849.7A 2016-10-14 2016-10-14 Method for optimizing VxWorks startup process by using ARJ compressed file 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 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
US7702952B2 (en) Firmware update for consumer electronic device
US20070055969A1 (en) System and method for updating firmware
CN102207881B (en) Quick operation system start-up method based on Android
CN1936844A (en) Method and system for updating software
JP4944686B2 (en) Software update method and a mobile terminal device
Shen et al. Journaling of journal is (almost) free
CN101281469B (en) Embedded type system and start-up load application method
CN100578461C (en) Backup method and apparatus for bootstrap
US8201054B2 (en) Fault-tolerant method and apparatus for updating compressed read-only file systems
CN101377744B (en) A terminal device recovery method and apparatus for software upgrade
US20120131320A1 (en) Booting apparatus and method using snapshot image
CN102622280B (en) Based on the software version upgrade method for controlling a dual file system and apparatus
CN103699421B (en) Embedded device upgrade method and apparatus
KR100515890B1 (en) Method of efficiently recovering database
CN103744764A (en) Crontab based whole computer memory stability test method
CN101882085A (en) System starting method and embedded equipment
CN103150231A (en) Computer booting method and computer system
CN103647816A (en) Method and device for upgrading application software
CN101937349B (en) Wireless communication terminal and software upgrading method thereof
CN102929747B (en) Method for treating crash dump of Linux operation system based on loongson server
US20160371095A1 (en) Implementation and Deletion Methods and Apparatuses for Multiple Operating Systems on Smart Device
CN104506639A (en) Root right acquiring method and device
CN102880519A (en) Basic input output system (BIOS) configuration batch modification method
CN101639782A (en) System bootloading method based on embedded operating system
CN102411523B (en) Method and device for storing file backups and backup method for file systems

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination