WO2011116621A1 - 电子设备、可配置的部件及其配置信息存储方法 - Google Patents
电子设备、可配置的部件及其配置信息存储方法 Download PDFInfo
- Publication number
- WO2011116621A1 WO2011116621A1 PCT/CN2011/000304 CN2011000304W WO2011116621A1 WO 2011116621 A1 WO2011116621 A1 WO 2011116621A1 CN 2011000304 W CN2011000304 W CN 2011000304W WO 2011116621 A1 WO2011116621 A1 WO 2011116621A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- configuration information
- component
- electronic device
- storage medium
- output system
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/51—Source to source
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
-
- 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
- G06F8/654—Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/22—Microcontrol or microprogram arrangements
- G06F9/24—Loading of the microprogram
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
Definitions
- the present invention relates to electronic technology, and more particularly to an electronic device, a configurable component, and a configuration information storage method for a configurable component. Background technique
- EEPR0M electrically erasable programmable read only memory
- this configuration information includes the physical network (MAC) address of the network card and other configuration parameters related to the boot.
- MAC physical network address
- the configuration parameters in the EEPR0M are loaded into the NIC configuration space to complete the configuration of the NIC working state.
- the prior art replaces the EEPR0M with a one-time programmable device E-fuse memory in a configurable component such as a network card to reduce costs.
- E-fuse is a one-time-programming memory.
- POST power-on self-test
- the technical problem to be solved by the present invention is to provide an electronic device that addresses the storage needs of configuration information applied to configurable components in the electronic device.
- the present invention provides a configuration information storage method of a configurable component, the component is applied to an electronic device, and functional configuration is possible, and the method includes:
- the basic input output system stores the compiled default configuration information into a motherboard storage medium of the electronic device.
- the component includes an option read only memory
- the method further comprising: when the electronic device is powered on again, an option read only memory of the component is obtained from the motherboard storage medium by the basic input output system
- the compiled default configuration information is loaded into the component by the input/output address of the component.
- the method further comprises:
- the basic input output system acquires the default configuration information from the motherboard storage medium, and loads the default configuration information into the component by using an input/output address of the component. .
- the method further comprises:
- the basic input output system stores the updated configuration information to the motherboard storage medium according to the call of the option read-only memory. in.
- the method further comprises:
- the basic input output system acquires the updated configuration information according to the input/output address of the component, and the updated configuration is Information is stored in the motherboard storage medium.
- the method comprises:
- the input/output address is compiled into the basic input output system along with the default configuration information.
- the basic input output system stores the default configuration information in the motherboard storage medium according to a standard interrupt or a system management interrupt.
- Another technical problem to be solved by the present invention is the need to provide a configurable component to address the storage needs of the configuration information of the component.
- the present invention provides an electronic device including a component of the line function configuration, where the electronic device includes an acquisition module, configured to acquire initial configuration information of the component;
- a compiling module configured to compile the initial configuration information as default configuration information of the component into a basic input/output system of the electronic device
- the basic input/output system is configured to store the compiled default configuration information into a mainboard storage medium of the electronic device when the electronic device is powered on;
- the mainboard storage medium is configured to store the default configuration information.
- the electronic device further comprises:
- An optional read-only memory of the component configured to obtain the default configuration information from the mainboard storage medium through the basic input/output system when the electronic device is powered on again
- the basic input/output system acquires the default configuration information from the mainboard storage medium, and the read-only storage access of the component passes the input/output of the component The address loads the default configuration information into the component.
- the electronic device further comprises:
- Optional read-only memory used to call the basic input/output system when the user updates the configuration information of the component
- the basic input output system is configured to store the updated configuration information into the motherboard storage medium according to the call of the option read only memory.
- the basic input/output system is configured to acquire the updated configuration information according to an input/output address of the component when the user updates the configuration information of the component, and store the updated configuration information to the In the motherboard storage medium.
- the acquiring module is configured to acquire the input/output address when acquiring the initial configuration information, obtain updated configuration information according to the input/output address, and store the updated configuration information to the In the motherboard storage medium;
- the compiling module is configured to compile the input/output address with the default configuration information into the basic input output system.
- the present invention provides a functionally configurable component, the component being applied to an electronic device, the electronic device comprising a basic input/output system, and a storage medium provided on a main board of the electronic device, wherein The component includes an optional read-only memory, where:
- the option read-only memory after the electronic device is started, acquiring default configuration information of the component from the storage medium through the basic input/output system; and the component is configured to input/output according to itself Address loading the default configuration letter
- the option read-only memory is further used by a user to update configuration information of the component, and is used to invoke the basic input/output system after the user updates the configuration information of the component; the basic input output system is further used for The updated configuration information is stored in the storage medium.
- the present invention also provides a functionally configurable component, the component being applied to an electronic device, the electronic device comprising a basic input/output system, and a storage medium provided on a main board of the electronic device, wherein:
- the component is configured to load the default configuration information according to an input/output address of the electronic device and the basic input/output system after the electronic device is started;
- the basic input/output system is configured to obtain the default configuration information from the storage medium after the electronic device is started.
- the component further comprises:
- Optional read-only memory further configured for the user to update the configuration information of the component, and used to invoke the basic input/output system after the user updates the configuration information of the component; wherein the basic input/output system is further used to The call of the option read-only memory stores the updated configuration information into the storage medium.
- an embodiment of the present invention has at least the following technical effects:
- the network card of the computer no longer needs a special EEPR0M or E-fuse memory, and the storage and loading of the network card configuration parameters are all performed by the basic input/output system (BIOS).
- BIOS basic input/output system
- the service function controls the implementation without additional hardware, reduces the cost, and simplifies the circuit design of the motherboard.
- the motherboard circuit no longer has storage devices such as EEPROM or E-fuse memory, and the circuit board design is simplified and the space is expanded.
- FIG. 1 is a schematic flow chart of a first embodiment of a storage method according to the present invention.
- FIG. 2 is a schematic flow chart of a second embodiment of a storage method according to the present invention.
- FIG. 3 is a schematic flow chart of a third embodiment of a storage method according to the present invention.
- FIG. 4 is a schematic flow chart of a fourth embodiment of a storage method according to the present invention.
- FIG. 5 is a schematic structural diagram of a first embodiment of an electronic device according to the present invention.
- FIG. 6 is a schematic diagram of the composition of a second embodiment of an electronic device according to the present invention. detailed description
- EEPR0M The meaning of EEPR0M is very different, and this saving can affect the production cost of the motherboard on the electronic device. Therefore, finding a way to save EEPR0M without adding extra cost is of great value to electronics design manufacturers.
- the core idea of the present invention is to replace the EEPR0M with the existing storage medium on the main board of the electronic device to realize the storage of the configuration information, and construct a component chip (chip) to the storage medium on the main board through the basic input/output system (BIOS) of the electronic device.
- the transmission channel between the components realizes the update and storage of the configuration information of the components.
- the network card chip due to the working principle between the network card chip, the network card option read-only memory (optionrom) and the network card external EEPR0M, if only looking for a space to replace the EEPR0M on the motherboard, the existing network card cannot be guaranteed.
- the solution of this solution is to provide the operation service function through the basic input/output system (BIOS).
- BIOS basic input/output system
- BIOS service function such as calling the BIOS service function by the option read-only memory to read and write the existing storage medium of the motherboard.
- the NIC When the NIC is configured at the factory, store the configuration information of the NIC in the existing storage medium of the motherboard through BIOS or other means.
- the NIC option read-only memory obtains the configuration information of the network card stored on the main board through the BIOS, and loads the configuration information into the network card chip.
- the option read-only memory stores the updated configuration information through the BIOS to the existing storage medium of the motherboard. In this mode, the BIOS is serviced by the option read-only memory to obtain configuration information and update configuration information.
- BI0S provides the service function interface for obtaining and updating.
- BIOS By modifying the BIOS, for example, directly reading and writing the existing storage medium of the motherboard by the BIOS.
- the NIC When the NIC is configured at the factory, store the configuration information of the NIC in the existing storage medium of the motherboard.
- the developer obtains the I/O address of the NIC chip in advance and compiles the I/O address into the BIOS.
- the BIOS passes the I/O ground of the network card chip. The address directly loads the configuration information of the network card stored on the existing storage medium of the motherboard to the network card chip, and can accept the update of the user.
- the BIOS After the configuration information of the network card is updated, after the network card option read-only memory is finished running, the BIOS obtains the updated configuration information from the network card chip, and stores the updated configuration information in the existing storage medium of the motherboard. Compared with the above mode (1), the BIOS is more actively acquired or stored, and does not need to wait for the call of the option read-only memory.
- This service function can be, for example, a standard interrupt (Interrup) or a system management interrupt (SMI).
- Interrup a standard interrupt
- SMI system management interrupt
- FIG. 1 is a schematic flow chart of a first embodiment of a method according to the present invention.
- the first embodiment of the method employs the above mode (1), and selects a complementary metal oxide semiconductor (CMOS) chip as a storage medium of the main board to store and update the configuration information of the network card.
- CMOS complementary metal oxide semiconductor
- the first embodiment of the method mainly includes the following steps:
- Step S110 when the motherboard is developed, obtain initial configuration information of the computer network card in advance, such as factory default configuration information obtained from a computer network card vendor, etc.
- Step S120 when the motherboard BIOS is developed, the initial configuration information acquired in advance is taken as The default configuration information of the network card is compiled into the BIOS code (code); when the BIOS compiles, the default configuration information is stored in the BIOS code (code).
- the BIOS stores the default configuration information compiled in the BIOS code in a storage medium on the motherboard of the computer motherboard complementary metal oxide semiconductor (CMOS) chip;
- CMOS complementary metal oxide semiconductor
- Step S140 after starting the computer again (including the first time after the first time), the network card option read-only memory obtains the configuration information of the network card from the motherboard CMOS chip through the BIOS service function, and passes the network card chip I/O address.
- the configuration information is loaded into the network card chip;
- Step S150 after the user updates the configuration information of the network card through the network card configuration interface provided by the option read-only memory, the option read-only memory calls the BIOS, and the updated configuration information is used as a BIOS entry parameter, and the updated configuration information is stored by the BIOS.
- the motherboard CMOS chip select the load when the computer starts next time.
- the computer will load the configuration information stored in the CMOS chip by default. If there is a user update, the configuration information update in step S130 is performed.
- the configuration information stored in the CMOS chip may be the default network card configuration information when the BIOS is shipped, or it may be the configuration information after the user updates.
- the CMOS chip and the flash chip have a number of bytes of storage space, the default configuration information at the factory and the configuration information after the runtime update can exist at the same time, and the BIOS can dynamically judge the whole. The state of the computer, which in turn determines which configuration information to load.
- the BIOS when first used after leaving the factory, the BIOS loads the default configuration information at the factory; when a user update occurs during use, the BIOS loads the configuration information after the user updates; when the computer has some error or through the operating system ( OS)
- OS operating system
- the BIOS service When the BIOS service is called, the BIOS can be restored to the default configuration information when the factory is loaded, which makes the whole system more flexible and intelligent.
- the second embodiment of the method of the present invention mainly includes the following steps:
- Step S210 when the motherboard is developed, obtain initial configuration information of the computer network card, such as factory default configuration information obtained from a computer network card vendor (vendor), etc.;
- Step S220 when the motherboard BIOS is developed, the initial configuration information acquired in advance is taken as The default configuration information of the network card is compiled into the BIOS code; the default configuration information is stored in the BIOS code when the BIOS is compiled, and the default configuration information in the code is stored on the motherboard storage medium during the first power-on of the BIOS;
- Step S230 after the computer is powered on for the first time, the BIOS stores the default configuration information compiled in the BIOS code to the storage medium on the motherboard of the BIOS flash chip; in step S240, the computer is started again (including each time after the first time) ( On the computer After the NIC, the NIC option read-only memory obtains the configuration information of the NIC from the BIOS flash chip through the BIOS service function, and loads the configuration information into the NIC chip through the NIC chip I/O address;
- Step S250 after the user updates the configuration information of the network card through the network card configuration interface provided by the option read-only memory, the option read-only memory calls the BIOS, and the updated configuration information is used as an entry parameter, and the updated configuration information is stored by the BIOS to the BIOS.
- the BIOS In the flash chip, it is selected for loading when the computer starts next time.
- FIG. 3 is a schematic flow chart of a third embodiment of the method of the present invention.
- the third embodiment of the method adopts the above (2) mode, and selects a CMOS chip as a storage medium of the main board to store and update configuration information of the network card.
- the third embodiment of the method mainly includes the following steps:
- Step S310 when the motherboard is developed, the initial configuration information of the computer network card and the I/O address of the network card chip are obtained in advance, and the initial configuration information is, for example, the factory default configuration information obtained from a computer network card vendor or the like;
- Step S320 when the motherboard BIOS is developed, the initial configuration information obtained in advance is used as the default configuration information of the network card, and the default configuration information is compiled into the BIOS code together with the network card I/O address; the default configuration information is compiled when the BIOS is compiled.
- the BIOS code Stored in the BIOS code, during the first power-on of the BIOS, the default configuration information in the code will be stored on the motherboard storage medium;
- Step S330 after the computer is powered on for the first time, the BIOS stores the default configuration information compiled in the BIOS code to a storage medium on the motherboard of the computer motherboard CMOS chip;
- Step S340 after starting the computer again (including the first time after the first time), the BIOS obtains the configuration information of the network card from the motherboard CMOS chip, and loads the configuration information into the network card chip through the network card chip I/O address;
- Step S350 after the user updates the configuration information of the network card through the network card configuration interface provided by the option read-only memory, the BIOS obtains the updated configuration information from the I/O address of the network card chip, and stores the updated configuration information in the motherboard CMOS. In the chip, select the load when the computer starts next time.
- FIG. 4 is a schematic flow chart of a fourth embodiment of a method according to the present invention.
- Fourth embodiment of the method The above (2) mode is adopted, and the BIOS flash chip is selected as the storage medium of the motherboard to store and update the configuration information of the network card.
- the fourth embodiment of the method mainly includes the following steps:
- step S410 when the motherboard is developed, the initial configuration information of the computer network card and the I/O address of the network card are obtained in advance, and the initial configuration information is, for example, the factory default configuration information obtained from a computer network card vendor (vendor);
- Step S420 when the motherboard BIOS is developed, the initial configuration information obtained in advance is used as the default configuration information of the network card, and the default configuration information is compiled into the BIOS code together with the I/O address of the network card; the BIOS configures the default configuration.
- the information is stored in the BIOS code.
- the default configuration information in the code is stored on the motherboard storage medium.
- Step S430 after the computer is powered on for the first time, the BIOS stores the default configuration information compiled in the BIOS code to the storage medium on the motherboard of the computer BIOS flash memory chip; in step S440, the computer is started again (including each time after the first time) ( After the computer is powered on, the BIOS obtains the configuration information of the network card from the BIOS flash chip, and loads the configuration information into the network card chip through the I/O address of the network card chip;
- Step S450 after the user updates the configuration information of the network card through the network card configuration interface provided by the option read-only memory, the BIOS obtains the updated configuration information from the network card I/O address, and stores the updated configuration information to the BIOS flash chip. Medium, for the computer to choose to load the next time you start.
- FIG. 5 is a schematic diagram of the composition of a first embodiment of an electronic device according to the present invention.
- the electronic device is exemplified by a computer, and the network card in the computer is a component that can be functionally configured in the embodiment.
- the first embodiment of the electronic device shown in FIG. 5 mainly includes an obtaining module 510, a compiling module 520, and a basic input/output system (BIOS). 530.
- the obtaining module 510 is configured to obtain initial configuration information of the computer network card.
- the compiling module 520 is connected to the obtaining module 510, and is configured to compile the initial configuration information acquired by the obtaining module 510 into the code of the BIOS 530 as the default configuration information of the network card in the development stage of the BIOS 530;
- the BIOS 530 is connected to the compiling module 520, and is configured to store the default configuration information compiled in the BIOS code into the motherboard storage medium 540 according to the call of the option read-only memory 550 after the first power-on operation of the computer; (including each time after the first time) power-on operation, obtaining configuration information of the network card from the motherboard storage medium 540 according to the call of the option read-only memory 550, and loading the configuration information to the network card chip through the network card chip I/O address;
- the configuration information is stored in the motherboard storage medium 540 according to the call of the option read-only memory 550, so that the computer selects to load when the computer starts next time;
- the motherboard storage medium 540 is connected to the BIOS 530 for storing network card configuration information (including default configuration information and user updated configuration information).
- This embodiment is described by using a CMOS chip on the motherboard as the storage medium 540.
- the BIOS flash memory chip on the motherboard can also be used as the motherboard storage medium 540 in the present invention.
- An optional read-only memory 550 is connected to the BIOS 530.
- the BIOS 530 obtains the configuration information of the network card from the mainboard storage medium 540 by calling the service function of the BIOS 530 when the computer is powered on again.
- the update of the configuration information of the network card by the user through the network card configuration interface is accepted, and the updated configuration information is used as an entry parameter of the BIOS 530 to invoke the BIOS 530, and the updated configuration information is stored by the BIOS to the motherboard storage medium 540. in.
- the BIOS 530 described above provides a standard interrupt or system management interrupt for storing configuration information of the network card into the motherboard storage medium 540 and reading the network card configuration information from the motherboard storage medium 540.
- FIG. 6 is a schematic diagram of the composition of a second embodiment of an electronic device according to the present invention.
- the electronic device is exemplified by a computer
- the network card in the computer is a component that can be functionally configured in the embodiment.
- the second embodiment of the electronic device shown in FIG. 6 mainly includes an obtaining module 610, a compiling module 620, a BIOS 630, and a motherboard storage.
- Medium 640 and option read only memory (option read only memory) 650 where:
- the obtaining module 610 is configured to obtain initial configuration information of the computer network card and an I/O address of the network card;
- the compiling module 620 is connected to the obtaining module 610 for development in the BIOS 630.
- the initial configuration information acquired by the obtaining module 610 is used as the default configuration information of the network card, and the default configuration information is compiled into the code of the BIOS 630 together with the I/O address of the network card;
- the BIOS 630 is connected to the compiling module 620, and is configured to store default configuration information compiled in the BIOS code to the mainboard storage medium 640 after the computer is first powered on; for use in the computer again (including after each time)
- the default configuration information is read from the motherboard storage medium 640, and the default configuration information is loaded into the network card chip through the network card I/O address; and is also used when the user updates the configuration information of the network card, the slave network card Obtaining the updated configuration information in the I/O address, and storing the updated configuration information in the motherboard storage medium 640 for selecting to load when the computer starts next time; the motherboard storage medium 640, and the BIOS 630 Connected, configured to store the configuration information of the network card (including the default configuration information and the updated configuration information of the user); this embodiment is described by using the BIOS flash memory chip on the motherboard as the storage medium 640, and in other embodiments, a CMOS chip on the motherboard as the motherboard storage medium 640 in the present invention;
- Optional read-only memory 650 connected to the BIOS 630, is used to provide a network card configuration interface when the computer is running, and accepts updates made by the user through the network card configuration interface to the configuration information of the network card.
- the motherboard CMOS chip or the BIOS flash chip is used as the motherboard storage medium in the present invention to describe the technical solution of the present invention, but those skilled in the art should understand that the motherboard CMOS chip or The BIOS flash chip is merely an exemplary embodiment of a storage medium on the motherboard of the present invention.
- an existing storage medium on a main board of an electronic device can be applied to the present invention as a storage medium of configuration information of a component (e.g., a network card) that can be functionally configured as long as it can be accessed by the BIOS.
- the invention also proposes a component that can be functionally configured.
- the component can be applied to an electronic device, the electronic device comprising a BIOS, and a storage medium on the main board of the electronic device.
- the electronic device is a computer
- the component is a network card.
- the motherboard storage medium is a CMOS chip (other embodiments may also be a BIOS flash chip).
- the component also includes an optional read-only memory (option read-only memory) that is used by the computer after booting
- the BIOS obtains the default configuration information of the network card from the CMOS chip, and the network card is used to load the default configuration information according to its own input/output address.
- the option read-only memory is further configured to provide a network card configuration interface for accepting user configuration information for updating the network card; the option read-only memory is further configured to update the network card at the user
- the BIOS is called after the configuration information; the BIOS is further used to store the updated configuration information in the CMOS chip for loading and selecting when the computer starts up next time.
- the component can be applied to an electronic device, the electronic device comprising a BIOS, and a storage medium on the main board of the electronic device.
- the electronic device is a computer
- the component is a network card
- the motherboard storage medium is a BIOS flash chip (other embodiments may also be a CMOS chip).
- the NIC is used to load the default configuration information according to its input/output address and BIOS after the computer is started.
- the BIOS is used to obtain the default configuration information from the BIOS flash chip after the computer is started.
- the network card further includes an option read only memory (option read only memory), the option read only memory is further used by the user to update the configuration information of the component, and is used after the user updates the configuration information of the component.
- the BIOS the BIOS is further configured to store the updated configuration information in the BIOS flash chip according to the call of the option read-only memory.
- the BIOS when the BIOS flash memory is used to store the configuration information of the network card, the BIOS may compile the default state of the network card setting information, and the BIOS provides a service function for reading and writing the network card setting information stored in the existing media of the motherboard.
- the BIOS For network card options read-only memory or application calls under the OS, it is convenient to implement the factory state settings and changes for each computer.
- the BIOS provides a service function for reading and writing network card configuration information, which enables the computer to be flexibly invoked by the production line program during the factory production phase to implement the configuration and modification of the network card's factory information, and these runtime service functions provide the network card option.
- the standard interactive interface between the read-only memories, the BIOS service function is responsible for reading and writing the network card configuration information in the storage medium on the motherboard, and the network card option read-only memory program calls the BIOS service function to implement loading and saving of the network card information, so that the BIOS service function It is not necessary to know the 10-space address of the specific network card, and only responsible for reading the last saved configuration information from the main board and sending it to Optional read-only memory and information updates sent from the option read-only memory are saved to the motherboard media.
- the invention is not limited to any specific combination of hardware and software. '
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Description
电子设备、 可配置的部件及其配置信息存储方法
技术领域
本发明涉及电子技术, 尤其涉及一种电子设备、 一种可配置的部 件以及一种可配置的部件的配置信息存储方法。 背景技术
目前, 计算机等电子设备系统中的可配置的部件(如网卡等) 都 需要电可擦写可编程只读存储器 (EEPR0M) 来存储配置信息。 以计算 机的网卡为例, 这种配置信息包括网卡物理(MAC)地址以及与引导相 关的其他配置参数。在计算机启动过程中,将 EEPR0M中的配置参数加 载到网卡配置空间, 完成网卡工作状态的配置。
现有技术在网卡等可配置的部件中采用一次可编程器件 E-fuse 存储器来替代 EEPR0M, 以求降低成本。
在实现本发明过程中, 发明人发现现有技术至少存在如下问题:
( 1 ) E-fuse 属于一次可编程存储器 ( one-time-programming memory) , 用户在电子设备上电自检(POST)阶段调用部件的配置界面 进行配置操作时,会减少 E-fuse空余的有效位,用户的操作次数稍多, 很快就会使 E-fuse剩余的有效位减为 0而无法再继续配置;
( 2 ) E-fuse存储器虽然能够代替 EEPR0M在部件上完成配置信息 的存储, 但是 E-fuse存储器本身仍具有较高的成本。 发明内容
本发明所要解决的技术问题是需要提供一种电子设备, 以解决应 用于该电子设备中的可配置的部件的配置信息的存储需要。
为了解决上述技术问题, 本发明提供了一种可配置的部件的配置 信息存储方法, 所述部件应用于电子设备, 并且可以进行功能配置, 所述方法包括:
获取所述电子设备中所述部件的初始配置信息;
将所述初始配置信息作为所述部件的默认配置信息编译到所述
电子设备的基本输入输出系统中;
所述电子设备上电时, 所述基本输入输出系统将所编译的默认配 置信息存储到所述电子设备的主板存储介质中。
优选地, 所述部件包括选项只读存储器, 该方法进一步包括- 所述电子设备再次上电时, 所述部件的选项只读存储器通过所述 基本输入输出系统从所述主板存储介质中获取所编译的默认配置信 息,并通过所述部件的输入 /输出地址将所述默认配置信息加载到所述 部件。
优选地, 该方法进一步包括:
所述电子设备再次上电时, 所述基本输入输出系统从所述主板存 储介质中获取所述默认配置信息,并通过所述部件的输入 /输出地址将 所述默认配置信息加载到所述部件。
优选地, 该方法进一步包括:
用户通过所述部件的选项只读存储器更新所述部件的配置信息 时, 所述基本输入输出系统根据所述选项只读存储器的调用, 将所述 更新后的配置信息存储到所述主板存储介质中。
优选地, 该方法进一步包括:
用户通过所述部件的选项只读存储器更新所述部件的配置信息 时,所述基本输入输出系统根据所述部件的输入 /输出地址获取所述更 新后的配置信息, 将所述更新后的配置信息存储到所述主板存储介质 中。
优选地, 该方法包括:
获取所述初始配置信息时, 获取所述输入 /输出地址;
将所述输入 /输出地址与所述默认配置信息一起编译到所述基本 输入输出系统中。
优选地, 所述基本输入输出系统根据标准中断或者系统管理中 断, 将所述默认配置信息存储到所述主板存储介质中。
本发明所要解决的另一技术问题是需要提供一种可配置的部件, 以解决该部件的配置信息的存储需要。
为了解决上述技术问题, 本发明提供了一种电子设备, 包括可进
行功能配置的部件, 其中, 该电子设备包括- 获取模块, 用于获取所述部件的初始配置信息;
编译模块, 用于将所述初始配置信息作为所述部件的默认配置信 息编译到所述电子设备的基本输入输出系统中;
所述基本输入输出系统, 用于所述电子设备上电时将所编译的默 认配置信息存储到所述电子设备的主板存储介质中;
所述主板存储介质, 用于存储所述默认配置信息。
优选地, 该电子设备进一步包括:
所述部件的选项只读存储器, 用于所述电子设备再次上电时, 通 过所述基本输入输出系统从所述主板存储介质中获取所述默认配置信 息
优选地, 所述电子设备再次上电时, 所述基本输入输出系统从所 述主板存储介质中获取所述默认配置信息, 并且所述部件的只读存储 存取通过所述部件的输入 /输出地址将所述默认配置信息加载到所述 部件。
优选地, 该电子设备进一步包括:
选项只读存储器, 用于用户更新所述部件的配置信息时调用所述 基本输入输出系统;
所述基本输入输出系统用于根据所述选项只读存储器的调用, 将 所述更新后的配置信息存储到所述主板存储介质中。
优选地, 所述基本输入输出系统用于用户更新所述部件的配置信 息时根据所述部件的输入 /输出地址获取所述更新后的配置信息,并将 所述更新后的配置信息存储到所述主板存储介质中。
优选地, 所述获取模块用于获取所述初始配置信息时, 获取所述 输入 /输出地址, 根据所述输入 /输出地址获取更新后的配置信息, 将 所述更新后的配置信息存储到所述主板存储介质中;
所述编译模块用于将所述输入 /输出地址与所述默认配置信息一 起编译到所述基本输入输出系统中。
本发明所要解决的另一技术问题是需要提供一种可配置的部件 的配置信息存储方法, 以解决该部件的配置信息的存储需要。
为了解决上述技术问题, 本发明提供了一种可进行功能配置的部 件, 该部件应用于电子设备, 该电子设备包含基本输入输出系统, 以 及该电子设备的主板上设置有存储介质, 其中, 该部件包括选项只读 存储器, 其中:
所述选项只读存储器, 用于所述电子设备启动后, 通过所述基本 输入输出系统从所述存储介质中获取所述部件的默认配置信息; 以及 所述部件用于根据自身的输入 /输出地址加载所述默认配置信
Λ白∑;、。
优选地, 所述选项只读存储器进一步用于用户更新所述部件的配 置信息, 并用于在用户更新所述部件的配置信息后调用所述基本输入 输出系统; 所述基本输入输出系统进一步用于将所述更新后的配置信 息存储到所述存储介质中。
为了解决上述技术问题, 本发明还提供了一种可进行功能配置的 部件, 该部件应用于电子设备, 该电子设备包含基本输入输出系统, 以及该电子设备的主板上设置有存储介质, 其中:
所述部件用于所述电子设备启动后, 根据自身的输入 /输出地址 以及所述基本输入输出系统加载所述默认配置信息;
其中, 所述基本输入输出系统用于所述电子设备启动后从所述存 储介质中获取所述默认配置信息。
优选地, 该部件进一步包括:
选项只读存储器, 进一步用于用户更新所述部件的配置信息, 并 用于在用户更新所述部件的配置信息后调用所述基本输入输出系统; 其中, 所述基本输入输出系统进一步用于根据所述选项只读存储 器的调用将所述更新后的配置信息存储到所述存储介质中。
与现有技术相比, 本发明的一个实施例至少具有如下技术效果: 计算机的网卡不再需要专门的 EEPR0M或者 E-fuse存储器, 网卡配置 参数的存储和加载都由基本输入输出系统 (BIOS ) 服务功能来控制实 现, 无须额外增加其他硬件, 降低了成本, 并且简化了主板的电路设 计, 主板线路中不再有 EEPROM或者 E-fuse存储器等存储设备, 主板 线路设计得以简化, 空间得到扩展。
本发明的其它特征和优点将在随后的说明书中阐述, 并且, 部分 地从说明书中变得显而易见, 或者通过实施本发明而了解。 本发明的 目的和其他优点可通过在说明书、 权利要求书以及附图中所特别指出 的结构来实现和获得。 附图说明
附图用来提供对本发明的进一步理解, 并且构成说明书的一部 分, 与本发明的实施例一起用于解释本发明, 并不构成对本发明的限 制。 在附图中:
图 1为本发明存储方法第一实施例的流程示意图;
图 2为本发明存储方法第二实施例的流程示意图;
图 3为本发明存储方法第三实施例的流程示意图;
图 4为本发明存储方法第四实施例的流程示意图;
图 5为本发明电子设备第一实施例的组成示意图; 以及
图 6为本发明电子设备第二实施例的组成示意图。 具体实施方式
以下将结合附图及实施例来详细说明本发明的实施方式, 借此对 本发明如何应用技术手段来解决技术问题, 并达成技术效果的实现过 程能充分理解并据以实施。
需要说明的是, 如果不冲突, 本发明实施例以及实施例中的各个 特征可以相互结合, 均在本发明的保护范围之内。 另外, 在附图的流 程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执 行, 并且, 虽然在流程图中示出了逻辑顺序, 但是在某些情况下, 可 以以不同于此处的顺序执行所示出或描述的步骤。
很长一段时间以来, 可配置的部件 (如网卡) 外置的 EEPROM的 成本对于整个电子设备 (如计算机) 的成本来说只占很小的一部分。 以计算机上的网卡为例, 业内的计算机产品上的网卡一直采用外置的 EEPROM的设计。在计算机行业利润和成本越来越敏感, 以及各设计生 产厂商的竞争日益激烈的如今,如何尽可能地节省计算机系统的成本,
对计算机生产厂商就显得尤为重要。 因此, 能够节省部件上外置的
EEPR0M的意义已经大不相同,这种节省可以影响到电子设备上主板的 生产成本。因此,找到一种既可以节省 EEPR0M而又不增加额外成本的 方法, 对电子设备设计生产厂商而言就具有相当的价值。
本发明的核心思想是采用电子设备的主板上现有存储介质替换 EEPR0M来实现配置信息的存储,并通过电子设备的基本输入输出系统 (BIOS)来构建部件芯片(chip)到主板上存储介质之间的传输通道, 实现部件的配置信息的更新保存。 以网卡芯片为例, 由于网卡芯片、 网卡选项只读存储器 (optionrom) 和网卡外置 EEPR0M三者之间的工 作原理,如果只是在主板上寻找一片替代 EEPR0M的空间,还无法保证 现有网卡正常工作, 因为网卡芯片和网卡选项只读存储器根本不知道 现有的配置信息存储在哪里以及如何读取和如何更新所述配置信息。 本方案的解决方案是通过基本输入输出系统 (BIOS) 来提供操作服务 功能, 通过和网卡芯片以及网卡选项只读存储器配合, 利用主板现有 的存储介质来存储网卡配置信息。
通过 BIOS这一底层功能的介入, 可以根据实际应用实现如下不 同模式的配置信息存储、 加载和更新等操作:
( 1 )通过增强 BIOS服务功能来实现, 比如由选项只读存储器调 用 BIOS服务功能来读写主板现有的存储介质。当出厂配置网卡时,通 过 BIOS 或者其他途径等在主板现有的存储介质中存储一份网卡的配 置信息。计算机上电后, 网卡选项只读存储器通过 BIOS获取存储在主 板上的网卡的配置信息, 并将该配置信息加载到网卡芯片。 使用过程 中, 在用户对网卡的配置信息进行更新后, 选项只读存储器通过 BIOS 将更新后的配置信息存储到主板现有的存储介质中。 在这种模式下, 由选项只读存储器主动调用 BIOS 服务来获取配置信息和更新配置信 息, BI0S提供获取和更新的服务功能接口即可。
( 2 ) 通过修改 BIOS来实现, 比如直接由 BIOS来读写主板现有 的存储介质。 当出厂配置网卡时, 在主板现有的存储介质中存储一份 网卡的配置信息。开发人员提前获取网卡芯片的 I/O地址,并将该 I/O 地址编译到 BIOS中。 在计算机上电时, BIOS通过网卡芯片的 I/O地
址直接把主板现有存储介质上存储的网卡的配置信息加载到网卡芯 片, 并可接受用户的更新。 在网卡的配置信息有更新的情况下, 网卡 选项只读存储器运行完毕后, BIOS从网卡芯片中获取更新后的配置信 息, 并将该更新后的配置信息存储到主板现有的存储介质中。 相比上 述第 (1 ) 种模式, BIOS 更多地去主动获取或存储, 并不需要等待选 项只读存储器的调用。
在上述第 (1 )种实现方式中, 可以通过增强 BIOS的服务功能来 实现。该服务功能比如可以是标准中断(Interrup), 也可以是系统管 理中断 (SMI )。
需要说明的是, 上述两种实现方式, 是以计算机中的网卡为例进 行举例说明的。 本发明的上述实现方式, 以及如下所述的实施方式均 不限于计算机网卡, 任何通过外置存储器存储配置信息并且配置信息 可进行配置的部件, 均适用于本发明的核心思想和技术方案。
图 1为本发明方法第一实施例的流程示意图。该方法第一实施例 是采用上述第(1 )种模式, 并选择互补金属氧化物半导体(CMOS)芯 片作为主板的存储介质来存储和更新网卡的配置信息。 如图 1所示, 该方法第一实施例主要包括如下步骤:
步骤 S110, 主板开发时, 提前获取计算机网卡的初始配置信息, 比如从计算机网卡销售者 (vendor) 等处获取的出厂默认配置信息; 步骤 S120, 主板 BIOS开发时, 将提前获取的初始配置信息作为 网卡的默认配置信息编译到 BIOS代码 (code ) 中; BIOS编译时会将 该默认配置信息存储到 BIOS代码 (code) 中, 计算机首次上电 BIOS 运行过程中, 会把代码中的默认配置信息存储到主板存储介质上; 步骤 S130, 计算机首次上电运行后, BIOS将编译在 BIOS代码中 的默认配置信息存储到该计算机主板互补金属氧化物半导体 (CMOS) 芯片这一主板上的存储介质中;
步骤 S140, 再次(包括首次之后的每次)启动计算机(计算机上 电) 后, 网卡选项只读存储器通过 BIOS服务功能从主板 CMOS芯片中 获取网卡的配置信息,并通过网卡芯片 I/O地址将该配置信息加载到 网卡芯片;
步骤 S150,用户通过选项只读存储器提供的网卡配置界面更新网 卡的配置信息后, 选项只读存储器调用 BIOS, 将更新后的配置信息作 为 BIOS入口参数, 由 BIOS将更新后的配置信息存储到该主板 CMOS 芯片中, 以供计算机下次启动时选择加载。
需要说明的是, 在计算机上电后, 如果用户没有通过配置界面对 网卡的配置信息进行更新,则计算机会默认加载 CMOS芯片中存储的配 置信息。如果有用户更新, 则会执行步骤 S130中的配置信息更新。其 中 CMOS芯片中存储的配置信息可能是 BIOS出厂时的默认网卡配置信 息, 也可能是用户某次更新之后的配置信息。另外, 因为 CMOS芯片和 闪存(flash)芯片一样, 有若干个字节(Byte) 的存储空间, 因此出 厂时的默认配置信息和运行时更新之后的配置信息可以同时存在, BIOS可以动态地判断整个计算机的状态,进而决定加载哪一份配置信 息。比如当出厂后首次使用时, BIOS加载出厂时的那份默认配置信息; 当使用过程中发生用户更新时, BIOS加载用户更新之后的那份配置信 息; 当计算机发生某种错误或者通过操作系统(OS)调用 BIOS的服务 时, BIOS可以恢复到加载出厂时的那份默认配置信息, 这样使得整个 系统更加灵活智能。
在本发明方法第二实施例中, 仍然采用上述第 (1 ) 种模式, 并 选择 BIOS闪存(Flash)作为主板的存储介质来存储网卡的配置信息。 图 2为本发明方法第二实施例的流程示意图。 如图 2所示, 本发明方 法第二实施例主要包括如下步骤:
步骤 S210, 主板开发时, 提前获取计算机网卡的初始配置信息, 比如从计算机网卡销售者 (vendor) 等处获取的出厂默认配置信息; 步骤 S220, 主板 BIOS开发时, 将提前获取的初始配置信息作为 网卡的默认配置信息编译到 BIOS代码中; BIOS编译时会将该默认配 置信息存储到 BIOS代码中, 计算机首次上电 BIOS运行过程中, 会把 代码中的默认配置信息存储到主板存储介质上;
步骤 S230, 计算机首次上电运行后, BIOS将编译在 BIOS代码中 的默认配置信息存储到 BIOS闪存芯片这一主板上的存储介质中; 步骤 S240, 再次(包括首次之后的每次)启动计算机(计算机上
电)后, 网卡选项只读存储器通过 BIOS服务功能从 BIOS 闪存芯片中 获取网卡的配置信息,并通过网卡芯片 I/O地址将该配置信息加载到 网卡芯片;
步骤 S250,用户通过选项只读存储器提供的网卡配置界面更新网 卡的配置信息后, 选项只读存储器调用 BIOS, 将更新后的配置信息作 为入口参数,由 BIOS将更新后的配置信息存储到该 BIOS闪存芯片中, 以供计算机下次启动时选择加载。
图 3为本发明方法第三实施例的流程示意图。该方法第三实施例 是采用上述第 (2 ) 种模式, 并选择 CMOS芯片作为主板的存储介质来 存储和更新网卡的配置信息。 如图 3所示, 该方法第三实施例主要包 括如下步骤:
步骤 S310,主板开发时,提前获取计算机网卡的初始配置信息和 网卡芯片的 I/O 地址, 该初始配置信息比如是从计算机网卡销售者 ( vendor) 等处获取的出厂默认配置信息;
步骤 S320, 主板 BIOS开发时, 将提前获取的初始配置信息作为 网卡的默认配置信息, 并将该默认配置信息和网卡 I/O地址一起编译 到 BIOS代码中; BIOS编译时会将该默认配置信息存储到 BIOS 代码中, 计算机首次上电 BIOS运行过程中,会把代码中的默认配置信息存储到 主板存储介质上;
步骤 S330, 计算机首次上电运行后, BIOS将编译在 BIOS代码中 的默认配置信息存储到计算机主板 CMOS 芯片这一主板上的存储介质 中;
步骤 S340, 再次(包括首次之后的每次)启动计算机(计算机上 电) 后, BIOS从主板 CMOS芯片中获取网卡的配置信息, 并通过网卡 芯片 I/O地址将该配置信息加载到网卡芯片;
步骤 S350,用户通过选项只读存储器提供的网卡配置界面更新网 卡的配置信息后, BIOS 从网卡芯片 I/O地址中获取更新后的配置信 息,并将该更新后的配置信息存储到该主板 CMOS芯片中, 以供计算机 下次启动时选择加载。
图 4为本发明方法第四实施例的流程示意图。该方法第四实施例
是采用上述第 (2 ) 种模式, 并选择 BIOS闪存芯片作为主板的存储介 质来存储和更新网卡的配置信息。 如图 4所示, 该方法第四实施例主 要包括如下步骤:
步骤 S410,主板开发时,提前获取计算机网卡的初始配置信息和 网卡的 I/O 地址, 该初始配置信息比如是从计算机网卡销售者 (vendor) 等处获取的出厂默认配置信息;
步骤 S420, 主板 BIOS开发时, 将提前获取的初始配置信息作为 网卡的默认配置信息, 并将该默认配置信息和网卡的 I/O地址一起编 译到 BIOS代码中; BIOS编译时会将该默认配置信息存储到 BIOS 代码 中,计算机首次上电 BIOS运行过程中,会把代码中的默认配置信息存 储到主板存储介质上;
步骤 S430, 计算机首次上电运行后, BIOS将编译在 BIOS代码中 默认配置信息存储到计算机 BIOS闪存芯片这一主板上的存储介质中; 步骤 S440, 再次(包括首次之后的每次)启动计算机(计算机上 电) 后, BIOS从 BIOS闪存芯片中获取网卡的配置信息, 并通过网卡 芯片 I/O地址将该配置信息加载到网卡芯片;
步骤 S450,用户通过选项只读存储器提供的网卡配置界面更新网 卡的配置信息后, BIOS从网卡 I/O地址中获取更新后的配置信息, 并 将该更新后的配置信息存储到该 BIOS闪存芯片中,以供计算机下次启 动时选择加载。
图 5为本发明电子设备第一实施例的组成示意图。在本实施例中, 该电子设备以计算机为例, 并以该计算机中的网卡为本实施例中的可 进行功能配置的部件。对应上述第(1 )种模式, 结合图 1和图 2所示 的方法实施例, 图 5 所示的电子设备第一实施例主要包括获取模块 510、 编译模块 520、 基本输入输出系统 (BIOS) 530、 主板存储介质 540和选项只读存储器 (选项只读存储器) 550, 其中:
获取模块 510, 用于获取计算机网卡的初始配置信息;
编译模块 520, 与该获取模块 510相连, 用于在 BIOS 530的开发 阶段, 将获取模块 510获取的初始配置信息作为网卡的默认配置信息 编译到 BIOS 530的代码中;
BIOS 530, 与该编译模块 520相连,用于计算机首次上电运行后, 根据选项只读存储器 550的调用将编译在 BIOS代码中的该默认配置 信息存储到该主板存储介质 540中; 在计算机再次 (包括首次之后的 每次)上电运行时, 根据选项只读存储器 550的调用从主板存储介质 540中获取网卡的配置信息, 并通过网卡芯片 I/O地址将该配置信息 加载到网卡芯片; 在用户更新网卡的配置信息时, 用于根据选项只读 存储器 550的调用, 将更新后的配置信息存储到该主板存储介质 540 中, 以供计算机下次启动时选择加载;
主板存储介质 540, 与该 BIOS 530相连, 用于存储网卡配置信息 (包括默认配置信息和用户更新后的配置信息);本实施例是以主板上 的 CMOS芯片作为存储介质 540进行说明的,在其他实施例中也可以将 主板上的 BIOS闪存芯片作为本发明中的主板存储介质 540;
选项只读存储器 550, 与该 BIOS 530相连, 用于计算机再次上 电时通过调用 BIOS 530的服务功能,使 BIOS 530从主板存储介质 540 中获取网卡的配置信息; 还用于提供网卡配置界面, 接受用户通过该 网卡配置界面对网卡的配置信息所进行的更新, 并用于将更新后的配 置信息作为 BIOS 530的入口参数调用 BIOS 530, 由 BIOS将更新后的 配置信息存储到该主板存储介质 540中。
上述的 BIOS 530, 提供标准中断或者系统管理中断, 用于将网卡 的配置信息存储到该主板存储介质 540中, 以及从主板存储介质 540 中读取网卡配置信息。
图 6为本发明电子设备第二实施例的组成示意图。在本实施例中, 该电子设备以计算机为例, 并以该计算机中的网卡为本实施例中的可 进行功能配置的部件。对应上述第(2)种模式, 并结合上述图 3和图 4所示的方法实施例, 图 6所示的电子设备第二实施例主要包括获取 模块 610、 编译模块 620、 BIOS 630、 主板存储介质 640以及选项只读 存储器 (选项只读存储器) 650, 其中:
获取模块 610,用于获取计算机网卡的初始配置信息和网卡的 I/O 地址;
编译模块 620, 与该获取模块 610相连, 用于在 BIOS 630的开发
阶段,将获取模块 610获取的初始配置信息作为网卡的默认配置信息, 并将该默认配置信息和网卡的 I/O地址一起编译到 BIOS 630的代码 中;
BIOS 630, 与该编译模块 620相连, 用于在计算机首次上电运行 后, 将编译在 BIOS 代码中的默认配置信息存储到主板存储介质 640 中; 用于在计算机再次 (包括首次之后的每次) 上电运行时, 从主板 存储介质 640中读取该默认配置信息, 并通过网卡 I/O地址将该默认 配置信息加载到网卡芯片; 还用于在用户更新网卡的配置信息时, 从 网卡 I/O地址中获取将该更新后的配置信息, 并将该更新后的配置信 息存储到该主板存储介质 640中, 以供计算机下次启动时选择加载; 主板存储介质 640, 与该 BIOS 630相连, 用于存储网卡的配置信 息(包括默认配置信息和用户更新后的配置信息);本实施例是以主板 上的 BIOS闪存芯片作为存储介质 640进行说明的,在其他实施例中也 可以将主板上的 CMOS芯片作为本发明中的主板存储介质 640;
选项只读存储器 650, 与该 BIOS 630相连, 用于计算机运行时 提供网卡配置界面, 接受用户通过该网卡配置界面对网卡的配置信息 所进行的更新。
需要说明的是, 本发明以上各实施例是选用主板 CMOS 芯片或 BIOS 闪存芯片作为本发明中的主板存储介质来说明本发明的技术方 案的, 但是本领域技术人员应该明白, 该主板 CMOS芯片或 BIOS 闪存 芯片仅是本发明主板上存储介质的典型实施例。 按照本发明的思想, 电子设备的主板上现有的存储介质只要可以被 BIOS访问到,都可以作 为可进行功能配置的部件 (如网卡) 的配置信息的存储介质而应用于 本发明。
本发明还提出了一种可进行功能配置的部件。在该部件的第一实 施例中, 该部件可以应用于电子设备, 该电子设备包含 BIOS, 以及该 电子设备的主板上设置有存储介质。 该部件的第一实施例中, 该电子 设备为一台计算机, 该部件为网卡, 该主板存储介质为 CMOS芯片(其 他实施例中也可以是 BIOS flash芯片)。 该部件还包括选项只读存储 器(选项只读存储器), 该选项只读存储器用于该计算机启动后, 通过
BIOS从 CMOS芯片中获取网卡的默认配置信息, 网卡用于根据自身的 输入 /输出地址加载该默认配置信息。
在该部件的第一实施例中, 该选项只读存储器进一步用于提供网 卡配置界面, 该用卡配置界面用于接受用户更新网卡的配置信息; 该 选项只读存储器还用于在用户更新网卡配置信息后调用 BIOS; BIOS 进一步用于将更新后的配置信息存储到 CMOS芯片中,以供计算机下次 启动时选择加载。
在该部件的第二实施例中, 该部件可以应用于电子设备, 该电子 设备包含 BIOS, 以及该电子设备的主板上设置有存储介质。 该部件的 第二实施例中, 该电子设备为一台计算机, 该部件为网卡, 该主板存 储介质为 BIOS 闪存芯片 (其他实施例中也可以是 CMOS芯片)。 其中 网卡用于计算机启动后, 根据自身的输入 /输出地址以及 BIOS加载默 认配置信息; BIOS用于计算机启动后从 BIOS 闪存芯片中获取该默认 配置信息。 该部件的第二实施例中, 网卡进一步包括选项只读存储器 (选项只读存储器),该选项只读存储器进一步用于用户更新该部件的 配置信息, 并用于用户更新该部件的配置信息后调用 BIOS, 该 BIOS 进一步用于根据选项只读存储器的调用将更新后的配置信息存储到 BIOS闪存芯片中。
本发明技术方案中,利用 BIOS闪存存储网卡的配置信息时, BIOS 编译的时候可以指定网卡设置信息的默认状态,同时 BIOS提供读写主 板现有介质中所存储的网卡设置信息的服务功能, 可供网卡选项只读 存储器或 OS下应用程序调用,可以很方便地实现每台计算机的出厂状 态设置和更改。
其中, BIOS提供读写网卡配置信息的服务功能, 可以使得计算机 在工厂生产阶段由生产线程序灵活调用去实现网卡的出厂信息配置和 更改, 同时这些运行时(runtime)的服务功能提供了和网卡选项只读 存储器之间的标准交互接口, BIOS的服务功能负责读写主板上存储介 质内的网卡配置信息,网卡选项只读存储器程序调用 BIOS服务功能去 实现网卡信息的加载和保存,这样 BIOS服务功能可以不必知道具体的 网卡的 10空间地址,只负责从主板上读出上次保存的配置信息发送给
选项只读存储器和把选项只读存储器发送过来的信息更新保存到主板 介质中。
需要说明的是, 在附图的流程图示出的步骤可以在诸如一组计算 机可执行指令的计算机系统中执行, 并且, 虽然在流程图中示出了逻 辑顺序, 但是在某些情况下, 可以以不同于此处的顺序执行所示出或 描述的步骤。 另外, 本领域的技术人员应该明白, 上述的本发明的各 模块或各步骤可以用通用的计算装置来实现, 它们可以集中在单个的 计算装置上, 或者分布在多个计算装置所组成的网络上, 可选地, 它 们可以用计算装置可执行的程序代码来实现, 从而, 可以将它们存储 在存储装置中由计算装置来执行, 或者将它们分别制作成各个集成电 路模块, 或者将它们中的多个模块或步骤制作成单个集成电路模块来 实现。 这样, 本发明不限制于任何特定的硬件和软件结合。 '
虽然本发明所揭露的实施方式如上, 但所述的内容只是为了便于 理解本发明而采用的实施方式, 并非用以限定本发明。 任何本发明所 属技术领域内的技术人员, 在不脱离本发明所揭露的精神和范围的前 提下, 可以在实施的形式上及细节上作任何的修改与变化, 但本发明 的专利保护范围, 仍须以所附的权利要求书所界定的范围为准。
Claims
1、一种可进行'功能配置的部件的配置信息存储方法,所述部件应 用于电子设备, 所述方法包括:
获取所述电子设备中所述部件的初始配置信息;
将所述初始配置信息作为所述部件的默认配置信息编译到所述 电子设备的基本输入输出系统中;
所述电子设备首次上电时, 所述基本输入输出系统将所述默认配 置信息存储到所述电子设备的主板存储介质中。
2、 根据权利要求 1 所述的方法, 其特征在于, 该方法进一步包 括:
所述电子设备再次上电时, 通过所述基本输入输出系统从所述主 板存储介质中获取所述默认配置信息,并通过所述部件的输入 /输出地 址将所述默认配置信息加载到所述部件。
3、 根据权利要求 1 所述的方法, 其特征在于, 该方法进一步包 括:
所述电子设备再次上电时, 通过所述部件的选项只读存储器调用 所述基本输入输出系统从所述主板存储介质中获取所述默认配置信 息,并通过所述部件的输入 /输出地址将所述默认配置信息加载到所述 部件。
4、 根据权利要求 1 所述的方法, 其特征在于, 该方法进一步包 括:
用户通过所述部件的选项只读存储器更新所述部件的配置信息 时, 所述基本输入输出系统根据所述选项只读存储器的调用, 将所述 更新后的配置信息存储到所述主板存储介质中。
5、 根据权利要求 1所述的方法, 其特征在于, 该方法进一步包 括:
用户通过所述部件的选项只读存储器更新所述部件的配置信息 时,所述基本输入输出系统根据所述部件的输入 /输出地址获取所述更 新后的配置信息, 将所述更新后的配置信息存储到所述主板存储介质 中。
6、 根据权利要求 3或 5所述的方法, 其特征在于, 该方法包括: 获取所述初始配置信息时, 获取所述输入 /输出地址;
将所述输入 /输出地址与所述默认配置信息一起编译到所述基本 输入输出系统中。
7、 根据权利要求 1所述的方法, 其特征在于:
所述基本输入输出系统根据标准中断或者系统管理中断, 将所述 默认配置信息存储到所述主板存储介质中。
8、 一种电子设备, 包括可进行功能配置的部件, 其特征在于, 该电子设备包括:
获取模块, 用于获取所述部件的初始配置信息;
编译模块, 用于将所述初始配置信息作为所述部件的默认配置信 息编译到所述电子设备的基本输入输出系统中;
所述基本输入输出系统, 用于所述电子设备首次上电时将所述默 认配置信息存储到所述电子设备的主板存储介质中;
所述主板存储介质, 用于存储所述默认配置信息。
9、 根据权利要求 8所述的电子设备, 其特征在于, 该电子设备 进一步包括:
选项只读存储器, 用于所述电子设备再次上电时, 通过所述基本 输入输出系统从所述主板存储介质中获取所述默认配置信息, 并通过 所述部件的输入 /输出地址将所述默认配置信息加载到所述部件。
10、 根据权利要求 8所述的电子设备, 其特征在于:
所述电子设备再次上电时, 通过所述选项只读存储器调用所述基 本输入输出系统从所述主板存储介质中获取所述默认配置信息, 并通 过所述部件的输入 /输出地址将所述默认配置信息加载到所述部件。
11、 根据权利要求 8所述的电子设备, 其特征在于, 该电子设备 进一步包括:
选项只读存储器, 用于用户更新所述部件的配置信息时调用所述 基本输入输出系统;
所述基本输入输出系统用于根据所述选项只读存储器的调用, 将 所述更新后的配置信息存储到所述主板存储介质中。
12、 根据权利要求 8所述的电子设备, 其特征在于:
所述基本输入输出系统在用户更新所述部件的配置信息时根据 所述部件的输入 /输出地址直接获取所述更新后的配置信息,并将所述 更新后的配置信息存储到所述主板存储介质中。
13、 根据权利要求 10或 12所述的电子设备, 其特征在于: 所述获取模块用于获取所述初始配置信息时, 获取所述输入 /输 出地址;
所述编译模块用于将所述输入 /输出地址与所述默认配置信息一 起编译到所述基本输入输出系统中。
14、 一种可进行功能配置的部件, 该部件应用于一电子设备, 该 电子设备包含基本输入输出系统, 以及该电子设备的主板上设置有存 储介质, 其特征在于, 该部件包括选项只读存储器, 其中:
所述选项只读存储器, 用于所述电子设备启动后, 通过所述选项 只读存储器调用所述基本输入输出系统从所述存储介质中获取所述部 件的默认配置信息;
所述部件用于根据自身的输入 /输出地址加载所述默认配置信 m
15、 根据权利要求 14所述的部件, 其特征在于:
所述选项只读存储器进一步用于用户更新所述部件的配置信息, 并用于在用户更新所述部件的配置信息后调用所述基本输入输出系 统;
所述基本输入输出系统进一步用于将所述更新后的配置信息存 储到所述存储介质中。
16、 一种可进行功能配置的部件, 该部件应用于一电子设备, 该 电子设备包含基本输入输出系统, 以及该电子设备的主板上设置有存 储介质, 其特征在于:
所述部件用于所述电子设备启动后, 根据自身的输入 /输出地址 通过所述基本输入输出系统加载所述默认配置信息;
其中, 所述基本输入输出系统用于所述电子设备启动后从所述存、储介 质中获取所述默认配置信息。
17、 根据权利要求 16所述的部件, 其特征在于, 该部件进一步 包括:
选项只读存储器, 进一步用于用户更新所述部件的配置信息, 并 用于在用户更新所述部件的配置信息后调用所述基本输入输出系统; 其中,
所述基本输入输出系统进一步用于根据所述选项只读存储器的调 用将所述更新后的配置信息存储到所述存储介质中。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US13/637,118 US9304788B2 (en) | 2010-03-26 | 2011-02-25 | Electronic device, configurable component and configuration information storage method thereof |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010136073.5A CN102200916B (zh) | 2010-03-26 | 2010-03-26 | 电子设备、可配置的部件及该部件的配置信息存储方法 |
CN201010136073.5 | 2010-03-26 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2011116621A1 true WO2011116621A1 (zh) | 2011-09-29 |
Family
ID=44661614
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/000304 WO2011116621A1 (zh) | 2010-03-26 | 2011-02-25 | 电子设备、可配置的部件及其配置信息存储方法 |
Country Status (3)
Country | Link |
---|---|
US (1) | US9304788B2 (zh) |
CN (1) | CN102200916B (zh) |
WO (1) | WO2011116621A1 (zh) |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9262178B2 (en) * | 2012-01-30 | 2016-02-16 | Intel Corporation | Method for reducing platform boot times by providing lazy input/output abstractions |
TWI526847B (zh) * | 2012-09-28 | 2016-03-21 | 微盟電子(昆山)有限公司 | 計算機及其硬體參數設定方法 |
CN104657165A (zh) * | 2013-11-22 | 2015-05-27 | 英业达科技有限公司 | 服务器及其控制方法 |
CN104657243A (zh) * | 2013-11-25 | 2015-05-27 | 英业达科技有限公司 | 服务器与服务器检测方法 |
CN104503798A (zh) * | 2014-12-29 | 2015-04-08 | 杭州华三通信技术有限公司 | 服务器的配置方法及装置 |
US10430173B2 (en) * | 2015-10-19 | 2019-10-01 | Harman International Industries, Incorporated | Techniques for updating components of a computer device while enabling components for availability |
CN105677412A (zh) * | 2016-01-06 | 2016-06-15 | 无锡中太服务器有限公司 | 一种在OpenPower CPU架构服务器BOOT中提供针对PCIE卡配置能力的方法 |
CN107222357B (zh) * | 2017-08-03 | 2021-02-09 | 苏州浪潮智能科技有限公司 | 一种配置网卡的装置及方法 |
CN107770299A (zh) * | 2017-10-24 | 2018-03-06 | 郑州云海信息技术有限公司 | 一种mac地址刷写方法、系统、装置及存储介质 |
CN108762766A (zh) * | 2018-06-08 | 2018-11-06 | 山东超越数控电子股份有限公司 | 一种飞腾1500a平台下银河麒麟系统支持万兆网卡的方法 |
TWI685793B (zh) * | 2018-09-20 | 2020-02-21 | 神雲科技股份有限公司 | 同步方法 |
CN109471679A (zh) * | 2018-11-19 | 2019-03-15 | 郑州云海信息技术有限公司 | 一种对pcie交换芯片配置文件进行配置的方法 |
US11310720B2 (en) * | 2019-08-30 | 2022-04-19 | Silicon Works Co., Ltd. | Wireless battery management system, node for wireless communication, and network establishment method |
CN110708193B (zh) * | 2019-09-27 | 2022-06-03 | 烽火通信科技股份有限公司 | 一种以太网业务板卡启动方法及系统 |
US11775647B2 (en) | 2020-06-25 | 2023-10-03 | Microsoft Technology Licensing, Llc | Secure user assigned device from manufacturer |
CN113253161B (zh) * | 2021-05-27 | 2023-02-28 | 山东英信计算机技术有限公司 | 一种用于pcb保险丝量测并烧录的电路结构 |
CN114661372B (zh) * | 2022-03-03 | 2024-08-20 | 北京达佳互联信息技术有限公司 | 配置信息处理方法、装置及服务器 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1455342A (zh) * | 2003-05-23 | 2003-11-12 | 威盛电子股份有限公司 | 在dmi区块备份计算机系统中cmos的bios设定的方法 |
CN1890633A (zh) * | 2003-12-18 | 2007-01-03 | 英特尔公司 | 存储初始化及配置信息的方法和装置 |
US20070162733A1 (en) * | 2006-01-06 | 2007-07-12 | Dell Products L.P. | Secure CMOS |
CN101090344A (zh) * | 2006-06-13 | 2007-12-19 | 英业达股份有限公司 | 网络卡上媒介存取控制地址错误的侦测方法 |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6012103A (en) * | 1997-07-02 | 2000-01-04 | Cypress Semiconductor Corp. | Bus interface system and method |
US6401198B1 (en) * | 1999-03-09 | 2002-06-04 | Texas Instruments Incorporated | Storing system-level mass storage configuration data in non-volatile memory on each mass storage device to allow for reboot/power-on reconfiguration of all installed mass storage devices to the same configuration as last use |
US6883099B2 (en) * | 2001-01-04 | 2005-04-19 | Troika Networks, Inc. | Secure virtual interface |
US7181609B2 (en) * | 2003-08-15 | 2007-02-20 | Intel Corporation | System and method for accelerated device initialization |
CN1315078C (zh) * | 2003-09-10 | 2007-05-09 | 联想(北京)有限公司 | 一种通过远程配置获取基本输入输出系统信息的方法 |
US20060020844A1 (en) * | 2004-07-22 | 2006-01-26 | Gibbons Patrick L | Recovery of custom BIOS settings |
US20070245038A1 (en) * | 2006-03-30 | 2007-10-18 | Inventec Corporation | System and method for user-controlled connection of computer peripheral devices |
TW200837629A (en) * | 2007-03-09 | 2008-09-16 | Realtek Semiconductor Corp | Network interface controller |
CN100527083C (zh) * | 2007-03-23 | 2009-08-12 | 威盛电子股份有限公司 | 一种存储器管理方法 |
US8127127B2 (en) * | 2008-06-26 | 2012-02-28 | Dell Products L.P. | System and method for transferring configuration information to an embedded device using a command line interface |
CN101477489B (zh) * | 2009-01-23 | 2011-01-05 | 成都市华为赛门铁克科技有限公司 | 一种保存操作系统信息的方法、装置及系统 |
US8312256B2 (en) * | 2010-02-24 | 2012-11-13 | Hewlett-Packard Development Company, L.P. | Display of a basic input/output system (BIOS) productivity display |
-
2010
- 2010-03-26 CN CN201010136073.5A patent/CN102200916B/zh active Active
-
2011
- 2011-02-25 WO PCT/CN2011/000304 patent/WO2011116621A1/zh active Application Filing
- 2011-02-25 US US13/637,118 patent/US9304788B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1455342A (zh) * | 2003-05-23 | 2003-11-12 | 威盛电子股份有限公司 | 在dmi区块备份计算机系统中cmos的bios设定的方法 |
CN1890633A (zh) * | 2003-12-18 | 2007-01-03 | 英特尔公司 | 存储初始化及配置信息的方法和装置 |
US20070162733A1 (en) * | 2006-01-06 | 2007-07-12 | Dell Products L.P. | Secure CMOS |
CN101090344A (zh) * | 2006-06-13 | 2007-12-19 | 英业达股份有限公司 | 网络卡上媒介存取控制地址错误的侦测方法 |
Also Published As
Publication number | Publication date |
---|---|
US20130024678A1 (en) | 2013-01-24 |
US9304788B2 (en) | 2016-04-05 |
CN102200916B (zh) | 2014-12-31 |
CN102200916A (zh) | 2011-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2011116621A1 (zh) | 电子设备、可配置的部件及其配置信息存储方法 | |
CN105745617B (zh) | 用于预启动固件更新的选择性功率管理 | |
US8443183B2 (en) | Pre-boot loader for reducing system boot time | |
US11042365B2 (en) | Firmware updating method and electronic device using the same | |
WO1999066399A9 (en) | Method to reflect bios setup changes into acpi machine language | |
JP6868087B2 (ja) | 管理コントローラへの通信チャネルの方法及びシステム | |
CN107408090A (zh) | 输入/输出控制器访问通道的动态配置 | |
WO2023087696A1 (zh) | 通信模组及其外部接口配置方法、配置装置和存储介质 | |
CN110780932A (zh) | 一种pcie切换芯片的工作模式切换方法与装置 | |
US9189351B2 (en) | Method of obtaining instruction for triggering function | |
US9652259B2 (en) | Apparatus and method for managing register information in a processing system | |
WO2019100704A1 (zh) | 用于多模IoT设备的启动方法、多模IoT设备及存储介质 | |
WO2024113884A1 (zh) | 外接设备的资源分配方法、装置、服务器及存储介质 | |
JP2005531085A (ja) | ハードウェア互換性の特定及び安定的なソフトウェア画像の実現方法及び装置 | |
US20120096253A1 (en) | Method for automatically setting up system | |
US7562209B2 (en) | Supporting different instruction set architectures during run time | |
JP5489278B2 (ja) | 情報処理装置及びその起動方法 | |
US6604195B1 (en) | Method and apparatus to use non-volatile read/write memory for bootstrap code and processes | |
CN112667544A (zh) | 一种控制主板插槽使能的方法、装置、系统及介质 | |
JP2022522444A (ja) | シーケンス処理ユニットを備えたメモリ制御システム | |
CN117687703B (zh) | 服务器的启动方法、装置、系统、存储介质和电子设备 | |
CN117251216B (zh) | 一种服务器固件启动优化方法、系统、服务器及存储介质 | |
US11614949B2 (en) | Method and device for managing operation of a computing unit capable of operating with instructions of different sizes | |
US11068276B2 (en) | Controlled customization of silicon initialization | |
CN112631663B (zh) | 一种基于ARMv7 SoC的一体化映像引导启动方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 11758731 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 13637118 Country of ref document: US |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 11758731 Country of ref document: EP Kind code of ref document: A1 |