CN110737478B - System starting control method and system - Google Patents
System starting control method and system Download PDFInfo
- Publication number
- CN110737478B CN110737478B CN201810793526.8A CN201810793526A CN110737478B CN 110737478 B CN110737478 B CN 110737478B CN 201810793526 A CN201810793526 A CN 201810793526A CN 110737478 B CN110737478 B CN 110737478B
- Authority
- CN
- China
- Prior art keywords
- operation mode
- terminal
- oeminfo
- configuration information
- program
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4403—Processor initialisation
Abstract
The application discloses a system start control method and system, comprising: when a mobile equipment management MDM server receives an instruction for configuring a system operation mode for a terminal, corresponding system operation mode configuration information is generated according to the system operation mode indicated by the instruction and written into an OEMINFO partition file of the terminal, wherein the system operation mode is a single system or a double system; when the terminal is restarted, the system bootstrap program of the terminal reads the OEMINFO partition file, and triggers the kernel to execute a corresponding system initialization program according to the system operation mode configuration information recorded by the OEMINFO partition file so as to start a system in a corresponding operation mode. The invention can meet the starting requirements of single and double systems of different users and is easy to realize.
Description
Technical Field
The present invention relates to computer application technologies, and in particular, to a system start control method and system.
Background
A typical consumer terminal is an operating system, and a terminal that has two operating systems running simultaneously and can switch contexts at will is called a dual-system terminal. In general, a single-system terminal needs to be changed into a dual-system terminal, and the dual-system terminal needs to be changed into the single-system terminal, and the dual-system terminal needs to be changed into the dual-system terminal.
For the same hardware terminal, some customers may want to be single systems and some customers want to be dual systems. Thus, if a single system or a dual system is issued for different clients, it is necessary to make an upgrade package for different system start modes and perform system upgrade, thereby causing much additional labor and resource cost overhead. A corresponding solution to this problem has not been proposed so far.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a system start control method and system, which can meet the single and dual system start requirements of different users, and is easy to implement.
In order to achieve the above purpose, the technical scheme provided by the invention is as follows:
a system start-up control method, comprising:
when a mobile equipment management MDM server receives an instruction for configuring a system operation mode for a terminal, corresponding system operation mode configuration information is generated according to the system operation mode indicated by the instruction and written into an OEMINFO partition file of the terminal, wherein the system operation mode is a single system or a double system;
when the terminal is restarted, the system bootstrap program of the terminal reads the OEMINFO partition file, and triggers the kernel to execute a corresponding system initialization program according to the system operation mode configuration information recorded by the OEMINFO partition file so as to start a system in a corresponding operation mode.
Preferably, the OEMINFO partition file written to the terminal includes:
the MDM server sends the system operation mode configuration information to an MDM client program in the terminal;
the MDM client program sends the received system operation mode configuration information to an MDM service program in the terminal;
and the MDM service program writes the system running mode configuration information into the OEMINFO partition file of the terminal.
Preferably, the triggering the kernel to execute the corresponding system initialization program includes:
the system bootstrap program sends a system initialization program corresponding to the system operation mode configuration information recorded by the OEMINFO partition file to the kernel through a command; and the kernel starts the system with corresponding operation mode by executing the system initialization program.
A system start control system, comprising:
the mobile equipment management MDM server is used for generating corresponding system operation mode configuration information according to the system operation mode indicated by the instruction when receiving the instruction for configuring the system operation mode for the terminal, and writing the system operation mode configuration information into an OEMINFO partition file of the terminal, wherein the system operation mode is a single system or a double system;
and the terminal is used for reading the OEMINFO partition file by using a system boot program of the terminal when the terminal is started, and triggering the kernel to execute a corresponding system initialization program according to the system operation mode configuration information recorded by the OEMINFO partition file so as to start a system in a corresponding operation mode.
Preferably, the method is characterized in that,
the MDM server is used for sending the system operation mode configuration information to an MDM client program in the terminal;
the terminal is used for sending the received system operation mode configuration information to an MDM service program in the terminal through the MDM client program; and writing the system operation mode configuration information into the OEMINFO partition file of the terminal by the MDM service program.
Preferably, the terminal is configured to send a system initialization program corresponding to the system operation mode configuration information recorded by the OEMINFO partition file to the kernel through a command by using the system bootstrap program when the terminal is started; and starting the system in the corresponding operation mode by the kernel through executing the system initialization program.
In summary, the system start control method and system provided by the invention use the MDM server to configure the system operation mode configuration information to the terminal, and use the OEMINFO partition file in the terminal to record the system operation mode configured by the user, so that the system start control method and system can meet the single and double system start requirements of different users without making an upgrade package for different system start modes and upgrading the system, and is easy to implement.
Drawings
FIG. 1 is a schematic flow chart of a method according to an embodiment of the invention;
fig. 2 is a schematic diagram of a system structure according to an embodiment of the invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and the embodiments, in order to make the objects, technical solutions and advantages of the present invention more apparent.
The core idea of the invention is that: the system operation mode information to be adopted is stored in the OEMINFO partition file of the terminal through the mobile equipment management MDM server in advance, so that when the terminal is started, a system bootstrap program triggers a kernel to execute a corresponding system initialization program according to the system operation mode configured in the OEMINFO partition file, and the starting of a corresponding single or double system is realized, thereby meeting the system starting requirements of different users.
Fig. 1 is a flow chart of a method according to an embodiment of the present invention, as shown in fig. 1, a system start control method implemented by this embodiment mainly includes:
The step is used for saving the system operation mode information needed to be configured for the terminal in the OEMINFO partition file through the MDM server, so that when the terminal is started, the corresponding single/double system initialization program can be directly executed according to the system operation mode information in the OEMINFO partition file.
Specifically, the following method may be adopted to write the system operation mode information into the OEMINFO partition file of the terminal:
the MDM server sends the system operation mode configuration information to an MDM client program in the terminal;
the MDM client program sends the received system operation mode configuration information to an MDM service program in the terminal;
and the MDM service program writes the system running mode configuration information into the OEMINFO partition file of the terminal. .
And 102, when the terminal is restarted, the system boot program of the terminal reads the OEMINFO partition file, and triggers the kernel to execute a corresponding system initialization program according to the system operation mode configuration information recorded by the OEMINFO partition file so as to start a system in a corresponding operation mode.
In this step, when the terminal is started each time, the system boot program will record the system operation mode configured by the user according to the OEMINFO partition file, so as to trigger the kernel to execute the corresponding system initialization program, so as to implement the start of the system in the corresponding operation mode. Therefore, the system is not required to be updated by making an upgrade package aiming at different system starting modes, so that the single and double system starting requirements of different users can be met, and the system is easy to realize.
Preferably, the following method may be adopted to trigger the kernel to execute the corresponding system initialization program:
the bootstrap program sends a system initialization program corresponding to the system operation mode configuration information recorded by the OEMINFO partition file to the kernel through a command; and the kernel starts the system with corresponding operation mode by executing the system initialization program.
Specifically, for a single system, the command may be executed by: and (3) transmitting the single-system initialization program corresponding to the system running mode recorded by the OEMINFO partition file to the kernel (namely the kernel of the operating system) by command, init=/init. For dual systems, the command may be executed by: and (3) transmitting the dual-system initialization program corresponding to the system running mode recorded by the OEMINFO partition file to the kernel by the command init=/initns.
Fig. 2 is a schematic structural diagram of a system start control system corresponding to the above method, as shown in fig. 2, where the system includes:
the mobile equipment management MDM server is used for generating corresponding system operation mode configuration information according to the system operation mode indicated by the instruction when receiving the instruction for configuring the system operation mode for the terminal, and writing the system operation mode configuration information into an OEMINFO partition file of the terminal, wherein the system operation mode is a single system or a double system;
and the terminal is used for reading the OEMINFO partition file by using a system boot program of the terminal when the terminal is started, and triggering the kernel to execute a corresponding system initialization program according to the system operation mode configuration information recorded by the OEMINFO partition file so as to start a system in a corresponding operation mode.
Preferably, the method is characterized in that,
the MDM server is used for sending the system operation mode configuration information to an MDM client program in the terminal;
the terminal is used for sending the received system operation mode configuration information to an MDM service program in the terminal through the MDM client program; and writing the system operation mode configuration information into the OEMINFO partition file of the terminal by the MDM service program.
Preferably, the terminal is configured to send a system initialization program corresponding to the system operation mode configuration information recorded by the OEMINFO partition file to the kernel through a command by using the system bootstrap program when the terminal is started; and starting the system in the corresponding operation mode by the kernel through executing the system initialization program.
In summary, the above embodiments are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (6)
1. A system start-up control method, comprising:
when a mobile equipment management MDM server receives an instruction for configuring a system operation mode for a terminal, corresponding system operation mode configuration information is generated according to the system operation mode indicated by the instruction and written into an OEMINFO partition file of the terminal, wherein the system operation mode is a single system or a double system;
when the terminal is restarted, the system bootstrap program of the terminal reads the OEMINFO partition file, and triggers the kernel to execute a corresponding system initialization program according to the system operation mode configuration information recorded by the OEMINFO partition file so as to start a system in a corresponding operation mode.
2. The method of claim 1, wherein writing to the OEMINFO partition file of the terminal comprises:
the MDM server sends the system operation mode configuration information to an MDM client program in the terminal;
the MDM client program sends the received system operation mode configuration information to an MDM service program in the terminal;
and the MDM service program writes the system running mode configuration information into the OEMINFO partition file of the terminal.
3. The method of claim 1, wherein triggering the kernel to execute the corresponding system initialization program comprises:
the system bootstrap program sends a system initialization program corresponding to the system operation mode configuration information recorded by the OEMINFO partition file to the kernel through a command; and the kernel starts the system with corresponding operation mode by executing the system initialization program.
4. A system start control system, comprising:
the mobile equipment management MDM server is used for generating corresponding system operation mode configuration information according to the system operation mode indicated by the instruction when receiving the instruction for configuring the system operation mode for the terminal, and writing the system operation mode configuration information into an OEMINFO partition file of the terminal, wherein the system operation mode is a single system or a double system;
and the terminal is used for reading the OEMINFO partition file by using a system bootstrap program of the terminal when the terminal is restarted, and triggering the kernel to execute a corresponding system initialization program according to the system operation mode configuration information recorded by the OEMINFO partition file so as to start a system in a corresponding operation mode.
5. The system of claim 4, wherein the system further comprises a controller configured to control the controller,
the MDM server is used for sending the system operation mode configuration information to an MDM client program in the terminal;
the terminal is used for sending the received system operation mode configuration information to an MDM service program in the terminal through the MDM client program; and writing the system operation mode configuration information into the OEMINFO partition file of the terminal by the MDM service program.
6. The system of claim 4, wherein the terminal is configured to use the system boot program to send the OEMINFO via a command when the terminal is started
A system initialization program corresponding to the system running mode configuration information recorded by the partition file is sent to the kernel;
and starting the system in the corresponding operation mode by the kernel through executing the system initialization program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810793526.8A CN110737478B (en) | 2018-07-18 | 2018-07-18 | System starting control method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810793526.8A CN110737478B (en) | 2018-07-18 | 2018-07-18 | System starting control method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110737478A CN110737478A (en) | 2020-01-31 |
CN110737478B true CN110737478B (en) | 2023-05-26 |
Family
ID=69235555
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810793526.8A Active CN110737478B (en) | 2018-07-18 | 2018-07-18 | System starting control method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110737478B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07162509A (en) * | 1993-12-07 | 1995-06-23 | Nec Corp | Program revision method for electronic exchange |
US7219219B1 (en) * | 2004-01-13 | 2007-05-15 | Advanced Micro Devices, Inc. | Hardware initialization method that is independent of boot code architecture |
CN101356501A (en) * | 2005-11-14 | 2009-01-28 | 阿登斯公司 | Method and apparatus for fast boot of an operating system |
CN102486723A (en) * | 2010-12-01 | 2012-06-06 | 研祥智能科技股份有限公司 | Method for realizing ChMC (Chassis Management Controller) and VMC (VPX Manager Controller) on VPX (Versatile Protocol Switch) platform veneer and VPX platform |
CN102830990A (en) * | 2012-07-20 | 2012-12-19 | 大唐移动通信设备有限公司 | Computer system starting method and computer terminal |
CN102867158A (en) * | 2011-07-07 | 2013-01-09 | 联想(北京)有限公司 | Memory switching method, memory switching device and terminal with dual systems |
CN103577210A (en) * | 2012-08-06 | 2014-02-12 | 广州三星通信技术研究有限公司 | System and method for mounting between mobile terminals |
CN104142859A (en) * | 2014-07-31 | 2014-11-12 | 深圳市中兴移动通信有限公司 | Fast switching method and device for double systems and mobile terminal |
CN105320558A (en) * | 2014-06-30 | 2016-02-10 | 青岛海信移动通信技术股份有限公司 | Mobile terminal and start method thereof |
CN107295166A (en) * | 2017-06-09 | 2017-10-24 | 青岛海信移动通信技术股份有限公司 | The startup method and mobile terminal of a kind of dual system mobile terminal |
CN107608743A (en) * | 2017-09-04 | 2018-01-19 | 维沃移动通信有限公司 | A kind of operating system customizing method, server and mobile terminal |
CN107766145A (en) * | 2016-08-18 | 2018-03-06 | 成都鼎桥通信技术有限公司 | EMS memory management process and device under dual system |
CN107786486A (en) * | 2016-08-18 | 2018-03-09 | 成都鼎桥通信技术有限公司 | The Activiation method and device of operating system |
-
2018
- 2018-07-18 CN CN201810793526.8A patent/CN110737478B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07162509A (en) * | 1993-12-07 | 1995-06-23 | Nec Corp | Program revision method for electronic exchange |
US7219219B1 (en) * | 2004-01-13 | 2007-05-15 | Advanced Micro Devices, Inc. | Hardware initialization method that is independent of boot code architecture |
CN101356501A (en) * | 2005-11-14 | 2009-01-28 | 阿登斯公司 | Method and apparatus for fast boot of an operating system |
CN102486723A (en) * | 2010-12-01 | 2012-06-06 | 研祥智能科技股份有限公司 | Method for realizing ChMC (Chassis Management Controller) and VMC (VPX Manager Controller) on VPX (Versatile Protocol Switch) platform veneer and VPX platform |
CN102867158A (en) * | 2011-07-07 | 2013-01-09 | 联想(北京)有限公司 | Memory switching method, memory switching device and terminal with dual systems |
CN102830990A (en) * | 2012-07-20 | 2012-12-19 | 大唐移动通信设备有限公司 | Computer system starting method and computer terminal |
CN103577210A (en) * | 2012-08-06 | 2014-02-12 | 广州三星通信技术研究有限公司 | System and method for mounting between mobile terminals |
CN105320558A (en) * | 2014-06-30 | 2016-02-10 | 青岛海信移动通信技术股份有限公司 | Mobile terminal and start method thereof |
CN104142859A (en) * | 2014-07-31 | 2014-11-12 | 深圳市中兴移动通信有限公司 | Fast switching method and device for double systems and mobile terminal |
CN107766145A (en) * | 2016-08-18 | 2018-03-06 | 成都鼎桥通信技术有限公司 | EMS memory management process and device under dual system |
CN107786486A (en) * | 2016-08-18 | 2018-03-09 | 成都鼎桥通信技术有限公司 | The Activiation method and device of operating system |
CN107295166A (en) * | 2017-06-09 | 2017-10-24 | 青岛海信移动通信技术股份有限公司 | The startup method and mobile terminal of a kind of dual system mobile terminal |
CN107608743A (en) * | 2017-09-04 | 2018-01-19 | 维沃移动通信有限公司 | A kind of operating system customizing method, server and mobile terminal |
Non-Patent Citations (2)
Title |
---|
windows技巧集;淡蓝冰;《https://blog.csdn.net/woxiangfang/article/details/3695581》;20090103;全文 * |
海外版mate9刷机国行android 8.0系统;qq_30852577;《https://blog.csdn.net/qq_30852577/article/details/79189410》;20180128;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110737478A (en) | 2020-01-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8601466B2 (en) | Software deployment method and system, software deployment server and user server | |
WO2017031954A1 (en) | Data communication method, user equipment, and server | |
CN102571940B (en) | Application program remote installation system, method, intelligent terminal, application server | |
JP2019135637A (en) | Information processing method, information processing device, server, and computer-readable recording medium | |
JP2003114806A (en) | Os updating method, security control method, and apparatus for accomplishing the same | |
CN111800285B (en) | Instance migration method and device and electronic equipment | |
CN110520844A (en) | Cloud management platform, virtual machine management method and its system | |
US20090157884A1 (en) | Generic remote connection to a command line interface application | |
EP3076694B1 (en) | Multiple connection management for bluetooth low energy devices | |
CN111614490A (en) | Management system and method for managed container cluster based on top-level container cluster | |
CN103777981A (en) | Multi-operation-system remote loading implementation method suitable for X86 framework | |
JP2021524104A (en) | Master / Standby Container System Switching | |
CN109067599A (en) | A kind of method and device for disposing cluster | |
CN111582824B (en) | Cloud resource synchronization method, device, equipment and storage medium | |
CN101944129A (en) | Diskless system, workstation thereof, and building method of local root file by workstation | |
CN104375857A (en) | Method and device for enabling application program to operate multiple instances and terminal equipment | |
CN112363845A (en) | Data synchronization method of system integration middling station and integration middling station system | |
CN113572862A (en) | Cluster deployment method and device, electronic equipment and storage medium | |
CN112804375B (en) | Configuration method for single network card and multiple IPs | |
CN110737478B (en) | System starting control method and system | |
CN110753040B (en) | Request processing method and device | |
CN113268308B (en) | Information processing method, device and storage medium | |
CN111142885B (en) | eSIM equipment management method, device, equipment and storage medium | |
CN111475435A (en) | Storage medium sharing method and device, electronic equipment and storage medium | |
CN111352900A (en) | Virtualized application file access method, device, server and storage medium |
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 |