CN1254129A - Device for safely updating read-only memory and its method - Google Patents

Device for safely updating read-only memory and its method Download PDF

Info

Publication number
CN1254129A
CN1254129A CN 98121992 CN98121992A CN1254129A CN 1254129 A CN1254129 A CN 1254129A CN 98121992 CN98121992 CN 98121992 CN 98121992 A CN98121992 A CN 98121992A CN 1254129 A CN1254129 A CN 1254129A
Authority
CN
China
Prior art keywords
memory
read
rom
basic input
output system
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.)
Pending
Application number
CN 98121992
Other languages
Chinese (zh)
Inventor
陈淮琰
柳刚毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ELECTRONIC TECHNOLOGY CO Ltd (XIAN) OF YINGYEDA GROUP
Original Assignee
ELECTRONIC TECHNOLOGY CO Ltd (XIAN) OF YINGYEDA GROUP
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ELECTRONIC TECHNOLOGY CO Ltd (XIAN) OF YINGYEDA GROUP filed Critical ELECTRONIC TECHNOLOGY CO Ltd (XIAN) OF YINGYEDA GROUP
Priority to CN 98121992 priority Critical patent/CN1254129A/en
Publication of CN1254129A publication Critical patent/CN1254129A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Storage Device Security (AREA)
  • Read Only Memory (AREA)

Abstract

The present invention relates to a device for safely renovating read-only memory and its method. It is characterized by that at least an EEPROM is added in computer so as to can store basic input and output system different from version in original read-only memory (non-electrically erasable ROM) at any time, and under the condition of no regulating any hardware, it can safely and simply write the new basic input and output system into EEPROM, and when the computer is started, the basic input and output system being in EEPROM can be used as first parameter, and when in said memory there is no data or the data possesses error, it can use the basic input and output system being in non-electrically erasable ROM to execute the computer-starting programme, and can prevent that the computer can not be started, when the EEPROM possessss error data.

Description

The apparatus and method of safely updating read-only memory
The present invention relates to a kind of apparatus and method of safely updating read-only memory.
ROM (read-only memory) (ROM) is in order to storage important procedure and data in general computer.For example: the basic input/output (BIOS) of the elemental motion of control hardware, and this basic input/output (BIOS) is the basis of the CPU (central processing unit) commander hardware action of computer, just as kinematic train is in automobile, be element very important in the computer.
The ROM (read-only memory) of computer does not just rechange its content because of its read-only characteristic after the slow dress of computer is finished; In the time will upgrading its content, (for example change the BIOS of redaction) and must take apart the shell of computer, change whole ROM (read-only memory) after taking out motherboard, or by the jumper settings (seeing also Fig. 1) of hardware, select renewable ROM (read-only memory) (as flash memory), this way not only comparatively bothers, and boot program is complicated, must be in the hand-off process of wherein doing two cover Basic Input or Output System (BIOS)s.
And will upgrade the Basic Input or Output System (BIOS) of having sold the time, except that need carry out above-mentioned processing, need be by regaining product in user's hand, and after finishing renewal, send back to again in user's hand, for the producer and all very inconvenience of user.
In addition, when upgrading content of basic input output system in the mode of upgrading whole ROM (read-only memory) (ROM), its problem is to take computer casing apart, take out computer motherboard, find out the ROM (read-only memory) position, whole read-only memory element removed with the new read-only memory element of packing into, these steps all non-general user can finish again.Therefore, for the producer, the computer of having sold is carried out the ROM (read-only memory) content update, be one very the puzzlement and loaded down with trivial details process, and with computer by regaining in user's hand, then must have enough spaces to change and test for the technician, send computer back to user on hand again after finishing, process is loaded down with trivial details and consuming time.
And utilize mode that wire jumper selects different ROM (read-only memory) in the computer when upgrading its content; usually have electro-erasable programmable ROM (read-only memory) (EEPROM in the available ROM (read-only memory); as fast erasable ROM (read-only memory)) though the ROM (read-only memory) of this type can not dismantle any electronic component and upgrade its content; but if upgrade failure; or make the data of Electrically Erasable Read Only Memory be wiped free of when moment potential difference (PD) that machine caused because of computer; computer can't normal operation, even can not start shooting.
Inconvenient problem in view of computer ROM (read-only memory) renewal now, the inventor thinks deeply research in many ways, go through and attempt several times and improve, finally develop the renewal that not dismantle hardware and reach the ROM (read-only memory) content, and when start, differentiate automatically, when the data in the electronics Erasable Programmable Read Only Memory EPROM are wrong, still can read the Basic Input or Output System (BIOS) in the non-electrically erasable read-only memory, successfully carry out boot program.
An object of the present invention is outside non-erasable read-only memory, to set up at least one EEPROM (Electrically Erasable Programmable Read Only Memo), for the storage Basic Input or Output System (BIOS), can by the existing processing of CPU (central processing unit), under the situation of not adjusting any hardware setting, can differentiate and carry out the renewal operation of Basic Input or Output System (BIOS) automatically.
Another object of the present invention is that a non-electricallyerasable ROM (EEROM) and at least one EEPROM (Electrically Erasable Programmable Read Only Memo) are set simultaneously, when start, with the Basic Input or Output System (BIOS) in the EEPROM (Electrically Erasable Programmable Read Only Memo) is preferential parameter, only when wherein not having correct Basic Input or Output System (BIOS), just carry out the Basic Input or Output System (BIOS) in the non-electrically erasable read-only memory, so can guarantee to carry out the up-to-date Basic Input or Output System (BIOS) of content, and when writing failure, the Basic Input or Output System (BIOS) of fresh content still can start shooting the unlikely running that influences computer.
Fig. 1 commonly uses the hardware structure diagram of selecting ROM (read-only memory) in the wire jumper mode;
Fig. 2 is a hardware circuit synoptic diagram of the present invention;
Fig. 3 is the hardware circuit synoptic diagram of preferred embodiment of the present invention;
Fig. 4 is the identification process figure of one embodiment of the invention;
Fig. 5 is the renewal process flow diagram of one embodiment of the invention.
For more clearly expressing technical characterictic of the present invention, be described as follows with regard to embodiments of the invention now:
Hardware circuit used in the present invention sees also shown in Fig. 2, and it comprises storer 1 and storer 2, gate circuit OR1, OR2, NOT, electronegative potential (logical value 0) effective memory enable signal CS (enable), and control signal CRTL.When CRTL was electronegative potential (logical value 0), CS is control store 1 and forbid (disble) storer 2 effectively, and when CRTL was noble potential (logical value 1), CS is control store 2 and forbidden storage device 1 effectively.That is CRTL signal controlling CS activation storer 1 or storer 2, to substitute the wire jumper selection memory.
The hardware circuit of preferred embodiment of the present invention, see also shown in Figure 3, comprising storer BootROM (non-electrically erasable read-only memory) and storer Flash ROM, gate circuit AND, OR1, OR2, NOT, electronegative potential (logical value 0) effective memory enable signal CS0, CS1 and control signal CTRL.After start energising, but control signal CTRL 0 only has CS0 activation Boot ROM carrying out boot program wherein, and this program can be by CS1 activation Flash ROM reading data wherein, but and the verification wherein correctness and the integrality of data.And when control signal CTRL becomes 1, but CS0 activation Flash ROM only being arranged to carry out boot program wherein, this program still can be by CS1 activation Flash ROM to read data wherein.
Automatic recognition memory process flow diagram of the present invention as shown in Figure 4.This treatment scheme is carried out the boot program among the Boot ROM (please refer to shown in Figure 3) earlier, after the opening power, the original state of storer enable signal CS0 and control signal CTRL energising is electronegative potential (logical value is 0), guarantee that first activation Boot ROM is to carry out Basic Input or Output System (BIOS) wherein, this boot program judges whether earlier to carry out the Basic Input or Output System (BIOS) of storing among the Flash ROM, if, then then whether check has Basic Input or Output System (BIOS) ID storage, and check it correctly not, if there is correct Basic Input or Output System (BIOS) ID, just setting control signal CTRL is 1, reads the Basic Input or Output System (BIOS) among the Flash ROM then, and carries out; If the Basic Input or Output System (BIOS) among the Boot ROM is then still carried out in the verification failure,, can differentiate automatically with effective and correct Basic Input or Output System (BIOS) among Basic Input or Output System (BIOS) among the execution Boot ROM or the Flash ROM by the present invention.
Fig. 5 is for upgrading the process flow diagram of Basic Input or Output System (BIOS) among the Flash ROM (please refer to shown in Figure 3), this flow process is carried out earlier to upgrade and is handled, fill in structure behind effective I D and the checking parameter after the success, upgrade operation if writing failure then upgrades operation again, just finish to upgrade above default upper limit value M ax until writing times N.Cooperate the treatment scheme among Fig. 4, can find no matter whether once upgraded, or whether upgrade processing successful, the Basic Input or Output System (BIOS) of storing among the Boot ROM is carried out in neither obstruction, but thereby can guarantee all normal boot-strap actions in all cases.
The above only be embodiments of the invention, but the right that the present invention advocated is not limited to this, is familiar with present technique person by all, according to disclosed technology contents, can think easily and some change, all should belong to and not break away from protection scope of the present invention.

Claims (10)

1, a kind of device of safely updating read-only memory, when this is installed on a booting computer, make CPU (central processing unit) can pass through the selection of ROM (read-only memory) selected cell, read the Basic Input or Output System (BIOS) that a ROM (read-only memory) is stored at least two ROM (read-only memory), to carry out boot program, this device comprises:
First ROM (read-only memory), storage first Basic Input or Output System (BIOS) in this ROM (read-only memory) is to carry out first boot program when the booting computer;
At least one second ROM (read-only memory), these ROM (read-only memory) can write second Basic Input or Output System (BIOS) by CPU (central processing unit);
The ROM (read-only memory) selected cell, by the control signal of receiving CPU (central processing unit), CPU (central processing unit) can be passed through this unit when start, selects activation first or at least one second ROM (read-only memory).
2, the device of safely updating read-only memory as claimed in claim 1 is characterized in that, first ROM (read-only memory) is a mask ROM.
3, the device of safely updating read-only memory as claimed in claim 1 is characterized in that, first ROM (read-only memory) is a programmable read only memory.
4, the device of safely updating read-only memory as claimed in claim 1 is characterized in that, first ROM (read-only memory) is an EPROM (Erasable Programmable Read Only Memory).
5, the device of safely updating read-only memory as claimed in claim 1 is characterized in that, second ROM (read-only memory) is an EEPROM (Electrically Erasable Programmable Read Only Memo).
6, the device of safely updating read-only memory as claimed in claim 1 is characterized in that, the ROM (read-only memory) selected cell is a DLC (digital logic circuit).
7, a kind of method of safely updating read-only memory, it is characterized in that, this method is when booting computer, make its CPU (central processing unit) carry out the Basic Input or Output System (BIOS) that is stored in the former ROM (read-only memory) earlier, again according to the boot program of this Basic Input or Output System (BIOS), another Basic Input or Output System (BIOS) and identification marking value thereof are write in the another memory read (electricity can change programmable read only memory); Then, CPU (central processing unit) can be complied with this identification marking, selects to carry out the Basic Input or Output System (BIOS) in the former ROM (read-only memory), or carries out the Basic Input or Output System (BIOS) in the another memory read.
8, the method for safely updating read-only memory as claimed in claim 7, it is characterized in that, CPU (central processing unit) can be passed through a DLC (digital logic circuit), selects to carry out the Basic Input or Output System (BIOS) in the former ROM (read-only memory), or carries out the Basic Input or Output System (BIOS) in the another memory read.
9, the method for a kind of safely updating read-only memory as claimed in claim 7 is characterized in that, identification marking is the version recognition code of Basic Input or Output System (BIOS).
10, the method for safely updating read-only memory as claimed in claim 7 is characterized in that, identification marking is the record of updating BIOS success or not.
CN 98121992 1998-11-12 1998-11-12 Device for safely updating read-only memory and its method Pending CN1254129A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 98121992 CN1254129A (en) 1998-11-12 1998-11-12 Device for safely updating read-only memory and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 98121992 CN1254129A (en) 1998-11-12 1998-11-12 Device for safely updating read-only memory and its method

Publications (1)

Publication Number Publication Date
CN1254129A true CN1254129A (en) 2000-05-24

Family

ID=5227480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 98121992 Pending CN1254129A (en) 1998-11-12 1998-11-12 Device for safely updating read-only memory and its method

Country Status (1)

Country Link
CN (1) CN1254129A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1331050C (en) * 2004-11-29 2007-08-08 华为技术有限公司 Method for starting basic input and output system
CN100504782C (en) * 2006-12-18 2009-06-24 纬创资通股份有限公司 Computer system capable of avoiding update failure of basic input /output system program
CN101604248B (en) * 2009-07-20 2012-09-26 北京海尔集成电路设计有限公司 Embedded system for correcting programs in read only memory and realization method thereof
CN101788951B (en) * 2008-08-15 2012-10-10 北京北大众志微系统科技有限责任公司 Storage method for network computer
CN109426506A (en) * 2017-08-22 2019-03-05 佛山市顺德区顺达电脑厂有限公司 Select the loading method of read-only memory

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1331050C (en) * 2004-11-29 2007-08-08 华为技术有限公司 Method for starting basic input and output system
CN100504782C (en) * 2006-12-18 2009-06-24 纬创资通股份有限公司 Computer system capable of avoiding update failure of basic input /output system program
CN101788951B (en) * 2008-08-15 2012-10-10 北京北大众志微系统科技有限责任公司 Storage method for network computer
CN101604248B (en) * 2009-07-20 2012-09-26 北京海尔集成电路设计有限公司 Embedded system for correcting programs in read only memory and realization method thereof
CN109426506A (en) * 2017-08-22 2019-03-05 佛山市顺德区顺达电脑厂有限公司 Select the loading method of read-only memory
CN109426506B (en) * 2017-08-22 2022-01-28 佛山市顺德区顺达电脑厂有限公司 Loading method for selecting read-only memory

Similar Documents

Publication Publication Date Title
US5930504A (en) Dynamic nonvolatile memory update in a computer system
US6317827B1 (en) Method and apparatus for fault tolerant flash upgrading
CN100432948C (en) Automatic replacement of corrupted BIOS image
US6889340B1 (en) Use of extra firmware flash ROM space as a diagnostic drive
EP0489227B1 (en) Data storage system having removable media and equipped to download a control program from the removable media
CN100380529C (en) Nonvolatile memory
US20080005462A1 (en) Method of configuring non-volatile memory for a hybrid disk drive
WO1998059296A2 (en) A method of updating program code for an optical disc drive microcontroller and an optical disc drive
KR19990023469A (en) Control Method of Nonvolatile Semiconductor Memory
CN101923473B (en) Embedded electronic device and method for updating firmware thereof
CN111240720A (en) Boot program upgrading method and device and storage medium
EP1679599B1 (en) File update system and boot management system of mobile communication terminal, and corresponding methods
CN101770372A (en) Firmware update system, method and building method of firmware of firmware update system
US6092190A (en) Electronic apparatus including a memory device and method of reprogramming the memory device
CN116009921A (en) Method, device and medium for upgrading embedded operating system
US7219221B2 (en) System and method for automatic booting based on single flash ROM
CN1254129A (en) Device for safely updating read-only memory and its method
US6795915B2 (en) Computer system and method for setting up information on an operating system thereof
JP2000163268A (en) Computer
CN105279094A (en) NAND Flash operation processing method, NAND Flash operation processing device and logic device
CN102184115A (en) Method and device for updating system software
CN114996717A (en) Upgrade program design method for preventing error erasure
CN112527341B (en) Vehicle system upgrading method, vehicle system and computer storage medium
CN112650513B (en) Program upgrading method, device, computer equipment and storage medium
JP2002175193A (en) Device and method for rewriting program

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication