WO2024031864A1 - Procédé et système de restauration automatique pour défaillance de démarrage de système vxworks, support d'enregistrement et dispositif - Google Patents

Procédé et système de restauration automatique pour défaillance de démarrage de système vxworks, support d'enregistrement et dispositif Download PDF

Info

Publication number
WO2024031864A1
WO2024031864A1 PCT/CN2022/132732 CN2022132732W WO2024031864A1 WO 2024031864 A1 WO2024031864 A1 WO 2024031864A1 CN 2022132732 W CN2022132732 W CN 2022132732W WO 2024031864 A1 WO2024031864 A1 WO 2024031864A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
autoexec
bat
vxworks
config
Prior art date
Application number
PCT/CN2022/132732
Other languages
English (en)
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 中车大连电力牵引研发中心有限公司
Publication of WO2024031864A1 publication Critical patent/WO2024031864A1/fr

Links

Images

Classifications

    • 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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • 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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • 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/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Definitions

  • the invention relates to the technical field of computer systems, and in particular to an automatic repair method, system, storage medium and equipment for VxWorks system startup failure.
  • the embedded real-time VxWorks operating system is widely used, mainly in fields with strong real-time requirements. Therefore, the requirements for its stability have also been increased, especially if a failure occurs, it will cause particularly serious and catastrophic consequences.
  • the high-speed EMU Central Control Unit (CCU) and Event Recording Unit (ERM) use the VxWorks operating system.
  • the former requires real-time processing of data, while the latter requires real-time recording of data, so the system requirements are higher. .
  • Whenever there is a problem with the CCU or ERM it will usually cause the machine to break down and report it to the safety supervision department of the railway Corporation.
  • the present invention discloses an automatic repair method for VxWorks system startup failure, which specifically includes the following steps:
  • config.sys file used to set selections and load the application menu.
  • the shell command calls the rainbow.exe file.
  • the rainbow.exe file is used to check the bootrom. Whether the bin file, the image file of the VxWorks operating system kernel and the autoexec.bat file can run normally;
  • the rainbow.exe file is used to check the autoexec.bat, bootrom.bin, vxload.com, VxWorks files necessary to start the VxWorks system and start its configuration file.
  • the system After the system is powered on and enters the DOS system, it first loads the config.sys file and then the autoexec.bat file.
  • MENUITEM Configuration block name, menu content
  • An automatic repair system for VxWorks system startup failure including:
  • the configuration module configures the bootrom.bin file used to start and load the VxWorks operating system image file in the device equipped with the VxWorks operating system;
  • Format module format the device hard disk into DOS system
  • Setup module configure the config.sys file used to set, select and load the application menu in the DOS system, add a shell command in the config.sys file, the shell command calls the rainbow.exe file and is used to delete and copy the bootrom in the hard disk .bin file, image file, startup configuration file or autoexec.bat file of executable application;
  • Load the module enter the DOS system, first load the config.sys file, set the selection and load the application menu, run the rainbow.exe program, after the user selects the configuration block name, enter the autoexec.bat file processing process;
  • Analysis module in the rainbow.exe program, checks the autoexec.bat, bootrom.bin, vxload.com, VxWorks files necessary to start the VxWorks system and its configuration files to start. When one or several of the above files have problems, delete them. For problematic files, copy the backed up bootrom.bin file, image file, startup configuration file and autoexec.bat file with the correct name to the original directory. After rainbow.exe finishes running, it enters the autoexec.bat file processing process. In the autoexec.bat file processing process, associate the config.sys file with the autoexec.bat file through the goto%config% command, automatically run vxload.com in autoexec.bat, and load the VxWorks image file.
  • a computer-readable storage medium stores a computer program.
  • the computer program is executed by a processor, the steps of the above method are implemented.
  • a universal device for starting and loading application programs under VxWorks including a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the computer program Steps to implement the above method.
  • the present invention provides an automatic repair method system, storage medium and equipment for VxWorks system startup failure.
  • This method edits config.sys, adds the startup patch rainbow.exe, and adds the startup patch rainbow.exe before booting the VxWorks system.
  • the integrity of the boot file is judged without modifying the VxWorks image, so all system files can be judged for attribute modification and file damage, and key system files can be backed up.
  • Figure 1 is a flow chart of the method of the present invention
  • Figure 2 is a structural block diagram of the system of the present invention.
  • Figure 3 is a schematic diagram of an embodiment of the present invention.
  • Figure 4 is a schematic diagram of an embodiment of the present invention.
  • Figure 5 is a schematic diagram of an embodiment of the present invention.
  • a method for automatic repair of VxWorks system startup failure is applied.
  • the invention is applied to all devices using the embedded VxWorks operating system and various application software running on this system.
  • This invention will automatically fix the problem and allow the VxWorks system to continue booting normally without affecting all other functions.
  • an automatic repair method for VxWorks system startup failure includes:
  • the configuration module configures the bootrom.bin file used to start and load the VxWorks operating system image file in the device equipped with the VxWorks operating system;
  • Format module format the device hard disk into DOS system
  • Setup module configure the config.sys file used to set, select and load the application menu in the DOS system, add a shell command in the config.sys file, the shell command calls the rainbow.exe file and is used to delete and copy the bootrom in the hard disk .bin file, image file, startup configuration file or autoexec.bat file of executable application;
  • Load the module enter the DOS system, first load the config.sys file, set the selection and load the application menu, run the rainbow.exe program, after the user selects the configuration block name, enter the autoexec.bat file processing process;
  • Analysis module in the rainbow.exe program, checks the autoexec.bat, bootrom.bin, vxload.com, VxWorks files necessary to start the VxWorks system and its configuration files to start. When one or several of the above files have problems, delete them. For problematic files, copy the backed up bootrom.bin file, image file, startup configuration file and autoexec.bat file with the correct name to the original directory. After rainbow.exe finishes running, it enters the autoexec.bat file processing process. In the autoexec.bat file processing process, associate the config.sys file with the autoexec.bat file through the goto%config% command, automatically run vxload.com in autoexec.bat, and load the VxWorks image file.
  • the DOS system When the high-speed EMU central control unit CCU is powered on, the DOS system is started first. After the DOS system is started, the autoexec.bat file will automatically run. Its function is to perform system settings, such as: path (setting path), mouse (mouse startup), DOSkey (keyboard management), set (setting environment variables), etc. autoexec.bat can also be used to configure startup information, load drivers, etc. Damage to autoexec.bat will cause CCU to fail to start.
  • the startup process is shown in Figure 3. According to Figure 3, we can know that the "autoexec.bat” and "bootrom.bin” files need to be run in sequence before the VxWorks system starts. If you check whether the "autoexec.bat” and “bootrom.bin” files are damaged before running them, if they are damaged, then run the backup file or copy the backup file here to continue execution, which may avoid the CCU startup failure problem. .
  • the config.sys file is a professional system startup configuration file. It is mainly used to load memory management programs, set expanded memory and extended memory, load relevant hardware drivers, set relevant environment variables, etc., to create necessary settings for the normal use of the user's computer. user environment.
  • the name of config.sys comes from the configuration system, and its purpose is to make DOS and the computer work more harmoniously.
  • the rainbow patch program the executable file is rainbow.exe, is called in config.sys, so it can be run before running the "autoexec.bat” and "bootrom.bin” files.

Abstract

Sont divulgués dans la présente invention un procédé et un système de restauration automatique pour défaillance de démarrage de système VxWorks, un support d'enregistrement et un dispositif. Le procédé comprend : la configuration, dans un dispositif contenant un système d'exploitation de VxWorks, d'un fichier de mémoire morte d'amorçage utilisé pour démarrer et charger un fichier d'image de miroir de système d'exploitation de VxWorks ; le formatage d'un disque dur de dispositif à l'aide d'un système DOS ; la configuration, dans un système DOS, d'un fichier config.sys utilisé pour régler, sélectionner et charger un menu d'application, l'entrée dans le système DOS, le chargement d'abord du fichier config.sys, le réglage, la sélection et le chargement du menu d'application, et l'entrée dans un flux de traitement de fichier autoexec.bat après la sélection d'un nom de bloc de configuration ; l'association du fichier config.sys avec le fichier autoexec.bat au moyen d'une commande goto%config% ; en utilisant une instruction de suppression de fichier et de copie de fichier du système DOS, la suppression d'un fichier de mémoire morte d'amorçage défectueuse, d'un fichier d'image miroir, d'un fichier de configuration de démarrage et d'un fichier autoexec.bat ; et la copie du fichier de mémoire morte d'amorçage sauvegardé, du fichier d'image miroir, du fichier de configuration de démarrage et du fichier autoexec.bat dans un répertoire d'origine.
PCT/CN2022/132732 2022-08-09 2022-11-18 Procédé et système de restauration automatique pour défaillance de démarrage de système vxworks, support d'enregistrement et dispositif WO2024031864A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210952738.2 2022-08-09
CN202210952738.2A CN115437818A (zh) 2022-08-09 2022-08-09 VxWorks系统启动失败的自动修复方法、系统、存储介质及设备

Publications (1)

Publication Number Publication Date
WO2024031864A1 true WO2024031864A1 (fr) 2024-02-15

Family

ID=84243353

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/132732 WO2024031864A1 (fr) 2022-08-09 2022-11-18 Procédé et système de restauration automatique pour défaillance de démarrage de système vxworks, support d'enregistrement et dispositif

Country Status (2)

Country Link
CN (1) CN115437818A (fr)
WO (1) WO2024031864A1 (fr)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113608795A (zh) * 2021-06-21 2021-11-05 天津津航计算技术研究所 一种通用的VxWorks下启动并加载应用程序方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5745669A (en) * 1993-10-21 1998-04-28 Ast Research, Inc. System and method for recovering PC configurations
US20150363213A1 (en) * 2014-06-17 2015-12-17 Continental Automotive Gmbh Method For Model-Based Generation Of Startup Configurations Of Embedded Systems
CN107145390A (zh) * 2017-04-10 2017-09-08 北京智能管家科技有限公司 安卓服务生命周期管理方法、服务管理对象及安卓系统
CN113608795A (zh) * 2021-06-21 2021-11-05 天津津航计算技术研究所 一种通用的VxWorks下启动并加载应用程序方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5745669A (en) * 1993-10-21 1998-04-28 Ast Research, Inc. System and method for recovering PC configurations
US20150363213A1 (en) * 2014-06-17 2015-12-17 Continental Automotive Gmbh Method For Model-Based Generation Of Startup Configurations Of Embedded Systems
CN107145390A (zh) * 2017-04-10 2017-09-08 北京智能管家科技有限公司 安卓服务生命周期管理方法、服务管理对象及安卓系统
CN113608795A (zh) * 2021-06-21 2021-11-05 天津津航计算技术研究所 一种通用的VxWorks下启动并加载应用程序方法

Also Published As

Publication number Publication date
CN115437818A (zh) 2022-12-06

Similar Documents

Publication Publication Date Title
US7461293B2 (en) Apparatus and storage system for controlling acquisition of snapshot
US6131192A (en) Software installation
US6161218A (en) Software patch architecture
US8621452B2 (en) Device driver rollback
JP3270216B2 (ja) ファイル名検出方式
US6675295B1 (en) Method and computer system for detecting and correcting a failure in a computer application program during startup
US20120296878A1 (en) File set consistency verification system, file set consistency verification method, and file set consistency verification program
US20080109676A1 (en) Processing device and storage medium
WO2024031864A1 (fr) Procédé et système de restauration automatique pour défaillance de démarrage de système vxworks, support d'enregistrement et dispositif
US7818557B2 (en) Method for re-imaging a computer system
JP5475199B2 (ja) 前処理済みのファイルを実行させるためのファイル処理装置及びその方法をコンピュータで行うための記録媒体
US20050262033A1 (en) Data recording apparatus, data recording method, program for implementing the method, and program recording medium
CN113608795A (zh) 一种通用的VxWorks下启动并加载应用程序方法
TW201015296A (en) Method for auto-testing environment variable setting
CN114138563A (zh) 一种Hyper-V虚拟机备份和还原的方法
JP2002528790A (ja) イメージ・ファイル変更の取り込み方法及び装置
US20160004607A1 (en) Information processing apparatus and information processing method
JP3314204B2 (ja) コンピュータシステム
JP3220182B2 (ja) ファイル複写装置
JP3147333B2 (ja) アプリケーション実行環境作成装置
US11836063B2 (en) System, control device, log extraction method, and computer-readable medium
JP3178671B2 (ja) ファイルシステム及びそのファイル復旧方法
CN116400861A (zh) Nas磁盘的文件删除方法及装置
JPS6191730A (ja) ソフトウエア障害に対する自動復旧処理システム
Zhou et al. Research on Boot Problem and Automatic Repair of an Embedded Real-Time Operating System

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22954803

Country of ref document: EP

Kind code of ref document: A1