Content of the invention
In view of this, the invention provides configuration processing method, device and electronic equipment, solve existing electronic equipmentNeed to develop different bios programs to support different application platforms, lead to the technical problem that development and maintenance cost is higher.
In order to solve above-mentioned technical problem, this application provides technical scheme below:
A kind of configuration processing method, is applied to electronic equipment, and methods described includes:
On described electronic equipment during electricity, read the mark of the target area in the bootstrap block on described electronic equipment mainboardInformation, described identification information sets when described electronic equipment is in factory mode, for representing that described electronic equipment props upThe Platform Type held;
Based on the identification information of the described target area reading, initial configuration is carried out to described electronic equipment.
Preferably, methods described also includes:
When described electronic equipment is in factory mode, selectes from the bootstrap block described electronic equipment mainboard and meet in advanceIf the region requiring is as target area;
According to preset rules, determine the identification information of described target area, described preset rules show described target areaDifferent identification information and each Platform Type one-to-one relationship.
Preferably, select the region meeting preset requirement in described bootstrap block from described electronic equipment mainboard as meshMark region, comprising:
Select double byte region as target area in the bootstrap block on described electronic equipment mainboard.
Preferably, the described identification information based on the described target area reading, is carried out initially to described electronic equipmentConfiguration, comprising:
According to described preset rules, determine the Platform Type corresponding with the identification information of the described target area reading;
According to the configuration rule of described Platform Type, described electronic equipment is carried out with initial configuration, described configuration rule is usedIn the function and its configuration information that show to support that the electronic equipment of corresponding Platform Type has.
Preferably, methods described also includes:
The configuration rule of the corresponding different platform type of storage.
A kind of configuration processing meanss, are applied to electronic equipment, described device includes:
Information reading module, reads the bootstrap block on described electronic equipment mainboard on described electronic equipment during electricityIn target area identification information, described identification information sets when described electronic equipment is in factory mode, is used forRepresent the Platform Type that described electronic equipment is supported;
Configuration module, for the identification information based on the described target area reading, is carried out to described electronic equipment justBegin to configure.
A kind of electronic equipment, described electronic equipment includes:
Mainboard;
Processor, reads the target area in the bootstrap block on described mainboard on described electronic equipment during electricityIdentification information, and the identification information based on the described target area reading, carry out initial configuration to described electronic equipment;
Wherein, described identification information sets when described electronic equipment is in factory mode, for representing described electricityThe Platform Type that sub- equipment is supported.
Preferably,
Described processor, is additionally operable to when described electronic equipment is in factory mode, from described electronic equipment mainboardSelect the region meeting preset requirement in bootstrap block as target area, and according to preset rules, determine described target areaIdentification information;
Wherein, described preset rules show the different identification information of described target area and the one-to-one corresponding of each Platform TypeRelation.
Preferably, described electronic equipment also includes:
Memorizer, for storing the configuration rule of described preset rules and corresponding different platform type.
As can be seen here, compared with prior art, this application provides configuration processing method, device and electronic equipment, pass throughWhen electronic equipment is in factory mode, target area setting identification information in the bootstrap block on electronic equipment mainboard, comeRepresent the Platform Type that this electronic equipment can be supported, so that electronic equipment is in start, according to this mark letter detectingBreath realizes initial configuration so that this electronic equipment can support the desired application platform of user.It can be seen that, the application achieves multiplePlatform shares mainboard bios it is not necessary to develop bios program respectively for different types of platform, greatly reduces electronicsThe development and maintenance cost of equipment bios program.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, completeSite preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based onEmbodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative workEmbodiment, broadly falls into the scope of protection of the invention.
This application provides a kind of configuration processing method, device and electronic equipment, the application is by being in electronic equipmentDuring factory mode, by the target area setting identification information in the bootstrap block on electronic equipment mainboard, to represent this electronicsThe Platform Type that equipment can be supported, so that electronic equipment is in start, realizes initial according to this identification information detectingConfiguration is so that this electronic equipment can support the desired application platform of user.As can be seen here, the application does not need for inhomogeneityThe platform of type, develops bios program respectively, can set corresponding identification information it becomes possible to make electronic equipment under factory modeSupport different platform, greatly reduce the development and maintenance cost of electronic equipment bios program.
In order that the above objects, features and advantages of the present invention can become apparent from understandable, below in conjunction with the accompanying drawings and specificallyThe present invention is further detailed explanation for embodiment.
As shown in figure 1, a kind of configuration processing method flow chart providing for the embodiment of the present application, the method can apply toAs the electronic equipments such as notebook computer, desktop computer, palm PC, smart mobile phone, the concrete product to this electronic equipment for the applicationCategory type is not construed as limiting.The configuration processing method that then the present embodiment provides may comprise steps of:
Step s11, on an electronic device during electricity, reads the mark of the target area in the bootstrap block on electronic equipment mainboardInformation;
Wherein, the bootstrap block on electronic equipment mainboard is bios bootstrap block, is properly termed as bootblock, and it is in biosOne section of specific region, include for guiding minimum instruction collection, in actual applications, normal bios updating operation is notThis segment information can be eliminated, when bios upgrades unsuccessfully, it is possible to use bootblock to recover again.
The present embodiment determines a region for storing identification information in the protected field of bootblock, such as can beThe specified location of this protected field retains a double byte region to store identification information as rom hole, but does not limit toIn this.
Wherein, the content in the protected field of bootblock sets when producing electronic equipment, and this electronics setsWill be unable to change again, thus avoiding the random change to the content that this protected field stores for the user for after dispatching from the factory.
As can be seen here, the target area in bootstrap block in above-mentioned steps s11 can be in the protected field of bootblockThe reserved region that can store double byte, to this target area, the particular location in this protected field does not limit the applicationFixed.
In addition, can set when electronic equipment is in factory mode with regard to above-mentioned identification information, for representing electricityThe Platform Type that sub- equipment is supported.In actual applications, the corresponding identification information of different platform type is different, and this identification information canTo be 16 system double bytes numerals, for example, the corresponding identification information of commercial platform can be 0x0000;The consumption corresponding mark of platformKnowledge information can be 0x0001 etc., and the application is not construed as limiting to each Platform Type corresponding identification information particular content.
Step s12, based on the identification information of the target area reading, carries out initial configuration to electronic equipment.
Continue foregoing description, has preset identification information due in the target area in the leading block of electronic equipment mainboard,To show any or kinds of platform that this electronic equipment should be supported, so, carry out initial configuration in electronic equipment startDuring, it can realize the initial configuration to application platform based on the identification information storing in its leading block, so that configurationElectronic equipment afterwards can support all types of platform corresponding with this identification information it is not necessary to be each platform development oneBios mainboard, reduces exploitation and maintenance cost.
It should be noted that with regard to the initial configuration process to electronic equipment in step s12, specifically can be according to mark letterCease corresponding Platform Type to determine, the application does not limit the detailed process of initial configuration.
To sum up, in the present embodiment, under electronic equipment is in factory mode, drawing to mainboard can be needed according to differentSet corresponding identification information in target area (i.e. rom hole, read only memory region) in guide block, to represent this electronicsThe different types of platform that equipment can be supported, so that on electronic equipment during electricity, according to the identification information reading, it is right to completeThe initial configuration of this electronic equipment is so as to multiple platforms accordingly can be supported.It can be seen that, the application achieves multiple platforms and sharesOne bios, compared with traditional method for one mainboard board id of each platform application, greatly reduces hardwareThis, and the development and maintenance cost to mainboard.
It is additionally, since the application to have arrived default identification information storage in the protected field of bootstrap block, so that shouldAfter electronic equipment dispatches from the factory, will be locked for the identification information of this target area memory storage, so, even if customer upgrade bios or carry outBootblock recovery operation, all without change these identification informations default, and then also avoids the need for resetting electronic equipmentSupport to Platform Type requires, very convenient.
As shown in Fig. 2 the flow chart of another kind of configuration processing method providing for the embodiment of the present application, the method can alsoIt is applied to the electronic equipments such as computer, smart mobile phone, host computer, in actual applications, the configuration processing method that the present embodiment providesMay include that
Step s21, when electronic equipment is in factory mode, selectes from the bootstrap block this electronic equipment mainboard and meetsThe region of preset requirement is as target area;
In conjunction with the description of above-described embodiment, this preset requirement can be as needed in the identification information of this target area storageContent determine, such as when this identification information is the double byte numeral of 16 systems, then, this preset requirement can include storing this 16The content such as the space size of double byte numeral of system and form, therefore, step s21 is specifically as follows in electronic equipment mainboardOn bootstrap block in select double byte region as target area.
Wherein it is desired to explanation, such as above-mentioned analysis, the target area selected in bootstrap block is being protected of this bootstrap blockShield region, the content of its storage can't be removed with the operation such as system upgrade or renewal.
Step s22, according to preset rules, determines the identification information of this target area;
Wherein, this preset rules may indicate that the different identification information of target area is closed with the one-to-one corresponding of each Platform TypeSystem, then, when determining the identification information of this target area, the need of the platform that specifically according to this electronic equipment, it can be supportedAsk determination that is to say, that when needing this electronic equipment to support which kind of or a few class platform, just the storage of this target area with respect toThe identification information answered,
Step s23, on an electronic device during electricity, reads the mark of the target area in the bootstrap block on this electronic equipment mainboardKnowledge information;
Understand, the identification information now reading is that the platform that this electronic equipment can be supported is corresponding based on above-mentioned analysisIdentification information is that is to say, that the identification information reading can show that the Platform Type that this electronic equipment is supported.
Step s24, according to preset rules, determines the Platform Type corresponding with the identification information of the target area reading;
Wherein, this preset rules, with above-mentioned when electronic equipment is in factory mode, determines the target area of this electronic equipmentThe preset rules of the identification information of domain storage are identical, i.e. the one-to-one relationship of different identification information and different platform type, thisApplication is not construed as limiting to the concrete storage mode of this preset rules.
Step s25, according to the configuration rule of this Platform Type determining, carries out initial configuration to electronic equipment.
Wherein, this configuration rule may be used to indicate that and supports function that the electronic equipment of corresponding Platform Type has and its joinConfidence ceases, and as needed, electronic equipment can prestore the configuration rule of corresponding different platform type it is generally the case that notThe content comprising with the configuration rule of Platform Type is different, and the application is not construed as limiting to the particular content that it comprises.
In sum, in the present embodiment, by when electronic equipment is in factory mode, on electronic equipment mainboardTarget area setting identification information in bootstrap block, to represent the Platform Type that this electronic equipment can be supported, so so that electricityDuring sub- device power start, this identification information according to reading realizes initial configuration, so that user supported by this electronic equipmentDesired application platform shares mainboard bios it is not necessary to be directed to different types of it is seen then that the application achieves multiple platformsPlatform, develops corresponding bios program respectively, greatly reduces the development and maintenance cost of electronic equipment bios program.
As shown in figure 3, a kind of structured flowchart of the configuration processing meanss providing for the embodiment of the present application, this device can answerFor in the electronic equipments such as computer, host computer, work station, smart mobile phone, the specific product type to this electronic equipment for the applicationIt is not construed as limiting, then the configuration processing meanss that the present embodiment provides may include that
Information reading module 31, during for electricity on an electronic device, reads the mesh in the bootstrap block on electronic equipment mainboardThe identification information in mark region;
Wherein, above-mentioned identification information can set when electronic equipment is in factory mode, for representing that electronics setsThe standby Platform Type supported.
Optionally, this identification information can be and Platform Type hexadecimal double byte numeral correspondingly, but simultaneouslyIt is not limited to this, the 0x0000 of such as corresponding commercialization platform, 0x0001 of corresponding consumption platform etc..
Based on this, above-mentioned target area can be prestore in protected field in bootstrap block on electronic equipment mainboard doubleByte area, this region belongs to the region of read only memory, and the content that it comprises will not be modified after electronic equipment dispatches from the factory, that is,Will not upgrade and initialize because of system or bios.
Configuration module 32, for the identification information based on the target area reading, carries out initial configuration to electronic equipment.
Analysis in conjunction with said method embodiment corresponding part understands, the identification information reading indicates this electronic equipmentThe platform that can support, so, in order to ensure that this electronic equipment can support the normal operation of corresponding platform, need to set in electronicsComplete to configure accordingly during standby power-up initializing, the application configuration corresponding to each platform content is not construed as limiting.
Optionally, as shown in figure 4, on the basis of above-described embodiment, configuration processing meanss can also include:
Selecting module 33, for when described electronic equipment is in factory mode, drawing from described electronic equipment mainboardThe region meeting preset requirement is selected as target area in guide block;
Optional, when electronic equipment is in factory mode, this selecting module 33 specifically can be in electronic equipment mainboardOn bootstrap block in select double byte region as target area, but be not limited thereto.
Information determination module 34, for according to preset rules, determining the identification information of described target area;
Wherein, this preset rules may indicate that the different identification information of target area is closed with the one-to-one corresponding of each Platform TypeSystem, the application is not construed as limiting to the concrete storage mode of this preset rules.
It is based on secondary, above-mentioned configuration module 32 may include that
Determining unit, for according to preset rules, determining the platform corresponding with the identification information of the target area readingType;
Dispensing unit, for the configuration rule according to Platform Type, carries out initial configuration to electronic equipment.
Wherein, this configuration rule may be used to indicate that and supports function that the electronic equipment of corresponding Platform Type has and its joinConfidence ceases.
Optionally, as shown in figure 4 above, the configuration processing meanss that the application provides can also include:
Memory module 35, for storing the configuration rule of corresponding different platform type, as needed, can also store above-mentionedPreset rules etc..
To sum up, the present embodiment is by when electronic equipment is in factory mode, in the bootstrap block on electronic equipment mainboardTarget area setting identification information, to represent the Platform Type that this electronic equipment can be supported, so that electronic equipment is leavingDuring machine, this identification information according to detecting realizes initial configuration so that this electronic equipment can support the desired application of userPlatform.It can be seen that, the application achieves multiple platforms and shares mainboard bios it is not necessary to be directed to different types of platform, respectivelyDevelop corresponding bios program, greatly reduce the development and maintenance cost of electronic equipment bios program.
As shown in figure 5, the structured flowchart of a kind of electronic equipment providing for the embodiment of the present application, this electronic equipment can beThe equipment such as computer, host computer, work station, smart mobile phone, the application is not construed as limiting to the product type of this electronic equipment, in this realityApply in example, this electronic equipment may include that mainboard 51 and processor 52, wherein:
Processor 52, can be used on an electronic device electricity when, read the target area in the bootstrap block on mainboard 51Identification information, and the identification information based on the target area reading, carry out initial configuration to electronic equipment.
Wherein, above-mentioned identification information can set when electronic equipment is in factory mode, for representing that electronics setsThe standby Platform Type supported.
Optionally, on the basis of above-described embodiment, processor 52 can be also used for: is in factory in described electronic equipmentDuring pattern, select the region meeting preset requirement from the bootstrap block described electronic equipment mainboard as target area, and pressAccording to preset rules, determine the identification information of described target area.Wherein, described preset rules show the difference of described target areaIdentification information and the one-to-one relationship of each Platform Type.
Based on this, when processor 52 determines the target area needing to store identification information, processor 52 specifically can be usedIn double byte region selected in the bootstrap block on electronic equipment mainboard as target area, but it is not limited thereto.
In addition, when processor 52 carries out initial configuration to electronic equipment, this processor 52 specifically can be used for according to instituteState preset rules, determine the Platform Type corresponding with the identification information of the described target area reading, and should according to determineThe configuration rule of Platform Type, carries out initial configuration to electronic equipment.In the present embodiment, this configuration rule may be used to indicate that props upHold function and its configuration information that the electronic equipment of corresponding Platform Type has.
Optionally, on the basis of above-described embodiment, as shown in fig. 6, electronic equipment can also include:
Memorizer 53, for storing the information such as the configuration rule of described preset rules and corresponding different platform type.
To sum up, in the present embodiment, by the guiding when electronic equipment is in factory mode, on electronic equipment mainboardTarget area setting identification information in block, to represent the Platform Type that this electronic equipment can be supported, so so that electronics setsFor when above establishing machine by cable, this identification information according to reading realizes initial configuration, so that this electronic equipment supports that user wishesApplication platform share mainboard bios it is not necessary to for different types of flat it is seen then that the application achieves multiple platformsPlatform, develops corresponding bios program respectively, greatly reduces the development and maintenance cost of electronic equipment bios program.
It is additionally, since the identification information write electronic equipment mainboard of the Platform Type that the application would indicate that electronic equipment is supportedOn bootstrap block protected field, thus avoid this identification information initializing with the operation such as upgrading of electronic equipment,Ensure that user carries out any operation to bios or bootblock of electronic equipment, all without the mark letter in impact target areaBreath, so that user need not reset this identification information in this case.
Finally, it should be noted that with regard in the various embodiments described above, term " inclusion ", "comprising" or its any otherVariant is intended to comprising of nonexcludability, so that include a series of process of key elements, method or system not only includingThose key elements, but also include other key elements being not expressly set out, or also include for this process, method or systemIntrinsic key element.In the absence of more restrictions, the key element that limited by sentence "including a ..." it is not excluded thatAlso there is other identical element including in the process of described key element, method or system.
In this specification, each embodiment is described by the way of going forward one by one, and what each embodiment stressed is and otherThe difference of embodiment, between each embodiment identical similar portion mutually referring to.For device disclosed in embodimentFor electronic equipment, because it is corresponding with method disclosed in embodiment, so description is fairly simple, referring to side in place of correlationMethod part illustrates.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention.Multiple modifications to these embodiments will be apparent from for those skilled in the art, as defined hereinGeneral Principle can be realized without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present inventionIt is not intended to be limited to the embodiments shown herein, and be to fit to and principles disclosed herein and features of novelty phase oneThe scope the widest causing.