CN103365696B - BIOS image file acquisition methods and device - Google Patents

BIOS image file acquisition methods and device Download PDF

Info

Publication number
CN103365696B
CN103365696B CN201310332666.2A CN201310332666A CN103365696B CN 103365696 B CN103365696 B CN 103365696B CN 201310332666 A CN201310332666 A CN 201310332666A CN 103365696 B CN103365696 B CN 103365696B
Authority
CN
China
Prior art keywords
bios
image file
storage medium
file
processor
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.)
Expired - Fee Related
Application number
CN201310332666.2A
Other languages
Chinese (zh)
Other versions
CN103365696A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310332666.2A priority Critical patent/CN103365696B/en
Publication of CN103365696A publication Critical patent/CN103365696A/en
Application granted granted Critical
Publication of CN103365696B publication Critical patent/CN103365696B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of BIOS image file acquisition methods and device, relate to computer realm, the interface BIOS of described BIOS image file acquisition methods and device, first baseboard management controller loads instruction;Secondly described BIOS is loaded instruction and is forwarded to the processor of baseboard management controller by interface;And then described processor receives after described BIOS loads instruction, from the first storage medium of baseboard management controller, obtain BIOS image file;The most described processor sends described BIOS image file by described interface.Complete BIOS image file again to obtain, in order to IOCC completes the loading of BIOS file, decrease the similar storage mediums being specifically designed to storage BIOS image file such as SPI Flash, thus save hardware spending and system operation cost.

Description

BIOS image file acquisition methods and device
Technical field
The present invention relates to computer realm, particularly relate to a kind of BIOS image file acquisition methods and device.
Background technology
BIOS:Basic Input Output System basic input output system, is responsible for initialization system hard Part, is a requisite part in computer system;In application process, in advance by BIOS mirror image literary composition Part is stored in SPI Flash(SPI:Serial Peripheral Interface Serial Peripheral Interface, Flash flash memory) In, when needs load BIOS, then from SPI flash, read the guiding system start-up of BIOS image file.
BMC:Baseboard Management Controller baseboard management controller, has local and remote The functions such as journey diagnosis, control station support, configuration management, hardware management and failture evacuation, it may also be used for BIOS Upgrading updates, and self-contained have polytype storage medium.
Understand existing BIOS image file acquisition methods from the above, be all to load from SPI Flash, Therefore hardware device must provide at least one piece for the SPI Flash storing BIOS image file, hardware cost Higher, and it is unfavorable for the miniaturization of chip and integrated.
Summary of the invention
The embodiment of the present invention provides a kind of BIOS loading method and charger, can solve in prior art BIOS image file be to load from SPI Flash thus the relatively costly miniaturization of system hardware that causes and The problem of integrated difficulty.
The embodiment of the invention discloses following technical scheme:
First aspect, it is provided that a kind of BIOS image file acquisition methods, described BIOS image file obtains Method includes:
The interface BIOS of baseboard management controller loads instruction;
Described BIOS is loaded instruction and is forwarded to the processor of baseboard management controller by interface;
After described processor receives described BIOS loading instruction, it is situated between from the first storage of baseboard management controller Matter obtains BIOS image file;
Described processor sends described BIOS image file by described interface.
In the first implementation of first aspect, after described processor receives described BIOS loading instruction, from First storage medium of baseboard management controller obtains BIOS image file include:
Described processor reads the BIOS mirror image in the second storage medium being positioned at described baseboard management controller Compressed file, described second storage medium is non-volatile memory medium;
Described BIOS mirror image compressed file decompression for BIOS image file and is stored in institute by described processor State in the first storage medium;
Described processor reads described BIOS compressed file from the first storage medium.
In first aspect the second implementation, described method also includes:
Described processor on-line checking BIOS image file, the need of renewal, needs to update when detecting, Add in described BIOS mirror image compressed file after the most described processor down loading updating file compression.
In the third implementation of first aspect,
Described method also includes:
Described interface BIOS amendment instruction is also transmitted to processor;
Described processor receives the BIOS amendment instruction that described interface forwards, and amendment is positioned at the first storage medium In BIOS image file, and synchronize to be compressed into described BIOS image file be stored in second storage be situated between BIOS mirror image compressed file in matter.
In the 4th kind of implementation of first aspect, obtain from the first storage medium of baseboard management controller BIOS image file is particularly as follows: obtain BIOS image file from the RAM of baseboard management controller.
Second aspect, it is provided that a kind of BIOS image file acquisition device, described BIOS image file obtains Device includes baseboard management controller;Described baseboard management controller includes that interface, processor and first are deposited Storage media:
Described interface loads instruction in order to receive BIOS, and described BIOS loading instruction is forwarded to substrate The processor of Management Controller;
After described processor is in order to receive described BIOS loading instruction, obtain from described first storage medium BIOS image file, and send described BIOS image file with by described interface.
In the first implementation of second aspect, described BIOS image file acquisition device also includes that second deposits Storage media;Described second storage medium is non-volatile memory medium;
After described processor receives described BIOS loading instruction, in order to deposit from the first of baseboard management controller Storage media obtains BIOS image file include:
Described processor is in order to read the BIOS in the second storage medium being positioned at described baseboard management controller Mirror image compressed file;
Described processor is also in order to and to deposit described BIOS mirror image compressed file decompression for BIOS image file Storage is in described first storage medium;
Described processor is also in order to read described BIOS compressed file from the first storage medium.
In second aspect the second implementation, described processor is also in order to on-line checking BIOS image file The need of renewal, need to update when detecting, then add described BIOS to after down loading updating file compression In mirror image compressed file.
In the third implementation of second aspect,
Described interface is also in order to receive BIOS amendment instruction and to be transmitted to processor;
Described processor is also in order to receive the BIOS amendment instruction that described interface forwards, and amendment is positioned at first and deposits BIOS image file in storage media, and synchronize to be compressed into described BIOS image file to be stored in second BIOS mirror image compressed file in storage medium.
In the 4th kind of implementation of second aspect, described first storage medium is RAM.
In the embodiment of the present invention, store by directly utilizing the storage medium in BMC baseboard management controller The required BIOS image file loaded, thus omit described SPI Flash, thus reduce hardware cost, And owing to decreasing the most a piece of SPI Flash, thus simplify structure, reduce the volume of memorizer, Be conducive to the integrated of system and miniaturization.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, retouch below Accompanying drawing in stating is some embodiments of the present invention, for those of ordinary skill in the art, is not paying On the premise of creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a kind of BIOS image file acquisition methods schematic flow sheet of the embodiment of the present invention;
Fig. 2 is a kind of BIOS image file acquisition methods schematic flow sheet of the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of BIOS image file acquisition device of the embodiment of the present invention;
Fig. 4 is the structural representation of a kind of BIOS image file acquisition device of the embodiment of the present invention;
Fig. 5 is a kind of BIOS including BIOS image file acquisition device of the present invention of the embodiment of the present invention The structural representation of charger;
Fig. 6 is BIOS image file acquisition device work operating process schematic diagram described described in this Fig. 5.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the present invention Accompanying drawing in embodiment, is explicitly described the technical scheme in the embodiment of the present invention, it is clear that retouched The embodiment stated is a part of embodiment of the present invention rather than whole embodiments.Based on the reality in the present invention Execute example, the every other embodiment that those skilled in the art are obtained, broadly fall into the scope of protection of the invention.
Below in conjunction with the accompanying drawings and embodiment, the detailed description of the invention of the present invention is described in further detail.With Lower embodiment is used for illustrating the present invention, but is not limited to the scope of the present invention.
Embodiment one: the present embodiment provides a kind of BIOS image file acquisition methods, described BIOS mirror image File acquisition method includes successively:
Step S110: the interface BIOS of baseboard management controller loads instruction;
Step S120: described BIOS is loaded instruction and is forwarded to the processor of baseboard management controller by interface;
Step S130: after described processor receives described BIOS loading instruction, from baseboard management controller First storage medium obtains BIOS image file;
Step S140: described processor sends described BIOS image file by described interface.
BMC:Baseboard Management Controller baseboard management controller, may be located at computer Or on the mainboard of server, IPMI (Intelligent Platform can be supported Management Interface, IPMI) agreement.Can have local and remote diagnosis, control station support, The functions such as configuration management, hardware management and failture evacuation, it may also be used for BIOS upgrades renewal, self-contained There is storage medium.The most in a computer and a lot of EMBEDDED AVIONICS is provided with described BMC Baseboard management controller.Described baseboard management controller BMC generally includes interface, processor and first Storage medium;Described interface is connected to carry out the mutual of data with the chip loading BIOS or processor, Described process includes integrated circuit and runs software therein for realizing the various solution including instruction Analyse, decompress, the several functions such as compression, described storage medium includes polytype, can be divided into two classes, a class Being volatile storage medium, a class is non-volatile memory medium.
BIOS image file: basic input output system runs the program guided, is to provide for computer The program of the most direct rudimentary hardware controls, it is achieved that the loading of BIOS, could further carry out system Startup.
In the BIOS image file acquisition methods described in the present embodiment, from first storage medium of BMC Middle acquisition, thus understand storage in BMC and have the generation file of BIOS image file or BIOS image file, Thus decrease the application for storing SPI Flash, thus take full advantage of the storage medium of BMC, subtract Lack SPI Flash, thus decreased overhead, saved hardware cost, simplify the structure of system, Be conducive to the integrated and miniaturization of system.
Embodiment two:
During concrete enforcement realizes, described BIOS image file can be stored directly in BMC's In first storage medium, then when obtaining described BIOS image file, straight by baseboard management controller BMC Connect the BIOS image file read in storage medium, then be sent out by interface, but in order to enter One step reduces the amount of storage of file and avoids causing BIOS successfully to add during BIOS image file fault Carry problem, the present embodiment on the basis of embodiment one to BIOS image file acquisition side of the present invention Method has carried out further improvement:
As in figure 2 it is shown, the BIOS image file acquisition methods described in the present embodiment comprises the following steps:
Step S210: the interface BIOS of baseboard management controller loads instruction;
Step S220: described BIOS is loaded instruction and is forwarded to the processor of baseboard management controller by interface;
Step S230: after described processor receives described BIOS loading instruction, from baseboard management controller Storage medium obtains BIOS image file;
Step S240: described processor sends described BIOS image file by described interface.
Wherein, described step S230 includes again step S231, step S232 and step S233;Concrete,
Described step S231 is that described processor reads second storage Jie being positioned at described baseboard management controller BIOS mirror image compressed file in matter;Described second memory mechanism is non-volatile memory medium;
Described step S232 is that described BIOS mirror image compressed file is decompressed as BIOS mirror image by described processor File is also stored in described first storage medium;
Described step S233 is that described processor reads BIOS image file from the first storage medium.
Described non-volatile memory medium is that system power supply disconnects, and the storage medium that data will not be lost is concrete Can be any in flash memory, electrically rewritable storage medium and ROM (read only memory);After decompression BIOS image file is still stored in the storage medium of described baseboard management controller.
When described baseboard management controller BMC only includes the first storage medium, the most described first storage is situated between Matter is non-volatile storage medium, and that concrete can be ROM;Storage can be BIOS image file Maybe can generate the alternative document of BIOS image file, the compressed file of concrete BIOS image file; BIOS image file is being obtained by decompression;
When described baseboard management controller BMC includes the first storage medium and the second storage medium, then First storage medium can be non-volatile storage medium such as ROM, it is possible to be the storage medium of volatibility Such as RAM;If the first storage medium is non-volatile storage medium, that can directly store is BIOS Image file;If the first storage medium is the storage medium of volatibility, then the second storage medium is non-volatile Storage medium;In second storage medium, storage can be BIOS mirror image compressed file or BIOS mirror image File;Second storage medium is used for storing BIOS mirror image compressed file or BIOS image file;Described One storage medium storage is for storing the BIOS image file of the generation of BIOS mirror image compressed file or direct Store and turn, from the second storage medium, the BIOS image file replicating.
And in the present embodiment in described baseboard management controller storage be BIOS mirror image compressed file, Amount of storage after the compression of BIOS image file is the least, usually about 1M, thus the substrate management occupied The memory space of controller is little, from without because affecting the execution of other original functions of BMC.And relatively In traditional, BIOS image file is stored directly in inside SPI Flash, is BIOS mirror image due to write File itself, BIOS image file itself is big compared to BIOS mirror image compressed file, thus mistake occurs Probability is the highest, if the BIOS image file error probability of storage is high, will result directly in BIOS and loads not The probability of success rises, so the BIOS image file acquisition methods described in the present embodiment, due to storage BIOS mirror image compressed file, thus effectively avoid the problems referred to above, thus improve the one-tenth that BIOS loads The success rate that power and system successfully start up, improves Consumer's Experience.This external traditional BIOS mirror image In file acquisition method, from SPI Flash, directly read BIOS image file, once BIOS mirror image literary composition Part occur mistake, as destroyed by artificial BIOS refresh tool, then system just cannot normally start, and Storage in the present embodiment has BIOS mirror image compressed file, when BIOS image file is destroyed, still The startup of system can be reached, such that it is able to quick and easy reaches BIOS by re-powering loading BIOS Reload, use two SPI Flash relative in order to prevent that BIOS image file from being destroyed Store two BIOS image files, or use the adding of BIOS image file of BMC two kinds of versions of storage Support method, in the present embodiment without using selector (such as CPLD:Complex Programmable Logic Device CPLD) not destroyed BIOS is selected when reloading, from And again reduce hardware spending.Additionally BIOS mirror image compressed file is stored in non-volatile memory medium In, be conducive to avoiding the unexpected power down of system, cause BIOS mirror image compressed file to be lost, cause BIOS to add Carry and the failure of system start-up, thus the stability that improve BIOS loading again.
Additionally, due to baseboard management controller BMC has been internally integrated processor, it is possible to achieve compress, solve The function of compression.In the present embodiment and other embodiments that BIOS image file is compressed, ingeniously The wonderful disposal ability having used BMC, therefore be then stored into after BIOS image file can be compressed Time in BMC, thus reduce taking of memory space, and memory space is the least, by memory space fault The probability of the loss of data brought is the least.And in prior art, BIOS image file is stored in SPI Flash In, SPI Flash is a kind of flash memory storage medium, and itself does not have process function, it is impossible to perform compression, solution Squeeze operation;Additionally, when needs read BIOS image file, the interface of SPI Flash is the most occupied, The most also data cannot be sent out the processing unit execution decompression operation using outside;If therefore storage BIOS image file after compression, will be unable to normally read.
Embodiment three:
In concrete application process, it usually needs upgrading BIOS, promote performance parameter and the increasing of system Add new functional realiey, therefore at the present embodiment at BIOS mirror image described described in embodiment one and embodiment two On the basis of file acquisition method, make further improvement, specifically side to realize BIOS renewal and upgrading Case is as follows:
Described BIOS image file acquisition methods also includes:
Described processor on-line checking BIOS image file is the need of renewal, when detecting that needs update then Described processor down loading updating file also adds in described BIOS mirror image compressed file.Thus at substrate pipe After reason controller is opened, directly detect and updated then down loading updating, and added BIOS mirror image compression literary composition to In part, when described interface to BIOS load instruction time, then process obtain according to update after The BIOS image file that BIOS mirror image compressed file obtains, it is achieved thereby that the optimization of systemic-function and upgrading Or some system risks or the reparation of defect.Concrete on-line checking BIOS image file is the need of renewal Time, can be arranged as required to, after can be generally arranged at the unlatching of baseboard management controller.Specifically Realize load flow process be still that:
The interface BIOS of baseboard management controller loads instruction;
Described BIOS is loaded instruction and is forwarded to the processor of baseboard management controller by interface;
After described processor receives described BIOS loading instruction, it is situated between from the second storage of baseboard management controller Matter reads BIOS mirror image compressed file the first storage medium decompression at BMC, thus obtains BIOS Image file, then send described BIOS image file by described interface.
When generally electronic equipment starts, after having started baseboard management controller BMC, it is right to realize The loading of BIOS, and generally BMC restart the loading along with BIOS, described BIOS mirror As the flow process of the method for file acquisition is, after BMC starts, the processor of BMC detects whether to need to update; Needs update then down loading updating file, recompress in BIOS mirror image compressed file, decompress BIOS mirror image Compressed file obtains BIOS image file, adds to the BIOS specified sending described BIOS image file Carry position.Wherein, described BIOS loading instruction sending device can be common South Bridge chip or input defeated Go out control centre etc.;BIOS loads the concrete position also generally loaded in instruction with BIOS.
In the present embodiment, by checking that renewal achieves the easy renewal of BIOS image file, how to sentence Disconnected BIOS image file has the need of renewal, the common BIOS image file can worked as in network It is available for the version updated, the application for detection will be sent to automatically by renewable mark or triggering message Program or software or update the medium method of device, the concrete existing BIOS that is referred to updates detection, This just repeats no more.By the detection before loading, the renewal upgrading of BIOS can be realized easily, from And ensure that the function after system start-up is upgraded and optimizes.
Embodiment four:
The present embodiment BIOS image file acquisition methods, on the basis of embodiment two to embodiment three, does Further restriction, concrete is: described BIOS image file decompression is stored in and is situated between into volatile storage In second storage medium of matter;Described non-volatile memory medium can be ROM;Described volatile storage Medium can be RAM;
Described method also includes:
Described interface BIOS amendment instruction is also transmitted to processor;
Described processor receives the BIOS amendment instruction that described interface forwards, and amendment is positioned at the first storage medium In BIOS image file, and synchronize to be compressed into described BIOS image file be stored in second storage be situated between BIOS mirror image compressed file in matter.
Described amendment instruction includes, write BIOS write command and BIOS erasing instruction.Described BIOS Write command refers to the new BIOS program of write or updates BIOS program etc..
By in locally modified BIOS image file synchronous compression to BIOS image file, due to BIOS Mirror image compressed file is stored in non-volatile memory medium, thus when occurring in that unexpected power down, locally modified BIOS image file still kept, will not occur that because of the power down of system do not preserve asks Topic, thus improve next time start time use be exactly locally modified after BIOS image file carry out Load.
Embodiment five:
Described baseboard management controller BMC includes multi storage, such as Flash (flash memory), RAM (high-speed random access memory) and ROM(read only memory) etc..The present embodiment is above-mentioned enforcement The improvement carried out on the basis of the arbitrary embodiment of one to embodiment four, concrete improvement is as follows:
BIOS image file is obtained particularly as follows: from substrate from the first storage medium of baseboard management controller The RAM of Management Controller obtains BIOS image file.
In traditional BIOS loading method, obtain from SPI Flash.And Flash is situated between as storage Matter, typically requires first to wipe when carrying out storage amendment and cannot directly revise writing.Therefore in the present embodiment, For the quick amendment to BIOS image file improved, concrete regulation is from substrate pipe in the present embodiment The RAM of reason controller obtains BIOS image file, specifically directly can read BIOS from RAM Image file or described BIOS mirror image compressed file is decompressed in the RAM of described baseboard management controller Generate BIOS image file.Owing to RAM memory can directly be revised, it is not necessary to first as Flash Erasing is revised again, thus relatively conventional BIOS image file is stored in the loading method in SPI Flash, The local amendment speed to BIOS image file is faster.
Integrated embodiment one to embodiment five, the acquisition methods of BIOS image file of the present invention, no It is to obtain from the SPI Flash of traditional special storage BIOS image file again, but make use of BIOS The storage medium of the baseboard management controller used in loading procedure realizes load, thus save SPI The application of Flash, thus save the hardware spending of memorizer, and memorizer decreases beneficially electronics and sets Standby integrated and miniaturization.
Embodiment six:
The embodiment of the present invention provides a kind of BIOS image file acquisition device, and described BIOS image file obtains Fetching is put and is included baseboard management controller BMC.
As it is shown on figure 3, described baseboard management controller BMC110 include interface 111, processor 112 with And first storage medium 113;
Described interface 111 loads instruction in order to receive BIOS, and described BIOS loading instruction is forwarded to The processor 112 of baseboard management controller;
After described processor 112 is in order to receive described BIOS and load instruction, from the of baseboard management controller One storage medium 113 obtains BIOS image file, and sends described BIOS by described interface 112 Image file.
Baseboard management controller is that the device loaded for BIOS the most also has other several functions, itself Carry multi storage, and it is as the storage medium of loading BIOS in the present embodiment, thus have Imitate make use of its memory space, decreases the application of SPI Flash, thus saves BIOS image file The application of acquisition device.
Embodiment seven:
The present embodiment BIOS image file acquisition device includes baseboard management controller;As shown in Figure 4, institute State baseboard management controller 210 and include interface 211, processor 212 and storage medium: described storage is situated between Matter includes for non-volatile memory medium the second storage medium 213B and deposits for volatile storage medium first Storage media 213A;Described second storage medium 213B such as ROM;Described first storage medium 213A is such as RAM;Described non-volatile memory medium, the data being i.e. stored thereon data will not be lost because of power down Losing, described non-volatile memory medium then can cause loss of data because of system power failure.
Concrete described interface 211 loads instruction in order to receive BIOS, and described BIOS is loaded instruction It is forwarded to the processor 212 of baseboard management controller;
Described processor 212 receives after described BIOS loads instruction, in order to from the of baseboard management controller One storage medium 213A obtains BIOS image file include:
Described processor 212 is positioned at the second storage medium 213B of described baseboard management controller in order to read In BIOS mirror image compressed file;
Described processor 212 is also in order to decompress described BIOS mirror image compressed file as BIOS image file And be stored in described first storage medium 212A;
Described processor is also in order to read described BIOS compressed file from the first storage medium 212A.
Described processor 212 sends described BIOS image file by described interface 211.
During concrete implementation, described processor 212 can directly read and be stored in substrate management control BIOS image file in device 210 storage medium;And deposit in the present embodiment baseboard management controller 210 Storage for BIOS mirror image compressed file, processor obtains BIOS image file when, reading be BIOS mirror image compressed file, is pressed into BIOS image file in solution.Thus it is stored in baseboard management controller Data volume in BMC is greatly reduced, and data volume is little, thus write data make a mistake probability reduce , thus reduce because the BIOS that the write error of the file for loading causes loads failed probability, Thus it is high to load success rate, thus the success rate of the startup of system improves.And because storage is BIOS Mirror image compressed file, thus when network or the artificial breaking-up that BIOS image file is carried out, as long as BIOS mirror image compressed file still keeps complete, it is possible to by reloading, and the most still starts system. Such that it is able to reduce because of cannot starting of causing of the problem of BIOS image file and maintenance etc..
In the present embodiment, storage is BIOS mirror image compressed file, relative to directly storage BIOS mirror As file, data volume is little, and the size of usual BIOS mirror image compressed file is about 1M.The BIOS of storage Compressed file because data volume is little, thus relative to by BIOS image file write storage medium in time Mistake is lower, thus further increases success rate and the stability of system start-up that BIOS loads.
Embodiment eight:
During concrete implementation, it usually needs BIOS image file is updated and upgrading, to expand New function or improve existing function, therefore update and the needs of upgrading to meet BIOS image file; In BIOS image file acquisition device described in the present embodiment, described baseboard management controller have received BIOS Loading instruction, while obtaining the function of BIOS image file, described processor is also in order to described substrate After the unlatching of Management Controller or any time, on-line checking BIOS image file the need of renewal, when Detect that needs update the most described processor down loading updating file and add described BIOS mirror image compressed file to In.
Described baseboard management controller is connected to network by network interface, thus under the webserver or data Carrying platform is downloaded file destination to come, and described file destination is BIOS image file in this embodiment Update file;The file generally downloaded is compressed file, therefore the file of download adds to BIOS mirror image pressure In contracting file;Realize simplicity.
By the BIOS mirror image in the second storage medium in more newly downloaded storage to described baseboard management controller Compressed file generates described BIOS image file;Thus ensure that renewal in the case of power down, remain to and Shi Baocun, preserves with the form of BIOS mirror image compressed file simultaneously, and storage data volume is little, thus to substrate The impact that Management Controller completes its other functions original is little.
Embodiment nine:
The present embodiment BIOS image file acquisition device includes baseboard management controller;The management control of described substrate Device processed includes interface, processor and storage medium: described storage medium is divided into the first storage medium and Two storage mediums;Described interface loads instruction in order to receive BIOS, and described BIOS is loaded instruction turn It is dealt into the processor of baseboard management controller;After described processor is in order to receive described BIOS loading instruction, from Described storage medium reads BIOS image file, and sends described BIOS mirror image literary composition by described interface Part.Described processor is specifically in order to read in the non-volatile memory medium being positioned at described baseboard management controller BIOS mirror image compressed file, and in the storage medium of baseboard management controller, decompress described BIOS mirror As compressed file, thus obtain BIOS image file;Described processor also controls in order to the management of described substrate After the unlatching of device or in time of specifying, on-line checking BIOS image file, the need of renewal, works as detection Update the most described processor down loading updating file to needs and add in described BIOS mirror image compressed file; Described BIOS image file decompression is stored in volatile storage medium;Described interface is also in order to receive BIOS Amendment instruction is also transmitted to processor;Described processor is also in order to receive the BIOS amendment that described interface forwards Instruction, the BIOS image file that amendment is positioned in volatile storage medium, and synchronize described BIOS mirror As compressing file becomes the BIOS mirror image compressed file being stored in non-volatile memory medium.Described second deposits Storage media is non-volatile memory medium, and that concrete can be ROM;Described first storage medium is volatile Property storage medium, can be specifically RAM.
Described amendment is typically with write operation or wipes what operation realized.By the parsing of instruction, obtain behaviour Make address, revise accordingly finally according to operation address.And synchronize update content loads BIOS pressure In contracting file, without the synchronously renewing file after BIOS is updated in BIOS compressed file, can Will not lose with the file updated after preventing power down.BIOS image file acquisition device described in the present embodiment It is applied to the amendment of local BIOS, and is compressed into BIOS mirror image compressed file while amendment, to ensure System power failure during BIOS amendment, the BIOS caused amendment preserves unsuccessful problem, and synchronous compression arrives In BIOS mirror image compressed file, thus the amount of storage of data is little.
Additionally, the BIOS image file acquisition device described in the present embodiment can apply to any be provided with BMC In the electronic equipment of baseboard management controller, can be local one in the detector unit described in the present embodiment Application software or a firmware that can realize detecting function;Described detector unit can pass through network interface, and one Individual server is connected and can also be connected with several servers such that it is able to obtain more more new resources, with Just update to have the server of identical renewal file from another storage when mistake occurs and obtain.
Embodiment ten:
The present embodiment BIOS image file acquisition device, including baseboard management controller;Described substrate manages Controller includes interface, processor and the first storage medium:
Described interface loads instruction in order to receive BIOS, and described BIOS loading instruction is forwarded to substrate The processor of Management Controller;
After described processor is in order to receive described BIOS loading instruction, obtain from institute's the first storage medium BIOS image file, and send described BIOS image file with by described interface.
Concrete described first storage medium is RAM.
Relative in traditional structure for store BIOS image file for SPI Flash(flash memory) by with The data of RAM can not erased direct rewriting, therefore read, the speed of amendment accelerates, thus improves system The serviceability of system.
In concrete implementation process, BIOS charger includes BIOS described in any of the above-described embodiment Image file acquisition device and transmission BIOS load IOCC's (input and output control of instruction Center processed English is abbreviated as ICH);Concrete provide such as the figure present invention another described in BIOS mirror image The concrete structure of file acquisition device, as it is shown in fig. 7, described BIOS image file acquisition device includes base Board management controller BMC310, IOCC 320;The most described baseboard management controller 310 And the webserver 330;
Described baseboard management controller BMC310 by bus (described bus concrete such as spi bus) and IOCC 320 is connected;Described bus includes by baseboard management controller BMC410 to defeated Enter to export the bus of control centre 420, by total to baseboard management controller 410 of IOCC Line and synchronizing clock signals line;Described baseboard management controller 310 is by network interface and the webserver 330 are connected;
Described baseboard management controller BMC310 includes interface 311, processor 312, storage medium bag Include read only memory ROM 313 and random access memory ram 312;Wherein said RAM is One memory mechanism;Described ROM is the second storage medium.
Wherein,
Described read only memory ROM 411 is in order to store BIOS mirror image compressed file;
Described high-speed random access memory RAM412 is to store the decompression of described BIOS mirror image compressed file The BIOS image file formed, or directly storage BIOS image file, be simultaneously used for realizing BIOS mirror The operations such as the reading and writing of picture file and erasing;
Described interface 311 for communicating with described IOCC 420, including transceiving data, Instruction and the synchronization of clock;
Described processor 312, loads instruction for receiving and parsing through the BIOS forwarded from described interface, and Obtain BIOS image file;If store in baseboard management controller is BIOS mirror image compressed file simultaneously, Being also responsible for the decompression of BIOS mirror image compressed file, detection network updates the multi-functionals such as BIOS
In concrete application process, described BIOS image file acquisition device loads the flow process of BIOS such as Shown in Fig. 6, specifically include:
Step S400: baseboard management controller BMC starts;
Step S410: described processor 312 detects whether to need to update BIOS image file
The most then enter step S420, if need not, enter step S440;
Step S420: BIOS image file downloaded by described processor 312;
Step S4340: the form of the BIOS mirror image compressed file downloaded is stored by described processor 312 In described ROM411;
Step S440: described processor 312 decompresses described BIOS mirror image compressed file, and by generation BIOS image file is stored in RAM312;
Step S450: whether interface 311 receives has the request from IOCC ICH420 to refer to Order, has, resolves instruction;Otherwise continue waiting for;
Step S461: the instruction resolving ICH320 input is reading instruction, then enter step S471-S481;
Step S462: the instruction resolving ICH320 input is write command, then enter step S472-S482;
Step S463: the instruction resolving ICH320 input is erasing instruction, then enter step S473-S483;
Described step S471: resolve and read address;Described step S481: BIOS image file is back to The write address that ICH420 specifies, i.e. completes this BIOS and loads after writing, usual described BIOS mirror image File also becomes BIOS program or BIOS instruction;
Described step S472: resolve write address;Described step S482: the BIOS that ICH420 is revised The particular content instruction of file, writes described write address, and proceeds to step S490;
Described step S473: resolve erasing address;Described S483: what removal ICH420 specified needs to wipe Instruction in the BIOS file removed, and proceed to step S490;
Described step S490: the amendment to BIOS image file in write command and/or erasing instruction is same Step backups in BIOS mirror image compressed file, loads for BIOS next time.
Concrete described ICH can be such as common South Bridge chip.
BIOS image file acquisition device described in the present embodiment, sufficiently make use of in electronic equipment existing Baseboard management controller in each functional module, BIOS mirror image compressed file is stored in BIOS mirror As in second storage medium for non-volatile memory medium of file acquisition device, after BMC starts, Processor 312 decompression of BMC generates system bios image file;Response input and output control equipment or The operation of the various BIOS image files of control centre, the most most basic loading for BIOS, the loudest Answer reading instruction, thus relatively conventional BIOS image file acquisition device need not arrange special memorizer such as SPI Flash, thus simplify structure, save hardware cost;In existing BIOS charger, Having some structures to prevent the brush of SPI Flash from entering version error, BIOS image file is destroyed, and leads Cause BIOS and load failure and the failed situation of system start-up, it may be desirable to two SPI Flash are set, one Individual be main SPI Flash for normal load, one be from SPI Flash for the system failure time backup, Select to load with one of them SPI Flash owing to existing, thus need as the electricity selecting conducting Road concrete such as CPLD CPLD;Or a piece of SPI Flash two versions of storage BIOS, needs also exist for CPLD and is similar to device;And the present embodiment is by storage BIOS mirror image compressed file, When BIOS file fault, only need to again decompress described BIOS mirror image compressed file, and BIOS Mirror image compressed file is stored in second storage medium for non-volatile memory medium of BMC, system occurs During system power down, can again decompress when re-powering, also not result in BIOS and load failure or system Starting and mistake occur, the BIOS image file acquisition device described in the present embodiment in a word, relative to traditional BIOS image file acquisition device, has BIOS and starts success rate height, system hardware low cost, the most permissible Realize online updating BIOS complete the upgrading of BIOS simultaneously can be locally modified, it is achieved BIOS file and Arrange is individualized, thus multiple functional.The operations such as the reading and writing of BIOS image file and erasing are existed RAM is carried out, directly can realize storing the rewriting of content due to RAM, and without such to Flash First wipe and writing, thus it is fast to have speed of operation, the advantage that response time delay is little.
It will be recognized by those of ordinary skill in the art that the possibility of various aspects of the invention or various aspects is real Existing mode can be embodied as system, method or computer program.Therefore, the present invention's is each The possible implementation of aspect or various aspects can use complete hardware embodiment, complete software implementation (including firmware, resident software etc.), or the form of the embodiment of integration software and hardware aspect, at this In be all referred to as " circuit ", " module " or " system ".Additionally, each aspect of the present invention or various aspects Possible implementation can with use computer program form, computer program refers to be stored in Computer readable program code in computer-readable medium.
Computer-readable medium can be computer-readable signal media or computer-readable recording medium.Meter Calculation machine readable storage medium storing program for executing including but not limited to electronics, magnetic, optics, electromagnetism, infrared or semiconductor system, Equipment or device, or aforesaid the most appropriately combined, such as random access memory (RAM), read-only Memorizer (ROM), Erasable Programmable Read Only Memory EPROM (EPROM or flash memory), optical fiber, Portable read only memory (CD-ROM).
Processor in computer reads the computer readable program code being stored in computer-readable medium, The function enabling a processor to perform to specify in the combination of the most each step or each step is moved Make;Generate and be implemented in the device of the function action of regulation in each piece of block diagram or the combination of each piece.
Computer readable program code can perform, completely partly in the calculating of user on the computer of user Perform on machine, as single software kit, part, on the computer of user and part is at remote computer On, or perform on remote computer or server completely.Implement it is also noted that substitute at some In scheme, in the most each step or block diagram, each piece of function indicated may not be by indicating in figure Order occurs.Such as, depend on involved function, two steps illustrated in succession or two block reality On may be executed substantially concurrently, or these blocks sometimes may be performed with reverse order.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.

Claims (8)

1. a BIOS image file acquisition methods, it is characterised in that including:
The interface BIOS of baseboard management controller loads instruction;
Described BIOS is loaded instruction and is forwarded to the processor of baseboard management controller by interface;
After described processor receives described BIOS loading instruction, it is situated between from the first storage of baseboard management controller Matter obtains BIOS image file;
Described processor sends described BIOS image file by described interface;
Wherein, after described processor receives described BIOS loading instruction, from the first of baseboard management controller Storage medium obtains BIOS image file include:
Described processor reads the BIOS mirror image in the second storage medium being positioned at described baseboard management controller Compressed file, described second storage medium is non-volatile memory medium;
Described BIOS mirror image compressed file decompression for BIOS image file and is stored in institute by described processor State in the first storage medium;
Described processor reads described BIOS compressed file from the first storage medium.
BIOS image file acquisition methods the most according to claim 1, it is characterised in that described side Method also includes:
Described processor on-line checking BIOS image file, the need of renewal, needs to update when detecting, Add in described BIOS mirror image compressed file after the most described processor down loading updating file compression.
BIOS image file acquisition methods the most according to claim 1 and 2, it is characterised in that
Described method also includes:
Described interface BIOS amendment instruction is also transmitted to processor;
Described processor receives the BIOS amendment instruction that described interface forwards, and amendment is positioned at the first storage medium In BIOS image file, and synchronize to be compressed into described BIOS image file be stored in second storage be situated between BIOS mirror image compressed file in matter.
BIOS image file acquisition methods the most according to claim 1 and 2, it is characterised in that BIOS image file is obtained particularly as follows: manage from substrate from the first storage medium of baseboard management controller The RAM of controller obtains BIOS image file.
5. a BIOS image file acquisition device, it is characterised in that include baseboard management controller;Institute State baseboard management controller and include interface, processor and the first storage medium:
Described interface loads instruction in order to receive BIOS, and described BIOS loading instruction is forwarded to substrate The processor of Management Controller;
After described processor is in order to receive described BIOS loading instruction, obtain from described first storage medium BIOS image file, and send described BIOS image file with by described interface;
Wherein, described BIOS image file acquisition device also includes the second storage medium;Described second storage Medium is non-volatile memory medium;
After described processor receives described BIOS loading instruction, in order to deposit from the first of baseboard management controller Storage media obtains BIOS image file include:
Described processor is in order to read the BIOS in the second storage medium being positioned at described baseboard management controller Mirror image compressed file;
Described processor is also in order to and to deposit described BIOS mirror image compressed file decompression for BIOS image file Storage is in described first storage medium;
Described processor is also in order to read described BIOS compressed file from the first storage medium.
6. according to the BIOS image file acquisition device described in right 5, it is characterised in that described processor Also in order to on-line checking BIOS image file the need of renewal, need to update when detecting, then download more Add in described BIOS mirror image compressed file after new file compression.
7. according to the BIOS image file acquisition device described in claim 5 or 6, it is characterised in that
Described interface is also in order to receive BIOS amendment instruction and to be transmitted to processor;
Described processor is also in order to receive the BIOS amendment instruction that described interface forwards, and amendment is positioned at first and deposits BIOS image file in storage media, and synchronize to be compressed into described BIOS image file to be stored in second BIOS mirror image compressed file in storage medium.
8. according to the BIOS image file acquisition device described in claim 5 or 6, it is characterised in that Described first storage medium is RAM.
CN201310332666.2A 2013-08-01 2013-08-01 BIOS image file acquisition methods and device Expired - Fee Related CN103365696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310332666.2A CN103365696B (en) 2013-08-01 2013-08-01 BIOS image file acquisition methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310332666.2A CN103365696B (en) 2013-08-01 2013-08-01 BIOS image file acquisition methods and device

Publications (2)

Publication Number Publication Date
CN103365696A CN103365696A (en) 2013-10-23
CN103365696B true CN103365696B (en) 2016-08-10

Family

ID=49367125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310332666.2A Expired - Fee Related CN103365696B (en) 2013-08-01 2013-08-01 BIOS image file acquisition methods and device

Country Status (1)

Country Link
CN (1) CN103365696B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593250A (en) * 2013-11-19 2014-02-19 浪潮电子信息产业股份有限公司 Realizing method for modifying BIOS Setup option out of band
CN105653376B (en) * 2016-01-05 2018-12-14 浪潮电子信息产业股份有限公司 Guarantee the optimization method of synchronizing information when BIOS and BMC start simultaneously in ARM platform
CN107085459B (en) * 2016-02-14 2020-03-31 华为技术有限公司 Power supply management method and system
CN106990958B (en) * 2017-03-17 2019-12-24 联想(北京)有限公司 Expansion assembly, electronic equipment and starting method
CN107066305B (en) * 2017-05-11 2020-07-28 北京百度网讯科技有限公司 Method and device for updating server firmware of server and server
TWI750215B (en) * 2017-08-30 2021-12-21 英業達股份有限公司 Bios switching device
CN108196858A (en) * 2017-12-22 2018-06-22 天津麒麟信息技术有限公司 A kind of double BIOS systems and its implementation based on platform of soaring
CN109582370B (en) * 2018-11-01 2022-07-19 浙江大华技术股份有限公司 Starting method and device of NOR FLASH embedded equipment
CN109445822B (en) * 2018-11-02 2021-10-22 郑州云海信息技术有限公司 Method and system for refreshing double-mirror-image BMC (baseboard management controller) in batches by CMC (controller card)
CN109857466B (en) * 2018-11-29 2022-08-12 新华三技术有限公司 BIOS configuration method, device, server and computer readable storage medium
CN109828774B (en) * 2018-12-29 2022-07-05 苏州中晟宏芯信息科技有限公司 Server system and starting method thereof
CN109976833A (en) * 2019-03-29 2019-07-05 联想(北京)有限公司 Firmware loading method, electronic equipment and the server for storing firmware configuration data
CN112905392B (en) * 2021-05-07 2021-09-28 湖南华自信息技术有限公司 System, method and computer storage medium for updating device memory
CN116340957B (en) * 2023-05-29 2023-08-11 苏州浪潮智能科技有限公司 Program starting method, device, server and nonvolatile storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101373433A (en) * 2007-08-21 2009-02-25 英业达股份有限公司 Method for updating BIOS and computer and system using the same
CN101826023A (en) * 2009-03-06 2010-09-08 宏正自动科技股份有限公司 Virtual memory over baseboard management controller
TW201116994A (en) * 2009-11-10 2011-05-16 Inventec Corp High-density server
TW201118729A (en) * 2009-11-17 2011-06-01 Inventec Corp High-density server
CN102339242A (en) * 2010-07-23 2012-02-01 鸿富锦精密工业(深圳)有限公司 Computer system data recovery device
CN102880519A (en) * 2012-08-24 2013-01-16 曙光信息产业(北京)有限公司 Basic input output system (BIOS) configuration batch modification method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101373433A (en) * 2007-08-21 2009-02-25 英业达股份有限公司 Method for updating BIOS and computer and system using the same
CN101826023A (en) * 2009-03-06 2010-09-08 宏正自动科技股份有限公司 Virtual memory over baseboard management controller
TW201116994A (en) * 2009-11-10 2011-05-16 Inventec Corp High-density server
TW201118729A (en) * 2009-11-17 2011-06-01 Inventec Corp High-density server
CN102339242A (en) * 2010-07-23 2012-02-01 鸿富锦精密工业(深圳)有限公司 Computer system data recovery device
CN102880519A (en) * 2012-08-24 2013-01-16 曙光信息产业(北京)有限公司 Basic input output system (BIOS) configuration batch modification method

Also Published As

Publication number Publication date
CN103365696A (en) 2013-10-23

Similar Documents

Publication Publication Date Title
CN103365696B (en) BIOS image file acquisition methods and device
CN102270144B (en) Embedded network equipment and method for upgrading firmware by using same
CN102855146A (en) Firmware updating system and method
TWI595364B (en) Automatic image recovery method and server system
CN110780890A (en) System upgrading method and device, electronic equipment and medium
US9448808B2 (en) BIOS update with service processor without serial peripheral interface (SPI) access
US9448889B2 (en) BIOS failover update with service processor
CN105930236A (en) Application program version returning method based on BMS Bootloaderupgrade
CN102073517A (en) Upgrading and backup method and device for embedded system
CN102262543B (en) Power-failure resistant method for starting Linux system
CN104915226A (en) Network device software starting method, device and network device
CN111669284A (en) OpenStack automatic deployment method, electronic device, storage medium and system
CN101667133B (en) Method for updating firmware and chip updating firmware by using same
CN115202686A (en) Virtualization system upgrading method and device, electronic equipment and storage medium
CN103475514B (en) Node, group system and BIOS without BMC repair and upgrade method
CN104866397A (en) Computer System And Control Method
CN108694052B (en) Firmware upgrading method, firmware upgrading device and firmware upgrading system
CN103995717A (en) Method for upgrading software in embedded device
KR100605031B1 (en) A method for upgrading and restoring embeded systems by using usb memory device
CN105511904A (en) Method and apparatus for automatically updating shortcut window
CN112860595B (en) PCI (peripheral component interconnect express) equipment or PCIE (peripheral component interconnect express) equipment, data access method and related assembly
CN104636574A (en) Terminal device upgrade method and terminal device
CN111158734A (en) Seamless upgrading method, system and equipment for CPLD-FPGA
CN112559006A (en) Enterprise client automatic upgrading method, system, equipment and storage medium
CN112181596A (en) Virtual machine cloning method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160810

Termination date: 20180801

CF01 Termination of patent right due to non-payment of annual fee