CN105988831B - System starting method and device and electronic equipment - Google Patents

System starting method and device and electronic equipment Download PDF

Info

Publication number
CN105988831B
CN105988831B CN201510065743.1A CN201510065743A CN105988831B CN 105988831 B CN105988831 B CN 105988831B CN 201510065743 A CN201510065743 A CN 201510065743A CN 105988831 B CN105988831 B CN 105988831B
Authority
CN
China
Prior art keywords
electronic device
information
device information
electronic
matching
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
CN201510065743.1A
Other languages
Chinese (zh)
Other versions
CN105988831A (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.)
Lenovo Shanghai Electronics Technology Co Ltd
Original Assignee
Lenovo Shanghai Electronics Technology 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 Lenovo Shanghai Electronics Technology Co Ltd filed Critical Lenovo Shanghai Electronics Technology Co Ltd
Priority to CN201510065743.1A priority Critical patent/CN105988831B/en
Publication of CN105988831A publication Critical patent/CN105988831A/en
Application granted granted Critical
Publication of CN105988831B publication Critical patent/CN105988831B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides system starting methods, devices and electronic equipment, relates to the technical field of computers and solves the problem that a system starting method in the prior art cannot guarantee the safety of a computer.

Description

System starting method and device and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a system starting method and device and electronic equipment.
Background
An operating system is a computer program that manages and controls the hardware and software resources of a computer, and any other software must be run with the support of the operating system. The user needs to install the operating system on the computer first and then start the operating system to use the computer normally. For different reasons or requirements, users sometimes reinstall other operating systems on the computer with the installed operating system or the computer boots with the other operating systems. After the computer is booted, a new operating system is started.
In the process of implementing the invention, the inventor finds that at least the following technical problems exist in the prior art:
for a computer with a higher security requirement, if the computer is reloaded with other operating systems or is booted by using other operating systems, after a new operating system is started, the computer has a potential safety hazard, and the security of the computer cannot be guaranteed.
Disclosure of Invention
The system starting method, the device and the electronic equipment provided by the invention can prevent the electronic equipment from randomly replacing the system, and effectively ensure the safety of the electronic equipment.
, the invention provides system starting methods, which are applied to electronic equipment, and the method comprises the following steps:
when the electronic equipment detects a starting command, operating an th system, wherein the th system acquires th equipment information of the electronic equipment;
the th system reads a loading file of a second system, and second device information of the electronic device is obtained from the loading file of the second system;
the system matching th device information of the electronic device with second device information of the electronic device;
if the matching is successful, the th system runs the loading file of the second system, and the second system is successfully started.
In another aspect, the present invention provides a system starting device in an electronic device, the device including a th system and a second system, wherein,
the th system is configured to, when the electronic device detects a start instruction, obtain th device information of the electronic device, read a load file of a second system, obtain second device information of the electronic device from the load file of the second system, match th device information of the electronic device with the second device information of the electronic device, and, when matching is successful, run the load file of the second system, where the second system is successfully started.
In a further aspect, the present invention provides electronic devices, including a processor, a storage device and an external interface, the electronic devices further including the above system activation apparatus.
According to the system starting method, the device and the electronic equipment provided by the invention, when the electronic equipment detects a starting instruction, the system is operated, the system acquires the th equipment information of the electronic equipment, acquires the second equipment information of the electronic equipment from the read loading file of the second system, matches the th equipment information of the electronic equipment with the second equipment information of the electronic equipment, and if the matching is successful, the system operates the loading file of the second system, and the second system is successfully started.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of system startup methods according to an embodiment of the present invention;
fig. 2 is a flowchart of another system startup methods according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a system startup device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only partial embodiments of of the present invention, rather than all embodiments.
An embodiment of the present invention provides system startup methods, which are applied to an electronic device, and as shown in fig. 1, the system startup method includes:
s11, when the electronic equipment detects a starting instruction, operating a system, and acquiring equipment information of the electronic equipment by the system;
s12, reading the loading file of the second system by the system, and acquiring second device information of the electronic device from the loading file of the second system;
s13, the system matches th device information of the electronic device with second device information of the electronic device;
s14, if the matching is successful, the system runs the loaded file of the second system, and the second system is started successfully.
According to the system starting method provided by the embodiment of the invention, when the electronic equipment detects a starting instruction, the system is operated, the system acquires the th device information of the electronic equipment, acquires the second device information of the electronic equipment from the read loading file of the second system, matches the th device information of the electronic equipment with the second device information of the electronic equipment, and if the matching is successful, the system operates the loading file of the second system, and the second system is successfully started.
Further , as shown in fig. 2, the system startup method may further include:
and S15, if the matching fails, the system sends out a prompt that the version of the second system is wrong, and the second system fails to start.
Further , as shown in fig. 2, the system startup method may further include:
s16, when the matching between the th device information of the electronic device and the second device information of the electronic device by the system fails for a predetermined number of times, locking by the second system.
Thus, the electronic device can be prevented from being replaced with the system at will, ensuring the safety of the electronic device to a certain extent.
Further , before the electronic device detects the start instruction, as shown in fig. 2, the method may further include:
and S17, adding second equipment information in the loading file of the second system.
The loaded file of the second system may be, but is not limited to, a main boot program of the second system.
Optionally, the obtaining th device information of the electronic device may include the th system calculating th device information of the electronic device itself.
For example, the system may obtain th device information of the electronic device according to the model and other information of the electronic device.
In this embodiment, the th device information may be a machine code of the electronic device, and the second device information may be a hardware serial number of the electronic device, but is not limited thereto.
In this embodiment, the electronic device may be a desktop computer, a notebook, or the like, but is not limited thereto.
In this embodiment, the th system may be a BIOS, and the second system may be an operating system such as Linux, Windows, or the like, but is not limited thereto.
Taking a computer with a Linux operating system as an example, a specific flow of the system booting method is described below, wherein the BIOS is the th system, and the Linux operating system is the second system.
Firstly, modifying a source code of a master boot program of a master boot sector of a Linux operating system in a Linux operating system kernel, adding hardware serial numbers related to computer hardware in the master boot program of the master boot sector of the Linux operating system, wherein the hardware serial numbers are obtained by calculation according to the model of the computer, compiling and generating a Linux operating system image file, issuing the Linux operating system, and installing the Linux operating system on the computer;
then, when the computer detects a starting instruction, running the BIOS, carrying out self-checking by the BIOS, and calculating and obtaining a machine code of the computer according to the model of the computer;
then, BIOS reads the main bootstrap program of Linux operation system from the main bootstrap sector of the hard disk, and obtains the hardware serial number of the computer from the main bootstrap program of the Linux operation system;
then, the BIOS matches the hardware serial number of the computer obtained from the main bootstrap program of the Linux operating system with the machine code of the computer obtained by calculation;
if the matching is successful, the BIOS continues to boot the Linux operating system kernel, and the Linux operating system is successfully started;
if the matching fails, the BIOS sends out a prompt that the version of the Linux operating system is wrong, and the Linux operating system fails to be started; and when the matching fails to reach the preset times, locking the Linux operating system.
The embodiment of the present invention further provides system starting apparatuses, which are located in an electronic device, as shown in fig. 3, the apparatuses include a system 11 and a second system 12, wherein,
the th system 11 is configured to, when the electronic device detects a start instruction, obtain th device information of the electronic device, read a load file of a second system 12, obtain second device information of the electronic device from the load file of the second system 12, match th device information of the electronic device with the second device information of the electronic device, and, when the matching is successful, run the load file of the second system 12, where the second system 12 is successfully started.
Compared with the prior art, the system starting device provided by the embodiment of the invention starts the second system only when the th device information acquired by the th system is successfully matched with the second device information acquired by the th system from the loading file of the second system, so that the system replacement of the electronic device can be prevented, and the random safety of the electronic device can be effectively ensured.
, the system 11 may be further configured to issue a second system version error notification when the matching fails, and the second system 12 fails to boot.
, when the system 11 fails to match the th device information of the electronic device with the second device information of the electronic device for a predetermined number of times, the second system 12 locks.
Thus, the electronic device can be prevented from being replaced with the system at will, ensuring the safety of the electronic device to a certain extent.
, the second system 12 can be further configured to add second device information to a loaded file of the second system 12 before the electronic device detects the start instruction.
The loaded file of the second system may be, but is not limited to, a main boot program of the second system.
Optionally, the system 11 may be further configured to obtain th device information of the electronic device by self-computing when the electronic device detects a start instruction.
For example, the system 11 may obtain th device information of the electronic device according to the model of the electronic device and other information.
In this embodiment, the th device information may be a machine code of the electronic device, and the second device information may be a hardware serial number of the electronic device, but is not limited thereto.
In this embodiment, the electronic device may be a desktop computer, a notebook, or the like, but is not limited thereto.
In this embodiment, the th system may be a BIOS, and the second system may be an operating system such as Linux, Windows, or the like, but is not limited thereto.
Taking a computer with a Linux operating system as an example, a specific working flow of the system boot apparatus is described below, wherein the BIOS is the th system, and the Linux operating system is the second system.
Firstly, modifying a source code of a master boot program of a master boot sector of a Linux operating system in a Linux operating system kernel, adding hardware serial numbers related to computer hardware in the master boot program of the master boot sector of the Linux operating system, wherein the hardware serial numbers are obtained by calculation according to the model of the computer, compiling and generating a Linux operating system image file, issuing the Linux operating system, and installing the Linux operating system on the computer;
then, when the computer detects a starting instruction, running the BIOS, carrying out self-checking by the BIOS, and calculating and obtaining a machine code of the computer according to the model of the computer;
then, BIOS reads the main bootstrap program of Linux operation system from the main bootstrap sector of the hard disk, and obtains the hardware serial number of the computer from the main bootstrap program of the Linux operation system;
then, the BIOS matches the hardware serial number of the computer obtained from the main bootstrap program of the Linux operating system with the machine code of the computer obtained by calculation;
if the matching is successful, the BIOS continues to boot the Linux operating system kernel, and the Linux operating system is successfully started;
if the matching fails, the BIOS sends out a prompt that the version of the Linux operating system is wrong, and the Linux operating system fails to be started; and when the matching fails to reach the preset times, locking the Linux operating system.
The embodiment of the present invention further provides electronic devices, where the electronic devices include a processor, a storage device, and an external interface, and the electronic devices further include the system starting apparatus described in the above embodiments.
The system starting method, the device and the electronic equipment in the embodiment of the invention can be suitable for verifying the system version when the electronic equipment starts the system, but are not limited to the method and the device.
It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments may be implemented by instructing the relevant hardware through a computer program, and the program may be stored in computer readable storage medium, and when executed, the program may include the processes of the above embodiments of the methods.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

1, A system starting method applied to electronic equipment, characterized in that, the method includes:
when the electronic equipment detects a starting command, operating an th system, wherein the th system acquires th equipment information of the electronic equipment;
the th system reads a loading file of a second system, and second device information of the electronic device is obtained from the loading file of the second system;
the system matching th device information of the electronic device with second device information of the electronic device;
if the matching is successful, the th system runs the loading file of the second system, and the second system is started successfully;
if the matching fails, the system sends out a prompt that the version of the second system is wrong, the second system fails to start, and when the matching fails for a preset number of times, the second system locks.
2. The system boot method according to claim 1, wherein before the electronic device detects a boot instruction, the method further comprises:
and adding second equipment information in the loading file of the second system.
3. The system booting method of claim 1, wherein the th system obtaining th device information of the electronic device includes the th system calculating th device information of the electronic device itself.
4, system starting device located in an electronic device, characterized in that the device comprises a system and a second system, wherein,
the th system is configured to, when the electronic device detects a start instruction, obtain th device information of the electronic device, read a load file of a second system, obtain second device information of the electronic device from the load file of the second system, match th device information of the electronic device with the second device information of the electronic device, when matching is successful, run the load file of the second system, the second system is successfully started, when matching is failed, a prompt that a version of the second system is incorrect is issued, the second system is failed to start, and when matching fails to reach a predetermined number of times, the second system is locked.
5. The system boot apparatus according to claim 4, wherein the second system is configured to add second device information to a loading file of the second system before the electronic device detects the boot instruction.
6. The system booting device according to claim 4, characterized in that the th system is configured to obtain th device information of the electronic device by calculating itself when the electronic device detects a booting instruction.
An electronic device of the kind 7, , comprising a processor, a memory device and an external interface, characterized in that the electronic device further comprises the system startup device of any of claims 4 to 6 .
CN201510065743.1A 2015-02-09 2015-02-09 System starting method and device and electronic equipment Active CN105988831B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510065743.1A CN105988831B (en) 2015-02-09 2015-02-09 System starting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510065743.1A CN105988831B (en) 2015-02-09 2015-02-09 System starting method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN105988831A CN105988831A (en) 2016-10-05
CN105988831B true CN105988831B (en) 2020-01-31

Family

ID=57038087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510065743.1A Active CN105988831B (en) 2015-02-09 2015-02-09 System starting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN105988831B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582370B (en) * 2018-11-01 2022-07-19 浙江大华技术股份有限公司 Starting method and device of NOR FLASH embedded equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1886729A (en) * 2003-09-24 2006-12-27 T1科技有限公司 Method and device for starting a computer system
CN102567136A (en) * 2010-12-15 2012-07-11 研祥智能科技股份有限公司 Backup and recovery method of computer system, device and computer system
CN103853573A (en) * 2012-12-05 2014-06-11 联想(北京)有限公司 Information processing method and electronic equipment
CN103955649A (en) * 2014-05-23 2014-07-30 四川九成信息技术有限公司 Method for safely starting terminal equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289622B (en) * 2011-09-01 2015-01-28 西安电子科技大学 Trusted startup method based on authentication policy file and hardware information collection
CN103713915A (en) * 2012-09-29 2014-04-09 联想(北京)有限公司 System starting method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1886729A (en) * 2003-09-24 2006-12-27 T1科技有限公司 Method and device for starting a computer system
CN102567136A (en) * 2010-12-15 2012-07-11 研祥智能科技股份有限公司 Backup and recovery method of computer system, device and computer system
CN103853573A (en) * 2012-12-05 2014-06-11 联想(北京)有限公司 Information processing method and electronic equipment
CN103955649A (en) * 2014-05-23 2014-07-30 四川九成信息技术有限公司 Method for safely starting terminal equipment

Also Published As

Publication number Publication date
CN105988831A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
US8949813B2 (en) Systems and methods for facilitating activation of operating systems
KR101856284B1 (en) Backing up firmware during initialization of device
US9703635B2 (en) Method, computer program, and computer for restoring set of variables
US10599419B2 (en) Secure firmware updates using virtual machines to validate firmware packages
US20150074387A1 (en) System and method for auto-enrolling option roms in a uefi secure boot database
US10437580B2 (en) Software updating methods and systems
US10514904B2 (en) Dynamically applying a patch to a computer application
US10025587B2 (en) Method of bootup and installation, and computer system thereof
US9141464B2 (en) Computing device and method for processing system events of computing device
US8549356B2 (en) Method and system for recovery of a computing environment via a hot key sequence at pre-boot or runtime
CN106775674B (en) Equipment based on universal boot loader and starting method thereof
US10338914B2 (en) Dynamically applying a patch to a shared library
CN110780942A (en) System starting method and device, node equipment and computer readable storage medium
TWI581187B (en) Communicating a data image for installing an operating system
CN107077342B (en) Firmware module operation authority
CN105988831B (en) System starting method and device and electronic equipment
TW202131170A (en) Firmware corruption recovery
US20160048389A1 (en) System and method for supporting part replacement
US11928218B2 (en) (BIOS) enforced application blocklist system and method
US11132206B2 (en) Systems and methods for modifying boot operation of an information handling system
US20230222202A1 (en) Bios passwords
JP2018113001A (en) Information equipment and software update processing method for information equipment
JP2009157697A (en) Portable storage medium

Legal Events

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