CN116028129A - UEFI (unified extensible firmware interface) quick starting method based on Feiteng platform and Feiteng platform - Google Patents

UEFI (unified extensible firmware interface) quick starting method based on Feiteng platform and Feiteng platform Download PDF

Info

Publication number
CN116028129A
CN116028129A CN202310318880.6A CN202310318880A CN116028129A CN 116028129 A CN116028129 A CN 116028129A CN 202310318880 A CN202310318880 A CN 202310318880A CN 116028129 A CN116028129 A CN 116028129A
Authority
CN
China
Prior art keywords
uefi
platform
feiteng
hard disk
memory unit
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.)
Granted
Application number
CN202310318880.6A
Other languages
Chinese (zh)
Other versions
CN116028129B (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.)
Hunan Bojiang Information Technology Co Ltd
Original Assignee
Hunan Bojiang Information 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 Hunan Bojiang Information Technology Co Ltd filed Critical Hunan Bojiang Information Technology Co Ltd
Priority to CN202310318880.6A priority Critical patent/CN116028129B/en
Publication of CN116028129A publication Critical patent/CN116028129A/en
Application granted granted Critical
Publication of CN116028129B publication Critical patent/CN116028129B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a UEFI quick starting method based on a Feiteng platform and the Feiteng platform, which can obviously improve the starting speed of the Feiteng platform, thereby more efficiently meeting the demands of users; firstly, after the Feiteng platform is electrified, the SEC function module and the PEI function module of the UEFI driver are aggregated in the second flash memory unit, so that the SEC function module and the PEI function module can be loaded under the condition of not depending on the memory unit, and the loading speed of the SEC function module and the PEI function module is improved; setting the flight vacation processor to a minimum energy-saving mode, and further improving the running power of the flight vacation processor, so that the running efficiency is improved; then skipping a memory detection stage through the SEC functional module, and shortening the starting time; finally, starting by directly guiding a certain fixed operating system in the hard disk unit; by combining the technical scheme, the starting speed of the Feiteng platform can be obviously improved.

Description

UEFI (unified extensible firmware interface) quick starting method based on Feiteng platform and Feiteng platform
Technical Field
The invention relates to the technical field of Feiteng platforms, in particular to a UEFI quick starting method based on the Feiteng platform and the Feiteng platform.
Background
With the rapid development of computer hardware technology, cloud computing and big data technology are rapidly spreading; the requirements of users on the performance and the computing power of the computer are continuously improved, and the traditional Feiteng platform adopts a BIOS (Basic Input Output System ) module as a starting module of an operating system, but the BIOS module has slower speed for starting the operating system because of the design deficiency, and can not meet the requirements of the users.
Disclosure of Invention
The invention mainly aims to provide a UEFI quick starting method based on a Feiteng platform and the Feiteng platform, and aims to solve the problems that the existing Feiteng platform is low in speed of starting an operating system and cannot meet user requirements more and more.
The technical scheme provided by the invention is as follows:
a UEFI quick starting method based on a Feiteng platform is applied to the Feiteng platform; the Feiteng platform comprises a main board, a Feiteng processor, a first flash memory unit, a second flash memory unit, a hard disk unit and a memory unit; the Feiteng processor, the first flash memory unit, the second flash memory unit, the hard disk unit and the memory unit are all arranged on the main board; the first flash memory unit, the second flash memory unit, the hard disk unit and the memory unit are all in communication connection with the Feiteng processor; the first flash unit is solidified with a UEFI driver; the method comprises the following steps:
after the Feiteng platform is electrified, aggregating the SEC function module and the PEI function module of the UEFI driver into a second flash memory unit;
setting the Feiteng processor to a minimum energy-saving mode through a UEFI (unified extensible firmware interface) driver, and loading microcode;
skipping a memory detection stage through the SEC functional module, and initializing a memory unit through a memory controller arranged on the main board;
the pre-starting mode is changed into a fixed mode starting mode so as to guide the starting of an operating system in the hard disk unit.
Preferably, the step of skipping the memory detection stage by the SEC function module and initializing the memory unit by the memory controller disposed on the motherboard, and the step of changing the pre-boot mode to the fixed mode for booting the operating system in the hard disk unit, further includes:
ECC initialization is disabled and the purge process is disabled by the UEFI driver.
Preferably, the disabling the ECC initialization and disabling the purging process by the UEFI driver further includes:
the DXE function module via the UEFI driver implements the inhibit initialization of the PCI video controller using console redirection.
Preferably, the DXE function module implementing the initialization prohibition of the PCI video controller by using the console redirection further includes:
the DXE function module via UEFI drivers statically loads the required drivers based on the actual hardware of the Feiteng platform.
Preferably, the DXE function module through UEFI driver statically loads the required driver based on the actual hardware of the Feiteng platform, and then further includes:
the physical layer network timeout detection waiting time of the Feiteng platform is reduced through the UEFI driver.
Preferably, the reducing physical layer network timeout detection waiting time of the Feiteng platform through the UEFI driver further includes:
the BDS function module through the UEFI driver cancels the waiting time for entering the setting process.
Preferably, the changing the pre-boot mode to the fixed mode to boot the operating system in the hard disk unit includes:
changing the pre-starting mode into a fixed mode for starting, acquiring an operating system file stored in the hard disk unit corresponding to the fixed mode, and marking the operating system file as a target system file;
acquiring a file verification code corresponding to a target system file and marking the file verification code as a target verification code, wherein the file verification code is obtained by calculating an operating system file through a preset verification algorithm, and the file verification code is stored in a hard disk unit;
acquiring a target system file, and calculating the target system file by adopting a preset verification algorithm to obtain a first actual verification code;
judging whether the target verification code is consistent with the first actual verification code;
if yes, guiding a target system file in the hard disk unit to start an operating system;
if not, the target system files in the hard disk unit are forbidden to be guided, and the Feiteng platform is controlled to be powered off or whether other operating system files except the target system files exist in the hard disk unit is judged.
Preferably, the determining whether the hard disk unit has other operating system files except the target system file further includes:
if so, marking other operating system files except the target system file in the hard disk unit as secondary selection system files;
acquiring a file verification code corresponding to a secondary selection system file, and marking the file verification code as a secondary selection verification code;
acquiring a secondary selection system file, and calculating the secondary selection system file by adopting a preset verification algorithm to obtain a second actual verification code;
judging whether the secondary selection verification code is consistent with the second actual verification code;
if the file is consistent, guiding the secondary selection system file in the hard disk unit to start the operating system;
and if the files are inconsistent, the secondary system files in the hard disk unit are forbidden to be guided, and the Feiteng platform is controlled to be powered off.
Preferably, the method further comprises:
after an operating system of the Feiteng platform is started, detecting whether an operating system file in a hard disk unit is modified or not;
if yes, calculating the operating system file in the hard disk unit with the modification through a preset verification algorithm to obtain a corresponding file verification code.
The invention also provides a Feiteng platform, which comprises a main board, a Feiteng processor, a first flash memory unit, a second flash memory unit, a hard disk unit and a memory unit; the Feiteng processor, the first flash memory unit, the second flash memory unit, the hard disk unit and the memory unit are all arranged on the main board; the first flash memory unit, the second flash memory unit, the hard disk unit and the memory unit are all in communication connection with the Feiteng processor; the first flash unit is solidified with a UEFI driver; the Feiteng platform applies the UEFI quick starting method based on the Feiteng platform.
Through the technical scheme, the following beneficial effects can be realized:
the UEFI quick starting method based on the Feiteng platform can obviously improve the starting speed of the Feiteng platform, thereby more efficiently meeting the demands of users. Firstly, after the Feiteng platform is electrified, the SEC function module and the PEI function module of the UEFI driver are aggregated in the second flash memory unit, so that the SEC function module and the PEI function module can be loaded under the condition of not depending on the memory unit, and the loading speed of the SEC function module and the PEI function module is improved; setting the flight vacation processor to a minimum energy-saving mode, and further improving the running power of the flight vacation processor, so that the running efficiency is improved; then skipping a memory detection stage through the SEC functional module, and shortening the starting time; finally, starting by directly guiding a certain fixed operating system in the hard disk unit; by combining the technical scheme, the starting speed of the Feiteng platform can be obviously improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the structures shown in these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a first embodiment of a UEFI quick start method based on a Feiteng platform according to the present invention.
Fig. 2 is a schematic diagram of each stage of a fast start method for UEFI based on a flying platform according to a sixth embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The invention provides a UEFI quick starting method based on a Feiteng platform.
As shown in fig. 1, in a first embodiment of a UEFI quick start method based on a flying platform provided by the present invention, the present UEFI quick start method based on a flying platform is applied to a flying platform; the Feiteng platform comprises a main board, a Feiteng processor, a first flash memory unit, a second flash memory unit, a hard disk unit and a memory unit; the Feiteng processor, the first flash memory unit, the second flash memory unit, the hard disk unit and the memory unit are all arranged on the main board; the first flash memory unit, the second flash memory unit, the hard disk unit and the memory unit are all in communication connection with the Feiteng processor; the first flash unit is solidified with a UEFI (Unified Extensible Firmware Interface ) driver; the embodiment comprises the following steps:
step S110: and after the Feiteng platform is powered on, aggregating the SEC function module and the PEI function module of the UEFI driver into a second flash memory unit.
Specifically, before the SEC (Security) function module and PEI (Pre-EFI Initialization, EFI) function module of the UEFI driver are initialized, wherein EFI is Extensible Firmware Interface and the extensible firmware interface) function module is generally aggregated in the memory unit, however, when the Feiteng platform is just powered on, the resources of the memory unit are not ready to be completed, so that the SEC function module and PEI function module of the UEFI driver are directly aggregated in the second flash memory unit (for example, 64kb flash memory block), and thus the SEC function module and PEI function module can be loaded without depending on the memory unit, the SEC function module and PEI function module are not required to be started up again, the waiting time is reduced, the loading speed of the SEC function module and PEI function module is remarkably improved, and the starting speed of the Feiteng platform is further improved.
Specifically, UEFI is generally called Unified Extensible Firmware Interface, i.e. "unified extensible firmware interface", which is a standard for describing a brand new type of interface in detail, and this interface is used for an operating system to be automatically loaded onto an operating system from a pre-started operating environment, so as to achieve the purpose of simplifying the boot-up procedure and saving time.
Compared with BIOS, UEFI has good programmability, good expandability, high performance and high safety. The present invention divides the UEFI driver into SEC function module, PEI function module, DXE (Driver Execution Environment ) function module, BDS (Boot Device Selection, boot device selection) function module, TLS (Transient System Load, transient system loading) function module, and RT (run time service) function module.
If the startup process is divided according to the startup process, the startup process of the UEFI is sequentially set into a SEC phase, a PEI phase, a DXE phase, a BDS phase, a TLS phase and a RT phase in sequence, wherein the SEC phase, the PEI phase and the DXE phase are used for completing the initialization and the driving loading operation of basic hardware of the system, the BDS phase is used for initializing the peripheral, loading the UEFI driving of the peripheral and finding the startup items which can be started from all the startup media, and the TLS phase is used for loading the operating system startup bootstrap program from the selected startup items and giving the control right of the system to the operating system.
Function of SEC functional module: after the Feiteng platform is started or restarted, the UEFI driver enters a SEC stage through the SEC functional module, and the SEC functional module executes the following four tasks at the stage:
1. and receiving and processing system start and restart signals, system power-on signals, system restart signals and abnormal signals in the running process of the system.
2. Initializing a temporary storage area: when the Feiteng platform operates in the SEC stage, only the Feiteng processor and the internal resources of the Feiteng processor are initialized, but various external devices and memories are not initialized. The Feiteng platform therefore requires a portion of temporary memory for the storage of code and data, commonly referred to as temporary RAM (Random Access Memory ), which can only be located inside the Feiteng processor (the Feiteng processor and the resources inside the Feiteng processor are initialized first).
The most commonly used temporary RAM is Cache (Cache), which is used as memory by setting the Cache to no-evaluation mode (no-evaluation: no-delete policy, no-discard, if the memory is full, add data is reported as error) (when a read hit returns the data in the Cache, a read miss does not send a miss event to main memory; when a write hit writes to the Cache, a write miss does not send a miss event to main memory), this technique is called CAR (Cache As RAM).
3. The SEC phase is the root of the trusted system: as the first part of system starting, the Feiteng platform has the trust basis only if the SEC functional module can be trusted by the system. Thus, in most cases the SEC function can verify that the PEI function is trusted before forwarding control to the PEI function.
4. Delivering system parameters to the next stage: all work in the SEC phase is prepared for the PEI phase, and most importantly, the control right of the system is transferred to the PEI functional module, and the running information in the SEC phase is reported to the PEI functional module. SEC reports information to the PEI function module by passing the following information as parameters to the entry of the PEI function module.
Action of PEI functional Module:
1. and initializing the memory.
2. An execution environment is prepared for DXE function modules.
The PEI functional module comprises a PEI (PEI Foundation) kernel and a PEIM (PEI Module) dispatcher; specifically, the PEI kernel is responsible for PEI basic services and processes; the PEIM dispatcher is responsible for finding out all PEIM dispatchers in the system and executing the PEIM dispatchers in sequence according to the dependency relationship among the PEIM dispatchers. The initialization of the system in the PEI phase is mainly accomplished by the PEIM dispatcher.
Each PEIM dispatcher is a separate module. The PEIM dispatcher may invoke the system services provided by the PEI phase. By invoking these services, the PEIM dispatcher can access the PEI kernel. Communication between PEIM dispatchers is accomplished through PPI (PEIM-to-PEIM Interfaces).
Step S120: setting the Feiteng processor into a minimum energy-saving mode through a UEFI driver, and loading microcode.
Specifically, the flying processor is set to be in the minimum energy-saving mode, so that the running power of the flying processor is improved, the running efficiency of the flying processor can be remarkably improved, and the starting speed of the flying platform is improved.
Existing processors (e.g., feiteng processors) do not directly execute x86 instructions, but rather contain internal code that implements the x86 instruction set. The internal code is called Microcode (Microcode). And the microcode is loaded to the Feiteng processor through the UEFI driver, so that the stability of the Feiteng processor in normal operation is ensured.
Step S130: and skipping a memory detection stage through the SEC functional module, and initializing a memory unit through a memory controller arranged on the main board.
Specifically, in the conventional starting process, the memory unit needs to be detected to ensure the normal operation of the memory unit, and this stage is relatively time-consuming; according to the invention, the SEC functional module skips the memory detection stage, so that a large amount of time can be saved, and the starting time is shortened, thereby improving the starting speed of the Feiteng platform.
In addition, when the SEC function module skips the memory detection stage, the reset_n signal of the memory unit (preferably a dynamic random access memory, i.e. DRAM) is controlled by the external logic DDR controller (i.e. memory controller) disposed on the motherboard to trigger a RESET action (RESET), which clears the current working state of the DRAM. After the Reset action is generated, the Reset Procedure state (Reset Procedure) is entered, and after the Reset Procedure is completed, the Initialization state (Initialization) of the DRAM is entered.
Step S140: the pre-starting mode is changed into a fixed mode starting mode so as to guide the starting of an operating system in the hard disk unit.
Specifically, the pre-starting mode is changed into the fixed mode starting mode through the BDS function module of the UEFI driver, so that the starting of the operating system in the hard disk unit is guided.
In the starting process of the existing Feiteng platform, the pre-starting mode is as follows: when a plurality of operating system files are contained in the hard disk unit, it is necessary for a user to select which operating system in the hard disk unit is started, which certainly increases the starting time period; the invention directly guides a certain fixed operating system in the hard disk unit to start, thereby obviously shortening the starting time, for example, directly guides the kylin operating system in the hard disk unit to start.
The UEFI quick starting method based on the Feiteng platform can obviously improve the starting speed of the Feiteng platform, thereby more efficiently meeting the demands of users. Firstly, after the Feiteng platform is electrified, the SEC function module and the PEI function module of the UEFI driver are aggregated in the second flash memory unit, so that the SEC function module and the PEI function module can be loaded under the condition of not depending on the memory unit, and the loading speed of the SEC function module and the PEI function module is improved; setting the flight vacation processor to a minimum energy-saving mode, and further improving the running power of the flight vacation processor, so that the running efficiency is improved; then skipping a memory detection stage through the SEC functional module, and shortening the starting time; finally, starting by directly guiding a certain fixed operating system in the hard disk unit; by combining the technical scheme, the starting speed of the Feiteng platform can be obviously improved.
The practical comparison shows that: by adopting a traditional starting mode, the time consumption of the Feiteng processor (taking FT2004 as an example) from the system power-up to the login interface is about 65s, while by adopting the scheme of the invention, the time consumption of the Feiteng processor (FT 2004) from the system power-up to the login interface is 19s finally, and the starting time is reduced by 70%.
In a second embodiment of the UEFI rapid start method based on the flying platform according to the present invention, based on the first embodiment, the steps between step S13 and step S140 further include the following steps:
step S210: ECC initialization is disabled and the purge process is disabled by the UEFI driver.
Specifically, the ECC is "Error Correcting Code", the ECC is a technology capable of implementing "error checking and correction", and the ECC memory is a memory to which the technology is applied; in this embodiment, the memory unit applies the ECC technique; the ECC memory is different from the common memory in appearance in that an ECC chip is additionally added on the PCB to be specially responsible for checking errors and correcting the errors. In this embodiment, in the starting process of the Feiteng platform, the UEFI driver prohibits ECC initialization and prohibits the cleaning process, and the ECC initialization and the cleaning process are performed after the Feiteng platform is started, so that the starting time can be saved, and the starting speed of the Feiteng platform can be improved.
In a third embodiment of the UEFI quick start method based on the flying platform according to the present invention, based on the second embodiment, step S210 further includes the following steps:
step S310: the DXE function module via the UEFI driver implements the inhibit initialization of the PCI video controller using console redirection.
Specifically, the console redirection refers to redirection to a display page immediately after the console is detected to be turned on, and in this embodiment, the method is as follows: in the DXE stage, a compiler of the UEFI driver is used for providing preset flag bits (such as 0s and 01) to optimize the code space of the UEFI driver, and a method of filling a video frame buffer with a zero value on a PCI video controller (arranged on a main board) is used for prohibiting initializing the PCI video controller, so that the time for initializing the PCI video controller is saved, the starting time of a Feiteng platform is further shortened, and the performance of the UEFI driver is obviously improved; furthermore, loops can be eliminated by filling the video frame buffer with zeros and writing to the PCI controller in as large a size as possible.
In a fourth embodiment of the UEFI quick start method based on the flying platform according to the present invention, based on the third embodiment, step S310 further includes the following steps:
step S410: the DXE function module via UEFI drivers statically loads the required drivers based on the actual hardware of the Feiteng platform.
Specifically, in the DXE stage, the DXE function module of the UEFI driver is used for statically loading a required driver based on the actual hardware of the Feiteng platform, namely, the driver is loaded according to the fact that the Feiteng platform is provided with the hardware, and no driver corresponding to the hardware which is not arranged on the Feiteng platform is loaded, so that the time consumed for loading the driver is shortened, and the starting time of the Feiteng platform is further shortened; in this embodiment, unnecessary drivers are cut off according to actual hardware, and then drivers corresponding to the hardware actually set by the Feiteng platform are statically added in the DSC file.
For example, feiteng platforms typically do not require NVMe protocol drivers, PS2 keyboard drivers, and GMI graphics drivers, so these drivers do not need to be loaded during startup.
In a fifth embodiment of the UEFI quick start method based on the flying platform according to the present invention, based on the fourth embodiment, step S410 further includes the following steps:
step S510: the physical layer network timeout detection waiting time of the Feiteng platform is reduced through the UEFI driver.
Specifically, in the prior art, in the DXE phase, it takes about 10s to check the connection state of the physical layer of the Feiteng platform through the DXE function module of the UEFI driver and wait for the physical layer to perform the Auto-Negotiation process; in this embodiment, the processes of reading the physts_auto_comp (AUTO handshake) and the physts_link_sts (connection state) from the physical layer register of the flying platform are combined and optimized by the UEFI driver, so as to reduce the timeout detection waiting time of the physical layer network of the flying platform, thereby reducing the starting duration of the flying platform.
As shown in fig. 2, in a sixth embodiment of the UEFI quick start method based on the Feiteng platform according to the present invention, based on the fifth embodiment, step S510 further includes the following steps:
step S610: the BDS function module through the UEFI driver cancels the waiting time for entering the Setup process (Setup process).
Specifically, a PCdPlatformBootTimeOut function is set through a UEFI driver so as to skip the process waiting time (for example, 5 seconds) in the starting process of the Feiteng platform, so that the starting time of the Feiteng platform can be reduced; meanwhile, non-key information (such as execution progress information of each process in the starting process of the Feiteng platform) is shielded and output through the UEFI driver in the starting process of the Feiteng platform, so that the starting time of the Feiteng platform can be further reduced.
In a seventh embodiment of the UEFI quick start method based on the flying platform according to the present invention, based on the first embodiment, step S140 includes the following steps:
step S710: and changing the pre-starting mode into a fixed mode for starting, acquiring an operating system file stored in the hard disk unit corresponding to the fixed mode, and marking the operating system file as a target system file.
Specifically, for example, the invention starts the kylin operating system in the hard disk unit as a fixed mode, that is, in this embodiment, the kylin operating system file in the hard disk unit is used as the target system file.
Step S720: and acquiring a file verification code corresponding to the target system file and marking the file verification code as the target verification code, wherein the file verification code is obtained by calculating the operating system file through a preset verification algorithm (such as MD5 hash algorithm), and the file verification code is stored in the hard disk unit.
Specifically, the MD5 hash algorithm (RFC 1321) is a modified version of the MD4 hash algorithm by Rivest in 1991. The inputs are still grouped in 512 bits, the outputs of which are a concatenation of 4 32-bit words. The MD5 hash algorithm is more complex than the MD4 hash algorithm and is slower but safer and performs better in terms of anti-analysis and anti-differencing.
Step S730: and obtaining a target system file, and calculating the target system file by adopting a preset verification algorithm to obtain a first actual verification code.
Specifically, a target system file is obtained through a UEFI driver, and a preset verification algorithm (MD 5 hash algorithm) is adopted to calculate the target system file so as to obtain a first actual verification code.
Step S740: and judging whether the target verification code is consistent with the first actual verification code.
Specifically, the target verification code is compared with the first actual verification code to judge whether the target verification code is consistent with the first actual verification code, if so, the target operation system file is not tampered, and the security is ensured, so that the target operation system file in the hard disk unit is directly guided to start the operation system.
If yes, go to step S750: and guiding the target system file in the hard disk unit to start the operating system.
If not, go to step S760: and forbidding to guide the target system files in the hard disk unit and controlling the Feiteng platform to cut off the power or judging whether other operating system files except the target system files exist in the hard disk unit.
Specifically, if the target verification code is inconsistent with the first actual verification code, it is indicated that the target operating system file is modified, and for the safety of the Feiteng platform and the data safety of the user, the target operating system file in the hard disk unit is forbidden to be guided, and the Feiteng platform is controlled to be powered off.
In an eighth embodiment of the UEFI quick start method based on the flying platform according to the present invention, based on the seventh embodiment, step S740 includes the step of determining whether other operating system files except the target system file exist in the hard disk unit, and then further includes the following steps:
specifically, if the target verification code is inconsistent with the first actual verification code, it indicates that the target operating system file is modified, and for the security of the Feiteng platform and the data security of the user, the target operating system file cannot be guided to be started, so that other operating system files need to be started, and it needs to be determined whether other operating system files except the target operating system file exist in the hard disk unit.
Step S810: if so, marking other operating system files except the target system file in the hard disk unit as secondary selection system files.
Step S820: and acquiring a file verification code corresponding to the secondary selection system file, and marking the file verification code as the secondary selection verification code.
Specifically, the file verification code corresponding to the secondary selection system file is a verification code obtained by calculating the secondary selection system file through a preset verification algorithm.
Step S830: and acquiring the secondary selection system file, and calculating the secondary selection system file by adopting a preset verification algorithm to obtain a second actual verification code.
Step S840: and judging whether the secondary selection verification code is consistent with the second actual verification code.
Step S850: if the file is consistent, the secondary system file in the hard disk unit is guided to start the operating system.
If the files are consistent, the fact that the sub-selection operation system files are not tampered is indicated, and the security is guaranteed, so that the sub-selection operation system files in the hard disk unit are directly guided to be started.
Step S860: and if the files are inconsistent, the secondary system files in the hard disk unit are forbidden to be guided, and the Feiteng platform is controlled to be powered off.
Specifically, if the files are inconsistent, the modification of the sub-selection operating system files is indicated, the sub-selection operating system files in the hard disk unit are forbidden to be guided for the safety of the Feiteng platform and the data safety of the user, and the power failure of the Feiteng platform is controlled.
In a ninth embodiment of the UEFI quick start method based on the flying platform according to the present invention, based on the seventh embodiment, the present embodiment further includes the following steps:
step S910: after the operating system of the Feiteng platform is started, whether the operating system file in the hard disk unit is modified or not is detected.
If yes, step S920 is executed: and calculating the file of the operating system in the hard disk unit with the modification through a preset verification algorithm (MD 5 hash algorithm) to obtain a corresponding file verification code.
Specifically, the embodiment refers to a specific scheme of how to calculate the operating system file to obtain the file verification code after the Feiteng platform is started; when the operating system file in the hard disk unit is detected to be modified, the operating system file in the hard disk unit with the modification is calculated through a preset verification algorithm to obtain a corresponding file verification code, so that the operating system file is known to be modified in time.
In a tenth embodiment of the UEFI rapid starting method based on the flying platform according to the present invention, based on the seventh embodiment, the flying platform further includes a network communication module; the network communication module is used for establishing communication connection with an external server; the external server stores a standby operating system file; step S740, further comprising the following steps:
if not, go to step S1010: loading a network driving and communication protocol based on a UEFI driver; to support remote operating system loading.
Step S1020: and establishing communication connection with an external server through a network communication module based on the network drive and the communication protocol.
Step S1030: and downloading a standby operating system file in an external server and storing the standby operating system file in the hard disk unit.
Step S1040: and guiding the spare operating system file in the hard disk unit to start the operating system.
Specifically, if the target verification code is inconsistent with the first actual verification code, it is indicated that the target operating system file is modified, and for the security of the Feiteng platform and the data security of the user, the target operating system file cannot be guided to be started, so that other operating system files need to be started.
The invention also provides a Feiteng platform, which comprises a main board, a Feiteng processor, a first flash memory unit, a second flash memory unit, a hard disk unit and a memory unit; the Feiteng processor, the first flash memory unit, the second flash memory unit, the hard disk unit and the memory unit are all arranged on the main board; the first flash memory unit, the second flash memory unit, the hard disk unit and the memory unit are all in communication connection with the Feiteng processor; the first flash unit is solidified with a UEFI driver; the Feiteng platform applies the UEFI quick starting method based on the Feiteng platform.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (10)

1. The UEFI quick starting method based on the Feiteng platform is characterized by being applied to the Feiteng platform; the Feiteng platform comprises a main board, a Feiteng processor, a first flash memory unit, a second flash memory unit, a hard disk unit and a memory unit; the Feiteng processor, the first flash memory unit, the second flash memory unit, the hard disk unit and the memory unit are all arranged on the main board; the first flash memory unit, the second flash memory unit, the hard disk unit and the memory unit are all in communication connection with the Feiteng processor; the first flash unit is solidified with a UEFI driver; the method comprises the following steps:
after the Feiteng platform is electrified, aggregating the SEC function module and the PEI function module of the UEFI driver into a second flash memory unit;
setting the Feiteng processor to a minimum energy-saving mode through a UEFI (unified extensible firmware interface) driver, and loading microcode;
skipping a memory detection stage through the SEC functional module, and initializing a memory unit through a memory controller arranged on the main board;
the pre-starting mode is changed into a fixed mode starting mode so as to guide the starting of an operating system in the hard disk unit.
2. The method for quickly starting UEFI based on the flying platform according to claim 1, wherein the step of skipping a memory detection stage by the SEC function module and initializing the memory unit by the memory controller provided on the main board, and the step of changing the pre-starting mode to the fixed mode to start the operating system in the hard disk unit, further comprises:
ECC initialization is disabled and the purge process is disabled by the UEFI driver.
3. The UEFI rapid initiation method of the flyaway platform of claim 2, wherein the disabling of ECC initialization and disabling of the purge process by the UEFI driver further comprises:
the DXE function module via the UEFI driver implements the inhibit initialization of the PCI video controller using console redirection.
4. The UEFI rapid initiation method of the fly-by-platform based UEFI of claim 3, wherein the DXE function module configured to implement the disabling of initializing the PCI video controller using a console redirect further comprises:
the DXE function module via UEFI drivers statically loads the required drivers based on the actual hardware of the Feiteng platform.
5. The UEFI rapid initiation method of the fly-by-platform of claim 4, wherein the DXE function module via UEFI drivers statically loads the required drivers based on the actual hardware of the fly-by platform, further comprising:
the physical layer network timeout detection waiting time of the Feiteng platform is reduced through the UEFI driver.
6. The UEFI rapid initiation method of the flying platform based on claim 5, wherein the reducing, by the UEFI driver, the physical layer network timeout detection latency of the flying platform further comprises:
the BDS function module through the UEFI driver cancels the waiting time for entering the setting process.
7. The UEFI rapid start-up method based on the flying platform of claim 1, wherein the changing the pre-start-up mode to the fixed mode start-up to boot the operating system in the hard disk unit, comprises:
changing the pre-starting mode into a fixed mode for starting, acquiring an operating system file stored in the hard disk unit corresponding to the fixed mode, and marking the operating system file as a target system file;
acquiring a file verification code corresponding to a target system file and marking the file verification code as a target verification code, wherein the file verification code is obtained by calculating an operating system file through a preset verification algorithm, and the file verification code is stored in a hard disk unit;
acquiring a target system file, and calculating the target system file by adopting a preset verification algorithm to obtain a first actual verification code;
judging whether the target verification code is consistent with the first actual verification code;
if yes, guiding a target system file in the hard disk unit to start an operating system;
if not, the target system files in the hard disk unit are forbidden to be guided, and the Feiteng platform is controlled to be powered off or whether other operating system files except the target system files exist in the hard disk unit is judged.
8. The UEFI rapid start method based on the flying platform of claim 7, wherein the determining whether other operating system files except the target system file exist in the hard disk unit further comprises:
if so, marking other operating system files except the target system file in the hard disk unit as secondary selection system files;
acquiring a file verification code corresponding to a secondary selection system file, and marking the file verification code as a secondary selection verification code;
acquiring a secondary selection system file, and calculating the secondary selection system file by adopting a preset verification algorithm to obtain a second actual verification code;
judging whether the secondary selection verification code is consistent with the second actual verification code;
if the file is consistent, guiding the secondary selection system file in the hard disk unit to start the operating system;
and if the files are inconsistent, the secondary system files in the hard disk unit are forbidden to be guided, and the Feiteng platform is controlled to be powered off.
9. The UEFI rapid initiation method based on the flyaway platform of claim 7, further comprising:
after an operating system of the Feiteng platform is started, detecting whether an operating system file in a hard disk unit is modified or not;
if yes, calculating the operating system file in the hard disk unit with the modification through a preset verification algorithm to obtain a corresponding file verification code.
10. The Feiteng platform is characterized by comprising a main board, a Feiteng processor, a first flash memory unit, a second flash memory unit, a hard disk unit and a memory unit; the Feiteng processor, the first flash memory unit, the second flash memory unit, the hard disk unit and the memory unit are all arranged on the main board; the first flash memory unit, the second flash memory unit, the hard disk unit and the memory unit are all in communication connection with the Feiteng processor; the first flash unit is solidified with a UEFI driver; the flying platform applies the UEFI rapid start method based on the flying platform as claimed in any one of claims 1 to 9.
CN202310318880.6A 2023-03-29 2023-03-29 UEFI (unified extensible firmware interface) quick starting method based on Feiteng platform and Feiteng platform Active CN116028129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310318880.6A CN116028129B (en) 2023-03-29 2023-03-29 UEFI (unified extensible firmware interface) quick starting method based on Feiteng platform and Feiteng platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310318880.6A CN116028129B (en) 2023-03-29 2023-03-29 UEFI (unified extensible firmware interface) quick starting method based on Feiteng platform and Feiteng platform

Publications (2)

Publication Number Publication Date
CN116028129A true CN116028129A (en) 2023-04-28
CN116028129B CN116028129B (en) 2023-06-13

Family

ID=86079832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310318880.6A Active CN116028129B (en) 2023-03-29 2023-03-29 UEFI (unified extensible firmware interface) quick starting method based on Feiteng platform and Feiteng platform

Country Status (1)

Country Link
CN (1) CN116028129B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117520253A (en) * 2024-01-08 2024-02-06 长城信息股份有限公司 Method for clearing CMOS (complementary metal oxide semiconductor) by Feiteng platform, electronic equipment and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005284491A (en) * 2004-03-29 2005-10-13 Mitsubishi Electric Corp Starting time shortening system for computer
CN101421700A (en) * 2006-04-19 2009-04-29 英特尔公司 Method and apparatus to support independent systems in partitions of a processing system
CN103150208A (en) * 2013-03-22 2013-06-12 合肥联宝信息技术有限公司 BIOS (Basic Input Output System) running method supporting multitasks and BIOS chip
CN104572161A (en) * 2014-03-21 2015-04-29 中电科技(北京)有限公司 UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Loongson portable computer
US20180173587A1 (en) * 2016-12-15 2018-06-21 Dell Products L.P. Method for automatic correction of nonvolatile memory in information handling systems
US20190243659A1 (en) * 2018-02-03 2019-08-08 Insyde Software Corp. System and method for boot speed optimization using non-volatile dual in-line memory modules
CN111078303A (en) * 2019-11-22 2020-04-28 苏州浪潮智能科技有限公司 Method and device for optimizing UEFI (unified extensible firmware interface) boot startup
CN111159700A (en) * 2019-12-03 2020-05-15 北京工业大学 Computer remote safe starting method and system based on UEFI system
US10726133B1 (en) * 2019-02-04 2020-07-28 Dell Products L.P. Securely loading UEFI images at runtime
CN111898132A (en) * 2020-07-16 2020-11-06 山东超越数控电子股份有限公司 Method for accelerating active measurement speed of trusted computer
CN114579495A (en) * 2022-05-06 2022-06-03 成都前锋信息技术股份有限公司 Implementation method of nationwide universal computer firmware based on Feiteng processor
CN115033296A (en) * 2022-05-13 2022-09-09 昆仑太科(北京)技术股份有限公司 UEFI and Linux-based domestic operating system starting method and UEFI and Linux-based domestic operating system starting device
CN115202751A (en) * 2022-06-24 2022-10-18 江苏航天龙梦信息技术有限公司 Method for realizing rapid start of UEFI (unified extensible firmware interface)

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005284491A (en) * 2004-03-29 2005-10-13 Mitsubishi Electric Corp Starting time shortening system for computer
CN101421700A (en) * 2006-04-19 2009-04-29 英特尔公司 Method and apparatus to support independent systems in partitions of a processing system
CN103150208A (en) * 2013-03-22 2013-06-12 合肥联宝信息技术有限公司 BIOS (Basic Input Output System) running method supporting multitasks and BIOS chip
CN104572161A (en) * 2014-03-21 2015-04-29 中电科技(北京)有限公司 UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Loongson portable computer
US20180173587A1 (en) * 2016-12-15 2018-06-21 Dell Products L.P. Method for automatic correction of nonvolatile memory in information handling systems
US20190243659A1 (en) * 2018-02-03 2019-08-08 Insyde Software Corp. System and method for boot speed optimization using non-volatile dual in-line memory modules
US10726133B1 (en) * 2019-02-04 2020-07-28 Dell Products L.P. Securely loading UEFI images at runtime
CN111078303A (en) * 2019-11-22 2020-04-28 苏州浪潮智能科技有限公司 Method and device for optimizing UEFI (unified extensible firmware interface) boot startup
CN111159700A (en) * 2019-12-03 2020-05-15 北京工业大学 Computer remote safe starting method and system based on UEFI system
CN111898132A (en) * 2020-07-16 2020-11-06 山东超越数控电子股份有限公司 Method for accelerating active measurement speed of trusted computer
CN114579495A (en) * 2022-05-06 2022-06-03 成都前锋信息技术股份有限公司 Implementation method of nationwide universal computer firmware based on Feiteng processor
CN115033296A (en) * 2022-05-13 2022-09-09 昆仑太科(北京)技术股份有限公司 UEFI and Linux-based domestic operating system starting method and UEFI and Linux-based domestic operating system starting device
CN115202751A (en) * 2022-06-24 2022-10-18 江苏航天龙梦信息技术有限公司 Method for realizing rapid start of UEFI (unified extensible firmware interface)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117520253A (en) * 2024-01-08 2024-02-06 长城信息股份有限公司 Method for clearing CMOS (complementary metal oxide semiconductor) by Feiteng platform, electronic equipment and storage medium
CN117520253B (en) * 2024-01-08 2024-04-19 长城信息股份有限公司 Method for clearing CMOS (complementary metal oxide semiconductor) by Feiteng platform, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN116028129B (en) 2023-06-13

Similar Documents

Publication Publication Date Title
US11379214B2 (en) Runtime firmware activation for memory devices
CN109478135B (en) Computer system and method for rebooting a computer system
JP4459290B2 (en) Fast startup from operating system halt state
USRE40092E1 (en) Method for quickly booting a computer system
EP3274788B1 (en) Technologies for improved hybrid sleep power management
US7409536B2 (en) Computer systems with several operating systems coexisting thereon and swapping between these operating systems
US7590877B2 (en) Computer system having multi-operation system and method for changing operating system in computer system
US7793127B2 (en) Processor state restoration and method for resume
US20130232327A1 (en) Operating System Context Switching
JP2000293474A (en) Computer system and method for using the same
US7660977B2 (en) System and method to control microcode updates after booting an operating system in a computing platform
US20070214349A1 (en) Driver/variable cache and batch reading system and method for fast resume
CN116028129B (en) UEFI (unified extensible firmware interface) quick starting method based on Feiteng platform and Feiteng platform
US11816220B2 (en) Phased boot process to dynamically initialize devices in a verified environment
US20090172232A1 (en) Method and system for handling a management interrupt event
WO2019242272A1 (en) Bios-based operating system booting method, device, apparatus, and medium
US20020049897A1 (en) Method for adding processor
CN116414472A (en) Method, system, equipment and storage medium for starting up server rapidly
US7779239B2 (en) User opt-in processor feature control capability
US20080148037A1 (en) Efficient platform initialization
JP2000242484A (en) Change method for control program
US9207747B2 (en) Method and device for advanced configuration and power interface (ACPI) sleep-state support using CPU-only reset
WO2008048581A1 (en) A processing device operation initialization system
US20240004454A1 (en) Control of power state in computer processor
KR101271784B1 (en) Method for executing multiple boot manager

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