UEFI customization method based on Feiteng platform
By building a UEFI customization system on the Feiteng platform, the two-way connection between the UEFI layer and hardware resources is realized, and custom commands are added and the initialization process is added, the problem that the existing UEFI cannot meet the diversified needs of the Feiteng platform is solved, resource customization configuration and UEFI function expansion are realized, which significantly accelerates the startup process.
Patent Information
- Application Number
- CN202411734404.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-18
AI Technical Summary
The existing UEFI cannot meet the diversified needs of the Feiteng computing platform, especially in terms of customized configuration, cropping and optimization, and cannot effectively support the high reliability and flexibility requirements of Feiteng CPU, internal/video memory and other peripheral resources.
A UEFI customization method based on Feiteng platform is proposed. By building a UEFI customization system, the two-way connection between the UEFI layer and the underlying computer hardware device resources is realized, custom commands are added to expand functions, and serial port printing and DEBUG mode is optimized to realize the customized configuration and optimization of resources.
It realizes customized configuration of CPU and other resources under the Feiteng platform, expands UEFI functions, supports common information query and online firmware updates under UEFI, significantly accelerates the UEFI startup process, and improves the power-on self-test speed and cold start time of the device.
Smart Images

Figure CN119645506A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of chip control technology, and in particular to a UEFI customization method based on a Feiteng platform. Background Art
[0002] With the development and iteration of CPU, special-purpose computers have been vigorously developed. For example, special-purpose computers with Feiteng CPU as the core have been widely used. As the core technology of computers, BIOS is currently mostly designed based on X86 architecture. As a commercial product, BIOS research and development is a weak link in the computer industry and the last blank after CPU and operating system. Feiteng series CPU adopts ARM architecture, and its BIOS is implemented based on open source UEFI. Different from the civilian market which focuses more on general application needs, Feiteng computing platform has the characteristics of high degree of customization, high reliability requirements, complex usage scenarios, and high flexibility requirements for dynamic resource configuration. General UEFI cannot meet the diversified needs of Feiteng computing platform. In order to break through the barriers of BIOS technology development, the UEFI customization design method for Feiteng platform is an indispensable link, that is, to realize the customized configuration, cutting and optimization of Feiteng CPU, internal / video memory and other peripheral resources, so as to achieve the effect of customized function and performance. Therefore, realizing the customized design of UEFI based on Feiteng platform will provide more powerful support for the development of Feiteng BIOS technology, which is in line with the general trend of related technology development in the future. Summary of the invention
[0003] The purpose of the present invention is to overcome the shortcomings of the prior art and propose a UEFI customization method based on the Feiteng platform, which can realize customized configuration, tailoring and optimization of CPU and other resources under the Feiteng platform, realize the query of common device information under UEFI, and improve the UEFI startup efficiency.
[0004] The present invention solves the technical problem by adopting the following technical solutions:
[0005] A UEFI customization method based on Feiteng platform includes the following steps:
[0006] Step 1: Build a customized UEFI system based on the Feiteng platform;
[0007] Step 2: The UEFI layer in the UEFI customized system based on the Feiteng platform calls the underlying computer hardware device resources;
[0008] Step 3: Add custom commands to the UEFI layer in the UEFI customized system based on the Feiteng platform to expand functions;
[0009] Step 4: Optimize serial port printing and DEBUG mode at the UEFI layer in the UEFI customized system based on the Feiteng platform.
[0010] Moreover, the UEFI customized system based on the Feiteng platform in step 1 includes an operating system, UEFI and computer hardware devices, wherein the UEFI layer serves as an intermediate bridge, the bottom layer of the UEFI layer is bidirectionally connected to the computer hardware device, and the top layer of the UEFI layer is bidirectionally connected to the operating system.
[0011] Moreover, the computer hardware device is used to test customized UEFI functions, adopts Feiteng D2000 processor and X100 bridge chip, and is equipped with internal / video memory chips and serial ports, network, USB and SATA external devices; the computer hardware device is a 3UCPEX structure, and the network, serial port, USB and display signals are all input or output through the CPEX connector.
[0012] Moreover, the specific implementation method of step 2 is: through EFI pre-initialization, the device resources are initialized and customized according to the computer hardware device requirements. After the configuration is completed, the device resources are bound to their corresponding device drivers through driver execution environment initialization. The customized configured device resources include: CPU, internal / video memory, serial port, network, USB and SATA.
[0013] Moreover, the specific implementation method of step 3 is as follows: the custom command will register the command with the system through the initialization function in the early stage of EFI, and then initialize it through the driver execution environment. After selecting the startup device, you can enter the UEFI application interaction interface to query resources such as UEFI firmware version, time, environment variables and other device information, and use the underlying USB device to realize online update of UEFI firmware.
[0014] Moreover, the specific implementation method of step 4 is: mainly reflected in the early EFI initialization stage, shielding unnecessary hardware resources and functions, thereby simplifying the device initialization process, and cutting the underlying hardware resource interface according to actual needs to accelerate the UEFI startup process.
[0015] The advantages and positive effects of the present invention are:
[0016] The present invention constructs a UEFI customized system based on the Feiteng platform; the UEFI layer in the UEFI customized system based on the Feiteng platform calls the underlying computer hardware device resources; the UEFI layer in the UEFI customized system based on the Feiteng platform adds custom commands to expand functions; the UEFI layer in the UEFI customized system based on the Feiteng platform optimizes serial port printing and DEBUG mode. The present invention can realize customized configuration of resources such as CPU under the Feiteng platform; and expand UEFI functions through custom commands, realize common information query under UEFI and online update of UEFI firmware; finally accelerate the UEFI startup process, improve the power-on self-test speed, and optimize the equipment cold start time. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is the structure diagram of the UEF I customized system based on the Feiteng platform of the present invention;
[0018] Figure 2 It is a schematic diagram of the computer hardware device of the present invention. DETAILED DESCRIPTION
[0019] The present invention is further described in detail below with reference to the accompanying drawings.
[0020] A UEFI customization method based on Feiteng platform includes the following steps:
[0021] Step 1: Build a customized UEFI system based on the Feiteng platform.
[0022] In step 1, the UEFI customized system based on the Feiteng platform includes an operating system, UEFI, and computer hardware devices, wherein the UEFI layer serves as an intermediate bridge, the bottom layer of the UEFI layer is bidirectionally connected to the computer hardware device, and the top layer of the UEFI layer is bidirectionally connected to the operating system.
[0023] The computer hardware equipment is used to test customized UEFI functions. It adopts Feiteng D2000 processor and X100 bridge chip, and is equipped with internal / video memory chips and serial ports, network, USB and SATA external devices. The computer hardware equipment is a 3U CPEX structure, and the network, serial port, USB and display signals are all input or output through the CPEX connector.
[0024] Computer hardware devices include network, serial port, USB, display, SATA and other bus devices, which provide underlying hardware resource support for the UEFI layer.
[0025] Step 2: In the UEFI customized system based on the Feiteng platform, the UEFI layer calls the underlying computer hardware device resources.
[0026] Customized configuration of UEFI resources: Through secondary development of the UEFI framework, customized configuration of resource parameters such as CPU, internal / video memory, network, and serial port can be achieved according to the actual hardware platform.
[0027] Through EFI preliminary initialization, the device resources are initialized and customized according to the computer hardware device requirements. After the configuration is completed, the device resources are bound to their corresponding device drivers through the driver execution environment initialization. The customized device resources include: CPU, internal / video memory, serial port, network, USB and SATA.
[0028] Step 3: Add custom commands to the UEFI layer in the UEFI customized system based on the Feiteng platform to expand functions.
[0029] UEFI information query and update: Add custom commands to expand UEFI functions, so that you can query configured resource information and update UEFI firmware online under UEFI.
[0030] The custom command will be registered with the system through the initialization function in the early stage of EFI, and then initialized through the driver execution environment. After selecting the boot device, you can enter the UEFI application interaction interface to query resources such as UEFI firmware version, time, environment variables, and other device information, and use the underlying USB device to realize online update of UEFI firmware.
[0031] Step 4: Optimize serial port printing and DEBUG mode at the UEFI layer in the UEFI customized system based on the Feiteng platform.
[0032] UEFI startup optimization: By optimizing the UEFI initialization process, you can close redundant resource interfaces according to actual needs, simplify device scanning and initialization detection processes, and accelerate UEFI startup.
[0033] It is mainly reflected in the early initialization stage of EFI, shielding unnecessary hardware resources and functions, thereby simplifying the device initialization process, and tailoring the underlying hardware resource interface according to actual needs to accelerate the UEFI startup process.
[0034] The present invention constructs a UEFI customized system based on the Feiteng platform; the UEFI layer in the UEFI customized system based on the Feiteng platform calls the underlying computer hardware device resources; the UEFI layer in the UEFI customized system based on the Feiteng platform adds custom commands to expand functions; the UEFI layer in the UEFI customized system based on the Feiteng platform optimizes serial port printing and DEBUG mode. The present invention can realize customized configuration of resources such as CPU under the Feiteng platform; and expand UEFI functions through custom commands, realize common information query under UEFI and online update of UEFI firmware; finally accelerate the UEFI startup process, improve the power-on self-test speed, and optimize the equipment cold start time.
[0035] It should be emphasized that the embodiments described in the present invention are illustrative rather than restrictive. Therefore, the present invention includes but is not limited to the embodiments described in the specific implementation manner. Any other implementation manners derived by those skilled in the art based on the technical solution of the present invention also fall within the scope of protection of the present invention.
Claims
1. A UEFI customization method based on the Feiteng platform, characterized in that: The following steps are involved: Step 1: Build a customized UEFI system based on the Feiteng platform; Step 2: The UEFI layer in the UEFI customized system based on the Feiteng platform calls the underlying computer hardware device resources; Step 3: Add custom commands to the UEFI layer in the UEFI customized system based on the Feiteng platform to expand functions; Step 4: Optimize serial port printing and DEBUG mode at the UEFI layer in the UEFI customized system based on the Feiteng platform.
2. A UEFI customization method based on the Feiteng platform according to claim 1, characterized in that: The UEFI customized system based on the Feiteng platform in step 1 includes an operating system, UEFI and computer hardware devices, wherein the UEFI layer serves as an intermediate bridge, the bottom layer of the UEFI layer is bidirectionally connected to the computer hardware device, and the top layer of the UEFI layer is bidirectionally connected to the operating system.
3. A UEFI customization method based on the Feiteng platform according to claim 2, characterized in that: The computer hardware device is used to test customized UEFI functions, adopts Feiteng D2000 processor and X100 bridge chip, and is equipped with internal / video memory chips and serial ports, network, USB and SATA external devices; the computer hardware device is a 3U CPEX structure, and the network, serial port, USB and display signals are all input or output through the CPEX connector.
4. The UEFI customization method based on the Feiteng platform according to claim 1, characterized in that: The specific implementation method of step 2 is: through EFI pre-initialization, the device resources are initialized and customized according to the computer hardware device requirements. After the configuration is completed, the device resources are bound to their corresponding device drivers through driver execution environment initialization. The customized device resources include: CPU, internal / video memory, serial port, network, USB and SATA.
5. The UEFI customization method based on the Feiteng platform according to claim 1 is characterized in that: The specific implementation method of step 3 is as follows: the custom command will register the command with the system through the initialization function in the early stage of EFI, and then initialize it through the driver execution environment. After selecting the startup device, you can enter the UEFI application interaction interface to query resources such as UEFI firmware version, time, environment variables and other device information, and use the underlying USB device to realize online update of UEFI firmware.
6. The UEFI customization method based on the Feiteng platform according to claim 1, characterized in that: The specific implementation method of step 4 is: mainly in the early EFI initialization stage, shielding unnecessary hardware resources and functions, thereby simplifying the device initialization process, and cutting the underlying hardware resource interface according to actual needs to accelerate the UEFI startup process.