CN1967480A - Firmware loading method and device - Google Patents
Firmware loading method and device Download PDFInfo
- Publication number
- CN1967480A CN1967480A CN 200510124794 CN200510124794A CN1967480A CN 1967480 A CN1967480 A CN 1967480A CN 200510124794 CN200510124794 CN 200510124794 CN 200510124794 A CN200510124794 A CN 200510124794A CN 1967480 A CN1967480 A CN 1967480A
- Authority
- CN
- China
- Prior art keywords
- firmware
- electronic installation
- data
- electronic device
- storage component
- 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
Links
- 238000011068 loading method Methods 0.000 title claims abstract description 7
- 230000006870 function Effects 0.000 claims description 3
- 238000009434 installation Methods 0.000 claims 16
- 238000001514 detection method Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 6
- 238000004519 manufacturing process Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 4
- 238000012360 testing method Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种固件更新方法及装置,特别是涉及一种可以在线编程(insystem programming)一未存储数据的固件存储装置的固件更新方法及装置。The present invention relates to a firmware update method and device, in particular to a firmware update method and device capable of in-system programming (insystem programming) a firmware storage device that does not store data.
背景技术Background technique
固件为电子装置中,将软件程序烧在一固件存储装置,例如硬件只读芯片中,为一种内建有软件的硬件。固件有可能是特别的程序代码,例如:机械语言(Machine Language)程序存储在只读存储器(ROM)芯片中,以便处理器(processor)随时取用,而且在计算机关机后仍会保存。Firmware is an electronic device in which a software program is burned into a firmware storage device, such as a hardware read-only chip, which is a kind of hardware with built-in software. Firmware may be a special program code, for example: Machine Language (Machine Language) program is stored in a read-only memory (ROM) chip so that the processor (processor) can access it at any time, and it will still be saved after the computer is turned off.
在线编程装置为一可接收外部的更新固件数据,并将其烧录至该固件存储装置的电子装置。利用在线编程装置,使用者或是维修人员可以在不取下固件存储组件的情况下,更新该计算机的固件数据。The in-circuit programming device is an electronic device that can receive external update firmware data and burn it into the firmware storage device. Using the online programming device, the user or maintenance personnel can update the firmware data of the computer without removing the firmware storage component.
图1为传统一具有在线编程装置的电子装置10的方块图。电子装置10包括处理器11,固件存储组件12以及在线编程装置13。电子装置10开机时,处理器11至固件存储组件12读取程序代码作初始设定,因此该电子装置可以正常动作。当电子装置10需要作固件数据更新时,处理器11控制在线编程装置13启动,接收外部的更新固件数据,并将其烧录至该固件存储组件12。FIG. 1 is a block diagram of a conventional
传统的电子装置,在固件存储组件设置到该电子装置之前,须在固件存储组件预先烧录有效的固件数据。这是因为如果固件存储组件中无数据,处理器无法初始设定,该电子装置无法动作。因此该在线编程装置无法接受处理器启动,以致无法接收外部的更新固件数据。In traditional electronic devices, valid firmware data must be pre-programmed in the firmware storage component before the firmware storage component is installed in the electronic device. This is because if there is no data in the firmware storage component, the processor cannot be initialized, and the electronic device cannot operate. Therefore, the in-circuit programming device cannot accept processor startup, so that it cannot receive external update firmware data.
发明内容Contents of the invention
本发明提供一电子装置的固件加载方法,包括:在该电子装置开机时,检测该电子装置的一固件存储组件是否存储数据;并且当该固件存储组件无存储数据时,启动一在线编程功能,接收外部传送的固件数据并烧录至固件存储组件中。The present invention provides a firmware loading method of an electronic device, comprising: when the electronic device is turned on, detecting whether a firmware storage component of the electronic device stores data; and when the firmware storage component has no stored data, starting an online programming function, Receive externally transmitted firmware data and burn it into the firmware storage component.
本发明另提供一电子装置包括:一处理器;一固件存储组件;一在线编程装置;以及一检测装置,该检测装置在电子装置开机时检测一固件存储组件是否存储数据;在检测到该固件存储组件无存储数据时,该检测装置通知该在线编程装置启动以接收外部传送的固件数据并烧录至该固件存储组件中。The present invention further provides an electronic device including: a processor; a firmware storage component; an online programming device; and a detection device, which detects whether a firmware storage component stores data when the electronic device is turned on; When the storage component has no stored data, the detection device notifies the in-circuit programming device to start to receive firmware data transmitted from the outside and burn it into the firmware storage component.
本发明的附加特征及优点有部分将在后文叙述中提及,而有部分将因后文的叙述而显而易见或可经由实作本发明而习得。本发明的特征及优点将由专利申请范围叙述中特别指出的机制的组件及组合来了解及获得。Some of the additional features and advantages of the invention will be mentioned in the description below, and some will be apparent from the description below, or can be learned by practicing the invention. The features and advantages of the invention will be realized and attained by means of the components and combinations of mechanisms particularly pointed out in the recitation of the patent claims.
本文前述的简略说明以及以下的详细叙述仅用为示范及解释本发明,并非用以限定申请专利范围所界定的本发明。The foregoing brief description and the following detailed description herein are only used to demonstrate and explain the present invention, and are not intended to limit the present invention defined by the scope of the patent application.
附加的图标包含于并构成本规格说明的一部分,图标本发明的数个实施例,并且跟文字叙述一起用来解释本发明的原理。The accompanying figures, which are included in and constitute a part of this specification, illustrate several embodiments of the invention and, together with the text, serve to explain the principles of the invention.
附图说明Description of drawings
本发明通过后附详细说明的图示将会比较容易全盘了解,其仅为图解之用而非将本发明限制于图示范围。The present invention will be easier to fully understand through the illustrations accompanying the detailed description, which are for illustration purposes only and do not limit the present invention to the scope of the illustrations.
图1为传统一具有在线编程装置的电子装置10的方块图。FIG. 1 is a block diagram of a conventional
图2为根据本发明一实施例的具有在线编程装置的电子装置20的方块图。FIG. 2 is a block diagram of an electronic device 20 with an in-circuit programming device according to an embodiment of the invention.
图3为根据本发明另一实施例的具有在线编程装置的电子装置30的方块图。FIG. 3 is a block diagram of an
附图符号说明Description of reference symbols
11、21、31处理器11, 21, 31 processors
12、22、32固件存储组件12, 22, 32 firmware storage components
13、23、33在线编程装置13, 23, 33 online programming device
24、34检测装置24, 34 detection device
具体实施方式Detailed ways
图2为根据本发明一实施例的具有在线编程装置的电子装置20的方块图。电子装置20包括处理器21,固件存储组件22,在线编程装置23及一检测装置24。FIG. 2 is a block diagram of an electronic device 20 with an in-circuit programming device according to an embodiment of the invention. The electronic device 20 includes a processor 21 , a firmware storage component 22 , an in-circuit programming device 23 and a detection device 24 .
检测装置24在该电子装置20开机时,检测该固件存储组件22是否存储固件数据。当检测装置24检测到该固件存储组件22有存储数据时,通知处理器21作正常开机动作。当检测装置24检测到该固件存储组件22无存储数据时,该检测装置24通知该在线编程装置23启动以接收外部传送的固件数据并烧录至该固件存储组件22中。The detection device 24 detects whether the firmware storage component 22 stores firmware data when the electronic device 20 is turned on. When the detection device 24 detects that the firmware storage component 22 has stored data, it notifies the processor 21 to perform a normal boot operation. When the detection device 24 detects that the firmware storage component 22 has no stored data, the detection device 24 notifies the in-circuit programming device 23 to start to receive the externally transmitted firmware data and burn it into the firmware storage component 22 .
固件存储组件22若未烧录数据,其内容一般为每个位均为逻辑”1”。一电子装置的存储空间均会规划一地址区段,供处理器或其它电子组件存取固件存储组件中的固件数据使用。依所使用的处理器的不同,会分配给固件存储组件不同的区段地址。处理器开机后发出的第一个要求,即为读取一属于该固件存储组件的存储地址中的数据。该第一个要求的存储地址一般称为该处理器的初始地址。如果固件存储组件已烧录数据,该初始地址的存储空间内容就不可能为每个位均为逻辑”1”。判断一固件存储组件是否已烧录数据的方式,一般为读取该处理器的初始地址指向的存储空间,其内容是否所有位均为逻辑”1”。If the firmware storage component 22 is not programmed with data, its content is generally logic “1” for each bit. The storage space of an electronic device will plan an address segment for the processor or other electronic components to access the firmware data in the firmware storage component. Depending on the processor used, different segment addresses will be assigned to the firmware storage components. The first request sent by the processor after booting is to read data in a storage address belonging to the firmware storage component. The first requested memory address is generally referred to as the processor's initial address. If the firmware storage component has programmed data, it is impossible for the content of the storage space at the initial address to be logic "1" for each bit. The method of judging whether a firmware storage unit has programmed data is generally to read the storage space pointed to by the initial address of the processor, and whether all bits of its content are logic “1”.
检测装置24检测该固件存储组件22是否存储固件数据的方式可为:读取该电子装置20的一存储地址的内容,并在该存储地址的内容每个位的值均为逻辑”1”时,判断该固件存储组件22无数据。其中,该存储地址为该处理器21的初始地址。The detection device 24 detects whether the firmware storage component 22 stores firmware data in a manner that reads the content of a storage address of the electronic device 20, and when the value of each bit of the content of the storage address is logic "1" , it is judged that the firmware storage component 22 has no data. Wherein, the storage address is the initial address of the processor 21 .
该固件存储组件22内有存储固件数据时,处理器21会在电子装置20需要作固件数据更新时,控制在线编程装置23启动,接收外部的更新固件数据,并将其烧录至该固件存储组件22。When firmware data is stored in the firmware storage component 22, the processor 21 will control the online programming device 23 to start when the electronic device 20 needs to update the firmware data, receive external updated firmware data, and burn it into the firmware storage. Component 22.
该在线编程装置23可在固件数据更新至该固件存储组件22后,送出一重置信号重置该电子装置20,使电子装置20一更新后的固件数据重新初始设定,而能够正常动作。The in-circuit programming device 23 can send a reset signal to reset the electronic device 20 after the firmware data is updated to the firmware storage component 22 , so that the electronic device 20 can be re-initialized with the updated firmware data and can operate normally.
图3为根据本发明另一实施例的具有在线编程装置的电子装置30的方块图。电子装置30包括处理器31,固件存储组件32,在线编程装置33及一检测装置34。其中,该处理器31的初始地址为0。FIG. 3 is a block diagram of an
检测装置34包括与门341及344,或非门343以及反向器342。或非门34连接到固件地址总线A[0..N]上,其中N+1为固件地址总线的位数目。与门341连接到固件数据总线D[0..M]上,其中M+1为固件数据总线的位数目。反向器342连接到读取使能信号
RE。与门341连接到与门341,或非门343以及反向器342。The
当电子装置30开机时,处理器31会对固件处理装置作出使地址为0的发出初始地址0至固件地址总线A[0..N]上。处理器31另发出有效的读取使能信号
RE,此时固件地址总线A[0..N]及读取使能信号
RE均为逻辑准位’0’。或非门343以及反向器342收到该等逻辑准位’0’的信号,会送出逻辑准位’1’的结果。若此时固件存储组件32送出至固件数据总线D[0..M]上的数据每个位均为逻辑’1’,则与门341的输出为逻辑’1’,则与门344的输入全为逻辑’1’,输出逻辑’1’的信号给在线编程装置33。在线编程装置33在收到逻辑’1’的信号时,启动在线编程功能,接收外部的更新固件数据,并将其烧录至该固件存储组件32。When the
通过本发明的实施例,固件存储组件可以在其内部尚未存储数据时,直接设置至电子装置中。如此可以在生产过程中,省略在零件设置至电子装置前,在固件存储组件烧录固件数据的步骤;而后可以在生产线的出货测试部门,以在线编程的方式将固件加载。由于系统硬件组装与出货的日期可能相差甚久,预先烧录的固件数据往往已需在出货时再作一更新处理。利用本发明此一实施方式,电子装置仅需在生产线的出货测试部门作一次最新固件数据的在线编程,节省生产成本。Through the embodiment of the present invention, the firmware storage component can be directly set into the electronic device when no data is stored in it. In this way, in the production process, the step of burning firmware data in the firmware storage component before the parts are set to the electronic device can be omitted; and then the firmware can be loaded in the way of online programming in the delivery test department of the production line. Since the date of system hardware assembly and shipment may be very different, the pre-burned firmware data often needs to be updated again when it is shipped. With this embodiment of the present invention, the electronic device only needs to perform online programming of the latest firmware data once in the delivery test department of the production line, which saves production costs.
虽然本发明已以较佳实施例揭露如上,然其并非用以限定本发明,任何熟习此技艺者,在不脱离本发明的精神和范围内,当可作些许的更动与润饰,因此本发明的保护范围当视后附的申请专利范围所界定者为准。Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Anyone skilled in the art can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, this The scope of protection of the invention shall be defined by the scope of the appended patent application.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 200510124794 CN1967480A (en) | 2005-11-15 | 2005-11-15 | Firmware loading method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 200510124794 CN1967480A (en) | 2005-11-15 | 2005-11-15 | Firmware loading method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN1967480A true CN1967480A (en) | 2007-05-23 |
Family
ID=38076272
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 200510124794 Pending CN1967480A (en) | 2005-11-15 | 2005-11-15 | Firmware loading method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1967480A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101373435B (en) * | 2007-08-24 | 2013-09-18 | 联发科技股份有限公司 | Processing system and method for downloading firmware and performing tests |
| CN106775796A (en) * | 2015-11-25 | 2017-05-31 | 大唐移动通信设备有限公司 | A kind of firmware upgrade method, apparatus and system |
-
2005
- 2005-11-15 CN CN 200510124794 patent/CN1967480A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101373435B (en) * | 2007-08-24 | 2013-09-18 | 联发科技股份有限公司 | Processing system and method for downloading firmware and performing tests |
| CN106775796A (en) * | 2015-11-25 | 2017-05-31 | 大唐移动通信设备有限公司 | A kind of firmware upgrade method, apparatus and system |
| CN106775796B (en) * | 2015-11-25 | 2020-04-03 | 大唐移动通信设备有限公司 | Firmware upgrading method, device and system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8793477B2 (en) | Bootstrap OS protection and recovery | |
| US6725178B2 (en) | Use of hidden partitions in a storage device for storing BIOS extension files | |
| CN1926518A (en) | Autonomous memory checker for runtime security assurance and method therefore | |
| US7043664B1 (en) | Firmware recovery | |
| CN106598635B (en) | Recovery method of baseboard management controller and baseboard management controller | |
| US7111202B2 (en) | Autonomous boot failure detection and recovery | |
| US6073206A (en) | Method for flashing ESCD and variables into a ROM | |
| US8499295B2 (en) | Microcontroller firmware running from RAM and applications of the same | |
| US7003659B2 (en) | Method and/or apparatus for reliably booting a computer system | |
| US7941658B2 (en) | Computer system and method for updating program code | |
| US20020166083A1 (en) | Conditional hardware scan dump data capture | |
| US20100180104A1 (en) | Apparatus and method for patching microcode in a microprocessor using private ram of the microprocessor | |
| JP2003099268A (en) | Method and system for creating and employing operating system having selected functionality | |
| US20100023741A1 (en) | Method for setting bios and recreating checksum value | |
| TW201506788A (en) | Secure boot override in a computing device equipped with unified-extensible firmware interface (UEFI)-compliant firmware | |
| EP2151755A1 (en) | Electronic device and method for updating bios thereof | |
| JPH07271711A (en) | Computer system | |
| CN114721493B (en) | Chip starting method, computer equipment and readable storage medium | |
| US12271480B2 (en) | Information handling systems and related methods to prevent tampering and verify the integrity of non-volatile data stored within non-volatile memory | |
| CN1967480A (en) | Firmware loading method and device | |
| CN1678995A (en) | Method and apparatus for identifying hardware compatibility and enabling stable software images | |
| CN1198209C (en) | PC system and method for protecting BIOS | |
| JP7005676B2 (en) | Safety devices and safety methods for monitoring system startup | |
| CN120066598A (en) | Method for classifying operating system boot items, computer program product and server | |
| TWI415001B (en) | Embedded system with authentication and authentication method of embedded system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
| WD01 | Invention patent application deemed withdrawn after publication |