A kind of method that machine system updates SMBIOS static informationsTechnical field
The side of SMBIOS static informations is updated the invention belongs to field of computer technology, more particularly to a kind of machine systemMethod.
Background technology
The SMBIOS information of server master board is divided into static information and multidate information, and static information is when BIOS file makesJust have predetermined that, it is necessary to which developer determines the content of static information.Multidate information passes through in BIOS runningsThe hardware equipment information on mainboard is collected, then by information updating into SMBIOS tables of data.With a piece of mainboard, no matter on mainboardProcessor, internal memory and other external equipments how to change, static information is all without change, but multidate information can be with theseHardware device difference and change.
SMBIOS static informations need developer to predefine in BIOS file, it is impossible to repaiied according to the change of hardwareChange, when using the machine box for server different with the collocation of a server master board, be combined into different machine systems, different complete machinesSystem will build different SMBIOS static informations, and a mainboard may correspond to more than ten sections of machine systems.Because BIOS can notIdentification is the machine system of which species, also can not just automatically update SMBIOS static informations.Current way is, according to differenceMachine system make and build different SMBIOS static informations inside different BIOS, each BIOS, although can so meetIt is required that, but numerous software versions is managed to software and production brings great trouble, and its easily produce mistake.
The content of the invention
For above technical problem, the invention discloses a kind of method that machine system updates SMBIOS static informations, noWith being again same mainboard and different cabinets and different configuration of machine system make corresponding BIOS, a pair of mainboard and BIOS 1Should, the problem of numerous software version managements are numerous and diverse chaotic is solved, the problem of production process is error-prone is solved.
In this regard, the technical solution adopted by the present invention is:
A kind of method that machine system updates SMBIOS static informations, the backboard of the cabinet of the machine system is provided withEEPROM, the EEPROM are connected to by backboard in the SMBUS buses of the PCH chips of mainboard;There is storage in the EEPROMSMBUS controllers inside the type identification of machine system, PCH obtain the type identification data inside EEPROM, so as to recognizeCorresponding machine system;Then according to the proprietary attribute of machine system, SMBIOS data structure tables are updated.
Using this technical scheme, by setting EEPROM in backboard, cabinet and mainboard are connected, communication is set up, knownOther machine system, adds machine system identification marking, BIOS obtains mark, and recognizes machine system according to mark, then updatesThe proprietary SMBIOS static informations of machine system.By so designing, without for same mainboard, different cabinets and difference are matched somebody with somebody againThe machine system put makes corresponding BIOS, and mainboard and BIOS are corresponded, and solve the numerous and diverse confusion of numerous software version managementsThe problem of, solve the problem of production process is error-prone.
As a further improvement on the present invention, the method for the machine system renewal SMBIOS static informations includes following stepSuddenly:
Step S1, starts BIOS, SMBUS controllers is initialized;
Step S2, SMBUS controller communicates with EEPROM, and obtains the type identification of the machine system in EEPROM, according to classType mark judges current machine system model, then according to the proprietary attribute of machine system, sets up proprietary SMBIOS staticInformation, next starts to update SMBIOS data structure tables.
As a further improvement on the present invention, the proprietary attribute of the machine system include systematic name, cabinet title,PCIE device splits classifying type and PCIE slot quantity.
As a further improvement on the present invention, the renewal SMBIOS data structure tables comprise the following steps:
Step S201, finds the memory address location where SMBIOS data structure tables;
Step S202, the memory address space of SMBIOS data structure tables is unlocked, and data structure table can be changed;
Step S203, according to the Type types for the SMBIOS data structure tables to be updated, scans in data structure table, looks forTo this Type type structure tables position, the static information just set up is updated into this Type tables of data;
Step S204, finds next Type type data structure tables to be updated, continue to update, until renewal in needType type data structure tables.
As a further improvement on the present invention, in addition to step S205, after renewal is finished, by the internal memory of data structure tableLocation space is pinned, and prevents from being changed by mistake.
As a further improvement on the present invention, in step S2, SMBUS controllers according to the SMBUS addresses of EEPROM device,Communication is set up, if although feedback does not find that EEPROM device or discovering device obtain complete machine mark and actual complete machine markKnow unmatched result, then end operation.
Compared with prior art, beneficial effects of the present invention are:
Using technical scheme, by setting EEPROM in backboard, and cabinet and mainboard are connected, set up logicalLetter, recognizes machine system, and automatic modification can be also carried out to static information and is updated, and makes whole SMBIOS data structure tables all in canModification state;A bios software is only needed to, just all machine systems corresponding to same money mainboard can be applicable, be provided for systemAccurate SMBIOS information;Hardware information can only be collected and then update in start process originally by solving prior art BIOSSMBIOS multidate informations, the problem of static information can not be changed.
Brief description of the drawings
Fig. 1 is the mainboard of an embodiment of the present invention and the attachment structure schematic diagram of case back plate.
Fig. 2 is the flow chart for the method that a kind of machine system of the invention updates SMBIOS static informations.
Embodiment
The preferably embodiment to the present invention is described in further detail below.
As shown in figure 1,
A kind of method that machine system updates SMBIOS static informations, as shown in figure 1, on the backboard of the cabinet of the machine systemEEPROM provided with SMBUS interfaces, the EEPROM are connected to by backboard in the SMBUS buses of the PCH chips of mainboard;It is describedStorage has the SMBUS controllers inside the type identification of the cabinet of machine system, PCH to obtain the class inside EEPROM in EEPROMType mark data, so as to recognize corresponding machine system;Then according to the proprietary attribute of machine system, SMBIOS data knots are updatedStructure table.
As shown in Fig. 2 the renewal SMBIOS data structure tables specifically include following steps:
Step S1:After BIOS starts, SMBUS controllers are initialized first, SMBUS controller energy normal works are allowed;
Step S2:SMBUS controllers set up communication according to the SMBUS addresses of EEPROM device, if feedback does not find EEPROMEquipment, although or discovering device obtain complete machine mark and the unmatched result of actual complete machine mark, with regard to end operation, useGive tacit consent to SMBIOS information.
If normally obtaining complete machine mark, current machine system model is judged according to complete machine mark, then according to complete machineThe proprietary attribute of system, sets up proprietary SMBIOS static informations, next starts to update SMBIOS data structure tables.Wherein,The proprietary attribute of the machine system includes systematic name, cabinet title, PCIE device and splits classifying type and PCIE slot quantity etc..
The renewal SMBIOS data structure tables comprise the following steps:
The memory address location where SMBIOS data structure tables is first looked for, after finding, by SMBIOS data structure tablesDeposit address space to be unlocked, data structure table can be changed, then according to the SMBIOS data structure tables to be updatedType types, are scanned in data structure table, this Type type structure tables position are found, by the static state just set upInformation updating then looks for next Type type data structure tables to be updated into this Type tables of data, after finding, afterIt is continuous to update, until renewal in need Type type data structure tables.After renewal is finished, by by the internal memory of data structure tableLocation space is pinned, and prevents from being changed by mistake.
Involved english abbreviation is explained as follows in the present invention:
BIOS(Basic Input Output System):Basic input output system, is mainly used in during computer bootingThe initialization and detection of various hardware devices.
PCIE(PCI-Express):A kind of high-speed serial bus interfacing standard.
SMBIOS(System Management BIOS):Mainboard or system manufacturer show the management of product in a standard formatThe unified standard followed needed for information.
PCH:(Platform Controller Hub) :The integrated south bridge of Intel Company.
SMBUS(System Management Bus):System Management Bus.
EEPROM(Electrically Erasable Programmable Read-Only Memory):Electrically erasable canA kind of program read-only memory -- the storage chip that data are not lost after power down.
Above content is to combine specific preferred embodiment further description made for the present invention, it is impossible to assertThe specific implementation of the present invention is confined to these explanations.For general technical staff of the technical field of the invention,On the premise of not departing from present inventive concept, some simple deduction or replace can also be made, should all be considered as belonging to the present invention'sProtection domain.