CN107463412A - A kind of method and device of upgrading BIOS - Google Patents
A kind of method and device of upgrading BIOS Download PDFInfo
- Publication number
- CN107463412A CN107463412A CN201710706602.2A CN201710706602A CN107463412A CN 107463412 A CN107463412 A CN 107463412A CN 201710706602 A CN201710706602 A CN 201710706602A CN 107463412 A CN107463412 A CN 107463412A
- Authority
- CN
- China
- Prior art keywords
- mac address
- bios
- system management
- target area
- management interrupt
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of method of upgrading BIOS, first when receiving upgrade command, calling system management interrupt;Then MAC Address is obtained, and MAC Address is preserved to memory headroom;Finally refresh target area;And said system management interrupt is used to hand over the control for refreshing target area to BIOS.As can be seen here, this method, first MAC Address is preserved to memory headroom by calling system management interrupt, then target area is refreshed, so that even if the MAC Address for being stored in target area is eliminated, but still there is the MAC Address pre-stored in memory headroom, ensure that MAC Address is not lost, so, before upgrading BIOS, user also no longer needs to store MAC Address manually, so as to simplify operation of the user before upgrading BIOS, further improves the experience sense of user.In addition, the invention also discloses a kind of device of upgrading BIOS, effect is as above.
Description
Technical field
The present invention relates to computer realm, more particularly to a kind of method and device of upgrading BIOS.
Background technology
It is more and more in order to realize the lifting of the performance of computer with less cost or complete the reparation of computer system defect
User select upgrading mainboard BIOS.
But for the product of Intel integrated network cards, enter because the MAC Address of its network interface card is present in the two of network interface card
In file processed, and the binary file is integrated in BIOS image files, so, when upgrading BIOS, BIOS is being got
After refreshing the control of BIOS image files region, with the erasing of BIOS image files, MAC Address also can be by clear therewith
Remove, so that after BIOS is upgraded successfully, lead to not recover MAC Address because MAC Address loses, further result in computer system
System can not network, and influence Consumer's Experience.Therefore, using Intel integrated network cards product user before upgrading BIOS, it is necessary to logical
The instrument for crossing Intel offers stores the MAC Address of network interface card manually, then could start upgrading BIOS, this causes upgrading BIOS
Flow complicates.
Therefore, during upgrading BIOS, how to ensure that MAC Address is not lost, risen so as to simplify user
Operation before level BIOS to lift the experience sense of user is the current technical issues that need to address of those skilled in the art.
The content of the invention
It is an object of the invention to provide a kind of method and device of upgrading BIOS, during upgrading BIOS, Neng Goubao
Card MAC Address is not lost, so as to simplify operation of the user before upgrading BIOS to lift the experience sense of user.
In order to solve the above-mentioned technical problem, the method for upgrading BIOS provided by the invention, including:
When receiving upgrade command, calling system management interrupt;
MAC Address is obtained, and the MAC Address is preserved to memory headroom;
Refresh target area;
Wherein, the system management interrupt is used to hand over the control for refreshing the target area to the BIOS.
Preferably, the acquisition MAC Address, and the MAC Address is preserved to memory headroom and is specially:
When the system management interrupt starts to perform, the MAC Address is obtained, and the MAC Address is preserved to interior
Deposit space.
Preferably, the acquisition MAC Address specifically includes:
Determine the region where the MAC Address;
Obtain the MAC Address stored on the region.
Preferably, after the target area is refreshed, described method also includes:
Perform the operation for recovering the MAC Address.
Preferably, described perform recovers the operation of the MAC Address and is specially:
When the system management interrupt is finished, the operation for recovering the MAC Address is performed.
Preferably, described perform recovers the operation of the MAC Address and is specially:
The MAC Address is write into the target area.
In order to solve the above-mentioned technical problem, the device of upgrading BIOS provided by the invention, including:
Calling module, for when receiving upgrade command, calling system management interrupt;
Preserving module, preserved for obtaining MAC Address, and by the MAC Address to memory headroom;
Refresh module, for refreshing target area;
Wherein, the system management interrupt is used to hand over the control for refreshing the target area to the BIOS.
Preferably, the preserving module is specifically used for:
When the system management interrupt starts to perform, the MAC Address is obtained, and the MAC Address is preserved to interior
Deposit space.
Preferably, described device also includes:
Recovery module, recover the operation of the MAC Address for performing.
Preferably, the recovery module is specifically used for:
When the system management interrupt is finished, the operation for recovering the MAC Address is performed.
For above-mentioned prior art, the method for upgrading BIOS provided by the invention, refer to first receiving upgrading
When making, calling system management interrupt;Then MAC Address is obtained, and MAC Address is preserved to memory headroom;Finally refresh target
Region;And said system management interrupt is used to hand over the control for refreshing target area to BIOS.As can be seen here, the present invention provides
Upgrading BIOS method, first MAC Address is preserved to memory headroom by calling system management interrupt, then target area is entered
Row refreshes, and this has first done a backup equivalent to before MAC Address is wiped for MAC Address, even if being stored in target area
MAC Address is eliminated, but still has the MAC Address pre-stored, therefore, process of this method in upgrading BIOS in memory headroom
In, it ensure that MAC Address is not lost, so, before upgrading BIOS, user also no longer needs to store MAC Address manually, so as to
Operation of the user before upgrading BIOS is simplified, further improves the experience sense of user.In addition, present invention also offers one kind
The device of upgrading BIOS, effect is as above.
Brief description of the drawings
In order to illustrate the embodiments of the present invention more clearly, the required accompanying drawing used in embodiment will be done simply below
Introduce, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ordinary skill people
For member, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of the method for upgrading BIOS provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the method for another upgrading BIOS provided in an embodiment of the present invention;
Fig. 3 is a kind of structure chart of the device of upgrading BIOS provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Based on this
Embodiment in invention, those of ordinary skill in the art on the premise of creative work is not paid, obtained it is all its
His embodiment, belongs to the scope of the present invention.
It is an object of the invention to provide a kind of method and device of upgrading BIOS, during upgrading BIOS, Neng Goubao
Card MAC Address is not lost, so as to simplify operation of the user before upgrading BIOS to lift the experience sense of user.
In order that those skilled in the art is better understood from technical solution of the present invention, below in conjunction with the accompanying drawings and it is embodied
The present invention is described in further detail for mode.
Fig. 1 is a kind of flow chart of the method for upgrading BIOS provided in an embodiment of the present invention.As shown in figure 1, the upgrading
BIOS method, including:
S10:When receiving upgrade command, calling system management interrupt.
It should be noted that said system management interrupt is used to hand over the control for refreshing target area to BIOS.Specifically
Ground, when user confirms upgrading BIOS, upgrade command is sent to operating system, operating system is led to after upgrade command is received
The OUT instructions for crossing processor send system management interrupt, and then processor can enter SMM, in SMM
Under, BIOS obtains control, and the region of itself can be refreshed.
S11:MAC Address is obtained, and MAC Address is preserved to memory headroom.
By the way that implantation obtains MAC Address and preserves MAC Address to internal memory in the subprogram of system management interrupt in advance
The code in space so that as long as system management interrupt one is invoked, it is possible to obtain MAC Address and preserved.Moreover, it is worth
It is noted that the code will perform prior to refreshing the refreshing code of target area, to ensure to incite somebody to action before MAC Address is wiped free of
MAC Address is saved in memory headroom.It should be noted that target area refers to the BIOS mirrors for the binary file for being integrated with network interface card
Region as where file, and the MAC Address of network interface card is present in the binary file of network interface card.
In order to ensure that MAC Address can be saved before target area is refreshed, preferably embodiment, works as system
When management interrupt starts to perform, MAC Address is obtained, and MAC Address is preserved to memory headroom.That is, it will can obtain
MAC Address is simultaneously preserved to the code of memory headroom and is previously implanted the performed during system management interrupt triggering by MAC Address
The foremost of one subprogram.
In order to more accurately get MAC Address, preferably embodiment, can first determine that MAC Address stores
Region, then obtain the data stored on the region again, the data are MAC Address, and specifically, step S11 includes:It is determined that
Region where MAC Address;Obtain the MAC Address stored on the region.
It should be noted that developer can be write according to the difference of product present in different determination MAC Address
The determination code in region, and the acquisition code of the data stored on the region is obtained, and will determine that code and acquisition code are pre-
First it is implanted in the subprogram of system management interrupt, and determines that code should perform before code is obtained.It is understood that
The data stored on region present in MAC Address are MAC Address, and will preserve preservation generation of the data to memory headroom
Code is previously implanted in the subprogram of system management interrupt, and ensures that preserve code performs prior to obtaining code, is later than refreshing
Code performs.
S12:Refresh target area.
Refer to be wiped the data of target area storage it should be noted that refreshing target area, then again to mesh
Mark region and write new data.That is, first the BIOS image files being stored in serial flash (SPI Flash) are carried out
Erasing, then writes new BIOS image files, certainly, as the BIOS to being stored in SPI Flash in SPI Flash again
When image file is wiped, the MAC Address being present in BIOS image files is also wiped free of therewith.But due to refreshing
Before target area, MAC Address is preserved to memory headroom, so, although presented in the MAC in BIOS image files
Address can be wiped free of therewith, but MAC Address is not lost.
Preferably, the method for the upgrading BIOS that the present embodiment provides, can apply to employ Intel integrated network card
Product.
In summary, the method for upgrading BIOS provided in an embodiment of the present invention, first when receiving upgrade command, call
System management interrupt;Then MAC Address is obtained, and MAC Address is preserved to memory headroom;Finally refresh target area;On and
System management interrupt is stated to be used to hand over the control for refreshing target area to BIOS.As can be seen here, it is provided in an embodiment of the present invention
The method of upgrading BIOS, first MAC Address is preserved to memory headroom by calling system management interrupt, then target area is carried out
Refresh, this has first done a backup equivalent to before MAC Address is wiped for MAC Address, even if being stored in the MAC of target area
Address is eliminated, but still has the MAC Address that pre-stores in memory headroom, therefore, this method during upgrading BIOS,
It ensure that MAC Address is not lost, so, before upgrading BIOS, user also no longer needs to store MAC Address manually, so as to letter
Change operation of the user before upgrading BIOS, further improve the experience sense of user.To be risen in addition, present invention also offers one kind
Level BIOS device, effect is as above.
Fig. 2 is the flow chart of the method for another upgrading BIOS provided in an embodiment of the present invention.In order to upgrade BIOS
Afterwards, it is not necessary to which user recovers the MAC Address of network interface card, the networking of computer system can manually, and the embodiment of the present invention additionally provides separately
A kind of method of upgrading BIOS, as shown in Fig. 2 preferably embodiment, on the basis of Fig. 1, this method is in step S12
After being finished, in addition to:
S20:Perform the operation for recovering MAC Address.
It should be noted that developer can refresh code it is follow-up sequel to write MAC Address is re-write into SPI
Recovery code in Flash, and be previously implanted code is recovered in the subprogram of system management interrupt, and to ensure to recover generation
Code, which is later than, refreshes code execution.Furthermore, it should be noted that the operation of the recovery MAC Address after target area has been refreshed just
Can directly it perform, it is not necessary to restart computer.
In order to ensure that the program for recovering MAC Address is performed after the program of refreshing target area, preferably
Embodiment, when system management interrupt is finished, perform the operation for recovering MAC Address.That is, it will can recover
The code of MAC Address is previously implanted in last subprogram performed after system management interrupt triggering, and in the subprogram
Last execution.
Preferably embodiment, when system management interrupt is finished, MAC Address is write into target area.
As can be seen here, the method for the upgrading BIOS that the present embodiment provides, can not only ensure during upgrading BIOS
MAC Address is not lost, and MAC Address is stored manually before upgrading BIOS without user, simplifies user in upgrading BIOS
Preceding operation, additionally it is possible to after the completion of BIOS upgradings, by the way that MAC Address is re-write in SPI Flash, recovered network interface card
MAC Address so that computer system can network again, avoid user after BIOS has been upgraded, it is also necessary to computer is restarted,
And using the MAC Address of the manual recovery network interface card of instrument, therefore, the method that the present embodiment provides exists further simplify user
On the basis of operation after upgrading BIOS, additionally it is possible to save the time that computer is restarted, and then improve the experience sense of user.
It is described in detail above for a kind of embodiment of the method for upgrading BIOS provided by the invention, the present invention
A kind of device of upgrading BIOS corresponding with this method is additionally provided, embodiment and the implementation of method part due to device part
Example mutually correlates, therefore the embodiment of device part refers to the description of the embodiment of method part, wouldn't repeat here.
Fig. 3 is a kind of structure chart of the device of upgrading BIOS provided in an embodiment of the present invention.As shown in figure 3, the upgrading
BIOS device includes:
Calling module 30, for when receiving upgrade command, calling system management interrupt;
Preserving module 31, preserved for obtaining MAC Address, and by MAC Address to memory headroom;
Refresh module 32, for refreshing target area;
Wherein, system management interrupt is used to hand over the control for refreshing target area to BIOS.
Preferably embodiment, preserving module 31 are specifically used for:
When system management interrupt starts to perform, MAC Address is obtained, and MAC Address is preserved to memory headroom.
As preferred embodiment, the device of upgrading BIOS also includes:
Recovery module, recover the operation of MAC Address for performing.
Preferably embodiment, recovery module are specifically used for:
When system management interrupt is finished, the operation for recovering MAC Address is performed.
The method and device of upgrading BIOS provided by the present invention is described in detail above.Each reality in specification
Apply example to describe by the way of progressive, each embodiment stresses it is difference with other embodiments, each implementation
Example between identical similar portion mutually referring to.
It should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention,
Some improvement and modification can also be carried out to the present invention, these are improved and modification also falls into the protection domain of the claims in the present invention
It is interior.
It should also be noted that, in this manual, such as first and second etc relational terms are used merely to one
Individual entity either operates to be made a distinction with another entity or operation, and is not necessarily required and either implied these entities or behaviour
Any this actual relation or order between work be present.Moreover, term " comprising ", "comprising" or its any variant are intended to
Cover including for nonexcludability, so that process, method, article or equipment including a series of key element not only include that
A little key elements, but also other key elements including being not expressly set out, either also include for this process, method, article or set
Standby intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Other identical element in the process including the key element, method, article or equipment also be present.
Claims (10)
- A kind of 1. method of upgrading BIOS, it is characterised in that including:When receiving upgrade command, calling system management interrupt;MAC Address is obtained, and the MAC Address is preserved to memory headroom;Refresh target area;Wherein, the system management interrupt is used to hand over the control for refreshing the target area to the BIOS.
- 2. according to the method for claim 1, it is characterised in that the acquisition MAC Address, and the MAC Address is preserved It is specially to memory headroom:When the system management interrupt starts to perform, the MAC Address is obtained, and the MAC Address is preserved to internal memory sky Between.
- 3. according to the method for claim 1, it is characterised in that the acquisition MAC Address specifically includes:Determine the region where the MAC Address;Obtain the MAC Address stored on the region.
- 4. according to the method described in claim 1-3 any one, it is characterised in that after the target area is refreshed, also wrap Include:Perform the operation for recovering the MAC Address.
- 5. method according to claim 4, it is characterised in that described perform recovers the operation of the MAC Address and be specially:When the system management interrupt is finished, the operation for recovering the MAC Address is performed.
- 6. according to the method for claim 5, it is characterised in that described perform recovers the operation of the MAC Address and be specially:The MAC Address is write into the target area.
- A kind of 7. device of upgrading BIOS, it is characterised in that including:Calling module, for when receiving upgrade command, calling system management interrupt;Preserving module, preserved for obtaining MAC Address, and by the MAC Address to memory headroom;Refresh module, for refreshing target area;Wherein, the system management interrupt is used to hand over the control for refreshing the target area to the BIOS.
- 8. device according to claim 7, it is characterised in that the preserving module is specifically used for:When the system management interrupt starts to perform, the MAC Address is obtained, and the MAC Address is preserved to internal memory sky Between.
- 9. the device according to claim 7 or 8, it is characterised in that also include:Recovery module, recover the operation of the MAC Address for performing.
- 10. device according to claim 9, it is characterised in that the recovery module is specifically used for:When the system management interrupt is finished, the operation for recovering the MAC Address is performed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710706602.2A CN107463412A (en) | 2017-08-17 | 2017-08-17 | A kind of method and device of upgrading BIOS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710706602.2A CN107463412A (en) | 2017-08-17 | 2017-08-17 | A kind of method and device of upgrading BIOS |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107463412A true CN107463412A (en) | 2017-12-12 |
Family
ID=60549863
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710706602.2A Pending CN107463412A (en) | 2017-08-17 | 2017-08-17 | A kind of method and device of upgrading BIOS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107463412A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111027104A (en) * | 2019-11-26 | 2020-04-17 | 深圳中电长城信息安全系统有限公司 | Method, device and mainboard for preventing loss of network card identification data |
CN115314471A (en) * | 2022-08-08 | 2022-11-08 | 福州创实讯联信息技术有限公司 | MAC address allocation method and terminal |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1455343A (en) * | 2003-05-30 | 2003-11-12 | 威盛电子股份有限公司 | Method of preventing overwrite of MAC address of peripheral terminal in DMI data |
CN103207797A (en) * | 2013-03-15 | 2013-07-17 | 南京工业大学 | Capsule type customized updating method based on universal extensible firmware interface firmware system |
CN106878486A (en) * | 2017-03-06 | 2017-06-20 | 郑州云海信息技术有限公司 | A kind of method and system for preventing Onboard NIC MAC Address from being changed |
-
2017
- 2017-08-17 CN CN201710706602.2A patent/CN107463412A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1455343A (en) * | 2003-05-30 | 2003-11-12 | 威盛电子股份有限公司 | Method of preventing overwrite of MAC address of peripheral terminal in DMI data |
CN103207797A (en) * | 2013-03-15 | 2013-07-17 | 南京工业大学 | Capsule type customized updating method based on universal extensible firmware interface firmware system |
CN106878486A (en) * | 2017-03-06 | 2017-06-20 | 郑州云海信息技术有限公司 | A kind of method and system for preventing Onboard NIC MAC Address from being changed |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111027104A (en) * | 2019-11-26 | 2020-04-17 | 深圳中电长城信息安全系统有限公司 | Method, device and mainboard for preventing loss of network card identification data |
CN115314471A (en) * | 2022-08-08 | 2022-11-08 | 福州创实讯联信息技术有限公司 | MAC address allocation method and terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106201613B (en) | Pre-heated software installation | |
CN103559054B (en) | Realization, delet method and the device of intelligent terminal multi-operation system | |
CN106020861B (en) | A kind of the FOTA upgrade method and system of smartwatch | |
CN109634645B (en) | Firmware upgrading method and terminal | |
CN103677947B (en) | Equipment dual system based on linux protection and upgrade method | |
US20070074201A1 (en) | Method and system for updating software and computer readable recording medium storing the method | |
CN106708543B (en) | OTA (over the air) upgrading method and device of operating system | |
CN106155915B (en) | Data storage processing method and device | |
EP2605139A2 (en) | Mount-time reconciliation of data availability | |
CN103699421A (en) | Method and device for upgrading embedded device system | |
CN107678762B (en) | System version upgrading method and device | |
CN103853566B (en) | Basic input output system (BIOS) updating system and method | |
US9710340B2 (en) | Replacement of a corrupt driver variable record | |
CN105760165B (en) | A kind of method that self backup load of MCU refreshes | |
CN104156279B (en) | A kind of backup method of router configuration data | |
CN102799497A (en) | Data recovery system and method for non-volatile random access memory (NVRAM) | |
CN107566169A (en) | A kind of firmware upgrade method and router based on openwrt | |
CN101561950B (en) | Method and device for processing data of intelligent card | |
CN102163155A (en) | Upgrade controlling device and method for upgrading memory device | |
CN106502718B (en) | Program upgrading method and device and controller | |
CN107577558A (en) | The Snapshot Method and device of a kind of cloud storage | |
CN109298873A (en) | A kind of method for upgrading system and device | |
CN107463412A (en) | A kind of method and device of upgrading BIOS | |
US20100205423A1 (en) | Bios, computer device and method for recovering bios | |
CN109947445A (en) | A kind of firmware upgrade method and system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171212 |
|
RJ01 | Rejection of invention patent application after publication |