CN109284137B - Hypervisor-based QNX operating system starting method and device - Google Patents

Hypervisor-based QNX operating system starting method and device Download PDF

Info

Publication number
CN109284137B
CN109284137B CN201811110745.8A CN201811110745A CN109284137B CN 109284137 B CN109284137 B CN 109284137B CN 201811110745 A CN201811110745 A CN 201811110745A CN 109284137 B CN109284137 B CN 109284137B
Authority
CN
China
Prior art keywords
mirror image
task
operating system
loading
starting
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.)
Active
Application number
CN201811110745.8A
Other languages
Chinese (zh)
Other versions
CN109284137A (en
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.)
Wuhan Kotei Informatics Co Ltd
Original Assignee
Wuhan Kotei Informatics 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 Wuhan Kotei Informatics Co Ltd filed Critical Wuhan Kotei Informatics Co Ltd
Priority to CN201811110745.8A priority Critical patent/CN109284137B/en
Publication of CN109284137A publication Critical patent/CN109284137A/en
Application granted granted Critical
Publication of CN109284137B publication Critical patent/CN109284137B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Abstract

The invention discloses a method and a device for starting a QNX operating system based on Hypervisor, which are used in the field of computers. The method provided by the invention comprises the following steps: marking tasks which are started in advance in a QNX operating system of the Hypervisor; starting a compiling script to respectively generate a primary mirror image and a secondary mirror image for the pre-priority started task and the general task; and after the QNX operating system is electrified, loading the primary mirror image, and when the primary mirror image is successfully loaded, loading the secondary mirror image to finish the starting of the QNX operating system. According to the invention, after the automobile terminal system is powered on, the loading sequence can be determined according to the mirror image, so that the corresponding application program can be rapidly executed, the starting speed of the QNX system is increased, and the real-time loading of the system is realized.

Description

Hypervisor-based QNX operating system starting method and device
Technical Field
The invention relates to the field of computers, in particular to a QNX operating system starting method and device based on Hypervisor.
Background
QNX based on Hypervisor is a commercial standard complying with POSIX, is commonly used in automobiles and routers, is an embedded real-time operating system, and generally has a high requirement on the starting speed of the system. The current boot of the Hypervisor QNX operating system is the integral boot, the whole system is started step by step from the bottom layer to the application, the interruption can not be carried out in the midway, and the loading of all the components is required to be finished.
For the starting of the QNX system, a scheme is often adopted in which a functional module for quick starting is cut, and a code of each system module is optimized, but the scheme has a limited space for optimization, and it is difficult to increase the starting speed of the system to a greater extent.
Disclosure of Invention
The embodiment of the invention provides a method and a device for starting a QNX operating system based on Hypervisor, which are used for starting the QNXA system in real time and improving the starting speed.
In a first aspect of the embodiments of the present invention, a method and an apparatus for starting a QNX operating system based on Hypervisor are provided, where the method includes:
marking tasks which are started in advance in a QNX operating system of the Hypervisor;
starting a compiling script to respectively generate a primary mirror image and a secondary mirror image for the pre-priority started task and the general task;
and after the QNX operating system is electrified, loading the primary mirror image, and when the primary mirror image is successfully loaded, loading the secondary mirror image to finish the starting of the QNX operating system.
In a second aspect of the embodiments of the present invention, there is provided a device for starting a QNX operating system based on Hypervisor, including:
a marking module: the task is used for marking the pre-priority starting in the QNX operating system of the Hypervisor;
a compiling module: the system is used for starting the compiling script to respectively generate a primary mirror image and a secondary mirror image for the pre-priority started task and the general task;
loading a module: and the method is used for loading the primary mirror image after the QNX operating system is powered on, and loading the secondary mirror image to finish the starting of the QNX operating system when the primary mirror image is loaded successfully.
According to the technical scheme, the embodiment of the invention has the following advantages:
in the embodiment of the invention, the task of preferential start is marked, two different images are generated by using the compiling script, and the system start can be completed by respectively loading the two images, so that the loading sequence can be determined according to the images after the system is powered on, the corresponding application program can be rapidly executed, the starting speed of the QNX system is improved, and the real-time loading of the system is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a method for starting a QNX operating system based on Hypervisor according to an embodiment of the present invention;
fig. 2 is another schematic diagram of a method for starting a QNX operating system based on Hypervisor according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a QNX operating system starting device based on Hypervisor according to an embodiment of the present invention;
Detailed Description
The embodiment of the invention provides a method and a device for starting a QNX operating system based on Hypervisor, which are used for solving the problem that the existing QNX operating system is slow to start.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, a flow diagram of a method for starting a QNX operating system based on Hypervisor according to an embodiment of the present invention includes:
s101, marking a task which is started in advance in a QNX operating system of the Hypervisor;
the QNX operating system of the Hypervisor is an embedded real-time operating system, is commonly used in the field of automobiles, and generally has higher requirements on starting speed. The pre-priority starting task is a task which must be loaded or executed firstly by the QNX system and a task which is executed preferentially according to the requirement of a user. For example, if a voice prompt of the system needs to be loaded preferentially, the system voice prompt module may be marked.
Optionally, library files and components corresponding to the tasks started in advance are marked. Besides marking the tasks which are started preferentially, resource files and the like which need to be loaded need to be marked, and the requirement of temporarily searching for request resources when the system is started is avoided.
S102, starting a compiling script to respectively generate a primary mirror image and a secondary mirror image for the pre-priority started task and the general task;
the compiling script is used for dividing the system image file into a first-level image and a second-level image according to the priority of the task, and compiling the starting program to be quickly executed after the system is powered on. The general task is a task that needs to be started except the pre-priority starting task.
And setting the pre-priority started task as a primary mirror image, and setting the general task as a secondary mirror image, so that part of tasks can be started and executed preferentially according to the needs of users.
S103, after the QNX operating system is powered on, loading the primary mirror image, and when the primary mirror image is loaded successfully, loading the secondary mirror image to complete the starting of the QNX operating system.
Before the second-level mirror image loading is completed, the task preferentially executed by the system can complete the operation of a part of functions in advance, so that the system efficiency can be improved.
Optionally, after the QNX operating system is powered on, loading the primary image further includes:
and when the loading of the primary mirror image fails, judging whether the highest priority task successfully starts a detection mechanism, and when the highest priority task successfully starts the detection mechanism, saving a system log and entering a console to check the task which fails to be executed in the primary mirror image.
Optionally, the loading the secondary image to complete the booting of the QNX operating system further includes:
and when the loading of the secondary mirror image fails, judging whether the task with the highest priority successfully starts a detection mechanism, and when the task with the highest priority successfully starts the detection mechanism, saving a system log and entering a console to check the task which fails to be executed in the secondary mirror image.
Optionally, the determining whether the detection mechanism is successfully started by the highest priority task further includes:
and when the highest priority task starting detection mechanism fails, exiting the starting process of the current QNX operating system.
In the embodiment of the invention, the QNX system starting speed can be accelerated by marking the priority starting task and compiling the image file before the system is powered on.
For ease of understanding, according to the embodiment described in fig. 1, the following describes the procedure of booting the QNX operating system based on Hypervisor in step S103 with reference to fig. 2:
in fig. 2, the first-level mirror image and the second-level mirror image are loaded respectively after the system is powered on, specifically, before S202, the system enters bootloader after being powered on, and the hardware device is initialized.
After the system is initialized, the first-level image file in S202 is first loaded, and if the loading fails, a detection mechanism is entered to check the highest-priority task, where the highest-priority task is set for system priority and is used to save the log and check the task execution condition by default. By the highest priority task, the task execution condition in the current level of mirror image can be checked, and the failed task can be prompted to be executed. For tasks that fail to execute, the cause of the error may be checked or the system may be restarted.
In S204, if the highest priority task fails to execute, the current system is exited. The option is to restart the system or troubleshoot error problems.
In S205, when the secondary mirror loading fails, it is determined whether the highest priority task is successfully executed, and if the highest priority task is successfully executed, the current system start log is saved, and which tasks failed to be executed are prompted. And if the execution fails, exiting the current system.
The task execution log is stored after the mirror image loading of the system fails, so that the error reason can be checked, the system crash can be avoided, and the system starting safety is ensured
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Example two:
the method for starting the QNX operating system based on the Hypervisor is mainly described above, and a details of the apparatus for starting the QNX operating system based on the Hypervisor will be described below.
Fig. 3 is a block diagram showing an embodiment of a device for starting a QNX operating system according to an embodiment of the present invention, where the system includes:
the marking module 310: the task is used for marking the pre-priority starting in the QNX operating system of the Hypervisor;
optionally, the marking module 310 includes:
a marking unit: and the library file and the component corresponding to the pre-priority started task are marked.
The compiling module 320: the system is used for starting the compiling script to respectively generate a primary mirror image and a secondary mirror image for the pre-priority started task and the general task;
the loading module 330: and the method is used for loading the primary mirror image after the QNX operating system is powered on, and loading the secondary mirror image to finish the starting of the QNX operating system when the primary mirror image is loaded successfully.
Optionally, the loading module 330 includes:
a first loading unit: and the system is used for judging whether the highest priority task successfully starts a detection mechanism or not when the loading of the primary mirror image fails, and storing a system log and entering a console to check the task which fails to be executed in the primary mirror image when the highest priority task successfully starts the detection mechanism.
Optionally, the loading module 330 includes:
a second loading unit: and the system log is stored and enters a console to check the task which fails to be executed in the secondary mirror image when the secondary mirror image fails to be loaded and the detection mechanism is judged whether to be successfully started by the task with the highest priority.
Optionally, the determining whether the detection mechanism is successfully started by the highest priority task further includes:
and when the highest priority task starting detection mechanism fails, exiting the starting process of the current QNX operating system.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the modules, elements, and/or method steps of the various embodiments described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (6)

1. A QNX operating system starting method based on Hypervisor is characterized by comprising the following steps:
marking tasks which are started in advance in a QNX operating system of the Hypervisor;
starting a compiling script to respectively generate a primary mirror image and a secondary mirror image for the pre-priority started task and the general task;
after the QNX operating system is powered on, loading the primary mirror image, and when the primary mirror image is successfully loaded, loading the secondary mirror image to complete the starting of the QNX operating system;
after the QNX operating system is powered on, loading the first-level mirror image further comprises:
when the loading of the primary mirror image fails, judging whether a detection mechanism is successfully started by a task with the highest priority, and when the detection mechanism is successfully started by the task with the highest priority, saving a system log and entering a console to check the task which fails to be executed in the primary mirror image;
and when the highest priority task starting detection mechanism fails, exiting the starting process of the current QNX operating system.
2. The method of claim 1, wherein marking tasks pre-prioritized for boot in the QNX operating system of the Hypervisor further comprises:
and marking library files and components corresponding to the tasks started in advance.
3. The method of claim 1, wherein said then loading the secondary image to complete the booting of the QNX operating system further comprises:
and when the loading of the secondary mirror image fails, judging whether the task with the highest priority successfully starts a detection mechanism, and when the task with the highest priority successfully starts the detection mechanism, saving a system log and entering a console to check the task which fails to be executed in the secondary mirror image.
4. A QNX operating system starting device based on Hypervisor is characterized by comprising:
a marking module: the task is used for marking the pre-priority starting in the QNX operating system of the Hypervisor;
a compiling module: the system is used for starting the compiling script to respectively generate a primary mirror image and a secondary mirror image for the pre-priority started task and the general task;
loading a module: the method is used for loading the primary mirror image after the QNX operating system is powered on, and loading the secondary mirror image to finish the starting of the QNX operating system when the primary mirror image is loaded successfully;
the loading module comprises:
a first loading unit: the system is used for judging whether the highest priority task successfully starts a detection mechanism or not when the loading of the primary mirror image fails, and storing a system log and entering a console to check the task which fails to be executed in the primary mirror image when the highest priority task successfully starts the detection mechanism;
and when the highest priority task starting detection mechanism fails, exiting the starting process of the current QNX operating system.
5. The apparatus of claim 4, wherein the tagging module comprises:
a marking unit: and the library file and the component corresponding to the pre-priority started task are marked.
6. The apparatus of claim 4, wherein the loading module comprises:
a second loading unit: and the system log is stored and enters a console to check the task which fails to be executed in the secondary mirror image when the secondary mirror image fails to be loaded and the detection mechanism is judged whether to be successfully started by the task with the highest priority.
CN201811110745.8A 2018-09-21 2018-09-21 Hypervisor-based QNX operating system starting method and device Active CN109284137B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811110745.8A CN109284137B (en) 2018-09-21 2018-09-21 Hypervisor-based QNX operating system starting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811110745.8A CN109284137B (en) 2018-09-21 2018-09-21 Hypervisor-based QNX operating system starting method and device

Publications (2)

Publication Number Publication Date
CN109284137A CN109284137A (en) 2019-01-29
CN109284137B true CN109284137B (en) 2022-02-11

Family

ID=65181551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811110745.8A Active CN109284137B (en) 2018-09-21 2018-09-21 Hypervisor-based QNX operating system starting method and device

Country Status (1)

Country Link
CN (1) CN109284137B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112711427A (en) * 2019-10-24 2021-04-27 华为技术有限公司 Method and device for acquiring mirror image file
CN111061521B (en) * 2019-12-13 2023-06-09 恒为科技(上海)股份有限公司 Method and system for starting equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2444685A1 (en) * 2003-02-07 2004-08-07 Yaron Mayer System and method for improving the efficiency, comfort, and/or reliability in operating systems, such as for example windows
CN101354652A (en) * 2007-07-23 2009-01-28 英华达(南京)科技有限公司 Structure for rapidly starting up of electric product and method thereof
CN101515239A (en) * 2009-04-08 2009-08-26 南京航空航天大学 Quick start method of X86 flight control computer
CN101980157A (en) * 2010-10-13 2011-02-23 中兴通讯股份有限公司 Mobile terminal starting method and mobile terminal
CN104102506A (en) * 2014-04-25 2014-10-15 华南理工大学 ARM (Advanced RISC Machine) platform based Android startup acceleration method
CN105302588A (en) * 2014-07-09 2016-02-03 联想移动通信科技有限公司 Terminal application loading method and apparatus and terminal
CN107203386A (en) * 2017-06-09 2017-09-26 山东超越数控电子有限公司 A kind of android system based on ARM platforms accelerates startup method
CN108174255A (en) * 2017-12-25 2018-06-15 深圳Tcl数字技术有限公司 Smart television starting-up method, smart television and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050240756A1 (en) * 2003-01-12 2005-10-27 Yaron Mayer System and method for improving the efficiency, comfort, and/or reliability in Operating Systems, such as for example Windows.

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2444685A1 (en) * 2003-02-07 2004-08-07 Yaron Mayer System and method for improving the efficiency, comfort, and/or reliability in operating systems, such as for example windows
CN101354652A (en) * 2007-07-23 2009-01-28 英华达(南京)科技有限公司 Structure for rapidly starting up of electric product and method thereof
CN101515239A (en) * 2009-04-08 2009-08-26 南京航空航天大学 Quick start method of X86 flight control computer
CN101980157A (en) * 2010-10-13 2011-02-23 中兴通讯股份有限公司 Mobile terminal starting method and mobile terminal
CN104102506A (en) * 2014-04-25 2014-10-15 华南理工大学 ARM (Advanced RISC Machine) platform based Android startup acceleration method
CN105302588A (en) * 2014-07-09 2016-02-03 联想移动通信科技有限公司 Terminal application loading method and apparatus and terminal
CN107203386A (en) * 2017-06-09 2017-09-26 山东超越数控电子有限公司 A kind of android system based on ARM platforms accelerates startup method
CN108174255A (en) * 2017-12-25 2018-06-15 深圳Tcl数字技术有限公司 Smart television starting-up method, smart television and computer readable storage medium

Also Published As

Publication number Publication date
CN109284137A (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN107769949B (en) Application component deployment method and deployment node
US9928059B1 (en) Automated deployment of a multi-version application in a network-based computing environment
CN107329792B (en) Docker container starting method and device
US20240111549A1 (en) Method and apparatus for constructing android running environment
CN108809683B (en) Method and device for deploying cloud application system
EP3879875A1 (en) Resource change method and device, apparatus, and storage medium
EP3522449B1 (en) Service state transition method and device
CN109284137B (en) Hypervisor-based QNX operating system starting method and device
CN110609755A (en) Message processing method, device, equipment and medium for cross-block chain node
CN108595195B (en) Application program updating method, device, terminal and storage medium
CN113885971A (en) State management method and device based on self-adaptive platform system
CN113672368A (en) Task scheduling method and system
CN113721948A (en) Database upgrading method, system and storage medium
CN111131131B (en) Vulnerability scanning method and device, server and readable storage medium
CN112286559A (en) Upgrading method and device for vehicle-mounted intelligent terminal
US11307973B2 (en) Method and device for testing robustness and stability of SMM, and storage medium
CN107885548B (en) System starting method and device
CN107025126B (en) Resource scheduling method, NFVO and system
CN113419814B (en) Virtual machine creating method, device, equipment and storage medium in cloud platform
CN114237722B (en) System starting method, device, equipment and engineering vehicle
CN106776050B (en) Multi-user process mutual exclusion method and device
CN114327673A (en) Task starting method and device, electronic equipment and storage medium
CN111930626B (en) Automatic testing method and device based on PaaS cloud service
CN111694608B (en) System upgrading method and device of terminal equipment, electronic equipment and terminal equipment
CN115220861A (en) Virtual client management method, apparatus, medium, and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant