CN115202751A - Method for realizing rapid start of UEFI (unified extensible firmware interface) - Google Patents

Method for realizing rapid start of UEFI (unified extensible firmware interface) Download PDF

Info

Publication number
CN115202751A
CN115202751A CN202210729182.0A CN202210729182A CN115202751A CN 115202751 A CN115202751 A CN 115202751A CN 202210729182 A CN202210729182 A CN 202210729182A CN 115202751 A CN115202751 A CN 115202751A
Authority
CN
China
Prior art keywords
starting
dxefv
uefi
quick start
during
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.)
Pending
Application number
CN202210729182.0A
Other languages
Chinese (zh)
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.)
Jiangsu Lemote Information Technology Co ltd
Original Assignee
Jiangsu Lemote 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 Jiangsu Lemote Information Technology Co ltd filed Critical Jiangsu Lemote Information Technology Co ltd
Priority to CN202210729182.0A priority Critical patent/CN115202751A/en
Publication of CN115202751A publication Critical patent/CN115202751A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

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

Abstract

The invention discloses a method for realizing UEFI quick start, which comprises the following steps: and adjusting the spatial layout of the BIOS binary system and increasing the DXEFV for quick start. Fast start optimization at PEI phase. Fast start optimization during BDS phase. And the function of accessing the information storage to the IO with lower speed in the normal starting mode is realized. The method adds DXEFV _ FASTBOOT for recording DXE modules required during quick start, copies DXEFV or DXEFV _ FASTBOOT in Flash to a memory according to quick start configuration, skips over unused bridge functions initialization of a mainboard, and optimizes the initialization sequence to share the waiting time delay after reset. And when the loading of the first starting item is added and the first starting item fails or actively exits, restarting to enter the normal starting mode function. And storing the IO accessed data in the environment variable during normal starting, and directly using the data in the environment variable to accelerate the starting speed during quick starting. The method and the device can effectively shorten the starting time of the Loongson computer, reduce the waiting time of the user and improve the use experience of the user on the Loongson computer.

Description

Method for realizing rapid start of UEFI (unified extensible firmware interface)
Technical Field
The invention relates to a method for realizing UEFI (unified extensible firmware interface) quick start, belonging to the technical field of computer software engineering.
Background
Although the performance of the conventional Loongson CPU is continuously improved, the increase of core components and peripheral devices also causes the initialization management work of the BIOS on each component to be more and more complicated, and meanwhile, the starting speed of the computer is delayed to different degrees by unifying the function configuration of the extensible firmware interface UEFI which is continuously increased. The current starting mode detects the core component and initializes all external devices, and the whole process is often more than 10 seconds. For the user, the whole software and hardware configuration is relatively stable, and for this situation, a fast start mode needs to be added to optimize the start speed as much as possible on the premise of keeping the original function. The invention aims to provide a quick start method under UEFI for a Loongson computer,
disclosure of Invention
The invention aims to provide a method for realizing UEFI quick start aiming at the defects of the prior art, and the method can effectively shorten the start time of the Loongson computer, reduce the waiting time of a user and improve the use experience of the user on the Loongson computer.
The technical scheme adopted by the invention for solving the technical problems is as follows: a method for realizing UEFI quick start comprises the following steps:
adjusting the spatial layout of the BIOS binary system, and increasing DXEFV for quick start;
rapid start optimization at the PEI phase;
fast boot optimization in the BDS phase;
and in the starting mode, information is accessed and stored for IO with slower speed.
Further, when the spatial layout of the BIOS binary is adjusted to increase DXEFV for fast boot, the method includes:
adding DXEFV _ FASTBOOT for recording DXE modules required during quick start;
DXEFV _ fastwindow removes unnecessary DXE modules compared to normal DXEFV;
and adjusting the compiled binary layout and adding a DXEFV _ FASTBOOT storage area.
Further, during the rapid start optimization of the PEI phase, the method further comprises:
copying DXEFV or DXEFV _ FASTBOOT in Flash to a memory according to the quick start configuration;
and skipping the function initialization of unused bridge chips of the mainboard, and optimizing the initialization sequence to share the waiting time delay after reset as much as possible.
Further, in the fast boot optimization of the BDS phase, the method comprises:
adding a quick start configuration under a BIOS interface;
initializing and driving loading only for required equipment, such as a display, a system disk and a keyboard;
and when the loading of the first starting item is added and the first starting item fails or actively exits, restarting to enter the normal starting mode function.
Further, when the slow IO access information storage function in the normal start mode is implemented, the method includes:
saving IO accessed data during normal starting and storing the IO accessed data into an environment variable;
and directly using the data in the environment variable to accelerate the starting speed during quick starting.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings.
As shown in fig. 1, the invention provides a method for implementing UEFI fast start, which can effectively reduce the start time of the Loongson computer, reduce the waiting time of the user, and improve the user experience of the Loongson computer. The method specifically comprises the following steps:
firstly, the FDF file in the UEFI code needs to be rearranged, and the FDF file describes the composition structure of the BIOS binary system. The DXEFV _ FASTBOOT is implemented on the original basis, and comprises DXE core modules, the most basic peripheral drivers and the like. Compared with DXEFV during normal starting, DXE modules such as interface correlation, network correlation, partial USB correlation and the like are reduced, and only the most basic functions and the loading system during quick starting are ensured. Adding DXEFV _ fastcoot affects the binary layout, adjusts the FV addresses, and records the start address of DXEFV _ fastcoot used by the subsequent PEI phase.
The UEFI system can be divided into 7 phases: the present invention is primarily concerned with three phases PEI, DXE and BDS amongst others.
(1) The PEI phase is mainly used for initializing core devices such as a CPU, an internal memory, a bridge chip and the like.
The early stage of the PEI phase: two main judgments are made, whether fast boot is enabled or not and whether loading fails or fast boot is exited. The latter decision is made in that, when the user wants to enter the BIOS interface for configuration or the first boot item device is not present, it can boot from the normal mode,
the problem of incapability of operation is avoided.
The PEI phase middle stage: when the optimization is started quickly, the chip initialization process is mainly optimized, if the functions which are not used by the mainboard are closed, the reset is needed to take effect after partial clocks and phy are configured, but a small time delay is needed to wait after the reset, and after the optimization, all the started functions are configured, and meanwhile, the reset can effectively reduce the waiting time. During normal starting, some information storage can be involved, such as memory information, configuration information in EC and IO access information storage function, and the stored information is directly used during rapid starting, so that the starting speed can be effectively accelerated.
And (3) at the later stage of the PEI stage: the content of the DXE phase is copied from flash to memory, the boot mode is added to determine whether to copy DXEFV or DXEFV _ FASTBOOT, and then the operation jumps to the DXE phase.
(2) The DXE phase is mainly the driver load and initialization work.
DXEFV: the driving modules contained in the FV are comprehensive, and can ensure the configuration and functions of most devices under the BIOS during normal startup. Some information storage, mainly smbios information at fast start-up, may be involved as well.
DXEFV _ fastwindow: compared with DXEFV, modules are deleted, such as network card drivers, PXE and BDS phase interface related modules, USB partial modules and the like, and only modules necessary for starting are reserved. This phase also makes use of the information stored at normal start-up to speed up start-up as much as possible.
(3) The BDS phase mainly initializes console devices, interfaces, and scan initiation items.
Normal start-up mode: and adding a quick-start configuration option in a 'start-up' configuration interface of the BIOS.
A quick start mode: the configuration interface cannot be entered in this mode because the interface-related module is removed. When the console equipment is initialized, only the selected display card and the keyboard are driven and loaded; and reading the devicepath path of the first start, carrying out drive loading on the storage device under the path, and completing the loading to directly load grub and enter the kernel.
(4) The item loading phase is initiated.
Because the DXEFV _ fastbios removes the BIOS interface function, in order to keep an error or a user wants to enter the configuration interface function, after the user exits from grub or loads grub with an error, the behavior of this time is recorded and restarted, and the record is used when the load failure is determined in the early stage of the PEI phase or the quick start is exited.

Claims (5)

1. A method for realizing UEFI quick start is characterized by comprising the following steps:
adjusting the spatial layout of the BIOS binary system, and increasing DXEFV for quick start;
rapid start optimization at the PEI phase;
fast boot optimization in the BDS phase;
and in the starting mode, information is accessed and stored for IO with slower speed.
2. The method of claim 1, wherein the adjusting the space layout of the BIOS binary to increase DXEFV for fast boot comprises:
adding DXEFV _ FASTBOOT for recording DXE modules required during quick start;
removing unnecessary DXE modules;
and adjusting the compiled binary layout and adding a DXEFV _ FASTBOOT storage area.
3. The method for implementing UEFI fast boot according to claim 1, wherein during the fast boot optimization of PEI phase, the method comprises:
copying DXEFV or DXEFV _ FASTBOOT in Flash to a memory according to the quick start configuration;
and skipping the unused bridge chip function initialization of the mainboard, and optimizing the initialization sequence to share the reset waiting time delay.
4. The method for implementing UEFI fast boot according to claim 1, wherein during fast boot optimization of BDS phase, the method comprises:
adding a quick start configuration under a BIOS interface;
initializing and driving loading, namely a display, a system disk and a keyboard, only aiming at required equipment;
and when the loading of the first starting item is added and the first starting item fails or actively exits, restarting to enter the normal starting mode function.
5. The method for implementing UEFI fast boot according to claim 1, wherein when implementing the slow IO access information storage function in the normal boot mode, the method comprises:
saving IO accessed data during normal starting and storing the IO accessed data into an environment variable;
and directly using the data in the environment variable to accelerate the starting speed during quick starting.
CN202210729182.0A 2022-06-24 2022-06-24 Method for realizing rapid start of UEFI (unified extensible firmware interface) Pending CN115202751A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210729182.0A CN115202751A (en) 2022-06-24 2022-06-24 Method for realizing rapid start of UEFI (unified extensible firmware interface)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210729182.0A CN115202751A (en) 2022-06-24 2022-06-24 Method for realizing rapid start of UEFI (unified extensible firmware interface)

Publications (1)

Publication Number Publication Date
CN115202751A true CN115202751A (en) 2022-10-18

Family

ID=83578346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210729182.0A Pending CN115202751A (en) 2022-06-24 2022-06-24 Method for realizing rapid start of UEFI (unified extensible firmware interface)

Country Status (1)

Country Link
CN (1) CN115202751A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116028129A (en) * 2023-03-29 2023-04-28 湖南博匠信息科技有限公司 UEFI (unified extensible firmware interface) quick starting method based on Feiteng platform and Feiteng platform

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116028129A (en) * 2023-03-29 2023-04-28 湖南博匠信息科技有限公司 UEFI (unified extensible firmware interface) quick starting method based on Feiteng platform and Feiteng platform

Similar Documents

Publication Publication Date Title
US7181609B2 (en) System and method for accelerated device initialization
CN1261868C (en) Method of rapid computer start-up
RU2568280C2 (en) Fast computer start-up
US6336161B1 (en) Computer configuration system and method with state and restoration from non-volatile semiconductor memory
US6226740B1 (en) Information processing apparatus and method that uses first and second power supplies for reducing booting time
US20100268874A1 (en) Method of configuring non-volatile memory for a hybrid disk drive
US8677084B2 (en) Method of configuring non-volatile memory for a hybrid disk drive
CN103984565A (en) Method and electronic device of file system prefetching and boot-up method
JP2014534521A (en) Boot data loading
US20130124842A1 (en) Image forming apparatus and method of booting image forming apparatus having hibernation function
CN115202751A (en) Method for realizing rapid start of UEFI (unified extensible firmware interface)
WO2019144621A1 (en) Method, apparatus, and server for acquiring uefi os startup item
CN116414472A (en) Method, system, equipment and storage medium for starting up server rapidly
Yang et al. Shortening the boot time of android os
US20050108585A1 (en) Silent loading of executable code
US20050223209A1 (en) Apparatus for fast booting computer and method for the same
US8291206B2 (en) Method for booting computer system
US20040225874A1 (en) Method for reduced BIOS boot time
CN101957762A (en) Starting acceleration device, computer system with same and starting method thereof
US7734904B2 (en) Resetting a system in response to changes of component settings
US20060248327A1 (en) Computer rapid boot system and method
US7600062B2 (en) Method and apparatus for micro-code execution
CN114880293A (en) Software starting acceleration method and device and computing equipment
US20050027954A1 (en) Method and apparatus to support the maintenance and reduction of FLASH utilization as it pertains to unused or infrequently referenced FLASH data
US8510605B2 (en) Computer system inspecting defective cell and control method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication