CN102880476A - BIOS (basic input output system) version setting system and method - Google Patents

BIOS (basic input output system) version setting system and method Download PDF

Info

Publication number
CN102880476A
CN102880476A CN2011101945527A CN201110194552A CN102880476A CN 102880476 A CN102880476 A CN 102880476A CN 2011101945527 A CN2011101945527 A CN 2011101945527A CN 201110194552 A CN201110194552 A CN 201110194552A CN 102880476 A CN102880476 A CN 102880476A
Authority
CN
China
Prior art keywords
bios
version
global variable
boot record
module
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.)
Granted
Application number
CN2011101945527A
Other languages
Chinese (zh)
Other versions
CN102880476B (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.)
Gansu Agricultural University
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN201110194552.7A priority Critical patent/CN102880476B/en
Priority to TW100125729A priority patent/TW201303729A/en
Publication of CN102880476A publication Critical patent/CN102880476A/en
Application granted granted Critical
Publication of CN102880476B publication Critical patent/CN102880476B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a BIOS (basic input output system) version setting system. The system comprises a setting module, a reading module, a judging module and an execution module, wherein the setting module is used for setting a Boolean global variable in a BIOS; the reading module is used for reading master boot record in a hard disc; the judging module is used for judging whether the global variable is true or not when the master boot record is in a special format and the global variable is called by the BIOS; and the execution module is used for executing the function of a BIOS test version when the global variable is true, and for executing the function of a BIOS delivery version when the global variable is not true. The invention also provides a BIOS version setting method. With the adoption of the system and the method, the switching between multifunctional BOISs can be implemented.

Description

Bios version arranges system and method
Technical field
The present invention relates to a kind of BIOS system and method is set, relate in particular to a kind of bios version system and method is set.
Background technology
In the test process of some mainboards, the client tends to cause testing process to carry out normally to the specific (special) requirements of shipment version BIOS.For example, the customer requirement burning has the computing machine of shipment version BIOS to enter in the operating system of client's independent research, then tests the operating system that computer-chronograph just can't enter into test usefulness.In this case, factory prepares the BIOS burning document of two versions usually at present, first off-line burning beta version BIOS on mainboard, burning shipment version BIOS again again before the shipment after mainboard is completed, or tool using changes beta version BIOS into shipment version BIOS.But this several method all needs BIOS developer to safeguard the BIOS of two kinds of versions, increases development effort and cost.
Summary of the invention
In view of above content, be necessary to provide a kind of bios version that system is set, the version of BIOS can be set under the factory testing environment.
Also be necessary to provide a kind of bios version method to set up, the version of BIOS can be set under the factory testing environment.
A kind of bios version arranges system, and this system comprises: module is set, is used for arranging at BIOS the global variable of a Boolean type; Read module is for the Main Boot Record that reads hard disk; Judge module when the form of described Main Boot Record is special format and BIOS when calling described global variable, is used for judging whether this global variable is true; And execution module, when global variable is true time, be used for carrying out the function of BIOS beta version, when global variable is fictitious time, be used for carrying out the function of BIOS shipment version.
A kind of bios version method to set up, the method comprises: setting steps arranges the global variable of a Boolean type in BIOS; Read step reads the Main Boot Record in the hard disk; Determining step when the form of described Main Boot Record is special format and BIOS when calling described global variable, judges whether this global variable is true; And execution in step, when global variable is true time, carry out the function of BIOS beta version, when global variable is fictitious time, carry out the function of BIOS shipment version.
Compared to prior art, described bios version arranges system and method, so that BIOS is under the factory testing environment, to switching between the factory testing version of BIOS and the shipment version, do not need the repetition burning BIOS, save development effort and cost, increase work efficiency.
Description of drawings
Fig. 1 is the running environment figure that bios version of the present invention arranges system's preferred embodiment.
Fig. 2 is the functional block diagram that bios version arranges system 10 among Fig. 1.
Fig. 3 is the operation process chart of bios version method to set up of the present invention preferred embodiment.
The main element symbol description
Mainboard 1
BIOS 2
Bios version arranges system 10
Hard disk 3
Main Boot Record 30
Operating system 31
Module is set 100
Read module 101
The first judge module 102
Start module 103
Receiver module 104
The second judge module 105
Execution module 106
Following embodiment further specifies the present invention in connection with above-mentioned accompanying drawing.
Embodiment
As shown in Figure 1, be the running environment figure that bios version of the present invention arranges system's preferred embodiment.This bios version arranges among the BIOS 2 that system 10 runs on mainboard 1.This mainboard 1 is connected in hard disk 3, and this hard disk 3 comprises Main Boot Record (master boot record, MBR) 30 and operating system 31, and this Main Boot Record 30 comprises error message data field and end mark.The value of described end mark has determined whether start the operating system 31, namely when the value of end mark is 55AA, starts the operating system 31, if when the value of this end mark is not 55AA, does not then start the operating system 31.
The BIOS 2 of beta version does not need to start the operating system 31, and described error message data area stores BIOS 2 version information and the test this BIOS 2 information.The BIOS 2 of shipment version need to start the operating system 31 by described Main Boot Record 30, and namely the value of end mark is 55AA.
It is to be noted, in the program code of BIOS 2, the global variable of a Boolean type can be set first, and the program code part of selecting to carry out beta version BIOS 2 according to the value of this global variable is set, or the program code part of shipment version BIOS 2.For example, when this global variable is " true (TRUE) ", can carry out beta version BIOS 2 program code parts, thereby make BIOS 2 realize the function of beta version BIOS 2, when this global variable is " false (FALSE) ", can carry out shipment version BIOS 2 program code parts, thereby make BIOS 2 realize the function of shipment version BIOS 2.In the present embodiment, the value of described global variable is 1 o'clock, judges that this global variable is as true.If the value of global variable is 0, judge that then this global variable is vacation.
As shown in Figure 2, be the functional block diagram that bios version arranges system 10 among Fig. 1.Described bios version arranges system 10 and comprises: module 100, read module 101, the first judge module 102 are set, start module 103, receiver module 104, the second judge module 105 and execution module 106.Described module is the software program section with specific function, this software is stored in computer-readable recording medium or other memory device, can be carried out by computing machine or other calculation element that comprises processor, thereby finish the work flow that bios version is set among the present invention.
The global variable that module 100 is used for arranging at BIOS 2 Boolean type is set, and the initial value of this global variable is false.The version that this global variable is used for control BIOS 2 is beta version or shipment version.
Read module 101 is used for reading the Main Boot Record 30 of hard disk 3.In the present embodiment, this read module 101 calls INT 13 interrupt instructions and reads described Main Boot Record 30.
The first judge module 102 is used for judging whether the form of this Main Boot Record 30 is special format.In the present embodiment, this special format refers to that the first byte of Main Boot Record 30 is 00, and the value of end mark is not equal to 55AA, has stored the information of version information and this BIOS 2 of test of described BIOS 2 in the error data district.If the form of described Main Boot Record 30 is not special format, then starts module 103 and be used for attempting starting the operating system 31.
If the form of described Main Boot Record 30 is special format, then receiver module 104 is used for the value of the described global variable of reception user setting.
When BIOS 2 called this global variable, the second judge module 105 was used for judging whether described global variable is true.
If this global variable is true, then execution module 106 is used for carrying out the function of BIOS 2 beta versions.
If this global variable is false, then this execution module 106 is used for carrying out the function of BIOS 2 shipment versions.
As shown in Figure 3, be the operation process chart of bios version method to set up of the present invention preferred embodiment.
Step S30 arranges module 100 arranges a Boolean type in BIOS 2 global variable, and the initial value of this global variable is 0, and namely this global variable is false.The version that this global variable is used for control BIOS 2 is beta version or shipment version.
Step S31, read module 101 read the Main Boot Record 30 in the hard disk 3.In the present embodiment, this read module 101 calls INT 13 interrupt instructions and reads described Main Boot Record 30.
Step S32, the first judge module 102 judge whether the form of this Main Boot Record 30 is special format.In the present embodiment, this special format refers to that the first byte of Main Boot Record 30 is 00, and the value of end mark is not equal to 55AA, has stored the information of version information and this BIOS 2 of test of described BIOS 2 in the error data district.If the form of described Main Boot Record 30 is not special format, then execution in step S33.If the form of described Main Boot Record 30 is special formats, execution in step S34 then.
Step S33 starts module 103 and attempts starting the operating system 31.
Step S34, receiver module 104 receives the value of the described global variable of user's setting.
Step S35, when BIOS 2 called this global variable, the second judge module 105 judged whether described global variable is true.If this global variable is true, then execution in step S36.If this global variable is false, then execution in step S37.
Step S36, execution module 106 is carried out the function of BIOS 2 beta versions.
Step S37, execution module 106 is carried out the function of BIOS 2 shipment versions.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although with reference to preferred embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.

Claims (6)

1. a bios version arranges system, it is characterized in that, this system comprises:
Module is set, is used for arranging at BIOS the global variable of a Boolean type;
Read module is for the Main Boot Record that reads hard disk;
Judge module when being used for form when described Main Boot Record and being special format and BIOS and calling described global variable, judges whether this global variable is true; And
Execution module, being used for when global variable is the function of true time execution BIOS beta version, when global variable is the function that fictitious time is carried out BIOS shipment version.
2. bios version as claimed in claim 1 arranges system, it is characterized in that, the special format of described Main Boot Record refers to: first byte of this Main Boot Record is 00, the value of end mark is not equal to 55AA, has stored the information of version information and this BIOS of test of described BIOS in the error data district.
3. bios version as claimed in claim 1 arranges system, it is characterized in that, this system also comprises the startup module, is used for attempting starting the operating system when the form of described Main Boot Record is not special format.
4. a bios version method to set up is characterized in that, the method comprises:
Setting steps arranges the global variable of a Boolean type in BIOS;
Read step reads the Main Boot Record in the hard disk;
Determining step when the form of described Main Boot Record is special format and BIOS when calling described global variable, judges whether this global variable is true; And
Execution in step when global variable is true time, is carried out the function of BIOS beta version, when global variable is fictitious time, carries out the function of BIOS shipment version.
5. bios version method to set up as claimed in claim 4, it is characterized in that, the special format of described Main Boot Record refers to: first byte of this Main Boot Record is 00, the value of end mark is not equal to 55AA, has stored the information of version information and this BIOS of test of described BIOS in the error data district.
6. bios version method to set up as claimed in claim 4 is characterized in that, the method also comprises step: when the form of described Main Boot Record is not special format, attempt starting the operating system.
CN201110194552.7A 2011-07-12 2011-07-12 Bios version arranges system and method Expired - Fee Related CN102880476B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110194552.7A CN102880476B (en) 2011-07-12 2011-07-12 Bios version arranges system and method
TW100125729A TW201303729A (en) 2011-07-12 2011-07-21 System and method for setting editions of a BIOS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110194552.7A CN102880476B (en) 2011-07-12 2011-07-12 Bios version arranges system and method

Publications (2)

Publication Number Publication Date
CN102880476A true CN102880476A (en) 2013-01-16
CN102880476B CN102880476B (en) 2016-01-27

Family

ID=47481815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110194552.7A Expired - Fee Related CN102880476B (en) 2011-07-12 2011-07-12 Bios version arranges system and method

Country Status (2)

Country Link
CN (1) CN102880476B (en)
TW (1) TW201303729A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109471665A (en) * 2018-10-31 2019-03-15 湖南国科微电子股份有限公司 A kind of method of automatic installation Windows operating system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1355486A (en) * 2000-12-01 2002-06-26 神基科技股份有限公司 Method for selecting initial partition of hard disk
US20050015581A1 (en) * 2003-07-18 2005-01-20 Hung-Ping Chen [selectable booting method by bios with multi-partition in the disk on a single computer platform]
CN1658185A (en) * 2004-02-18 2005-08-24 国际商业机器公司 Computer system with mutual independence symbiont multiple eperation system and its switching method
CN1838075A (en) * 2005-03-24 2006-09-27 光宝科技股份有限公司 Operating system selection method and computer system thereof
CN101105755A (en) * 2006-06-29 2008-01-16 Lg电子株式会社 Portable apparatus supporting multiple operating systems and supporting method therefor
CN101364187A (en) * 2007-08-08 2009-02-11 黄金富 Double operating system computer against worms
CN101650658A (en) * 2008-08-14 2010-02-17 鸿富锦精密工业(深圳)有限公司 Method for implementing system assistant activation technique

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1355486A (en) * 2000-12-01 2002-06-26 神基科技股份有限公司 Method for selecting initial partition of hard disk
US20050015581A1 (en) * 2003-07-18 2005-01-20 Hung-Ping Chen [selectable booting method by bios with multi-partition in the disk on a single computer platform]
CN1658185A (en) * 2004-02-18 2005-08-24 国际商业机器公司 Computer system with mutual independence symbiont multiple eperation system and its switching method
CN1838075A (en) * 2005-03-24 2006-09-27 光宝科技股份有限公司 Operating system selection method and computer system thereof
CN101105755A (en) * 2006-06-29 2008-01-16 Lg电子株式会社 Portable apparatus supporting multiple operating systems and supporting method therefor
CN101364187A (en) * 2007-08-08 2009-02-11 黄金富 Double operating system computer against worms
CN101650658A (en) * 2008-08-14 2010-02-17 鸿富锦精密工业(深圳)有限公司 Method for implementing system assistant activation technique

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109471665A (en) * 2018-10-31 2019-03-15 湖南国科微电子股份有限公司 A kind of method of automatic installation Windows operating system
CN109471665B (en) * 2018-10-31 2022-01-11 湖南国科微电子股份有限公司 Method for automatically installing Windows operating system

Also Published As

Publication number Publication date
CN102880476B (en) 2016-01-27
TW201303729A (en) 2013-01-16

Similar Documents

Publication Publication Date Title
US9558016B2 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
CN105760200A (en) Terminal device and system updating method thereof
US20080082967A1 (en) Method and system for parameter profile compiling
CN105988843A (en) Firmware upgrade method and firmware upgrade device for mobile terminal
CN102135893A (en) Method for integrating operating system on BIOS (Basic Input Output System) chip and starting operating system on server
CN101634960A (en) Method for revising BIOS parameter and regenerating checksum
CN111158741A (en) Method and device for monitoring change of dependency relationship of business module on third-party class library
CN103678053A (en) Computer self-check method and system
CN103729221A (en) Method and device for writing BIOS debugging information into hard disk
CN108073738B (en) GPIO (general purpose input/output) verification system and method
CN102073514A (en) Method for updating basic input/output system
US8117368B2 (en) System management interrupt interface wrapper
CN112216340A (en) Hard disk test method and device, storage medium and electronic equipment
CN111694585A (en) Method, system, terminal and storage medium for replacing system partition file
CN102799479A (en) Mainboard with multifunctional basic input output system (BIOS) and test method thereof
CN103064767A (en) Driver backup method, driver backup device, driver restoring method and driver restoring device
CN103106086B (en) Operating system disposal route and system
CN109254856B (en) Method for providing interface to client by intelligent POS server
CN102880476A (en) BIOS (basic input output system) version setting system and method
CN110990177A (en) Fault repairing method, device, system, storage medium and electronic equipment
CN100430892C (en) Method for shortening start time
CN114496053A (en) Data anomaly detection method, device and equipment and computer readable storage medium
CN100373335C (en) Hot-line self-checking up method for computer
US7877557B2 (en) Information processing system, information processing method and program
CN109710319B (en) Method and system for identifying in-place hard disk of computer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20151211

Address after: 518104, building four, building 403, building A3, manholes Industrial Zone, manhole community, Gonghe subdistrict, Gonghe, Shenzhen, Guangdong, Baoan District

Applicant after: SHENZHEN OUKELI TECHNOLOGY Co.,Ltd.

Address before: 518109 Guangdong province Shenzhen city Longhua District Dragon Road No. 83 wing group building 11 floor

Applicant before: SCIENBIZIP CONSULTING (SHEN ZHEN) Co.,Ltd.

Effective date of registration: 20151211

Address after: 518109 Guangdong province Shenzhen city Longhua District Dragon Road No. 83 wing group building 11 floor

Applicant after: SCIENBIZIP CONSULTING (SHEN ZHEN) Co.,Ltd.

Address before: 518109 Guangdong city of Shenzhen province Baoan District Longhua Town Industrial Zone tabulaeformis tenth East Ring Road No. 2 two

Applicant before: HONG FU JIN PRECISION INDUSTRY (SHENZHEN) Co.,Ltd.

Applicant before: HON HAI PRECISION INDUSTRY Co.,Ltd.

C41 Transfer of patent application or patent right or utility model
CB03 Change of inventor or designer information

Inventor after: Wei Linjing

Inventor before: Tang Xinqiao

COR Change of bibliographic data
TA01 Transfer of patent application right

Effective date of registration: 20160104

Address after: 730070 Anning District, Gansu, Lanzhou Camp Village Gate No. 1

Applicant after: Gansu Agricultural University

Address before: 518104, building four, building 403, building A3, manholes Industrial Zone, manhole community, Gonghe subdistrict, Gonghe, Shenzhen, Guangdong, Baoan District

Applicant before: SHENZHEN OUKELI TECHNOLOGY Co.,Ltd.

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: 20160127

Termination date: 20200712

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