CN106909346A - A kind of UEFI firmware implementation methods based on integrated computer - Google Patents

A kind of UEFI firmware implementation methods based on integrated computer Download PDF

Info

Publication number
CN106909346A
CN106909346A CN201510968232.0A CN201510968232A CN106909346A CN 106909346 A CN106909346 A CN 106909346A CN 201510968232 A CN201510968232 A CN 201510968232A CN 106909346 A CN106909346 A CN 106909346A
Authority
CN
China
Prior art keywords
module
firmware
uefi
internal memory
protocol
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
CN201510968232.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.)
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 CN201510968232.0A priority Critical patent/CN106909346A/en
Publication of CN106909346A publication Critical patent/CN106909346A/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/4403Processor initialisation
    • 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 integrated computer.The method is specially:One 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 integrated computer
Technical field
It is a kind of based on integrated computer the invention belongs to the invention belongs to computer firmware technical field, be related to The implementation method of UEFI firmwares.
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 notebook 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 integrated computer.Root According to this method, can realize out meeting international mainstream UEFI firmwares on 1500A integrated computers soaring Specification, scalability are strong, the fastener product of perfect in shape and function, to support soaring 1500A integrated computers just Often start and run.
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 notebook 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 notebook 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 notebook mainboard.
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 manages pen Remember internal memory in this, realize and safeguard tick interrupt and case mechanism, realize 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 notebook, 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 notebook, 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 notebook 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, notebook 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 notebook electrifying startup, processor drive module is performed, now pen Internal memory does not complete initialization also in remembering this, and processor drive module uses the FLASH cores being connected in notebook Piece runs;Processor, cache Cache, internal memory and bypass turn during processor drive module realizes notebook 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 and internal memory is provided, processor drives mould Block also wants 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 notebook 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 is created in internal memory, deposit processor and internal memory and FLASH 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 notebook of soaring.
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 integrated computer of soaring, firmware be divided into hardware abstraction layer, Firmware 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 notebook hardware platform that soar 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 notebook of soaring 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, Cache (cache), internal memory and TLB (bypass conversion buffered) etc. are initialized, and realize MCU (Memory controls Device), the initialization of SMBUS and internal memory, configure memory address window, and provide access CPU, Cache With the interface of the part such as internal memory.Processor drive module also wants the serial port module in initialization processor, after being The offer debugging method of continuous firmware 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 integrated computer, it is characterised in that the UEFI Firmware 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 integrated computer and internal memory, and is provided at access The interface of reason device and internal memory;The chipset drive module is to the Central-South north bridge chips of integrated computer hardware platform Initialized, including bridge piece works with the initialization of each peripheral control unit and resource allocation in itself, and carry Interface for accessing north and south bridge;The peripheral hardware drive module drives the peripheral hardware connected on integrated computer mainboard;
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 integrated computer, realizes and safeguards tick interrupt and case mechanism, realizes and safeguard that firmware should Level of privilege mechanism, realizes the administrative mechanism of the Protocol defined in UEFI specification, realizes that UEFI is advised The Mechanism and FunctionsDNA that model requirement is realized;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 integrated computer, and is peripheral assignment resource, by external equipment and phase The peripheral hardware drive module answered is attached;Man-machine interface display module is connected with video driver module, realizes institute There is the related interface of display;Temperature of processor, system electricity in system-monitoring module real-time detection integrated computer Pressure and rotation speed of the fan, the rotating speed of fan are adjusted according to temperature of processor, when temperature of processor is too high, by force System shutdown;System starting module provides a patterned user configuring interface, and user is by menu operation Mode, checks system information and system is configured.Finally according to the selection of user, opened from storage device Dynamic operating system;File system module realizes FAT/FAT32, EXT2/3/4 and ISO9660 file system, Support the read operation to file;The final stage that kernel loads module starts in system, from integrated computer Storage medium in kernel file is loaded into internal memory, and be that kernel file prepares necessary parameter, then The entrance for jumping to kernel performs kernel file;Module realizes that the operation that supplies of UEFI specification definition is during operation Unite the operation called in its operation phase when Runtime interfaces, and processor platform operating system with it is solid The interface of part definition;Shell is the command line environment that UEFI firmwares are provided, based on being carried in UEFI firmwares The a large amount of interface services for supplying, develop the various firmware application programs under Shell;
On the basis of above-mentioned UEFI firmwares, the method comprises the following steps:
Step one, integrated computer electrifying startup, perform the 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, 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 implementation method of the UEFI firmwares based on integrated computer as claimed in claim 1, its It is characterised by, in the step one, after integrated computer electrifying startup, performs processor drive module, this When integrated computer in internal memory do not complete initialization also, processor drive module is using being connected to integrated computer In FLASH chip operation;Processor drive module realizes processor, cache in integrated computer The initialization of Cache, internal memory and bypass conversion buffered TLB, realizes Memory Controller Hub MCU, SMBUS With the initialization of internal memory, memory address window is configured, and provide the parts such as access CPU, Cache and internal memory Interface, processor drive module also wants the serial port module in initialization processor, there is provided the UEFI firmwares The debugging of code.
3. a kind of implementation method of the UEFI firmwares based on integrated computer as claimed in claim 2, its It is characterised by, firmware core loading module is performed in the step 2, and Installed System Memory has been in integrated computer Initialize, now firmware code can be run in internal memory to accelerate the speed of service, deposited in the FLASH There is a firmware volume of compression, during the firmware volume of compression is copied to internal memory by firmware core loading module from FLASH, And decompressed;After decompressing successfully, in internal memory create HOB tables of data, storage processor, internal memory and The information of FLASH.
4. a kind of implementation method of the UEFI firmwares based on integrated computer as claimed in claim 3, its It is characterised by, firmware nucleus module is performed in the step 3, and the system service of the initialization UEFI includes Code debugging, memory management, the management of UEFI mirror images, HOB, UEFI clock, FLASH are accessed, decompressed Contracting, firmware volume parsing, UEFI events, task priority, UEFI Protocol management, UEFI variables are deposited Take.
5. a kind of implementation method of the UEFI firmwares based on integrated computer as claimed in claim 4, its It is characterised by, the functional module of firmware nucleus module loading firmware in the step 4, firmware nucleus module leads to Cross and retrieve the firmware volume, functional module therein is searched successively, and be loaded into internal memory, each work( Energy module is all compiled into an executable mirror image for PE/ELF forms, and firmware nucleus module needs analytical capabilities Module image, is then loaded at the particular address of internal memory, and jump to entrance function, and functional module enters After the completion of mouth function is performed, firmware nucleus module is returned to, firmware nucleus module proceeds next function The loading of module.
6. a kind of implementation method of the UEFI firmwares based on integrated computer as claimed in claim 5, its It is characterised by, 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 implementation method of the UEFI firmwares based on integrated computer as claimed in claim 6, its It is characterised by, in the 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.
CN201510968232.0A 2015-12-22 2015-12-22 A kind of UEFI firmware implementation methods based on integrated computer Pending CN106909346A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510968232.0A CN106909346A (en) 2015-12-22 2015-12-22 A kind of UEFI firmware implementation methods based on integrated computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510968232.0A CN106909346A (en) 2015-12-22 2015-12-22 A kind of UEFI firmware implementation methods based on integrated computer

Publications (1)

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

Family

ID=59200614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510968232.0A Pending CN106909346A (en) 2015-12-22 2015-12-22 A kind of UEFI firmware implementation methods based on integrated computer

Country Status (1)

Country Link
CN (1) CN106909346A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110488918A (en) * 2019-07-19 2019-11-22 苏州浪潮智能科技有限公司 A kind of common store server
CN111045739A (en) * 2019-12-03 2020-04-21 福州瑞芯微电子股份有限公司 Firmware booting method, medium, and apparatus based on boot program
CN112235325A (en) * 2020-12-14 2021-01-15 中国电力科学研究院有限公司 Method and system for performing access control on functional module connected with intelligent terminal
CN112948060A (en) * 2021-03-15 2021-06-11 北京邮电大学 Firmware binary simulation method and device and computer equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572164A (en) * 2014-03-21 2015-04-29 中电科技(北京)有限公司 UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Feiteng portable computer
CN104572161A (en) * 2014-03-21 2015-04-29 中电科技(北京)有限公司 UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Loongson portable computer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572164A (en) * 2014-03-21 2015-04-29 中电科技(北京)有限公司 UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Feiteng portable computer
CN104572161A (en) * 2014-03-21 2015-04-29 中电科技(北京)有限公司 UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Loongson portable computer

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110488918A (en) * 2019-07-19 2019-11-22 苏州浪潮智能科技有限公司 A kind of common store server
CN111045739A (en) * 2019-12-03 2020-04-21 福州瑞芯微电子股份有限公司 Firmware booting method, medium, and apparatus based on boot program
CN111045739B (en) * 2019-12-03 2022-06-07 福州瑞芯微电子股份有限公司 Firmware boot method, medium and device based on boot program
CN112235325A (en) * 2020-12-14 2021-01-15 中国电力科学研究院有限公司 Method and system for performing access control on functional module connected with intelligent terminal
CN112235325B (en) * 2020-12-14 2021-03-09 中国电力科学研究院有限公司 Method and system for performing access control on functional module connected with intelligent terminal
CN112948060A (en) * 2021-03-15 2021-06-11 北京邮电大学 Firmware binary simulation method and device and computer equipment

Similar Documents

Publication Publication Date Title
CN104572165B (en) A kind of UEFI firmware implementation methods based on FT server
CN104572161B (en) A kind of UEFI firmware implementation methods based on Godson portable computer
CN106909349A (en) A kind of UEFI firmware implementation methods based on server
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
US8108665B2 (en) Decoupled hardware configuration manager
CN104572164A (en) UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Feiteng portable computer
CN102103406B (en) The network event process that operating system is irrelevant
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
CN102057344A (en) Sleep processor
CN106909346A (en) A kind of UEFI firmware implementation methods based on integrated computer
US20140181811A1 (en) Hypervisor modification of advanced configuration and power interface (acpi) tables
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
CN108845834A (en) Computer installation
CN104156234A (en) Multi-core processor starting and bootloader big-little endian mode adapting method device
CN104572162A (en) UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Loongson handheld computer
EP0636983A1 (en) Information processing system
CN106909345A (en) A kind of UEFI firmware implementation methods based on desktop computer
CN106909347A (en) A kind of UEFI firmware implementation methods of portable computer
CN104572166A (en) UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Feiteng desk computer
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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170630