CN103210372B - A kind of initialized method of board and device - Google Patents

A kind of initialized method of board and device Download PDF

Info

Publication number
CN103210372B
CN103210372B CN201180002219.XA CN201180002219A CN103210372B CN 103210372 B CN103210372 B CN 103210372B CN 201180002219 A CN201180002219 A CN 201180002219A CN 103210372 B CN103210372 B CN 103210372B
Authority
CN
China
Prior art keywords
board
information
configuration
identification information
configuration information
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.)
Active
Application number
CN201180002219.XA
Other languages
Chinese (zh)
Other versions
CN103210372A (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.)
XFusion Digital 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
Publication of CN103210372A publication Critical patent/CN103210372A/en
Application granted granted Critical
Publication of CN103210372B publication Critical patent/CN103210372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4403Processor initialisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to field of computer technology, particularly relates to a kind of initialized method of board and device.Technical scheme of the present invention: first, reads the identification information of board; Then, search in the board configuration entry of preserving in advance and whether contain configuration information corresponding to described identification information, containing the configuration information that described identification information is corresponding in the board configuration entry of preserving in advance if described, then described configuration information is write in the register of board corresponding to described identification information, to complete the initialization of board.The embodiment of the present invention can not rely on the initialization of internal memory, without the need to the switching of cpu address pattern, therefore can not affect the operational efficiency of CPU, thus contributes to board initialization to carry out in advance.

Description

A kind of initialized method of board and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of initialized method of board and device.
Background technology
At present, computer system carries out initialization to boards such as video card, sound card and network interface cards after being all the initialization of CPU and internal memory etc. again, because this type of board initialization will use Basic Input or Output System (BIOS), and this Basic Input or Output System (BIOS) is generally write according to 16 bit address patterns, CPU can be made like this to be 16 bit address patterns by 32 or 64 bit address module converts, after completing board initialization, CPU also will be converted to 32 or 64 bit address patterns again, the switching of CPU operational mode can cause CPU operational efficiency to decline, thus affects the opening computer time.
Summary of the invention
A kind of initialized method of board that the embodiment of the present invention provides and device, can not rely on the initialization of internal memory, without the need to the switching of cpu address pattern, therefore can not affect the operational efficiency of CPU, thus contribute to board initialization to carry out in advance.
Embodiments provide a kind of initialized method of board, comprising:
Read the identification information of board;
Search in the board configuration entry of preserving in advance and whether contain configuration information corresponding to described identification information, containing the configuration information that described identification information is corresponding in the board configuration entry of preserving in advance if described, then described configuration information is write in the register of board corresponding to described identification information, to complete the initialization of board.
The embodiment of the present invention additionally provides the initialized device of a kind of board, comprising:
Read module, for reading the identification information of board;
Matching module, for searching in the board configuration entry of preserving in advance configuration information corresponding to the described identification information that whether reads containing described read module, containing the configuration information that described identification information is corresponding in the board configuration entry of preserving in advance if described, then perform writing module;
Writing module, for being write by described configuration information in the register of board corresponding to described identification information, to complete the initialization of board.
A kind of initialized method of board that the embodiment of the present invention provides and device, the configuration information of its correspondence is found according to the identification information of board, and this configuration information is write in the register of board to complete the initialization of board, the initialization of internal memory can not relied on, without the need to the switching of cpu address pattern, therefore the operational efficiency of CPU can not be affected, thus contribute to board initialization to carry out in advance.
Accompanying drawing explanation
Fig. 1 is the initialized method flow schematic diagram of a kind of board described in the embodiment of the present invention;
Fig. 2 is the method flow schematic diagram of a kind of video card initialization described in the embodiment of the present invention;
Fig. 3 is the initialized apparatus structure schematic diagram of a kind of board described in the embodiment of the present invention.
Embodiment
The initialized method of a kind of board of the present invention, as shown in Figure 1, comprising:
11, the identification information of board is read.
Particularly, the identification information of board comprises VID (production identify label, VendorIdentifier), (equipment identities identifies DID, and/or the version number of PCI (peripheral component interconnection, PeripheralComponentInterconnect) equipment DeviceIdentifier).
12, search in the board configuration entry of preserving in advance whether contain configuration information corresponding to described identification information, if so, then perform 13; If not, then 14 are performed.
Particularly, configuration information can comprise resolution information, frequency information and/or dormancy information etc.
Further, the board configuration entry of preserving in advance can be kept in flash ROM, this flash ROM is generally the chip of the BIOS depositing computer system, the board configuration entry acquisition pattern preserved in advance can comprise: read the configuration information that in initialized board, each register is corresponding, be kept in board configuration entry, described board configuration entry comprises the numerical value of the configuration information of each register address and correspondence.
13, described configuration information is write in the register of board corresponding to described identification information, to complete the initialization of board.
Further, because the internal memory of above-mentioned initialization procedure and computer system has nothing to do, therefore it can be arranged in before internal memory etc. carries out initialization and completes initialization to board.
14, the BIOS (Basic Input or Output System (BIOS), BasicInputOutputSystem) of described board is called, to complete the initialization of board.
Particularly, computer system BIOS finds the BIOS of board, copies in the main memory of this computer system by the BIOS of board, and the CPU of computer system runs the BIOS of board in this main memory with complete call, and then completes the initialization of board.
Board in said method can comprise video card, sound card or network interface card etc.
The embodiment of the present invention, for the initial method of video card, is specifically described a kind of initialized method of board, as shown in Figure 2, comprises:
21, at least one identification information in the version number of VID, DID and PCI equipment of video card is read.
22, search in the video card configuration entry of preserving in advance whether contain configuration information corresponding to described identification information, if so, then perform 23; If not, then 24 are performed.Concrete video card configuration entry can show below, number and the corresponding configuration information of register are not limited to following 3, the configuration information of such as register 1 correspondence can be the resolution of video card, the configuration information of register 2 correspondence can be the refresh rate of video card, and the configuration information of register 3 correspondence can be the dormancy time of video card:
23, by register corresponding with entering video card for described configuration information, to complete the initialization of video card.
Particularly, if the video card identification information read is VID=8086, then determine configuration information corresponding containing this video card in the configuration entry of preserving in advance, therefore the resolution " C2 " of video card is write in register corresponding to video card 1 according to the address " FE4C0081 " of register 1; The refresh rate " E1 " of video card is write in register corresponding to video card 2 according to the address " FE4C0092 " of register 2; The dormancy time " A5 " of video card is write in register corresponding to video card 3 according to the address " FE4C0100 " of register 3; To complete the initialization of video card.
24, the BIOS of video card is called, to complete the initialization of video card.
Particularly, if the video card identification information read is DID=33E1, then determine in the configuration entry of preserving in advance not containing the configuration information that this video card is corresponding, so call the BIOS of video card, this BIOS is the program that computer system completes this video card initialization, makes computer system complete initialization to this video card by calling this BIOS.
Further, the configuration information of video card after reading initialization, be saved in by each configuration information in video card configuration entry accordingly, the video card configuration entry after concrete preservation can show below:
Sometimes register 1 and register 2 can represent the pronouncing frequency of video card simultaneously, and register 3 represents that video card selection is the pronouncing frequency preserved in the pronouncing frequency or register 2 preserved in register 1, namely not necessarily a configuration information only preserved by a register, is also likely that a configuration information is preserved by multiple register.
The initialized device of a kind of board that the embodiment of the present invention provides, as shown in Figure 3, comprising:
Read module 31, for reading the identification information of board.
Particularly, the identification information of board comprises VID (production identify label, VendorIdentifier), (equipment identities identifies DID, and/or the version number of PCI (peripheral component interconnection, PeripheralComponentInterconnect) equipment DeviceIdentifier).
Matching module 32, for searching in the video card configuration entry of preserving in advance configuration information corresponding to the identification information that whether reads containing described read module 31, if so, then performs writing module 33; If not, then calling module 34 is performed.
Particularly, configuration information can comprise resolution information, frequency information and/or dormancy information etc.
Further, the board configuration entry of preserving in advance can be kept in flash ROM, this flash ROM is generally the chip of the BIOS depositing computer system, the board configuration entry acquisition pattern preserved in advance can comprise: read the configuration information that in initialized board, each register is corresponding, be kept in board configuration entry, described board configuration entry comprises the numerical value of the configuration information of each register address and correspondence.
Writing module 33, for being write by described configuration information in the register of board corresponding to described identification information, to complete the initialization of board.
Calling module 34, for calling the BIOS of described board, to complete the initialization of board.
The specific implementation of the processing capacity of each module comprised in said apparatus describes in embodiment of the method before, in this no longer repeated description.
It should be noted that in above-described embodiment, included modules is carry out dividing according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional module, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step realized in above-mentioned each embodiment of the method is that the hardware that can carry out instruction relevant by program completes, corresponding program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
A kind of initialized method of board that the embodiment of the present invention provides and device, the configuration information of its correspondence is found according to the identification information of board, and this configuration information is write in the register of board to complete the initialization of board, without the need to waiting until that internal memory carries out after completing initialization again, namely the initialization of board can not relied on to the initialization of internal memory, without the need to the switching of cpu address pattern, therefore the operational efficiency of CPU can not be affected, thus contribute to board initialization to carry out in advance, and then save the on time, be conducive to more early realize screen input, and then thing user more early see boot-strap information or Debugging message.
The above; be only the present invention's preferably embodiment; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the embodiment of the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (8)

1. the initialized method of board, is characterized in that, comprising:
Read the identification information of board;
Search in the board configuration entry of preserving in advance and whether contain configuration information corresponding to described identification information, containing the configuration information that described identification information is corresponding in the board configuration entry of preserving in advance if described, then described configuration information is write in the register of board corresponding to described identification information, to complete the initialization of board;
Wherein, the described board configuration entry acquisition pattern preserved in advance comprises: read the configuration information that in initialized board, each register is corresponding, be kept in board configuration entry, described board configuration entry comprises the numerical value of the configuration information of each register address and correspondence.
2. method according to claim 1, is characterized in that, the identification information of described board comprises the version number of production identify label VID, equipment identities mark DID and/or peripheral component interconnection PCI equipment.
3. if method according to claim 1, is characterized in that, not containing the configuration information that described identification information is corresponding in the board configuration entry of preserving in advance described, then calls the basic input-output system BIOS of described board, to complete the initialization of board.
4. the method according to any one of claim 1-3, is characterized in that, described configuration information comprises resolution information, frequency information and/or dormancy information.
5. the initialized device of board, is characterized in that, comprising:
Read module, for reading the identification information of board;
Matching module, for searching in the board configuration entry of preserving in advance configuration information corresponding to the described identification information that whether reads containing described read module, containing the configuration information that described identification information is corresponding in the board configuration entry of preserving in advance if described, then perform writing module;
Writing module, for being write by described configuration information in the register of board corresponding to described identification information, to complete the initialization of board;
Wherein, the board configuration entry acquisition pattern preserved in advance described in described matching module comprises: read the configuration information that in initialized board, each register is corresponding, be kept in board configuration entry, described board configuration entry comprises the numerical value of the configuration information of each register address and correspondence.
6. device according to claim 5, is characterized in that, the identification information of the board that described read module reads comprises the version number of production identify label VID, equipment identities mark DID and/or peripheral component interconnection PCI equipment.
7. device according to claim 5, is characterized in that,
Described matching module, if for not containing configuration information corresponding to described identification information in described board configuration entry of preserving in advance, then perform calling module;
Calling module, for calling the basic input-output system BIOS of described board, to complete the initialization of board.
8. the device according to any one of claim 5-7, is characterized in that, described in described matching module, configuration information comprises resolution information, frequency information and/or dormancy information.
CN201180002219.XA 2011-09-08 2011-09-08 A kind of initialized method of board and device Active CN103210372B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/079480 WO2012149730A1 (en) 2011-09-08 2011-09-08 Method and device for initializing board

Publications (2)

Publication Number Publication Date
CN103210372A CN103210372A (en) 2013-07-17
CN103210372B true CN103210372B (en) 2016-03-30

Family

ID=47107754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201180002219.XA Active CN103210372B (en) 2011-09-08 2011-09-08 A kind of initialized method of board and device

Country Status (2)

Country Link
CN (1) CN103210372B (en)
WO (1) WO2012149730A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107025203B (en) * 2017-03-31 2020-09-25 新华三技术有限公司 First board card, second board card and equipment
CN109117332A (en) * 2018-08-29 2019-01-01 郑州云海信息技术有限公司 A kind of information-reading method and device
CN110908943A (en) * 2019-12-09 2020-03-24 迈普通信技术股份有限公司 Board card automatic adapting method, device, network equipment and storage medium
CN112667298A (en) * 2020-12-29 2021-04-16 长沙景嘉微电子股份有限公司 Setting method and device of display card configuration item, storage medium and electronic device
CN113760810A (en) * 2021-08-02 2021-12-07 联想(北京)有限公司 Information processing method, information processing device, equipment and storage medium
CN116560741B (en) * 2023-07-10 2024-04-19 荣耀终端有限公司 Hardware initialization method, medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464387A (en) * 2002-06-26 2003-12-31 联想(北京)有限公司 Hardware equipment drive program installing method and computer therefor
CN101996148A (en) * 2010-09-29 2011-03-30 清华大学 Instrument test board configuration method for a plurality of communication protocols

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090254641A1 (en) * 2008-04-02 2009-10-08 Inventec Corporation Network card capable of remote boot and method thereof
CN101685402A (en) * 2008-09-26 2010-03-31 鸿富锦精密工业(深圳)有限公司 Method for BIOS configuration of computer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464387A (en) * 2002-06-26 2003-12-31 联想(北京)有限公司 Hardware equipment drive program installing method and computer therefor
CN101996148A (en) * 2010-09-29 2011-03-30 清华大学 Instrument test board configuration method for a plurality of communication protocols

Also Published As

Publication number Publication date
CN103210372A (en) 2013-07-17
WO2012149730A1 (en) 2012-11-08

Similar Documents

Publication Publication Date Title
CN103210372B (en) A kind of initialized method of board and device
CN105283855B (en) A kind of addressing method and device
US8631261B2 (en) Context state management for processor feature sets
US9477409B2 (en) Accelerating boot time zeroing of memory based on non-volatile memory (NVM) technology
US20040186988A1 (en) Method, system, and computer-readable medium for updating memory devices in a multi-processor computer system
CN102609741B (en) A kind of method of exchanges data between mobile device and inside and outside portion storage card thereof
CN100458736C (en) NAND flash information extraction method and NAND flash automatic identification method
CN1936866A (en) Flash memory body storing mechanism with data restoring function
CN103413569B (en) One reads and one writes static RAM
JP2014508332A (en) Determination method, determination apparatus, determination system, and storage medium
CN102467420A (en) System and method for storing and restoring configuration information of external board card
CN101178933B (en) Flash memory array device
WO2007078552A3 (en) Computer architecture for providing physical separation of computing processes
CN103970683A (en) Method for accelerating starting of USB flash disk
CN105404591B (en) Processor system and its memory control methods
US9477597B2 (en) Techniques for different memory depths on different partitions
CN113220639B (en) File storage system control device for space application
CN101702141B (en) Method and device supporting dynamic working mode of high-density card
CN104268005B (en) Virtual machine awakening method and device
CN204965422U (en) Multi -protocols cryptographic algorithm treater and system on chip/SOC
CN103049214B (en) Magnetic disc array card and there is the disc array system of extended function
CN105608014A (en) MRAM-using memory device
CN112486904A (en) Register file design method and device for reconfigurable processing unit array
CN101825994A (en) Firmware-based flash memory array management device and method independent of operating system
CN102841853A (en) Memory management table processing method, memory controller and memory storing device

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211224

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: xFusion Digital Technologies Co., Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.