CN106909349A - A kind of UEFI firmware implementation methods based on server - Google Patents

A kind of UEFI firmware implementation methods based on server Download PDF

Info

Publication number
CN106909349A
CN106909349A CN201510969077.4A CN201510969077A CN106909349A CN 106909349 A CN106909349 A CN 106909349A CN 201510969077 A CN201510969077 A CN 201510969077A CN 106909349 A CN106909349 A CN 106909349A
Authority
CN
China
Prior art keywords
module
firmware
uefi
server
internal memory
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
CN201510969077.4A
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.)
CETC Beijing Co
Original Assignee
CETC Beijing Co
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 CETC Beijing Co filed Critical CETC Beijing Co
Priority to CN201510969077.4A priority Critical patent/CN106909349A/en
Publication of CN106909349A publication Critical patent/CN106909349A/en
Pending legal-status Critical Current

Links

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/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Abstract

The invention discloses a kind of UEFI firmware implementation methods based on server.The method is specially:Server electrifying startup, execution processor drive module, initialization processor and internal memory, and the interface of access process device and internal memory is provided, so as to set up the Essential Environment of firmware operation.Firmware core loading module is performed, UEFI firmware codes internal memory is copied into, and firmware is decompressed, loading firmware nucleus module.Firmware nucleus module is performed, the infrastructure service of UEFI firmwares is set up;The system service of UEFI is initialized, the initialization of agent list when UEFI system tables, UEFI start agent list and UEFI operations is completed, all functional modules in UEFI firmwares can call system service.Loading UEFI firmware functional modules, including architecture functional module, device protocol module.Loading peripheral hardware scan module, scanning peripheral hardware and be peripheral assignment system resource, load peripheral hardware drive module, complete peripheral hardware initialize.Each module, start-up operation system in load and execution firmware application layer.

Description

A kind of UEFI firmware implementation methods based on server
Technical field
The invention belongs to the invention belongs to computer firmware technical field, be related to a kind of UEFI based on server The implementation method of firmware.
Background technology
UEFI (Unified Extensible Firmware Interface, unified Extensible Firmware Interface) is A kind of interface specification of computer firmware (or being BIOS), is also the topmost industry mark on firmware It is accurate.UEFI specification is formulated towards the Itanium and X 86 processor of Intel Company, but UEFI specification is in itself unrelated with processor architecture, and X86, Itanium, ARM have been applied at present Deng processor platform.Meet the computer firmware (hereinafter referred to as UEFI firmwares) of UEFI specification relative to biography The firmware of system has lot of superiority, and the X86 BCSs of current main flow are essentially all to employ UEFI firmwares.
The 1500A (FT) that soars is the domestic general central processor developed by the National University of Defense Technology, is adopted It is special with high-performance, low-power consumption using international advanced 28nm techniques flow with ARM V8 instruction set Point, key technology is domestically leading, is capable of achieving the replacement to Intel middle and high ends " to strong " server chips.Fly Rise 1500A series includes 4 cores and the product of 16 core two at present, and 4 core processor chips are mainly directed towards desktop end End and lightweight service device application field, it is adaptable to build terminal console, all-in-one, Portable notebook, micro- The products such as server.The service-oriented device application field of 16 core processor chips, it is adaptable to build network front end and connect Enter the products such as server, transaction server, mail server.
U-BOOT is a firmware of increasing income, and supports multiple processor familys, such as PowerPC, ARM, X86, MIPS etc., manufacturer of soaring, as the firmware of debugging processor, and are applied and soared using U-BOOT In server solution.But there are many deficiencies compared with conventional UEFI computer firmwares in U-BOOT, It is mainly manifested in:U-BOOT projects are entered in the few producers of computer industry circle using U-BOOT or to it Row is supported, therefore U-BOOT cannot be standardized and is developed;Unlike UEFI firmwares support newest Computer technology, U-BOOT codes are not supported many technical specifications, it is impossible to realized common to some The support of function, such as ACPI (presently the most general power management techniques), GRUB (presently the most lead to Operating system nucleus loader) etc.;Compared with UEFI firmwares, U-BOOT does not use modularization side Method is designed realization, and scalability is not strong, and exploitation is safeguarded also inconvenient.
The content of the invention
In view of this, the invention provides a kind of implementation method of the UEFI firmwares based on server.According to this Individual method, can soar realize out meeting on 1500A servers international mainstream UEFI firmware specifications, can Autgmentability is strong, the fastener product of perfect in shape and function, the normal startup and operation of 1500A servers of being soared with support.
In order to achieve the above object, the technical scheme is that:UEFI firmwares are divided into hardware abstraction layer, consolidate Part core layer, device protocol layer and firmware application layer.
Hardware abstraction layer includes processor drive module, chipset drive module and peripheral hardware drive module, treatment Device drive module is initialized to processor in server and internal memory, and provides access process device and internal memory Interface;Chipset drive module is initialized to the Central-South north bridge chips of server hardware platform, including bridge piece The initialization of itself and each peripheral control unit and resource allocation work, and the interface of access north and south bridge is provided; Peripheral hardware drive module drives the peripheral hardware connected on server master board.
Firmware core layer includes firmware core loading module, firmware nucleus module and architecture functional module, Firmware core loading module loading firmware nucleus module, and for it prepares running environment;Firmware nucleus module is built Startup service Boot Service in vertical UEFI specification and service Runtime Service tables when running, loading, Other modules in operation firmware core layer, the interaction in managed firmware core layer between each module, management clothes Internal memory in business device, realizes and safeguards tick interrupt and case mechanism, realizes and safeguard the level of privilege of firmware application Mechanism, realizes the administrative mechanism of the Protocol defined in UEFI specification, realizes that UEFI specification requirement is realized Mechanism and FunctionsDNA;Architectural protocol Architectural in architecture Implement of Function Module UEFI specification Protocol, architecture functional module includes multiple functional modules, and each module realizes an Architectural Protocol;Each Architectural Protocol includes some infrastructure service interfaces, for other work(in firmware Energy module is called.
Device protocol layer includes bus protocol module and network protocol stack module, and bus protocol module is realized various Bus protocol, and the access interface of bus is issued by the Protocol mechanism in UEFI specification;Procotol Stack module realizes network protocol stack.
Firmware application layer includes device scan module, man-machine interface display module, system-monitoring module, system Module and Shell modules when starting module, file system module, kernel loads module, operation;Device scan Module enumerates all peripheral hardwares in server, and is peripheral assignment resource, by external equipment and corresponding peripheral hardware Drive module is attached;Man-machine interface display module is connected with video driver module, realizes all display phases The interface of pass;Temperature of processor, system voltage and rotation speed of the fan in system-monitoring module real-time detection server, The rotating speed of fan is adjusted according to temperature of processor, when temperature of processor is too high, forced shutdown;System is opened Dynamic model block provides a patterned user configuring interface, and user checks system by way of menu operation Information and system is configured.Finally according to the selection of user, from storage device start-up operation system;Text Part system module realizes FAT/FAT32, EXT2/3/4 and ISO9660 file system, supports the reading to file Extract operation;The final stage that kernel loads module starts in system, by kernel from the storage medium of server File is loaded into internal memory, and for kernel file prepares necessary parameter, then branches to the entrance of kernel Perform kernel file;Module realizes that the confession operating system of UEFI specification definition is called in its operation phase during operation Operation when Runtime interfaces, and operating system and the firmware definition of processor platform interface;Shell It is a command line environment of UEFI firmwares offer, based on a large amount of interface services provided in UEFI firmwares, Develop the various firmware application programs under Shell.
On the basis of above-mentioned UEFI firmwares, the method comprises the following steps:
Step one, server electrifying startup, perform processor drive module, initialization processor and internal memory, And the interface of access process device and internal memory is provided, so as to set up the Essential Environment of firmware operation.
Step 2, execution firmware core loading module, internal memory is copied to by UEFI firmware codes, and to firmware Decompressed, loading firmware nucleus module.
Step 3, execution firmware nucleus module, set up the infrastructure service of UEFI firmwares;Initialization UEFI's System service, completes the initialization of agent list when UEFI system tables, UEFI start agent list and UEFI operations, All functional modules in UEFI firmwares can call system service.
Step 4, loading UEFI firmware functional modules, including architecture functional module, device protocol module.
Step 5, loading peripheral hardware scan module, scanning peripheral hardware and be peripheral assignment system resource, loading peripheral hardware Drive module, completes peripheral hardware initialization.
Each module, start-up operation system in step 6, load and execution firmware application layer.
In above-mentioned steps, the firmware application module in step (6) in firmware nucleus module loading firmware volume, and in fact Existing corresponding firmware function.Including display module, system-monitoring module, file system module, kernel loads Module, Shell modules, system starting module when module, operation, finally, firmware nucleus module is by control System starting module is given, prepares start-up operation system.
Further, in step one, after server electrifying startup, processor drive module is performed, is now taken Internal memory does not complete initialization, FLASH core of the processor drive module using connection in the server also in business device Piece runs;Processor drive module realizes processor, cache Cache, internal memory, bypass turn in server The initialization of buffering TLB is changed, the initialization of Memory Controller Hub MCU, SMBUS and internal memory is realized, configured Memory address window, and the interface for accessing the parts such as CPU, Cache, internal memory, processor drive module are provided Also want the serial port module in initialization processor, there is provided the debugging of UEFI firmware codes.
Further, firmware core loading module is performed in step 2, Installed System Memory is initial in server Change, now firmware code can run to accelerate the speed of service in internal memory, have compression in FLASH Firmware volume, during the firmware volume of compression is copied to internal memory by firmware core loading module from FLASH, and is carried out Decompression;After decompressing successfully, HOB tables of data, storage processor, internal memory and FLASH are created in internal memory Information.
Further, firmware nucleus module is performed in rapid three, initializing the system service of UEFI includes that code is adjusted Examination, memory management, the management of UEFI mirror images, HOB, UEFI clock, FLASH are accessed, decompress, consolidated The parsing of part volume, UEFI events, task priority, UEFI Protocol management, UEFI variable access.
Further, in step 4 firmware nucleus module loading firmware functional module, firmware nucleus module lead to Retrieval firmware volume is crossed, functional module therein is searched successively, and be loaded into internal memory, each function mould Block is all compiled into an executable mirror image for PE/ELF forms, and firmware nucleus module needs analytical capabilities module Mirror image, is then loaded at the particular address of internal memory, and jumps to entrance function, the entrance letter of functional module After the completion of number is performed, firmware nucleus module is returned to, firmware nucleus module proceeds next functional module Loading.
Further, step 4, architecture functional module major function is realized in UEFI specification Architectural Protocol, each Architectural Protocol is realized by a module;
Device protocol layer module mainly realize access PCI/PCIE, SATA, PATA, SCSI, USB, ISA, The function interface of SMBUS and LPCBUS buses, and be encapsulated in Protocol and called for other functions module, A kind of bus protocol is realized using a module.
Further, in step 5, peripheral hardware includes north and south bridge chip, video card, SATA/IDE controllers, USB Controller, SMBUS controllers, LPC controller, keyboard, network interface card.
Beneficial effect:
1st, the method for the present invention meets UEFI the and PI firmware specifications of international mainstream, using UEFI alliances The Open Source Code resource of offer quickly realizes firmware;Many peripheral hardware board manufacturers are all provided based on UEFI specification Drive, can also greatly speed up the progress of firmware development.In addition, UEFI firmwares support main computer industry Standard, ACPI (advanced configuration and power-management interface) specification that such as current Feiteng processor is not supported also, So can easily increase the support to these specifications using the firmware of present invention design.
2nd, the important feature of the UEFI firmwares of present invention design is high modularization, the work(to be realized of firmware Many subfunctions can be broken down into, each subfunction is realized by single module, and by a nucleus module To load and manage these functional modules.Therefore can be by additions and deletions module come the function of easily customized firmware.
Brief description of the drawings
Fig. 1 is the configuration diagram of the UEFI firmwares based on FT server.
Specific embodiment
Develop simultaneously embodiment below in conjunction with the accompanying drawings, and the present invention will be described in detail.
A kind of implementation method of the UEFI firmwares based on FT server, firmware is divided into hardware abstraction layer, consolidates Part core layer, device protocol layer and firmware application layer.
Wherein, hardware abstraction layer realizes the initialization of the key hardware components such as processor and internal memory, chipset, To other plates level hardware carry out packaging and it is abstract and realize initialization, while for upper layer module provide access bottom The function interface of hardware device.It includes that processor drive module, chipset drive module and peripheral hardware drive mould Block, processor drive module completes the initial work of processor and internal memory, and provides access process device and interior The interface deposited;Chipset drive module mainly completes the initial of the Central-South north bridge chips of FT server hardware platform Chemical industry is made, including bridge piece works with the initialization of each peripheral control unit and resource allocation in itself, and provides visit Ask the interface of north and south bridge;Peripheral hardware drive module is mainly the driving of various peripheral hardwares on mainboard, such as video card, hard disk, Keyboard, USB device, network interface card etc., each peripheral hardware can correspond to (or multiple) drive module.
Firmware core layer carries out firmware similar to the kernel of operating system, the system service table set up in UEFI In all modules unified management and various resources management.It includes firmware core loading module, firmware core Core module and architecture functional module, firmware core loading module is responsible for loading firmware nucleus module, and is It prepares running environment, and firmware nucleus module is responsible for setting up the startup service (Boot Service) in UEFI specification Service (Runtime Service) table during with operation, loading, operation other functions module, manage each module it Between interaction, realize the management of internal memory, realize and safeguard tick interrupt and case mechanism, realize and safeguard and be solid The level of privilege mechanism of part application, realizes the administrative mechanism of the Protocol defined in UEFI specification, realizes UEFI Other Mechanism and FunctionsDNAs that code requirement is realized, such as debugging interface, compression algorithm, variable storage/treatment. Architectural Protocol in architecture Implement of Function Module UEFI specification, including multiple functional modules, Each module realizes an Architectural Protocol.Each Architectural Protocol includes some bases Plinth service interface, calls for the other functions module in firmware.
Device protocol layer realizes the industrial specification of various standards, including bus protocol, Peripheral Interface, network association View stack etc..It includes bus protocol module and network protocol stack module, and bus protocol module realizes various buses Agreement, such as PCI/PCIE, SATA, PATA, SCSI, USB, ISA, SMBUS, LPCBUS. Typically one module realizes a kind of bus protocol, and by the Protocol mechanism " issue " in UEFI specification The interface of these buses, so other modules can access bus with using these interfaces;Network protocol stack Module realizes network protocol stack, such as TCP/IP, SNP, DHCP, TFTP, and so other modules can be with The related function of network is realized based on these protocol stacks.
Firmware application layer realizes the various functions of firmware, such as configuration interface, system monitoring, file system, behaviour Make System guides etc.;It includes device scan module, man-machine interface display module, system-monitoring module, is Module and Shell modules when system starting module, file system module, kernel loads module, operation, equipment are swept Retouch all external equipments during module enumerates system, such as the equipment in PCI/PCIE buses, be these equipment point With resource, and equipment and corresponding peripheral hardware drive module are carried out into Connect (namely give the device drives and enter Row management);Man-machine interface display module is located on video driver module, realizes the related interface of all displays, Such as set display pattern, ad-hoc location printable character string, display picture, cls;System-monitoring module Real-time detection temperature of processor, system voltage and rotation speed of the fan, the rotating speed of fan is adjusted according to temperature value; User's design temperature threshold value is allowed, when temperature is too high, automatic shutdown is carried out;System starting module provides one Individual patterned user configuring interface, user checks system information and to system by way of menu operation Configured.Finally according to the selection of user, from storage device start-up operation system;File system module reality Existing FAT/FAT32, EXT2/3/4 and ISO9660 file system, supports the read operation to file;Kernel The final stage that load-on module starts in system, this module is from the storage mediums such as hard disk, USB flash disk, CD Kernel file is loaded into internal memory, and for kernel file prepares necessary parameter, then branches to kernel Entrance performs, and has thus given operating system by control;Module realizes UEFI specification and determines during operation (Runtime) interface during operation that the confession operating system of justice was called in its operation phase, and Feiteng processor Some interfaces that the operating system of platform is defined with firmware, such as system reboot, shutdown;Shell is UEFI The command line environment that firmware is provided, based on a large amount of interface services provided in UEFI firmwares, can develop The various firmware application programs gone out under Shell.
The carrying out practically step of the UEFI firmwares based on FT server of the invention is as follows:
(1) initialization processor and internal memory, it is established that the Essential Environment of firmware operation;
(2) UEFI firmware codes are copied into internal memory, and firmware is decompressed, loading firmware Nucleus module;
(3) infrastructure service of UEFI firmwares is set up;
(4) UEFI firmware functional modules, including architecture functional module, device protocol are loaded Module;
(5) scanning device and be equipment distributing system resource, loading equipemtn drive module completes to set Standby initialization;
(6) load and execution firmware application module;Running configuration interface;Loaded from storage device and operated System.
In above-mentioned steps, processor drive module is performed in step (1).Processor drive module uses instruction set Realize, be the module being first carried out after system electrification, now internal memory does not complete initialization also, so this mould Block directly runs in FLASH chip.Processor drive module realizes soar 1500A processors, Caehe (cache), internal memory, TLB (bypass conversion buffered) etc. initialize, realize MCU (Memory Controller Hub), The initialization of SMBUS and internal memory, configures memory address window, and provide access CPU, Cache, internal memory Deng the interface of part.Processor drive module also wants the serial port module in initialization processor, is follow-up consolidating The offer debugging method of part code.
In above-mentioned steps, firmware core loading module is performed in step (2).After the completion of step (1) is performed, system Internal memory is initialized good, and now firmware code can run to accelerate the speed of service in internal memory;And can To be implemented in C language firmware code, Speeding up development speed.The functional module included in firmware is more, and The finite capacity of FLASH chip, generally requires and is compressed the firmware volume for depositing functional module, firmware core During heart load-on module is responsible for that the firmware volume of compression copied into internal memory from FLASH, and decompressed;Decompression Success after, in internal memory create HOB (Hand-Off Block) tables of data, storage processor, internal memory, The system informations such as FLASH, there is provided used to follow-up firmware module;Finally, firmware core loading module will Control gives firmware nucleus module.
In above-mentioned steps, firmware nucleus module is performed in step (3).Firmware nucleus module initializes UEFI first System service, be follow-up functional module loading, operation prepare.Mainly complete UEFI system tables, UEFI starts the initialization of agent list when agent list and UEFI run, and specific service includes code debugging, interior Deposit management, the management of UEFI mirror images, HOB, UEFI clock, FLASH access, decompression, firmware volume solution Analysis, UEFI events, task priority, UEFI Protocol management, UEFI variable access etc..System takes Business table is stored in the specific region of internal memory, and all functional modules in UEFI firmwares can call these systems Service.
In above-mentioned steps, the functional module of firmware nucleus module loading firmware in step (4).Firmware nucleus module By retrieving firmware volume, functional module therein is searched successively, and be loaded into internal memory.Each function Module is all compiled into an executable mirror image for PE/ELF forms, and firmware nucleus module needs analytical capabilities mould Block mirror image, is then loaded at the particular address of internal memory, and jumps to entrance function.The entrance of functional module After the completion of function is performed, it will usually return to firmware nucleus module, firmware nucleus module proceeds next The loading of functional module.
The module being loaded in step (4) includes architecture functional module, device protocol module.Wherein, Architecture functional module major function is to realize the Architectural Protocol in UEFI specification, main bag Include:Boot Device Selection(BDS)、CPU、Metronome、Monotonic Counter、Real Time Clock、Runtime、Security、Status Code、Timer、Variable、Variable Write、Watchdog Timer, each Architectural Protocol is realized by a module;Device protocol layer module is mainly realized Access the buses such as PCI/PCIE, SATA, PATA, SCSI, USB, ISA, SMBUS, LPCBUS Function interface, and be encapsulated in Protocol and called for other functions module, typically one module realizes one Plant bus protocol.In addition, also including realizing the functional module of TCP/IP network protocol stacks;
In above-mentioned steps, the initialization of completion equipment in step (5).Firmware nucleus module loading equipemtn drives Module, realizes the initialization of peripheral hardware on mainboard and realizes accessing the function interface of peripheral hardware, including north and south bridge chip, Video card, SATA/IDE controllers, USB controller, SMBUS controllers, LPC controller, keyboard, Network interface card etc..A kind of device drives are generally realized by a module.In addition, in this stage by device scan mould All peripheral hardwares in block scan system, and be peripheral assignment internal memory, IO and interrupt resources, so it is located at behaviour outward Make ability normal work under system.
In above-mentioned steps, the firmware application module in step (6) in firmware nucleus module loading firmware volume, and in fact Existing corresponding firmware function.Including display module, system-monitoring module, file system module, kernel loads Module, Shell modules, system starting module when module, operation.Finally, firmware nucleus module is by control System starting module is given, prepares start-up operation system.
System starting module is shown by the service interface for calling firmware nucleus module and other functions module to provide Show figure configuration interface as human-computer interaction interface.In this stage, firmware enters according to the operation of user The work of row next step, including the display of system information and the configuration of systematic parameter are provided, and selection will be opened Dynamic equipment, including hard disk, CD, USB flash disk, network, order line etc..User is exited by specific keys Configuration interface enters into next execution step.
In above-mentioned steps, the startup of operating system is realized, comprised the following steps that suitable according to the startup of user configuring Sequence, system starting module is attempted operating system nucleus from media such as hard disk, CD, USB flash disk, networks successively File is loaded into internal memory, and for kernel prepares necessary start-up parameter, then gives kernel by control, from And the startup work of completion system.After the completion of os starting, module when running in firmware still can be called The a small amount of function for providing, including system reboot, shutdown etc..
To sum up, presently preferred embodiments of the present invention is these are only, protection model of the invention is not intended to limit Enclose.All any modification, equivalent substitution and improvements within the spirit and principles in the present invention, made etc., Should be included within protection scope of the present invention.

Claims (7)

1. a kind of UEFI firmware implementation methods based on server, it is characterised in that the UEFI firmwares It is divided into hardware abstraction layer, firmware core layer, device protocol layer and firmware application layer;
The hardware abstraction layer includes processor drive module, chipset drive module and peripheral hardware drive module, The processor drive module is initialized to processor in server and internal memory, and provides access process device With the interface of internal memory;The chipset drive module is carried out initially to the Central-South north bridge chips of server hardware platform Change, including bridge piece works with the initialization of each peripheral control unit and resource allocation in itself, and access south is provided The interface of north bridge;The peripheral hardware drive module drives the peripheral hardware connected on server master board;
The firmware core layer includes firmware core loading module, firmware nucleus module and architecture function mould Block, firmware core loading module loading firmware nucleus module, and for it prepares running environment;Firmware core mould Runtime Service tables are serviced when the startup service Boot Service that block is set up in UEFI specification are with operation, Other modules in loading, operation firmware core layer, the interaction in managed firmware core layer between each module, Internal memory in management server, realizes and safeguards tick interrupt and case mechanism, realizes and safeguard firmware application Level of privilege mechanism, realizes the administrative mechanism of the Protocol defined in UEFI specification, realizes that UEFI specification will Realistic existing Mechanism and FunctionsDNA;Architectural protocol in architecture Implement of Function Module UEFI specification Architectural Protocol, architecture functional module includes multiple functional modules, and each module realizes one Architectural Protocol;Each Architectural Protocol includes some infrastructure service interfaces, for solid Other functions module in part is called;
The device protocol layer includes bus protocol module and network protocol stack module, and bus protocol module is realized Various bus protocols, and the access interface of bus is issued by the Protocol mechanism in UEFI specification;Network Protocol stack module realizes network protocol stack;
Firmware application layer include device scan module, man-machine interface display module, system-monitoring module, Module and Shell modules when system starting module, file system module, kernel loads module, operation;Equipment Scan module enumerates all peripheral hardwares in server, and is peripheral assignment resource, by external equipment with it is corresponding Peripheral hardware drive module is attached;Man-machine interface display module is connected with video driver module, realizes all aobvious Show the interface of correlation;Temperature of processor, system voltage and fan in system-monitoring module real-time detection server Rotating speed, the rotating speed of fan is adjusted according to temperature of processor, when temperature of processor is too high, forced shutdown; System starting module provides a patterned user configuring interface, and user is looked into by way of menu operation See system information and system is configured.Finally according to the selection of user, from storage device start-up operation system System;File system module realizes FAT/FAT32, EXT2/3/4 and ISO9660 file system, supports to text The read operation of part;The final stage that kernel loads module starts in system, from the storage medium of server Kernel file is loaded into internal memory, and for kernel file prepares necessary parameter, then branches to kernel Entrance performs kernel file;Module realizes that the confession operating system of UEFI specification definition runs rank at it during operation Runtime interfaces during the operation of segment call, and operating system and the firmware definition of processor platform interface; Shell is the command line environment that UEFI firmwares are provided, based on a large amount of interfaces clothes provided in UEFI firmwares Business, develops the various firmware application programs under Shell;
On the basis of above-mentioned UEFI firmwares, the method comprises the following steps:
Step one, server electrifying startup, perform the processor drive module, initialization processor, interior Deposit, and the interface of access process device and internal memory is provided, so as to set up the Essential Environment of firmware operation;
Step 2, the execution firmware core loading module, internal memory is copied to by UEFI firmware codes, and right Firmware is decompressed, loading firmware nucleus module;
Step 3, execution firmware nucleus module, set up the infrastructure service of UEFI firmwares;Initialization UEFI's System service, completes the initialization of agent list when UEFI system tables, UEFI start agent list and UEFI operations, All functional modules in UEFI firmwares can call the system service;
Step 4, loading UEFI firmware functional modules, including architecture functional module, device protocol module;
Step 5, loading peripheral hardware scan module, scanning peripheral hardware and be peripheral assignment system resource, loading peripheral hardware Drive module, completes peripheral hardware initialization;
Each module, start-up operation system in step 6, load and execution firmware application layer.
In above-mentioned steps, the firmware application module in step (6) in firmware nucleus module loading firmware volume, and in fact Existing corresponding firmware function.Including display module, system-monitoring module, file system module, kernel loads Module, Shell modules, system starting module when module, operation, finally, firmware nucleus module is by control System starting module is given, prepares start-up operation system.
2. a kind of UEFI firmware implementation methods based on server as claimed in claim 1, its feature exists In, in the step one, after server electrifying startup, execution processor drive module, now in server Internal memory does not complete initialization also, and FLASH chip of the processor drive module using connection in the server is run; Processor drive module realizes processor in server, cache Cache, internal memory, bypass conversion buffered The initialization of TLB, realizes the initialization of Memory Controller Hub MCU, SMBUS and internal memory, configuration internal memory ground Location window, and the interface for accessing the parts such as CPU, Cache, internal memory is provided, processor drive module will also be just Serial port module in beginningization processor, there is provided the debugging of the UEFI firmware codes.
3. a kind of UEFI firmware implementation methods based on server as claimed in claim 2, its feature exists In, firmware core loading module is performed in the step 2, Installed System Memory is initialized good in server, Now firmware code can be run in internal memory to accelerate the speed of service, have consolidating for compression in the FLASH Part is rolled up, and during the firmware volume of compression is copied to internal memory by firmware core loading module from FLASH, and is solved Pressure;After decompressing successfully, HOB tables of data is created in internal memory, storage processor, internal memory and FLASH's Information.
4. a kind of UEFI firmware implementation methods based on server as claimed in claim 3, its feature exists In, firmware nucleus module is performed in the step 3, the system service of the initialization UEFI is adjusted including code Examination, memory management, the management of UEFI mirror images, HOB, UEFI clock, FLASH are accessed, decompress, consolidated The parsing of part volume, UEFI events, task priority, UEFI Protocol management, UEFI variable access.
5. a kind of UEFI firmware implementation methods based on server as claimed in claim 4, its feature exists In, the functional module of firmware nucleus module loading firmware in the step 4, firmware nucleus module is by retrieval The firmware volume, searches functional module therein successively, and is loaded into internal memory, each functional module An executable mirror image for PE/ELF forms is all compiled into, firmware nucleus module needs analytical capabilities module mirror Picture, is then loaded at the particular address of internal memory, and jumps to entrance function, the entrance function of functional module After the completion of execution, firmware nucleus module is returned to, firmware nucleus module proceeds next functional module Loading.
6. a kind of UEFI firmware implementation methods based on server as claimed in claim 5, its feature exists In the step 4, the architecture functional module major function is realized in UEFI specification Architectural Protocol, each Architectural Protocol is realized by a module;
Device protocol layer module mainly realize accessing PCI/PCIE, SATA, PATA, SCSI, USB, The function interface of ISA, SMBUS and LPCBUS bus, and be encapsulated in Protocol for other functions mould Block is called, and a kind of bus protocol is realized using a module.
7. a kind of UEFI firmware implementation methods based on server as claimed in claim 6, its feature exists In in the step 5, peripheral hardware includes north and south bridge chip, video card, SATA/IDE controllers, USB controls Device, SMBUS controllers, LPC controller, keyboard, network interface card.
CN201510969077.4A 2015-12-22 2015-12-22 A kind of UEFI firmware implementation methods based on server Pending CN106909349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510969077.4A CN106909349A (en) 2015-12-22 2015-12-22 A kind of UEFI firmware implementation methods based on server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510969077.4A CN106909349A (en) 2015-12-22 2015-12-22 A kind of UEFI firmware implementation methods based on server

Publications (1)

Publication Number Publication Date
CN106909349A true CN106909349A (en) 2017-06-30

Family

ID=59199987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510969077.4A Pending CN106909349A (en) 2015-12-22 2015-12-22 A kind of UEFI firmware implementation methods based on server

Country Status (1)

Country Link
CN (1) CN106909349A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213449A (en) * 2018-09-04 2019-01-15 山东超越数控电子股份有限公司 A kind of RAID driving realization system and equipment based on domestic firmware
CN109471668A (en) * 2018-11-20 2019-03-15 南方电网科学研究院有限责任公司 Cross-platform video card firmware translation executes method, apparatus, equipment and readable medium
CN110018856A (en) * 2019-04-03 2019-07-16 中电科技(北京)有限公司 The method that dynamic modifies UEFI boot sequence
CN110798356A (en) * 2019-11-04 2020-02-14 腾讯科技(深圳)有限公司 Firmware monitoring method and device, storage medium and computer equipment
CN111596962A (en) * 2019-02-20 2020-08-28 中标软件有限公司 Real-time microkernel system based on high-speed protocol channel and initialization method thereof
CN114579495A (en) * 2022-05-06 2022-06-03 成都前锋信息技术股份有限公司 Implementation method of nationwide universal computer firmware based on Feiteng processor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130254358A1 (en) * 2009-09-30 2013-09-26 Dell Products, L.P. Systems And Methods For Extension Of Server Management Functions
CN104572061A (en) * 2014-03-21 2015-04-29 中电科技(北京)有限公司 UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Loongson server
CN106909399A (en) * 2015-12-22 2017-06-30 中电科技(北京)有限公司 A kind of UEFI firmware implementation methods based on server computer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130254358A1 (en) * 2009-09-30 2013-09-26 Dell Products, L.P. Systems And Methods For Extension Of Server Management Functions
CN104572061A (en) * 2014-03-21 2015-04-29 中电科技(北京)有限公司 UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Loongson server
CN106909399A (en) * 2015-12-22 2017-06-30 中电科技(北京)有限公司 A kind of UEFI firmware implementation methods based on server computer

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213449A (en) * 2018-09-04 2019-01-15 山东超越数控电子股份有限公司 A kind of RAID driving realization system and equipment based on domestic firmware
CN109213449B (en) * 2018-09-04 2021-07-06 超越科技股份有限公司 RAID drive implementation system and equipment based on domestic firmware
CN109471668A (en) * 2018-11-20 2019-03-15 南方电网科学研究院有限责任公司 Cross-platform video card firmware translation executes method, apparatus, equipment and readable medium
CN109471668B (en) * 2018-11-20 2021-11-26 南方电网科学研究院有限责任公司 Cross-platform display card firmware translation execution method, device, equipment and readable medium
CN111596962A (en) * 2019-02-20 2020-08-28 中标软件有限公司 Real-time microkernel system based on high-speed protocol channel and initialization method thereof
CN111596962B (en) * 2019-02-20 2023-05-30 中标软件有限公司 Real-time microkernel system based on high-speed protocol channel and initialization method thereof
CN110018856A (en) * 2019-04-03 2019-07-16 中电科技(北京)有限公司 The method that dynamic modifies UEFI boot sequence
CN110798356A (en) * 2019-11-04 2020-02-14 腾讯科技(深圳)有限公司 Firmware monitoring method and device, storage medium and computer equipment
CN110798356B (en) * 2019-11-04 2021-12-14 腾讯科技(深圳)有限公司 Firmware monitoring method and device, storage medium and computer equipment
CN114579495A (en) * 2022-05-06 2022-06-03 成都前锋信息技术股份有限公司 Implementation method of nationwide universal computer firmware based on Feiteng processor
CN114579495B (en) * 2022-05-06 2022-09-30 成都前锋信息技术股份有限公司 Implementation method of general computer firmware based on Feiteng processor

Similar Documents

Publication Publication Date Title
CN104572165B (en) A kind of UEFI firmware implementation methods based on FT server
CN106909349A (en) A kind of UEFI firmware implementation methods based on server
CN104572161B (en) A kind of UEFI firmware implementation methods based on Godson portable computer
CN106909399A (en) A kind of UEFI firmware implementation methods based on server computer
CN104572061A (en) UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Loongson server
CN104572164A (en) UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Feiteng portable computer
US8108665B2 (en) Decoupled hardware configuration manager
CN100380353C (en) Apparatus and method for enumeration of processors during hot-plug of a compute node
CN106990958A (en) A kind of extension element, electronic equipment and startup method
US9880858B2 (en) Systems and methods for reducing BIOS reboots
CN109426613B (en) Method for retrieving debugging data in UEFI and computer system thereof
CN103699372A (en) Booting a computer system from central storage
CN102103406A (en) Operating system independent network event handling
CN106909400A (en) A kind of UEFI firmware implementation methods based on notebook
CN104572163A (en) UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Loongson desk computer
CN106909346A (en) A kind of UEFI firmware implementation methods based on integrated computer
CN102096597A (en) Virtual bus device using management engine
CN104503825A (en) Mixed type equipment virtualization method based on KVM (Kernel-based Virtual Machine)
CN104572162A (en) UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Loongson handheld computer
CN106909347A (en) A kind of UEFI firmware implementation methods of portable computer
CN106909345A (en) A kind of UEFI firmware implementation methods based on desktop computer
CN104572166A (en) UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Feiteng desk computer
US11340882B2 (en) Systems and methods for enforcing update policies while applying updates from bootable image file
US10567239B2 (en) Techniques of providing data to screen saver of thin client
CN102591669B (en) Modularized computer firmware and realizing method thereof

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170630

WD01 Invention patent application deemed withdrawn after publication