WO2016101519A1 - Procédé et dispositif pour la réalisation d'un redémarrage de système d'exploitation - Google Patents

Procédé et dispositif pour la réalisation d'un redémarrage de système d'exploitation Download PDF

Info

Publication number
WO2016101519A1
WO2016101519A1 PCT/CN2015/079406 CN2015079406W WO2016101519A1 WO 2016101519 A1 WO2016101519 A1 WO 2016101519A1 CN 2015079406 W CN2015079406 W CN 2015079406W WO 2016101519 A1 WO2016101519 A1 WO 2016101519A1
Authority
WO
WIPO (PCT)
Prior art keywords
operating system
file
kernel
module
restart
Prior art date
Application number
PCT/CN2015/079406
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 WO2016101519A1 publication Critical patent/WO2016101519A1/fr

Links

Images

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/445Program loading or initiating

Definitions

  • the embodiments of the present invention relate to operating system technologies, and in particular, to a method and apparatus for implementing an operating system restart.
  • the restart process of the operating system is divided into two phases: the boot phase and the kernel phase.
  • the booting phase devices such as a memory controller, a storage device, and a bus bridge, which are related to booting an operating system, are mainly detected by a firmware such as a boot chip, and then the kernel of the operating system is loaded and enters the kernel stage.
  • the kernel phase the kernel sets up the required data structures, detects all devices on the operating system, loads the drivers needed by the device and initializes the device, and finally performs user-level initialization.
  • restart time of the operating system For computing devices used in critical applications, longer reboot times reduce availability, affecting the user experience of computing devices, and sometimes even significant economic losses. At present, reducing the restart time of the operating system has received more and more attention.
  • One way to reduce the restart time of the operating system is to shorten the operating system restart time by quickly recovering important data stored in the operating system by the operating system during the kernel phase.
  • Another method is to shorten the operating system restart time by skipping the detection device and directly loading the kernel during the boot phase.
  • the above method for reducing the restart time of the operating system shortens the restart time of the operating system in different ways.
  • the complexity of the operating system such as the complexity of the types of devices managed by the operating system, causes the operating system to restart.
  • it is still long or even unacceptable. Therefore, the market needs to further reduce the restart time of the operating system.
  • An embodiment of the present invention provides a method for implementing an operating system restart, including:
  • the method further includes: reading the device parameter description file from the operating system file.
  • the method further includes: initializing a loading environment required to load the kernel.
  • the loading environment required to initialize the loading kernel includes at least: prohibiting the operating system from responding to the interrupt; and clearing the cache and the fast table of the computing device.
  • the loading the kernel includes: loading the kernel with at least the first starting position and the second starting position as parameters.
  • the embodiment of the invention further discloses an apparatus for implementing an operating system restart, which comprises at least an analysis unit and a preparation unit, wherein
  • the parsing unit is configured to read the kernel image file and the root file system file from the preset operating system file, and read the device parameter description file from the current operating system;
  • the preparation unit includes a shutdown module, a restart module, a save module, and a load module, wherein
  • Load the module set to load the kernel from a fixed location.
  • the parsing module is further configured to: when the device parameter description file fails to be read from the current operating system, read the device parameter description file from the operating system file.
  • the external interface includes at least a network interface.
  • the management device is a watchdog chip.
  • the preparation unit further includes an initialization module, configured to initialize a loading environment required to load the kernel.
  • the initialization module is specifically configured to: prohibit the operating system from responding to the interrupt; and clear the cache and the fast table of the computing device.
  • the loading module is specifically configured to: load the kernel by using at least the first starting position and the second starting position as parameters.
  • the technical solution provided by the embodiment of the present invention reads a kernel image file and a root file system file from a preset operating system file, and reads a device parameter description file from a current operating system;
  • the external interface of the computing device and the management device for resetting the computing device; restart the current operating system, save the kernel image file in a preset fixed location in the memory, and save the root file system file and the device parameter description file in the
  • the first starting position and the second starting position of the applied memory are loaded, and the kernel is loaded from the fixed position.
  • the process of the firmware detecting device in the booting phase is omitted; on the other hand, the reading efficiency is improved by simultaneously reading the required files from the operating system file and the current operating system; Moreover, by loading the kernel from a fixed location in memory, the efficiency of loading the kernel is improved. It can be seen that the embodiment of the present invention improves the restarting efficiency of the operating system from various aspects, and greatly reduces the restart time of the operating system, thereby better satisfying the market demand.
  • FIG. 1 is a flowchart of a method for implementing an operating system restart according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a device for implementing an operating system restart according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for implementing an operating system restart according to the present invention. As shown in FIG. 1 , the method includes:
  • Step 101 Read the kernel image file and the root file system file from the preset operating system file, and read the device parameter description file from the current operating system.
  • the operating system file can be a software package of the Linux operating system; the kernel image file, such as a Linux kernel image file, is used to boot the kernel; the root file system file, such as the root file system of the Linux operating system, is used to boot The root file system is loaded in the kernel; the device parameter description file, such as the device parameter description file of the Linux operating system, is used to initialize the device in the boot kernel.
  • the kernel image file such as a Linux kernel image file
  • the root file system file such as the root file system of the Linux operating system
  • the root file system is loaded in the kernel
  • the device parameter description file such as the device parameter description file of the Linux operating system
  • the operating system saves the device parameter description file in the memory. Therefore, the specific implementation of reading the device parameter description file from the current operating system includes: obtaining the starting position of the memory saving device parameter description file, according to the obtained starting position. Read the device parameter description file.
  • step 101 further includes: reading the device parameter description file from the operating system file.
  • the current operating system does not save the device parameter description file to the memory.
  • the device parameter description file can also be read from the operating system file. Thereby further improving the stability of the method of the invention.
  • Step 102 Shut down an external interface of the computing device where the operating system is located, and a management device for resetting the computing device.
  • the external interface includes at least a network interface, and may also include an external interface such as a Bluetooth interface.
  • the network interface is closed to avoid the information received from the network interface during the restart, such as the network packet interference restart process, thereby improving the stability of the embodiment of the present invention.
  • the management device is a watchdog chip. In this way, the watchdog chip reset computing device is avoided, thereby preventing the firmware from being activated and detecting the device.
  • Step 103 Restart the current operating system, save the kernel image file in a preset fixed position in the memory, and save the root file system file and the device parameter description file in the first starting position and the second starting position of the requested memory. And load the kernel from a fixed location.
  • the memory in this step refers specifically to the kernel state fixed memory, that is, the memory space dedicated to storing the information specified by the kernel.
  • the loaded kernel controls the computing device, so that the restart process enters the kernel phase.
  • the method further includes: initializing a loading environment required to load the kernel.
  • the loading environment required to initialize the loading kernel includes at least: prohibiting the operating system from responding to the interrupt; and clearing the cache and the fast table of the computing device.
  • the cache is a cache in a central processing unit (CPU) in the computing device;
  • the fast table is a cache in a memory management unit (MMU) in the computing device.
  • MMU memory management unit
  • the loading of the kernel in step 103 includes: loading the kernel with at least a first starting position and a second starting position as parameters.
  • the parameters of the loading kernel also include the kernel's command line parameters such as the default print level of the kernel log.
  • FIG. 2 is a schematic structural diagram of a device for implementing an operating system restart according to an embodiment of the present invention, which includes at least an analysis unit and a preparation unit, where
  • the parsing unit is configured to read the kernel image file and the root file system file from the preset operating system file, and read the device parameter description file from the current operating system;
  • the preparation unit includes a shutdown module, a restart module, a save module, and a load module, wherein
  • the module is turned off, set to shut down the external interface of the computing device where the operating system is located, and the management device used to reset the computing device.
  • the external interface includes at least a network interface; the management device is a watchdog chip.
  • the save module is set to save the kernel image file in a preset fixed position in the memory, and save the root file system file and the device parameter description file in the first start position and the second start position of the requested memory.
  • Load the module set to load the kernel from a fixed location.
  • the loaded kernel controls the computing device, so that the restart process enters the kernel phase.
  • parsing module is further configured to: when the device parameter description file fails to be read from the current operating system, read the device parameter description file from the operating system file.
  • the preparation unit also includes an initialization module that is set to initialize the loading environment required to enter the kernel phase. specifically,
  • the initialization module is specifically configured to: disable the operating system from responding to the interrupt; and, to clear the cache and the fast table of the computing device.
  • the loading module is specifically configured to load the kernel by using at least a first starting position and a second starting position as parameters.
  • the method and device for implementing an operating system restart are implemented by using a software implementation, reading a kernel image file and a root file system file from a preset operating system file, and reading from a current operating system.
  • Device parameter description file close the external interface of the computing device where the operating system is located, and the management device for resetting the computing device; restart the current operating system, save the kernel image file in a preset fixed location in the memory, and copy the root file system file
  • the device parameter description file is saved in the first start position and the second start position of the requested memory, and the kernel is loaded from the fixed position.

Landscapes

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

Abstract

La présente invention concerne un procédé et un dispositif permettant la réalisation d'un redémarrage de système d'exploitation, qui sont mis en œuvre sur la base d'un logiciel. Le procédé consiste à : lire un fichier d'image de noyau et un fichier de système de fichiers racine à partir d'un fichier de système d'exploitation préétabli, et lire un fichier de description de paramètres de dispositif à partir du système d'exploitation courant (101); arrêter une interface externe d'un dispositif informatique où est situé le système d'exploitation, ainsi qu'un dispositif de gestion afin de réinitialiser le dispositif informatique (102); et redémarrer le système d'exploitation courant, sauvegarder le fichier d'image de noyau dans une position fixe préétablie d'une mémoire, sauvegarder le fichier de système de fichiers racine et le fichier de description de paramètres de dispositif dans une première position de démarrage et une seconde position de démarrage d'une mémoire appliquée, et charger un noyau à partir de la position fixe (103).
PCT/CN2015/079406 2014-12-26 2015-05-20 Procédé et dispositif pour la réalisation d'un redémarrage de système d'exploitation WO2016101519A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410829411.1A CN105786547A (zh) 2014-12-26 2014-12-26 一种实现操作系统重启的方法和装置
CN201410829411.1 2014-12-26

Publications (1)

Publication Number Publication Date
WO2016101519A1 true WO2016101519A1 (fr) 2016-06-30

Family

ID=56149093

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/079406 WO2016101519A1 (fr) 2014-12-26 2015-05-20 Procédé et dispositif pour la réalisation d'un redémarrage de système d'exploitation

Country Status (2)

Country Link
CN (1) CN105786547A (fr)
WO (1) WO2016101519A1 (fr)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656757A (zh) * 2016-07-25 2018-02-02 南京中兴新软件有限责任公司 操作系统切换方法及装置
CN107276789B (zh) * 2017-05-19 2020-12-01 太仓鸿羽智能科技有限公司 日志上传方法、装置及计算机可读存储介质
CN107291501B (zh) * 2017-06-23 2020-04-24 联想(北京)有限公司 一种系统快速启动方法及电子设备
CN109343956A (zh) * 2018-09-20 2019-02-15 阿里巴巴集团控股有限公司 一种操作系统配置方法及装置
CN112416886A (zh) * 2019-08-21 2021-02-26 普天信息技术有限公司 Linux系统启动方法及装置
CN111090546B (zh) * 2019-12-13 2023-01-10 苏州浪潮智能科技有限公司 一种操作系统重启方法、装置、设备及可读存储介质
CA3181298A1 (fr) * 2020-06-05 2021-12-09 Anand Kumar Goenka Systeme de reinitialisation selective pour un dispositif physique distant
CN111796882A (zh) * 2020-07-21 2020-10-20 北京联想软件有限公司 电子设备系统处理方法、装置及电子设备
CN114579195B (zh) * 2022-03-11 2023-08-18 浪潮商用机器有限公司 一种操作系统重启方法、系统及相关组件

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818869A (zh) * 2006-03-15 2006-08-16 浙江大学 嵌入式操作系统镜像启动的启动优化方法
CN102012823A (zh) * 2009-09-04 2011-04-13 中兴通讯股份有限公司 一种快速重新启动计算机的方法和装置
CN102622280A (zh) * 2011-01-06 2012-08-01 苏州科达科技有限公司 一种基于双文件系统的软件版本升级的控制方法及装置
CN103955389A (zh) * 2014-05-06 2014-07-30 中国科学院微电子研究所 一种基于pcm的系统启动方法

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6173417B1 (en) * 1998-04-30 2001-01-09 Intel Corporation Initializing and restarting operating systems
JP2005222366A (ja) * 2004-02-06 2005-08-18 Nippon Telegr & Teleph Corp <Ntt> 自動復帰方法/プログラム/プログラム記録媒体、処理装置
CN1945531A (zh) * 2006-11-16 2007-04-11 刘金刚 互操作系统的设计方法
CN101556547B (zh) * 2009-05-25 2012-01-25 芯通科技(成都)有限公司 一种安全远程升级嵌入式Linux内核的方法及装置
CN103761124B (zh) * 2014-01-06 2017-03-01 武汉烽火富华电气有限责任公司 用于保护测控装置的嵌入式Linux系统启动方法
CN103885847A (zh) * 2014-02-08 2014-06-25 京信通信系统(中国)有限公司 一种基于嵌入式系统的喂狗方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818869A (zh) * 2006-03-15 2006-08-16 浙江大学 嵌入式操作系统镜像启动的启动优化方法
CN102012823A (zh) * 2009-09-04 2011-04-13 中兴通讯股份有限公司 一种快速重新启动计算机的方法和装置
CN102622280A (zh) * 2011-01-06 2012-08-01 苏州科达科技有限公司 一种基于双文件系统的软件版本升级的控制方法及装置
CN103955389A (zh) * 2014-05-06 2014-07-30 中国科学院微电子研究所 一种基于pcm的系统启动方法

Also Published As

Publication number Publication date
CN105786547A (zh) 2016-07-20

Similar Documents

Publication Publication Date Title
WO2016101519A1 (fr) Procédé et dispositif pour la réalisation d&#39;un redémarrage de système d&#39;exploitation
US9760461B2 (en) Electronic device and firmware recovery program that ensure recovery of firmware
US11157265B2 (en) Firmware update
US9384007B2 (en) Memory virtualization-based snapshot boot apparatus and method
US9703346B2 (en) Firmware interface with backup non-volatile memory storage
US9658863B2 (en) Information processing apparatus and control method therefor
KR101618535B1 (ko) 시스템 사전 부팅 동안 개선된 판독 전용 메모리 록킹을 이용하는 안전한 데이터 보호
US20120311240A1 (en) Information processing apparatus, information processing method, and storage medium
KR101673299B1 (ko) 운영 시스템 복구 방법 및 장치, 그리고 단말기기
US20150095632A1 (en) Computer booting system and method for computer system
US20140149644A1 (en) Electronic apparatus, method of updating firmware, and computer-readable recording medium
US9411605B2 (en) Device-less and system agnostic unified extensible firmware interface (UEFI) driver
US8838952B2 (en) Information processing apparatus with secure boot capability capable of verification of configuration change
US9721104B2 (en) CPU-based measured boot
US11704198B2 (en) Method and apparatus for providing recovery from a computing device boot up error
US9448888B2 (en) Preventing a rollback attack in a computing system that includes a primary memory bank and a backup memory bank
WO2012149774A1 (fr) Procédé et appareil d&#39;activation de processeur
TWI546661B (zh) 使用狀態資訊回復系統之技術
US8572742B1 (en) Detecting and repairing master boot record infections
US10983818B2 (en) Method and system for preventing execution of a dirty virtual machine on an undesirable host server in a virtualization cluster environment
KR100994723B1 (ko) 시스템에서 초기 구동시간을 단축시키는 선택적 서스펜드 리쥼 방법 및 그 기록매체
US9342392B2 (en) Image forming apparatus, image forming apparatus control method, and recording medium
US20140372806A1 (en) Virtual machine system and information storing processing method
CN104978208B (zh) 一种热重启方法及其装置
US10061630B2 (en) Image forming apparatus that ensures operation while HDD is inoperative, and recording medium therefor

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: 15871595

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15871595

Country of ref document: EP

Kind code of ref document: A1