CN109426506A - Select the loading method of read-only memory - Google Patents
Select the loading method of read-only memory Download PDFInfo
- Publication number
- CN109426506A CN109426506A CN201710722487.8A CN201710722487A CN109426506A CN 109426506 A CN109426506 A CN 109426506A CN 201710722487 A CN201710722487 A CN 201710722487A CN 109426506 A CN109426506 A CN 109426506A
- Authority
- CN
- China
- Prior art keywords
- mentioned
- memory
- read
- replacement
- concordance list
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
A kind of loading method for selecting read-only memory, suitable for the electronic device with processing unit and internal storage location, internal storage location stores BIOS, and BIOS includes default selection read-only memory, its method includes: to execute BIOS when replacing function is enable through processing unit to follow the steps below: judging whether there is replacement concordance list in storage device;When storage device is with replacement concordance list, judge that default selects whether the identifier of read-only memory is consistent with the identifier of the replacement selection read-only memory in replacement concordance list;When being consistent, parsing replacement concordance list selects read-only memory to execute to obtain access path through acquired access path load replacement;And when not being consistent, default selection read-only memory is loaded to execute.
Description
Technical field
The invention relates to a kind of loading methods for selecting read-only memory (Option ROM), particularly relate to by storing
The method that read-only memory is selected in device load.
Background technique
Currently, in the technical field of basic input output system (BIOS), in order to allow electronic device (for example, personal meter
Calculation machine or server etc.) being switched on is able to use other hardware devices (for example, display adapter or network card etc.) later, general meeting
In memory (the electronics formula of erasing can make carbon copies read-only memory (EEPROM) or flash memory (Flash memory)) memory of storage BIOS
Read-only memory (Option-ROM) is selected required for entering, carries out selftest when electronic device starts and executes BIOS
(POST), it initializes in the starting procedures such as basic computer hardware, can load and select read-only memory to drive corresponding hardware device.
That is, selecting read-only memory (Option-ROM) is the BIOS of electronic device in fact to be led to hardware device
News, the firmware called, and Option-ROM is usually some for being included in BIOS image shelves.
In general, select the developer of read-only memory in the new version of progress exploitation or except wrong (debug)
It waits, in order to judge whether the selection read-only memory of new version being capable of face normal operation on the electronic device, it is necessary to after update
The imprinting of selection read-only memory in storage BIOS memory within, that is to say, that developer has to recompilate
BIOS is burnt on machine inside the Option-ROM displacement to BIOS of different editions, then by new BIOS, penetrates again later
The process of aforementioned booting waits for that BIOS loads the selection read-only memory of new version to execute, then confirms that the selection of new version is read-only and deposit
The operation situation of reservoir.However, read-only memory is selected only for test, and repeatedly the entire BIOS of imprinting is surveyed again in this way
The process of examination quite spends the time, is also very inconvenient.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of loading methods of read-only memory, can be not required to repeatedly
By entirely imprinting again, and the development time for selecting read-only memory is greatly shortened.
In order to solve the above technical problems, the present invention provides the loading method for selecting read-only memory, it is suitable for that there is processing
The electronic device of unit and internal storage location, internal storage location is to store basic input-output unit (BIOS), and BIOS includes
At least one it is default select read-only memory, method include: when replacing function is enable, through processing unit execute BIOS with
It follows the steps below: judging whether there is replacement concordance list in storage device that processing unit can access, and replace concordance list and use
To indicate that the first identifier symbol and access path of read-only memory are selected at least replacement;When storage device has replacement concordance list
When, judge default select read-only memory second identifier symbol whether with the replacement selection read-only memory in replacement concordance list
First identifier symbol is consistent;When default selects the second identifier symbol of read-only memory to select with replacement indicated in replacement concordance list
When the first identifier symbol of read-only memory is consistent, parsing replacement concordance list selects depositing for read-only memory to obtain the replacement being consistent
Path is taken, and the replacement being consistent through acquired access path load selects read-only memory to execute;And when default choosing
When selecting the first identifier symbol of read-only memory not to be consistent with replacement with the second identifier symbol of read-only memory, default select is loaded
Read-only memory is to execute.
Preferably, the loading method for selecting read-only memory, further including ought judge that storage device does not have replacement concordance list
When, load default selects read-only memory to execute.
Preferably, the loading method of read-only memory is selected to further include when the default second identifier symbol for selecting read-only memory
When selecting the first identifier symbol of read-only memory to be consistent with replacement indicated in replacement concordance list, parsing replacement concordance list is to take
The access path of read-only memory is selected in the replacement that must be consistent, and judges replacement choosing whether is stored in acquired access path
Use read-only memory.In addition, selecting read-only memory when acquired access path does not store replacement, then load is default selects
Read-only memory is to execute.On the other hand, read-only memory is selected when acquired access path stores replacement, load is consistent
Replacement select read-only memory to execute.
Preferably, the enable of above-mentioned substitution function can set (BIOS in the basic input-output unit of above-mentioned electronic device
Setup setting in) executes basic input-output unit through processing unit to load default choosing when the non-enable of substitution function
With read-only memory to execute.
Compared to the prior art, the present invention by the enable present invention substitution function, developer select it is read-only
When the new version of memory is developed or removes wrong, new or modified selection read-only memory directly can be stored in storage
(read-only memory e.g., is selected) in device, and adds corresponding identifier and access path in replacement concordance list, can be surveyed
Try the newly added selection read-only memory of storage device institute whether can normal operation in an electronic, therefore can be not required to repeatedly
The development time for selecting read-only memory is greatly shortened in entire BIOS again imprinting by ground.
[Detailed description of the invention]
1st figure system shows the schematic diagram of electronic device described in an embodiment according to the present invention.
2nd figure system shows the running stream of the loading method of selection read-only memory described in an embodiment according to the present invention
Journey.
[specific embodiment]
The embodiment as described below in a specific way that expression is shown in icon or example.It will be appreciated that the embodiment or example are simultaneously
It is non-to limit.The replacement and modification of any embodiment of the present invention, and any of principle of the present invention further apply, for
There is usual operator can complete with reference to present specification in field of the present invention.
1st figure system shows the schematic diagram of electronic device 10 described in an embodiment according to the present invention.As shown in Fig. 1, electric
Sub-device 100 includes internal storage location 110 and processing unit 120, stores basic input-output unit in internal storage location 110
112 (hereinafter referred to as BIOS112), wherein BIOS112 also includes preset selection read-only memory (Option ROM) 114.When
After electronic device 100 is switched on, processing unit 120 obtains BIOS112 from internal storage location 110 then to execute, and when the present invention's
When replacing the non-enable of function (disable), preset selection will be loaded directly into during processing unit 120 executes BIOS112
Read-only memory 114 executes, and whereby the hardware device in drive electronics 100 corresponding thereto (is not depicted in icon
In).In addition, user can execute BIOS112 in processing unit 120 and enter basic input-output unit setting (BIOS Setup)
Interface after, decide whether enable replace function.On the other hand, processing unit 120 and 200 communication linkage of storage device, storage
Device 200 stores replacement concordance list 210 and the selection read-only memory 220 to replace.It will be understood that in some implementations
In example, BIOS112 may include that multiple preset selection read-only memory 114 are respectively corresponding to different hardware devices, and store
Device 200 also may include having the selection read-only memory 220 of multiple replacements to be respectively corresponding to different hardware devices.
In some embodiment of the invention, storage device 200 can be external connection type memory apparatus (for example, USB Portable disk), also
It can be the storage device (for example, hard disk) being set in electronic device 100.In addition, replacement concordance list 210 can be a kind of text
Part (Header file), File or list data file etc. select read-only memory in storage device 200 to indicate
220 identifier is (for example, globally unique identification is first;GUID) with its access path.Whereby, when the substitution function of the present invention is to cause
Energy (enable) state, then processing unit 120 can the mark according to indicated by replacement concordance list 210 during executing BIOS112
It accords with to judge whether the selection read-only memory 220 in storage device 200 is used to replace preset selection read-only memory 114,
And when judging replaceable, load the selection read-only memory 220 of replacement to execute, whereby in drive electronics 100 with its
Corresponding hardware device.For example, when the selection read-only memory 220 of preset selection read-only memory 114 and replacement
Identifier when being consistent, the selection read-only memory 220 that will be changed to replace in load storage device 200 is and non-load to execute
Preset selection read-only memory 114 in BIOS112.
Illustrate the running stream of the loading method of the selection read-only memory of the present invention with the 2nd figure and the 1st figure of cooperation below
Journey.In some embodiment of the invention, after the booting of electronic device 100, processing unit 120 will be obtained from internal storage location 110
BIOS112 carries out following procedure of the present invention through execute BIOS112 to execute.Firstly, in step S202, processing
Unit 120 judge to replace function whether enable, for example, processing unit 120, which can pass through to obtain to correspond to, replaces function setting
Definite value indicates enable if the setting value is " 1 " to determine whether enable, if the setting value is that " 0 " indicates non-enable.If taking
It is enabled for function, continues step S204, conversely, continuing step S214 if replacing the non-enable of function.In some embodiments
In, user can be after the booting of electronic device 100, into the user interface of basic input-output unit setting (BIOS Setup)
Setting corresponds to the setting value for replacing function,, then can basis when processing unit 120 executes BIOS112 again when booting next time
The setting of user judges whether the substitution function using the present invention.
In step S204, then judge whether to store replacement concordance list 210 in storage device 200, if so, then continuing to walk
Rapid S206, it is on the contrary then continue step S214.Then, in step S206, institute in the judgement replacement concordance list 210 of processing unit 120
Indicate replacement selection read-only memory 220 identifier whether in BIOS112 it is preset select read-only memory 114 mark
Know Fu Xiangfu, if being consistent, continues step S208, it is on the contrary then continue step S214.In step S208, processing unit 120 is solved
It analyses the replacement concordance list 210 and then obtains the access path of selection read-only memory 220 indicated in replacement concordance list 210,
And judge whether to have in acquired access path in step S210 and select read-only memory 220, if so, then continuing step
S212, it is on the contrary then continue step S214.
Finally, processing unit 120 selects read-only memory through acquired access path load in step S212
220 to execute.And on the other hand, in step S214, processing unit 120 then loads preset select in BIOS112 and read-only deposits
Reservoir 114 is to execute.
In conclusion substitution function of the present invention by the enable present invention, developer are carrying out selection read-only memory
New version exploitation or except it is wrong when, new or modified selection read-only memory directly can be stored in storage device
(read-only memory 220 e.g., is selected) in 200, and adds corresponding identifier and access path in replacement concordance list 210,
Can test the newly added selection read-only memory of the institute of storage device 200 whether can the normal operation in electronic device 100, because
This can be not required to repeatedly by entire BIOS112 again imprinting, and the development time for selecting read-only memory is greatly shortened.
The method of the present invention or specific kenel or its part can exist with the kenel of program code.Program code can be with
It is contained in tangible media, such as floppy disk, disc, hard disk or (such as computer-readable) storage of any other machine-readable
Media, or be not limited to the computer program product of external form, wherein when program code is by machine, such as computer load and
When execution, this machine becomes the device to participate in the present invention.Program code can also penetrate some transmission media, such as electric wire or
Cable, optical fiber or any transmission kenel are transmitted, wherein when program code is by machine, such as computer receives, load and
When execution, this machine becomes the device to participate in the present invention.In general service processing unit implementation, program code is combined
Processing unit provides an operation and is similar to the unique apparatus for applying particular logic circuit.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (4)
1. a kind of loading method for selecting read-only memory, is suitable for an electronic device, above-mentioned electronic device has a processing single
Member and an internal storage location, above-mentioned internal storage location is to store a basic input-output unit, and above-mentioned basic input and output list
Member includes that at least one default selects read-only memory, which is characterized in that its method includes: when a substitution function is enable, thoroughly
It crosses above-mentioned processing unit and executes above-mentioned basic input-output unit to follow the steps below:
One of judge above-mentioned processing unit and can access whether there is a replacement concordance list, and above-mentioned replacement concordance list in storage device
To indicate that the first identifier symbol and an access path of read-only memory are selected at least one replacement;
When said storage unit has above-mentioned replacement concordance list, the above-mentioned default second identifier for selecting read-only memory is judged
Whether symbol selects the above-mentioned first identifier of read-only memory to accord with the above-mentioned replacement in above-mentioned replacement concordance list is consistent;
When the above-mentioned default above-mentioned second identifier symbol for selecting read-only memory in above-mentioned replacement concordance list indicated by above-mentioned replace
It changes and selects the above-mentioned first identifier symbol of read-only memory when being consistent, parse above-mentioned replacement concordance list to obtain the above-mentioned replacement being consistent
The above-mentioned access path of read-only memory is selected, and the above-mentioned replacement being consistent through acquired above-mentioned access path load is selected
Read-only memory is to execute;And
When the above-mentioned default above-mentioned second identifier symbol for selecting read-only memory selects above-mentioned the of read-only memory with above-mentioned replacement
When one identifier is not consistent, above-mentioned default selection read-only memory is loaded to execute.
2. the loading method of the selection read-only memory as described in claim the 1, which is characterized in that further include: working as judgement
When said storage unit does not have above-mentioned replacement concordance list, above-mentioned default selection read-only memory is loaded to execute.
3. the loading method of the selection read-only memory as described in claim the 1, which is characterized in that further include:
When the above-mentioned default above-mentioned second identifier symbol for selecting read-only memory in above-mentioned replacement concordance list indicated by above-mentioned replace
It changes and selects the above-mentioned first identifier symbol of read-only memory when being consistent, parse above-mentioned replacement concordance list to obtain the above-mentioned replacement being consistent
The above-mentioned access path of read-only memory is selected, and judges whether store above-mentioned replacement choosing in acquired above-mentioned access path
Use read-only memory;
Read-only memory is selected when acquired above-mentioned access path does not store above-mentioned replacement, it is read-only to load above-mentioned default selection
Memory is to execute;And
Read-only memory is selected when acquired above-mentioned access path stores above-mentioned replacement, the above-mentioned replacement being consistent is loaded and selects
Read-only memory is to execute.
4. the loading method of the selection read-only memory as described in claim the 1, which is characterized in that above-mentioned substitution function
Enable is arranged in the basic input-output unit setting of above-mentioned electronic device, when the non-enable of above-mentioned substitution function, in transmission
It states processing unit and executes above-mentioned basic input-output unit to load above-mentioned default selection read-only memory to execute.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710722487.8A CN109426506B (en) | 2017-08-22 | 2017-08-22 | Loading method for selecting read-only memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710722487.8A CN109426506B (en) | 2017-08-22 | 2017-08-22 | Loading method for selecting read-only memory |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109426506A true CN109426506A (en) | 2019-03-05 |
CN109426506B CN109426506B (en) | 2022-01-28 |
Family
ID=65497713
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710722487.8A Active CN109426506B (en) | 2017-08-22 | 2017-08-22 | Loading method for selecting read-only memory |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109426506B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1254129A (en) * | 1998-11-12 | 2000-05-24 | 英业达集团(西安)电子技术有限公司 | Device for safely updating read-only memory and its method |
CN1281180A (en) * | 1999-07-15 | 2001-01-24 | 国际商业机器公司 | Transparently load resource in ROM for application program |
US20030074491A1 (en) * | 2001-10-17 | 2003-04-17 | Cepulis Darren J. | Method for expansion and integration of option ROM support utilities for run-time/boot-time usage |
CN1971513A (en) * | 2005-11-23 | 2007-05-30 | 晨星半导体股份有限公司 | Amending method for content of built-in program code of ROM |
CN101114230A (en) * | 2006-07-26 | 2008-01-30 | 英业达股份有限公司 | Method for reading and electing read only memory program code on self-storing mechanism |
CN101131649A (en) * | 2006-08-23 | 2008-02-27 | 乐金电子(昆山)电脑有限公司 | Updating speed improving method for read-only memory of device with flash memory |
CN105792751A (en) * | 2013-11-27 | 2016-07-20 | 雅培糖尿病护理公司 | Systems and methods for revising permanent ROM-based programming |
-
2017
- 2017-08-22 CN CN201710722487.8A patent/CN109426506B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1254129A (en) * | 1998-11-12 | 2000-05-24 | 英业达集团(西安)电子技术有限公司 | Device for safely updating read-only memory and its method |
CN1281180A (en) * | 1999-07-15 | 2001-01-24 | 国际商业机器公司 | Transparently load resource in ROM for application program |
US20030074491A1 (en) * | 2001-10-17 | 2003-04-17 | Cepulis Darren J. | Method for expansion and integration of option ROM support utilities for run-time/boot-time usage |
CN1971513A (en) * | 2005-11-23 | 2007-05-30 | 晨星半导体股份有限公司 | Amending method for content of built-in program code of ROM |
CN101114230A (en) * | 2006-07-26 | 2008-01-30 | 英业达股份有限公司 | Method for reading and electing read only memory program code on self-storing mechanism |
CN101131649A (en) * | 2006-08-23 | 2008-02-27 | 乐金电子(昆山)电脑有限公司 | Updating speed improving method for read-only memory of device with flash memory |
CN105792751A (en) * | 2013-11-27 | 2016-07-20 | 雅培糖尿病护理公司 | Systems and methods for revising permanent ROM-based programming |
Also Published As
Publication number | Publication date |
---|---|
CN109426506B (en) | 2022-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10817279B1 (en) | Providing different upgrade paths for upgrading a server | |
CN112270149B (en) | Verification platform automatic integration method and system, electronic equipment and storage medium | |
CN102725733B (en) | Porting virtual machine images between platforms | |
US9483284B2 (en) | Version compatibility determination | |
CN108959059B (en) | Test method and test platform | |
CN100533398C (en) | Debug information collection method and debug information collection system | |
CN106648803A (en) | Online upgrading method for DSP chip | |
CN110830234B (en) | User traffic distribution method and device | |
US20200334026A1 (en) | Managing upgrades of clients having different installed versions of a software product | |
JP2014510482A (en) | System and method for testing content of a mobile communication device | |
CN105068881A (en) | Method, device and system for repairing abnormal operation of application program | |
CN111158741B (en) | Method and device for monitoring dependency relationship change of service module on third party class library | |
WO2009044971A1 (en) | Method and system for determining interface compatibility based on component model | |
US7400997B2 (en) | Integrated instrument driver network | |
CN107784230B (en) | The restorative procedure and device of page loophole | |
CN104820676B (en) | A kind of method and device for judging version number's size | |
CN106095415A (en) | Exploitation file packing method, Apparatus and system | |
CN108319554A (en) | Test method, computer readable storage medium and the terminal device of application function | |
CN109359045A (en) | A kind of test method, device, equipment and storage medium | |
CN109933326A (en) | Rewrite Compilation Method, device and the corresponding terminal of code | |
CN112052037A (en) | Application software development method, device, equipment and medium | |
CN109002305A (en) | A kind of update method and its system of device program | |
CN111338669A (en) | Updating method and device for intelligent function in intelligent analysis box | |
CN114647519A (en) | Data transmission method and device between native platform and Flutter platform and storage medium | |
Noorian et al. | Non-functional properties in software product lines: A taxonomy for classification. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |