CN101739262A - Firmware updating method and electronic device using same - Google Patents
Firmware updating method and electronic device using same Download PDFInfo
- Publication number
- CN101739262A CN101739262A CN200810172738A CN200810172738A CN101739262A CN 101739262 A CN101739262 A CN 101739262A CN 200810172738 A CN200810172738 A CN 200810172738A CN 200810172738 A CN200810172738 A CN 200810172738A CN 101739262 A CN101739262 A CN 101739262A
- Authority
- CN
- China
- Prior art keywords
- core
- operating system
- electronic installation
- module
- internal memory
- 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
Images
Abstract
The invention relates to a firmware updating method which comprises the following steps: executing a starting-up operating system to actuate an electronic device to operate; executing a firmware updating program for a peripheral device; after the firmware updating program is executed, storing the core of a simple operating system into a memory of the electronic device; and executing the simple operating system and replacing the starting-up operating system, wherein when the simple operating system is executed, the electronic device only reads the core of the simple operating system by the memory, and a firmware of the peripheral device is updated. The invention also discloses the electronic device using the method.
Description
Technical field
The present invention relates to a kind of firmware update and application thereof, and particularly relevant for a kind of firmware update and application thereof to the hard disk relevant device.
Background technology
Generally speaking, computing machine all has a firmware (firmware), is used for driving its basic function.Wrong or when desiring to make the new function of hardware supported when the program code in the firmware, can the firmware of correct or new edition be replaced original firmware by firmware update usually.Generally speaking, after firmware update is finished, need restart computing machine and just can make computing machine according to the firmware operation hardware after upgrading.Yet, because therefore the no initializtion still of the firmware after upgrading needs start again just can make computing machine according to the firmware operation hardware after upgrading.
Therefore, as if the adapter to hard disk or serial connection hard disk, for example disk array card (Redundant Arrayof Independent Disks Card, RAID Card), do firmware update, then need before entering operating system, promptly to upgrade firmware, and start could be done access to hard disk again.Because if when the firmware of interface of hard disk or serial connection hard disk done renewal, computing machine is just in executive operating system, then can cause the computing machine can't be from the required data of harddisk access executive operating system.Thus, can make computer down or or even system damage.
Summary of the invention
Therefore a purpose of the present invention is for providing a kind of firmware update, be stored to an internal memory by core (kernel) with an ease of Use system, and make when doing firmware update, can make computing machine only according to the core running that is stored in the ease of Use system in the internal memory.
Another object of the present invention is to provide a kind of electronic installation, when hard disk or disk array card were done firmware update, this electronic installation still can normal operation, and after firmware update is finished, this electronic installation can or restart according to the normal procedure shutdown, to avoid when machine or system's damage.
According to one embodiment of the invention, a kind of firmware update of the present invention comprises following steps:
Carry out a start operating system and make electronic installation running.
Execution is to a firmware update program of a peripherals.
After carrying out the firmware update program, the core of an ease of Use system (reduced operating system) is stored to an internal memory of electronic installation.
Carry out the ease of Use system, and replace start operating system, wherein when carrying out the ease of Use system, only read the core of ease of Use system by internal memory.
After carrying out the ease of Use system, upgrade a firmware of peripherals.
According to another embodiment of the present invention, a kind of electronic installation of the present invention comprises an internal memory, a hard disk, a disk array card and a control module.Hard disk stores the core of one first operating system and the core of one second operating system.The disk array card comprises a flash memory, in order to the firmware of stored disk RAID card.Control module comprises an operating module, a storage module, all die change pieces and a update module.Operating module makes the electronic installation running according to the core of first operating system.Storage module is stored to internal memory to the core of second operating system after a firmware update program of carrying out the disk array card.Handover module makes operating module only according to the core of second operating system in the internal memory after storage module is stored to internal memory to the core of second operating system, carries out the electronic installation running.Update module is upgraded the firmware of disk array card after operating module is only according to the running of the core of second operating system in the internal memory.
According to further embodiment of this invention, a kind of electronic installation of the present invention comprises an internal memory, a hard disk and a control module.Hard disk comprises a storage unit and a flash memory.Storage unit stores the core of one first operating system and the core of one second operating system.The firmware of flash memory stores hard disk.Control module comprises an operating module, a storage module, all die change pieces and a update module.Operating module makes the electronic installation running according to the core of first operating system.Storage module is stored to internal memory to the core of second operating system after a firmware update program of carrying out hard disk.Handover module makes operating module only according to the core of second operating system in the internal memory after storage module is stored to internal memory to the core of second operating system, carries out the electronic installation running.Update module is upgraded the firmware of hard disk after operating module is only according to the running of the core of second operating system in the internal memory.
By the invention described above preferred embodiment as can be known, use the present invention and have following advantage.When hard disk or disk array card are done firmware update, still can make the electronic installation normal operation.After firmware update is finished, can make electronic installation according to normal procedure shutdown or restart, to avoid when machine or system's damage.
Description of drawings
For above and other objects of the present invention, feature, advantage and embodiment can be become apparent, accompanying drawing is described in detail as follows:
Fig. 1 is the process flow diagram according to a kind of firmware update of one embodiment of the invention;
Fig. 2 is the functional block diagram according to a kind of electronic installation of another embodiment of the present invention;
Fig. 3 is an embodiment of the storage module 242 among Fig. 2;
Fig. 4 is the functional block diagram according to a kind of electronic installation of further embodiment of this invention;
Fig. 5 is an embodiment of the storage module 332 among Fig. 4.
[main element symbol description]
100: firmware update 248: restart module
102~114: step 300: electronic installation
200: electronic installation 310: internal memory
210: internal memory 311: virtual hard disk
211: virtual hard disk 320: hard disk
220: hard disk 321: storage unit
230: disk array card 322: flash memory
231: flash memory 330: control module
240: control module 331: operating module
241: operating module 332: storage module
242: storage module 333: handover module
243: handover module 334: update module
244: update module 335: virtual module
245: virtual module 336: reservoir
246: reservoir 337: the shutdown module
247: shutdown module 338: restart module
Embodiment
With reference to Fig. 1, it is the process flow diagram according to a kind of firmware update of one embodiment of the invention.When desire was upgraded the firmware of a peripherals of an electronic installation, firmware update 100 was stored to internal memory to the core of an ease of Use system, and when upgrading firmware, only the core according to the ease of Use system in the internal memory makes the electronic installation running then.Firmware update 100 comprises following steps:
Carry out a start operating system and make electronic installation running (step 102).Wherein, electronic installation is that computing machine, mobile computer or other have the electronic installation of the storage unit of firmware.The core of start operating system can be stored in the storage unit in the electronic installation, as hard disk, flash disk (flash disk), hybrid hard disk or other storage device.Start operating system can be Microsft Windows operating system (MicrosoftWindows), Linux, Unix or other operating system.
Execution is to a firmware update program (step 104) of a peripherals.Wherein, peripherals can be hard disk, solid state hard disc (Solid State Disk, SSD), the adapter of flash disk (flash disk), hybrid hard disk (hybrid hard disk), serial connection hard disk, disk array card (Redundant Array ofIndependent Disks Card for example, or other and the relevant element of core of access start operating system RAID Card).To the firmware update program of peripherals is to be used for the program of initialization firmware update flow process.
After carrying out the firmware update program, with the core of an ease of Use system be stored to electronic installation-internal memory (step 106).Wherein, the core of ease of Use system can comprise electronic installation and operates needed driver, instruction set or other application program substantially.In addition, the core of ease of Use system does not comprise the instruction set or the application program of relevant harddisk access, to avoid because can't be when the firmware update access hard disk, and cause electronic installation 200 when machine or system's damage.Internal memory be random access memory (random accessmemory, ram).In the practical operation, a block of first allocate memory is to form a virtual hard disk.Then, the core of ease of Use system is stored to virtual hard disk.
Carry out the ease of Use system, and replace start operating system, wherein when carrying out the ease of Use system, only read the core (step 108) of ease of Use system by internal memory.For instance, when firmware update 100 practical operations are on linux, can switch to internal memory by access catalogue and reach the core that only reads the ease of Use system by internal memory with root file system (root file system).
After carrying out the ease of Use system, upgrade a firmware (step 110) of peripherals.Thus, in the firmware that upgrades peripherals, electronic installation still can be carried out the ease of Use system that is stored in the internal memory, and normal operation.
After firmware update is finished, can make electronic installation shutdown (step 112) through the core of ease of Use system.Thus, can be after firmware update be finished, through ease of Use system normal shutdown.That is to say, can avoid after firmware update is finished because still no initializtion is finished the peripherals of firmware update, and can't access start operating system core caused when machine or system's damage.
Then, can be through the core of ease of Use system, electronic installation is restarted and carry out first operating system (step 114).Thus, electronic installation can make peripherals according to the firmware running after upgrading after starting shooting again and carrying out first operating system.
With reference to Fig. 2, it is the functional block diagram according to a kind of electronic installation of another embodiment of the present invention.Electronic installation 200 is by being stored to internal memory 210 to the core of an operating system, and when the firmware of the disk array card 230 that upgrades electronic installation 200, only the core according to the operating system in the internal memory 210 makes electronic installation 200 runnings then.
Wherein, electronic installation 200 comprises an internal memory 210, a hard disk 220, a disk array card 230 and a control module 240.Internal memory 210 is a random access memory.Hard disk 220 can be the hard disk of conventional hard, solid state hard disc, flash disk, hybrid hard disk or other pattern.Disk array card 230 is with disk array (Redundant Array of Independent Disks, principle serial connection hard disk 220 RAID).
With reference to Fig. 3, it is an embodiment of the storage module 242 among Fig. 2.Furthermore, storage module 242 comprises a virtual module 245 and a reservoir 246.One block of virtual module 245 allocate memories 210 is to form a virtual hard disk 211.Reservoir 246 is stored to virtual hard disk 211 to the core of second operating system.Because the finite capacity of virtual hard disk 211, therefore the core of second operating system only need comprise the needed base program of electronic installation 200 runnings, as driver, instruction set or other application program.Thus, the mode that electronic installation 200 can be by virtual hard disk 211 is stored in internal memory 210 with the core of second operating system.
In addition, electronic installation 200 can be after firmware update be finished, by the core normal shutdown of second operating system in the internal memory 210.Therefore, with reference to Fig. 2, control module 240 can comprise a shutdown module 245, after finishing in the firmware update of disk array card 230, through the core of second operating system, makes electronic installation 200 shutdown.That is to say that the core of second operating system can comprise a shutdown command, use so that electronic installation 200 shutdown.Thus, after the firmware update of disk array card 230 is finished, but electronic installation 200 normal shutdowns, and avoid when machine or system's damage.
In addition, electronic installation 200 can be after firmware update be finished, and the core by second operating system in the internal memory 210 restarts electronic installation 200, and makes disk array card 230 operate under first operating system according to the firmware after upgrading.Therefore, control module 240 can comprise and restarts module 260, after finishing in the firmware update of disk array card 230, through second operating system, makes electronic installation 200 shutdown and restarts first operating system.Thus, after the firmware update of disk array card 230 was finished, electronic installation 200 can restart, and made disk array card 230 operate under first operating system according to the firmware after upgrading.
With reference to Fig. 4, it is the functional block diagram according to a kind of electronic installation of further embodiment of this invention.Electronic installation 300 is by being stored to internal memory 310 to the core of an operating system, and when the firmware of the hard disk 320 that upgrades electronic installation 300, only the core according to the operating system in the internal memory 310 makes electronic installation 300 runnings then.
Wherein, electronic installation 300 comprises an internal memory 310, a hard disk 320 and a control module 330.Internal memory 310 is a random access memory.Hard disk 320 can be the hard disk of conventional hard, solid state hard disc, flash disk, hybrid hard disk or other pattern.
With reference to Fig. 5, it is an embodiment of the storage module 332 among Fig. 4.Storage module 332 comprises a virtual module 335 and a reservoir 336.One block of virtual module 335 allocate memories 310 is to form a virtual hard disk 311.Reservoir 336 is stored to virtual hard disk 311 to the core of second operating system.Because the finite capacity of virtual hard disk 311, therefore the core of second operating system only need comprise the needed program of electronic installation 300 basic runnings, as driver, instruction set or other application program.Thus, the mode that electronic installation 300 can be by virtual hard disk 311 is stored in internal memory 310 with the core of second operating system.
In addition, electronic installation 300 can be after firmware update be finished, by the core normal shutdown of second operating system in the internal memory 310.Therefore, with reference to Fig. 4, control module 330 can comprise a shutdown module 337, after finishing in the firmware update of hard disk 320, through the core of second operating system, makes electronic installation 300 shutdown.That is to say that the core of second operating system can comprise a shutdown command, in order to electronic installation 300 is shut down.Thus, after the firmware update of hard disk 320 is finished, but electronic installation 300 normal shutdowns, and avoid when machine or system's damage.
In addition, electronic installation 300 can be after firmware update be finished, and the core by second operating system in the internal memory 310 restarts, and makes hard disk 320 operate under first operating system according to the firmware after upgrading.Therefore, control module 330 can comprise and restarts module 338, after finishing in the firmware update of hard disk, through the core of second operating system, makes electronic installation 300 shutdown and restarts first operating system.Thus, after the firmware update of hard disk 320 was finished, electronic installation 300 can restart, and made hard disk 320 operate under first operating system according to the firmware after upgrading.
By the invention described above preferred embodiment as can be known, use the present invention and have following advantage.When hard disk or disk array card are done firmware update, still can make the electronic installation normal operation.After firmware update is finished, can make electronic installation according to normal procedure shutdown or restart, to avoid when machine or system's damage.
Though the present invention discloses as above with a preferred embodiment; right its is not in order to limit the present invention; any person skilled in the art; without departing from the spirit and scope of the present invention; when can being used for a variety of modifications and variations, so protection scope of the present invention is as the criterion when looking the scope that appending claims defines.
Claims (10)
1. a firmware update is characterized in that, comprises:
Carry out a start operating system and make electronic installation running;
Execution is to a firmware update program of a peripherals;
After this firmware update program of execution, the core of an ease of Use system is stored to an internal memory of this electronic installation;
Carry out this ease of Use system, and replace this start operating system, wherein when this ease of Use system of execution, only read the core of this ease of Use system by this internal memory; And
After this ease of Use system of execution, upgrade a firmware of this peripherals.
2. firmware update according to claim 1 is characterized in that, the step that the core of this ease of Use system is stored to this internal memory comprises:
Dispose a block of this internal memory, to form a virtual hard disk; And
The core of this ease of Use system is stored to this virtual hard disk.
3. firmware update according to claim 1 is characterized in that, also comprises:
After this firmware update was finished, the core through this ease of Use system made this electronic installation shutdown.
4. firmware update according to claim 1 is characterized in that, also comprises:
After this firmware update was finished, the core through this ease of Use system made the shutdown of this electronic installation and restarts and carry out first operating system.
5. an electronic installation is characterized in that, comprises:
One internal memory;
One hard disk stores the core of one first operating system and the core of one second operating system; And
One disk array card comprises:
One flash memory stores the firmware of this disk array card; And
One control module comprises:
One operating module makes this electronic installation running according to the core of this first operating system;
One storage module after a firmware update program of carrying out this disk array card, is stored to this internal memory with the core of this second operating system;
All die change pieces after this storage module is stored to this internal memory to the core of this second operating system, make this operating module only according to the core of this second operating system in this internal memory, carry out this electronic installation running; And
One update module after this operating module is only according to the running of the core of this second operating system in this internal memory, is upgraded the firmware of this disk array card.
6. electronic installation according to claim 5 is characterized in that, this storage module comprises:
One virtual module disposes a block of this internal memory, to form a virtual hard disk; And
One reservoir is stored to this virtual hard disk to the core of this second operating system.
7. electronic installation according to claim 5 is characterized in that, this control module also comprises:
One shutdown module after the firmware update of this disk array card is finished, by the core of this second operating system, makes this electronic installation shutdown.
8. electronic installation according to claim 5 is characterized in that, this control module also comprises:
One restarts module, after the firmware update of this disk array card is finished, by the core of this second operating system, makes this electronic installation shutdown and restarts first operating system.
9. an electronic installation is characterized in that, comprises:
One internal memory;
One hard disk comprises:
One storage unit stores the core of one first operating system and the core of one second operating system; And
One flash memory stores the firmware of this hard disk; And
One control module comprises:
One operating module makes this electronic installation running according to the core of this first operating system;
One storage module after a firmware update program of carrying out this hard disk, is stored to this internal memory with the core of this second operating system;
All die change pieces after this storage module is stored to this internal memory to the core of this second operating system, make this operating module only according to the core of this second operating system in this internal memory, carry out this electronic installation running; And
One update module after this operating module is only according to the running of the core of this second operating system in this internal memory, is upgraded the firmware of this hard disk.
10. electronic installation according to claim 9 is characterized in that, this control module also comprises:
One shutdown module after the firmware update of this hard disk is finished, by the core of this second operating system, makes this electronic installation shutdown.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810172738A CN101739262A (en) | 2008-11-11 | 2008-11-11 | Firmware updating method and electronic device using same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810172738A CN101739262A (en) | 2008-11-11 | 2008-11-11 | Firmware updating method and electronic device using same |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101739262A true CN101739262A (en) | 2010-06-16 |
Family
ID=42462788
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200810172738A Pending CN101739262A (en) | 2008-11-11 | 2008-11-11 | Firmware updating method and electronic device using same |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101739262A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102841796A (en) * | 2011-06-24 | 2012-12-26 | 鸿富锦精密工业(深圳)有限公司 | Firmware burning method |
CN105378664A (en) * | 2014-04-16 | 2016-03-02 | 株式会社小松制作所 | Information processing device of working machine, working machine, and information processing method of working machine |
CN102841796B (en) * | 2011-06-24 | 2016-11-30 | 泰州市智谷软件园有限公司 | Firmware burning method |
CN108694050A (en) * | 2017-03-30 | 2018-10-23 | 维布络有限公司 | The method and system that the software package of storage system is updated |
CN110309018A (en) * | 2019-07-02 | 2019-10-08 | 深圳市小兔充充科技有限公司 | Charging equipment system switching method, charging equipment and readable storage medium storing program for executing |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1506813A (en) * | 2002-10-21 | 2004-06-23 | Reliably and safelf refreshing and recovering firmware from large scale memory equipment | |
CN1585926A (en) * | 2001-09-17 | 2005-02-23 | 索马网络公司 | Software update method, device and system |
CN1783004A (en) * | 2004-12-03 | 2006-06-07 | 惠普开发有限公司 | Persistent memory manipulation using EFI |
CN101075194A (en) * | 2006-05-15 | 2007-11-21 | 明基电通股份有限公司 | Method and system for executing programm code and method for updating firmware |
-
2008
- 2008-11-11 CN CN200810172738A patent/CN101739262A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1585926A (en) * | 2001-09-17 | 2005-02-23 | 索马网络公司 | Software update method, device and system |
CN1506813A (en) * | 2002-10-21 | 2004-06-23 | Reliably and safelf refreshing and recovering firmware from large scale memory equipment | |
CN1783004A (en) * | 2004-12-03 | 2006-06-07 | 惠普开发有限公司 | Persistent memory manipulation using EFI |
CN101075194A (en) * | 2006-05-15 | 2007-11-21 | 明基电通股份有限公司 | Method and system for executing programm code and method for updating firmware |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102841796A (en) * | 2011-06-24 | 2012-12-26 | 鸿富锦精密工业(深圳)有限公司 | Firmware burning method |
CN102841796B (en) * | 2011-06-24 | 2016-11-30 | 泰州市智谷软件园有限公司 | Firmware burning method |
CN105378664A (en) * | 2014-04-16 | 2016-03-02 | 株式会社小松制作所 | Information processing device of working machine, working machine, and information processing method of working machine |
CN108694050A (en) * | 2017-03-30 | 2018-10-23 | 维布络有限公司 | The method and system that the software package of storage system is updated |
CN110309018A (en) * | 2019-07-02 | 2019-10-08 | 深圳市小兔充充科技有限公司 | Charging equipment system switching method, charging equipment and readable storage medium storing program for executing |
CN110309018B (en) * | 2019-07-02 | 2022-03-01 | 深圳市小兔充充科技有限公司 | Charging equipment system switching method, charging equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8423991B2 (en) | Embedded network device and firmware upgrading method | |
JP4530059B2 (en) | Disk array device, firmware exchange method, and firmware exchange program | |
US8296521B2 (en) | Method of configuring non-volatile memory for a hybrid disk drive | |
CN104360877A (en) | ECU (electronic control unit) firmware updating method based on Bootloader self update | |
US8086841B2 (en) | BIOS switching system and a method thereof | |
CN102165418A (en) | Turbo boot systems and methods | |
US9448889B2 (en) | BIOS failover update with service processor | |
CN101021797A (en) | Repairing and staging method for software of embedded system | |
US9448808B2 (en) | BIOS update with service processor without serial peripheral interface (SPI) access | |
US20080109676A1 (en) | Processing device and storage medium | |
KR101673299B1 (en) | Operating system recovery method and apparatus, and terminal device | |
US8677084B2 (en) | Method of configuring non-volatile memory for a hybrid disk drive | |
CN101169729A (en) | Embedded type system and method for renewing application program | |
CN102841802A (en) | Software upgrading method for mobile terminal | |
CN101166229A (en) | A TV software update method | |
CN103336736A (en) | System log acquisition method and device | |
CN113835644A (en) | Complete machine migration method, device, equipment and storage medium | |
CN110825419B (en) | Firmware refreshing method and device, electronic equipment and storage medium | |
TW202137002A (en) | Data storage device and method for maintaining normal boot operation of data storage device | |
KR20130068630A (en) | Method for initializing embedded device and apparatus thereof | |
CN109582332B (en) | System upgrading method and device for Internet camera | |
TWI765443B (en) | Data storage device and method for maintaining normal boot operation of data storage device | |
CN101739262A (en) | Firmware updating method and electronic device using same | |
CN111522690B (en) | Data storage device and method for maintaining normal start-up operation of data storage device | |
CN101604253A (en) | Computer system and startup method |
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 |
Application publication date: 20100616 |