CN1744043A - Method for automatically changing computer start sequence - Google Patents
Method for automatically changing computer start sequence Download PDFInfo
- Publication number
- CN1744043A CN1744043A CN 200510090800 CN200510090800A CN1744043A CN 1744043 A CN1744043 A CN 1744043A CN 200510090800 CN200510090800 CN 200510090800 CN 200510090800 A CN200510090800 A CN 200510090800A CN 1744043 A CN1744043 A CN 1744043A
- Authority
- CN
- China
- Prior art keywords
- bios
- funcall
- sequence
- starting
- cmos
- 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
Links
Landscapes
- Stored Programmes (AREA)
Abstract
Through automatic changing starting up device of computer to change starting up sequence, the invention discloses effective technical means for implementing installation of operating system and other application software through network. The invention discloses a method of control indirectly: prescribing calls of setting functions in BIOS starting up sequence changes starting up sequence for computer; that is to say unitive BIOS subroutines of function call are defined, and starting up sequence is changed through subroutines of function call. Each main board manufacturer self completes detail of each subroutine of function call; but interface of application program and functions of these subroutines are identical. The invention reduces fee for maintaining software, makes computer easy to use. Though the disclosed technique, it is hopeful that unattended installing operating system and application software is possibly to be realized.
Description
Technical field
The present invention relates to a kind of method of automatic change computer start sequence, belong to the technical field of the initial control or the configuration control of universal digital computer.
Background technology
At present, the software field engineering has obtained using very widely, solved very loaded down with trivial details operating system installation process to a great extent as network installation operating system, typical application has remote installation service (RIS) technology of Microsoft: at first at server end destination OS is set, the user just can install the local operation system with customized information by interactive operation in installation process again.Except operating system, the installation of other application software also can be undertaken by network, and the appearance of these technology has improved the ease for use of computing machine widely.But in these existing installation processes, a problem that is difficult to overcome is to need user's artificial participation with mutual.
With network installation operating system is example, its operating process is so often: installation system offers floppy disk of user, the user utilizes this floppy disk to start and connects server, and the user some problems of system are made reply after, installation procedure is just downloaded necessary installation procedure from the webserver, tells the user floppy disk need be pulled out then.Then, system starts again, and gives the webserver or local hard drive with start-up control power.If system is fixing start-up routine, must finish the operation of once manually extracting floppy disk, can not realize operatorless full-automatic installation.If real the realization automatically installed, must be before needs be changed starting outfit, start-up control priority with the basic input-output system BIOS (Basic Inputoutput system) of routine change computing machine, unfortunately BIOS controls the mode criteria of right and wrong of starting outfit priority, the manufacturing plant commercial city of each BIOS and mainboard is the unique control mode that adopts oneself, does not also have general business software to realize the application of aspect such as unattended network system installation.Just because of the existence of these problems, limited the realization of many full automatic software installation process.
The people of familiar with computers knows, can be at the manual boot sequence that changes in being provided with of basic input-output system BIOS.BIOS with the development of Award company is an example, during start, enter BIOS by del key the interface is set, the user is modified as First Boot Device the starting outfit of desired setting in " Advance feature SETUP " option, after restarting, BIOS just gives control the starting outfit of this new settings.Therefore, if want to realize the robotization of computer starting process, must change starting outfit automatically by program run.
In order to realize this purpose, introduce the principle of BIOS control boot sequence here earlier.For BIOS after shutdown still knows the starting outfit that start shooting next time, must allow this information be kept in the nonvolatile memory, for PC, the bytes store of BIOS control boot sequence is in CMOS RAM.This CMOS RAM storer is arranged in the board chip set, relies on powered battery; After shutdown, wherein canned data can not lost.BIOS checks which starting outfit the numerical value of this byte specifies when starting, and after self check finishes, from this equipment pilot operationp system.In principle, if, can reach the function that changes boot sequence equally with the control byte of boot sequence among the routine change CMOSRAM.But in existing Computer Design because each mainboard producer is inequality to the definition of control byte, can't be directly function by the general change boot sequence of program realization.This is because the reason of three aspects is arranged::
1, control byte storage addresses difference in CMOS RAM: though Award BIOS has original definition to each byte of CMOSRAM, but each mainboard producer is after obtaining its source code, tend to adjust according to the actual needs of oneself, the ununified standard of each producer, even the mainboard CMOS RAM of the different model of same manufacturer production definition is all not necessarily identical.In addition, except the BIOS of Award company exploitation, also have the BIOS of other producer's developments, the definition between them has nothing in common with each other especially.
2, the starting outfit difference of control byte definition: because the technical characterstic and the function of each mainboard are inequality, the starting outfit that they are supported is also inequality; In addition, the development of external unit is maked rapid progress, and the technical merit of each mainboard producer has nothing in common with each other, and adopting of new starting outfit and tenability are also had nothing in common with each other, and therefore each producer also is inequality on byte content-defined starting.
3, CMOS RAM error control system difference: because the content among the CMOS RAM is extremely important for BIOS; in order to prevent unexpected change; BIOS to CMOS RAM content carry out verification and algorithm protection, promptly to some the byte calculation check among the CMOS and, and be kept among the CMOS RAM.The calculation check of each mainboard producer regulation and the CMOS ram region have nothing in common with each other the research staff of BIOS only, otherwise other producers can't directly change certain byte among the CMOS RAM with program at all.
Summary of the invention
The method that the purpose of this invention is to provide a kind of automatic change computer start sequence can realize changing automatically the starting outfit of computing machine, thereby provides a kind of effective technical means for the network installation that realizes operating system and other application software.
The object of the present invention is achieved like this: a kind of method of automatic change computer start sequence is characterized in that: stipulate unified BIOS funcall, change the boot sequence of computing machine by funcall automatically; At least comprise the following steps:
(a) unified BIOS funcall subroutine module group of definition;
(b) the BIOS funcall subroutine module group in the step (a) is hung on the interrupt interface, also it can be arranged on BIOS other interface IP address related with application program.
BIOS funcall subroutine module group includes three subroutine modules at least in the described step (a): subroutine module one: obtain version and installation check, subroutine module two: read the current device boot sequence, subroutine module three: the device start order is set.
It is on the interrupt interface of Int 15H that the middle recommendation of described step (b) hangs over a port address with this BIOS funcall subroutine module group; If hang on other interruption or other interface, should use the subfunction that do not have on the open source information of this BIOS interface number to define, clash avoiding.
The present invention is a kind of method of automatic change computer start sequence, also is technical measures that exist shortcoming to remedy at design aspect to existing computer system.The enforcement of this method, feasible operation such as installing operating system and application software is expected to realize complete unmanned participation, this will be to reducing the computer software maintenance cost, improve the ease for use of computing machine, reduction all brings a series of benefit to computing machine operation and maintenance personnel's technical requirement, and produces appreciable economic benefit thus.Can look forward to, method of the present invention will become the technical standard that industry is followed in case acquisition is extensively adopted; If, combine with other technologies again with its designing technique as a computer system, can be so that such as the automatically switching operation system, installation of unmanned software and computer mode etc. were difficult to realize in the past the application of robotization, all might realize breaking through.In a word, the present invention realizes that by formulating unified BIOS specification function is unified on the product level of computing machine, makes this computer product have the convenient characteristic of using, can improve the competitive power of computer product, and might bring bigger useful variation computer application.
Description of drawings
What Fig. 1 was the present invention at boot sequence control CMOS address ram is provided with the regulation synoptic diagram.
Fig. 2 is a kind of program flow diagram of realizing changing automatically computer start sequence of the present invention.
Embodiment
The present invention is the method that a kind of starting outfit by automatic change computing machine changes its boot sequence, thereby provides a kind of effective technical means for the network installation that realizes operating system and other application software.The invention provides three kinds of different implementation methods, describe it below respectively in conjunction with specific embodiments in detail.
First method of the present invention is at the regulation difference owing to mainboard producer, cause directly to use the present situation of routine change CMOS RAM start-up control byte, the unified byte that is provided with or stipulates control boot sequence among the CMOS RAM is to realize changing automatically computer start sequence.The content that wherein unified regulation control starts byte includes: control boot sequence bytes of memory address, device numbering, verification and computer capacity and verification and storage address.Figure 1 shows that an embodiment of this first method.Its operation steps is:
(1) control boot sequence bytes of memory address being set among the CMOS RAM is 66H.67H, and each starting outfit is numbered;
Device name | Numbering (scale-of-two) | Device name | Numbering (scale-of-two) |
Floppy drive | 0000 | LS120 equipment | 0001 |
Hard disk 0 equipment | 0010 | Scsi device | 0011 |
CDROM equipment | 0100 | Hard disk 1 equipment | 0101 |
Hard disk 2 equipment | 0110 | Hard disk 3 equipment | 0111 |
ZIP100 equipment | 1000 | The USB floppy drive | 1001 |
USB-ZIP equipment | 1010 | USB-CDROM equipment | 1011 |
The USB-hard disc apparatus | 1100 | Network card equipment | 1101 |
(2) device numbering that write sequence starts among each byte 66H of the control boot sequence in CMOS RAM and the 67H;
(3) be provided with to the data of storing among control boot sequence byte 66H and the 67H not calculation check and.
Referring to Fig. 1, be that first and second starting outfits are example to set floppy drive and network interface card, the step of utilizing this method to realize changing boot sequence is described:
1, takes out the numerical value of original 66H, 67H byte among the CMOS RAM, and preserve it;
2, (Bit0~bit3) be made as floppy drive promptly writes 0000B with the first starting outfit position in the 66H byte;
3, (Bit4~bit7) be made as network interface card promptly writes 1101B with the second starting outfit position in the 66H byte;
4, the value with original 67H byte writes back 67H, perhaps inoperation 67H;
5, restart computing machine with program.
When using this method, it should be noted that: the routine access method for standard CMOS RAM data field has two kinds: (1) sets the CMOS RAM offset address that needs visit at Computer I/O address 70H mouth.(2), the CMOS RAM of appointment is carried out read and write access by I/O address 71H mouth.In addition, control byte address, device numbering and the verification of above-mentioned illustrational definition and control forms all be for convenience of description, also control byte can be arranged to other addresses, relevant devices numbering, and verification and position and regional isoparametric setting, also be like this.Their data difference does not hinder the applicability of this method.
Second method of the present invention changes computer start sequence automatically by preservation/restoring CMOS mirror.For example, switch between floppy disk startup and hard disk startup if want.Need be set to target start equipment by manual mode BIOS in advance, floppy disk is set to first starting outfit.After setting is finished, restart computing machine, read the full content of CMOSRAM with the read_cmos program of obtaining the CMOS mirror image, and save as image file: floppy.dat.Then, by hand hard disk being set in BIOS is provided with is first starting outfit, saves as image file: hdd.dat equally.If need floppy disk to start when installing, then the image file floppy.dat of floppy disk startup is returned among the CMOS RAM and go with the write_cmos program of restoring CMOS mirror; Hard disk startup if desired then returns to the image file hdd.dat of hard disk startup among the CMOS RAM and goes.The advantage of this second method is simple, and method is general, do not need BIOS is proposed specific (special) requirements, by disposable manual initial operation, just can realize the Automatic Program setting in the change starting outfit process afterwards, BIOS can do by myself according to the selection of craft change CMOS start-up control byte, adjust simultaneously verification and.Its shortcoming is to need the user to participate in obtaining initial startup CMOS RAM image file, and the CMOS that the user can be provided with voluntarily in the restoring CMOS mirror file destroys, and therefore, this method not too is fit to commercially produced product.
Illustrate the performing step that obtains CMOS image file read_cmos program below:
A, read among the CMOS skew 10 bytes all register value in 128 bytes, and be written to core buffer by CMOS RAM standard access port 70H and 71H;
B, the core buffer content write in the CMOS RAM image file of starting outfit of appointment.
The performing step of the program write_cmos of restoring CMOS RAM mirror image is in this method:
C, the CMOS RAM image file of the starting outfit of appointment is read in the core buffer;
D, CMOS RAM access port 70H and 71H by standard are written among the CMOS skew 10 bytes to the interval of 128 bytes with the content of core buffer.
When using this method coding, it should be noted that: (1) should skip preceding 10 bytes of CMOS RAM, because what preceding 10 bytes were deposited among the CMOS RAM is system's real time clock (RTC) data that comprise system time, date etc., if all make mirror image, system time will be changed into the time when preserving during recovery.And, various BIOS to these 10 bytes not calculation check and.(2) CMOSRAM has 256 bytes, but has only preceding 128 bytes to operate by the CMOS access port of standard, is called as the standard CMOS data field; Relevant with chipset features, the different chipset access method difference of access method of back 128 bytes.Because the byte of control boot sequence is present in the standard CMOS data field, this data field and back 128 bytes are with different verifications and control.Therefore preservation and preceding 128 bytes of recovery (definitely saying 128-10=118 byte) can not cause the verification of CMOS RAM to make mistakes.
Below again starting with floppy drive, logon server, and carry out this locality from downloaded operating system installation program and be installed as example, the application process of second method is described:
At first be the operation of preparatory stage:
1, enter BIOS setup program, floppy drive is set to first starting outfit.Restart after the preservation.
2, operation read_cmos program generates the floppy.dat image file.
3, enter BIOS setup program, hard disk is set to first starting outfit.Restart after the preservation.
4, operation read_cmos program generates the hdd.dat image file.
Then be the application stage that changes starting outfit automatically:
1, insertion system bootable floppy disk, this floppy disk have network interface card and drive and the logon server program.
2, call the write_cmos program, the floppy.dat image file is write among the CMOS RAM.
3, the function of calling middle fracture Int19 restarts computing machine.
4, system starts from floppy disk, game server, and from downloaded operating system installation program to local hard drive.
5, use the write_cmos program, the hdd.dat image file is write among the CMOS RAM
6, rely on the installation function automatic installing operating system of operating system, in this process, system can reset automatically, and will continue installation and operation operating system from hard disk startup after restarting.
The third method of the present invention is the CMOS RAM content among the regulation BIOS, thereby provides boot sequence that the boot sequence that funcall changes computing machine is set.Can change existing C MOS RAM planning because directly stipulate the definition of CMOS RAM, this method of the present invention is to take a kind of indirect control mode, promptly stipulates unified BIOS funcall subroutine, changes boot sequence by the funcall subroutine again.Wherein the realization details of each funcall subroutine comprise that offset address, device numbering, verification and the mode etc. of how processing controls byte are all finished voluntarily by each mainboard producer, but the function of the interface of application programs and realization is identical.Its specific practice is: define a new BIOS funcall subroutine module group, and hang on the BIOS interface, for example Int15H; Also it can be arranged on the address of BIOS other interface related with application program; But, must find the subfunction sequence number that does not have on this interface open source information to define.The BIOS funcall subroutine module group here includes three subroutine modules at least:
Subfunction calling program module one: obtain version and installation check.This calling program module provides the installation check function, determines whether support equipment boot sequence funcall group of current BIOS.Require mainboard producer simultaneously:, can not occur crashing or phenomenon such as is restarted in system if BIOS does not support this funcall.
Subfunction calling program module two: read the current device boot sequence.This calling program module reads the numbering of current first, second and the 3rd starting outfit.Wherein the form of device numbering can adopt first kind of definition form in the implementation method.
Subfunction calling program module three: the device start order is set.This calling program module is provided with current first, second and the 3rd starting outfit, and equipment is wherein determined according to device numbering.
The third changes the process flow diagram of computer start sequence implementation method automatically referring to the present invention shown in Figure 2.Than the implementation procedure of having introduced this method in more detail, just repeat no more here among the figure.
The third method of the present invention has been carried out test enforcement by the applicant, has obtained good effect, reaches goal of the invention in advance.
Claims (3)
1, a kind of method of automatic change computer start sequence is characterized in that: stipulate unified BIOS funcall, change the boot sequence of computing machine by funcall automatically; At least comprise the following steps:
(a) unified BIOS funcall subroutine module group of definition;
(b) the BIOS funcall subroutine module group in the step (a) is hung on the interrupt interface, perhaps it is arranged on BIOS other interface IP address related with application program.
2, the method for automatic change computer start sequence according to claim 1, it is characterized in that: BIOS funcall subroutine module group includes three subroutine modules at least in the described step (a): subroutine module one: obtain version and installation check, subroutine module two: read the current device boot sequence, subroutine module three: the device start order is set.
3, the method for automatic change computer start sequence according to claim 1 is characterized in that: it is on the interrupt interface of Int15H that the middle recommendation of described step (b) hangs over a port address with this BIOS funcall subroutine module group; If hang on other interruption or other BIOS interface, should use the subfunction that do not have on the open source information of this interface number to define, clash avoiding.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 02156859 CN1262943C (en) | 2002-12-19 | 2002-12-19 | Method for automatically changing start sequence of computer |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 02156859 Division CN1262943C (en) | 2002-12-19 | 2002-12-19 | Method for automatically changing start sequence of computer |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1744043A true CN1744043A (en) | 2006-03-08 |
CN100375024C CN100375024C (en) | 2008-03-12 |
Family
ID=34236431
Family Applications (3)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005100908008A Expired - Fee Related CN100375024C (en) | 2002-12-19 | 2002-12-19 | Method for automatically changing computer start sequence |
CN 02156859 Expired - Fee Related CN1262943C (en) | 2002-12-19 | 2002-12-19 | Method for automatically changing start sequence of computer |
CNB200510090797XA Expired - Fee Related CN100375023C (en) | 2002-12-19 | 2002-12-19 | Method for realizing automatic change of computer start sequence |
Family Applications After (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 02156859 Expired - Fee Related CN1262943C (en) | 2002-12-19 | 2002-12-19 | Method for automatically changing start sequence of computer |
CNB200510090797XA Expired - Fee Related CN100375023C (en) | 2002-12-19 | 2002-12-19 | Method for realizing automatic change of computer start sequence |
Country Status (1)
Country | Link |
---|---|
CN (3) | CN100375024C (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101714092B (en) * | 2008-10-08 | 2013-03-13 | 英业达集团(天津)电子技术有限公司 | Method for controlling boot sequence of server |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100426228C (en) * | 2005-05-20 | 2008-10-15 | 鸿富锦精密工业(深圳)有限公司 | System and method for switching computer start sequence |
CN101826020B (en) * | 2009-03-06 | 2013-05-29 | 英业达股份有限公司 | Reading method for boot sequence of computer boot equipment |
CN102455922A (en) * | 2010-10-28 | 2012-05-16 | 鸿富锦精密工业(深圳)有限公司 | Computer starting sequence setting system and method |
CN102331941B (en) * | 2011-07-07 | 2014-07-02 | 曙光信息产业股份有限公司 | Method for managing hard disk switching of loongson mainboard |
CN109240754B (en) * | 2017-07-03 | 2022-03-25 | 中兴通讯股份有限公司 | Logic device, method and system for configuring BIOS starting item |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5444850A (en) * | 1993-08-04 | 1995-08-22 | Trend Micro Devices Incorporated | Method and apparatus for controlling network and workstation access prior to workstation boot |
US5864698A (en) * | 1994-08-24 | 1999-01-26 | Packard Bell Nec | Disk based bios |
JPH09319583A (en) * | 1996-05-27 | 1997-12-12 | Sanyo Electric Co Ltd | System starting method for miniaturized electronic computer |
US6438687B2 (en) * | 1997-10-30 | 2002-08-20 | Micron Technology, Inc. | Method and apparatus for improved storage of computer system configuration information |
AU2001234786A1 (en) * | 2000-02-04 | 2001-08-14 | Insyde Software, Inc. | A system and method for altering an operating system start-up sequence prior to operating system loading |
CN1183451C (en) * | 2001-02-20 | 2005-01-05 | 技嘉科技股份有限公司 | BIOS updating method of computer system |
-
2002
- 2002-12-19 CN CNB2005100908008A patent/CN100375024C/en not_active Expired - Fee Related
- 2002-12-19 CN CN 02156859 patent/CN1262943C/en not_active Expired - Fee Related
- 2002-12-19 CN CNB200510090797XA patent/CN100375023C/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101714092B (en) * | 2008-10-08 | 2013-03-13 | 英业达集团(天津)电子技术有限公司 | Method for controlling boot sequence of server |
Also Published As
Publication number | Publication date |
---|---|
CN1262943C (en) | 2006-07-05 |
CN1744042A (en) | 2006-03-08 |
CN1508715A (en) | 2004-06-30 |
CN100375024C (en) | 2008-03-12 |
CN100375023C (en) | 2008-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1251074C (en) | Restarting method for computer | |
CN1261868C (en) | Method of rapid computer start-up | |
CN100573456C (en) | A kind of paralleling multi-processor virtual machine system | |
CN101887393B (en) | Equipment fault reproduction method and system based on para-virtualization technique | |
CN1500243A (en) | Collecting and restoring user environment data using removable storage | |
CN1264082A (en) | Low-power mode computer with simple powder supply | |
CN1316074A (en) | Interrupt/software-controlled thread processing | |
CN1834915A (en) | Method of updating firmware in computer server systems | |
CN102999362A (en) | Method for modifying sequence of boot options of basic input/output system (BIOS) | |
CN102708064A (en) | Multi-phase resume from hibernate | |
CN1818868A (en) | Multi-task parallel starting optimization of built-in operation system | |
CN111881210A (en) | Data synchronization method, device, intranet server and medium | |
CN1825283A (en) | Method for implementing hardware image starting optimizing of embedded operating system | |
CN102331958A (en) | Method for starting hard disk under Linux system | |
US20090164840A1 (en) | System and Method For Managing Root File System | |
CN1262943C (en) | Method for automatically changing start sequence of computer | |
CN100339848C (en) | Method for automatic configuration or restoring of computer system network configuration | |
CN1317846C (en) | Method of realizing internal external network physical partition and its device | |
WO2024119930A1 (en) | Scheduling method and apparatus, and computer device and storage medium | |
CN1892628A (en) | Instant playing operating apparatus for media | |
CN114490023A (en) | High-energy physical calculable storage device based on ARM and FPGA | |
CN105786527B (en) | TigerSharc series DSP starts managing chip and method | |
US20060047927A1 (en) | Incremental provisioning of software | |
CN1251051C (en) | Method and apparatus for rousing computer | |
CN115543246A (en) | BMC and server |
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: 20080312 Termination date: 20201219 |
|
CF01 | Termination of patent right due to non-payment of annual fee |