Firmware storing media and method thereof
Technical field
The present invention in order to be applied in the computing machine, makes this computing machine have the function of start and renewal firmware relevant for a kind of firmware storing media and method thereof.
Background technology
Computing machine (computer) is the indispensable a kind of instruments of present people, and its multifunctionality brings people than life more easily in the past, has also strengthened the ability that people handle thing.
General computing machine is made of various hardware, if will allow the computing machine can normal operation, the general program that need start shooting earlier just allows the hardware of computing machine, carry out needed program after, just can possess needed function; In general, the program of required loading is stored in the internal memory (ROM) with the form of firmware mostly in the computer booting program, such internal memory can not eliminated stored firmware program because of the shutdown of computing machine, so that computing machine direct fetch program in internal memory in boot program, and then computing machine is started shooting smoothly, below will be described further at existing computer architecture:
Please refer to Fig. 1, this figure is depicted as the partial function block schematic diagram of existing computing machine, and a computing machine comprises a control module 10, an internal memory 12 and a hard disk 14 at least as can be known; In general, control module 10 is by central processing unit (CPU), an at least one system chipset (System Chip Set) and a high-speed cache (RAM) constitute (above-mentioned all do not show) in figure, the major function of control module 10 is to be engaged in computing and transmitting-receiving execution command, function mode is stored in the instruction that will carry out among the high-speed cache via System on Chip/SoC by central processing unit, reading the back by central processing unit again judges and carries out, desired the function reached to reach, the mode of its formation then is with rapid changepl. never-ending changes and improvements, wherein system chipset has function partly progressively to be integrated among the central processing unit, does not repeat them here; 12 of internal memories (ROM) are to be electrically connected on control module 10, mainly in order to store boot program 120 and main firmware program 122, wherein boot program 120 for the program language of a low order in order to the start-up command of computing machine necessity to be provided, after the control module 10 of computing machine reads boot program 120, can make computing machine possess the basic calculation and the ability of steering order, and main firmware program 122 is designed and different according to different vendor, its main contents roughly comprise the start interface, peripheral device driver and some functional programs (as Password Management program etc. is provided), above-mentioned boot program 120 and main firmware program 122 are stored in the internal memory 12 with the form of firmware, it is characterized in that when computer shutdown, therefore boot program 120 and main firmware program 122 can not be eliminated, the usefulness that reads during in order to computer booting next time; Hard disk (HardDisk) 14 is constituted with magnetic record media, usually in order to store some Application Software Program and data etc., for the usefulness of control module 10 execution.
Above-mentioned is the operation principles and the mode of active computer, but, the manufacturer of computing machine promotes for the function that makes computing machine, or wish that improving user's interface tends to improve at main firmware program 122, wherein comprise the start interface in the main firmware program 122 is improved, make the user can have more affine and beautiful interface to use, even, the manufacturer of computing machine also can improve the peripheral device driver of main firmware program 122, make its computing machine can support more peripheral device more widely, or, making increases the more function program, as multiple Password Management program, formatting hard disk program or the like, the design in this time is to wish to make computing machine can possess more ability invariably, in the hope of obtaining consumer's favor, but, if will add the function that these enter rank, space that then must Extended RAM 12 just can be accomplished, but in general, the price of internal memory 12 is higher compared to the memory storage (as hard disk etc.) of other kind, so the manufacturer of computing machine tends to occur awkward like this predicament in design, how can design one and have polyfunctional computer, and be the necessary problem that institute of the manufacturer desire of computing machine solves really simultaneously with effect cheaply.
Summary of the invention
The present invention mainly provides a kind of firmware (firmware) storing media, can be applied on the computing machine, this computing machine comprises an internal memory (ROM) and a hard disk (Hard disk) at least, the present invention is stored in boot program in the internal memory, and main firmware program is stored among the hard disk, the memory size of this computing machine can significantly be reduced, under the situation that does not influence computer function, so that the manufacturing cost of computing machine descends.
According to above-mentioned conception, the invention provides a firmware storing media, apply in the computing machine, it comprises a control module, and control module comprises a central processing unit, a high-speed cache and a system chipset; One internal memory is electrically connected on control module, and wherein internal memory comprises a boot program: and a hard disk, be electrically connected on control module, wherein hard disk comprises a main firmware program; When control module after internal memory reads boot program, control module can be carried out main firmware program in hard disk.What is more, the present invention can be with the memory size that saves, upgrade firmware program in order to store one, when damaging in order to main firmware program when computing machine, can make the control module of computing machine read the main firmware program of a backup by a storing media reading device, with the main firmware program of renewal damage, and then avoid the overall calculation machine to use.
According to above-mentioned conception, the invention provides a firmware storing media, apply in the computing machine, it comprises a control module; One internal memory is electrically connected on control module, and wherein internal memory comprises a boot program and a renewal firmware program; One hard disk is electrically connected on control module, and wherein hard disk comprises a main firmware program; And a storing media reading device, be electrically connected on control module, in order to read the main firmware program of a backup; When control module read the main firmware program of backup by the storing media reading device, control module can be carried out in internal memory and upgrade firmware program, made the main firmware program updating master firmware program of backup.
According to above-mentioned conception, in save as a flash memory (flash ROM).
According to above-mentioned conception, main firmware program comprises user's interface routine, a function setting program and the strong dynamic program of peripheral unit at least, and the function setting program is at least in order to set a password.
According to above-mentioned conception, the storing media reading device is an optics storing media reading device, in order to reading the main firmware program of backup in the CD, optics storing media reading device be selected from following one of them: CD drive, CD CD writer, DVD drive, DVD CD writer and COMBO CD-ROM drive etc.; Or the storing media reading device is a floppy drive, in order to read the main firmware program of backup in the floppy disk; Or the storing media reading device is an external connected hand disk, should the main firmware program of backup in order to access.
According to above-mentioned conception, the present invention more provides a kind of firmware storage method, makes the computing machine running of can starting shooting according to this, and the firmware storage method comprises the following step: after control module receives start-up command, read boot program in internal memory; Control module confirms whether the storing media reading device can read the main firmware program of backup: if when the storing media reading device can't read the main firmware program of backup, control module can be carried out main firmware program in a hard disk; When if the storing media reading device can read the main firmware program of backup, control module can be carried out one and upgrade firmware program in internal memory, make back up main firmware program and initiatively upgrade main firmware program after, computing machine will be started shooting again.
Description of drawings
Fig. 1 is the framework block schematic diagram of active computer.
Fig. 2 is that firmware storing media of the present invention is used in the framework block schematic diagram in the computing machine.
Fig. 3 is the flow chart of steps of firmware storage method of the present invention.
The figure number explanation
10 control modules, 12 internal memories
120 boot programs, 122 main firmware programs
14 hard disks, 20 control modules
22 internal memories, 220 boot programs
224 upgrade firmware program 24 hard disks
242 main firmware program 26 storing media reading devices
The main firmware program of 260 backups
The step of 31~37 firmware storage methods of the present invention
Embodiment
Preferred embodiment of the present invention sees also shown in Figure 2, be that firmware storing media of the present invention is applied to the function block schematic diagram in the computing machine shown in the figure, wherein, firmware storing media of the present invention comprises a control module 20, one internal memory 22 (ROM) and a hard disk 24 (Hard disk) etc., wherein, control module 20, the mutual configuration and the prior art of internal memory 22 and hard disk 24 are roughly the same, but, the present invention changes into and being stored among the hard disk 24 originally being stored in main firmware program 120 in the internal memory 22, and moderately revise its boot program 220, make boot program 220 can make control module 20 after internal memory 22 reads boot program 220, then on the relative position of hard disk 24, read main firmware program 242, make control module 120 load main firmware program 242 again and produce corresponding start interface, peripheral device driver and some functional programs (as Password Management program etc. is provided), after the present invention such as the above-mentioned ingenious configuration, can be effectively the capacity of internal memory 22 be reduced, save the cost of computing machine integral body.
Because the present invention saves the space of internal memory 22, the present invention further provides a kind of function that can upgrade main firmware program automatically, referring again to shown in Figure 2, firmware storing media of the present invention further comprises a storing media reading device 26, be electrically connected on control module 20 equally, storing media reading device 26 is in order to store the main firmware program 260 of a backup, simultaneously, further comprise one in the internal memory 22 and upgrade firmware program 224, so, when control module 20 reads renewal firmware program 224 after starting shooting after, can read the main firmware program 260 of backup from storing media reading device 26, and the main firmware program 242 in the covering hard disk 24, so that revise the mistake of main firmware program 242, repair the problem that computing machine can not be started shooting smoothly; Wherein, above-mentioned storing media reading device 26 can be an optics storing media reading device, for example is CD drive, CD CD writer, DVD CD player, DVD CD writer and COMBO CD-ROM drive etc.Wherein, backing up main firmware program 260 can be stored in the CD (not shown); Or above-mentioned storing media reading device 26 can also be a floppy drive, wherein, backs up main firmware program 260 and can be stored in the floppy disk (not shown); Or above-mentioned storing media reading device 26 can also be an external connected hand disk, backs up in the sector (not shown) that main firmware program 260 can be stored to external connected hand disk, can reach identical effect equally.
The present invention is based on above-mentioned conception, reach at computing machine under the prerequisite of identical effect, can save the space of many internal memories 22 really, and then save the manufacturing cost of computing machine; Further, can also utilize internal memory 22 spaces that save, insert the function of automatic renewal firmware, can prevent when main firmware program lost efficacy, can directly go reparation.
In addition, according to above-mentioned embodiment, this case provides a kind of firmware storage method, and wherein storing media reading device 26 is as if being example with the CD-ROM drive, and its step is as described below:
Please refer to Fig. 3, be the step of firmware storage method of the present invention shown in the figure: at first, carry out step 31 " start ".In general, the user will start a start-up command after can pressing opening computer button (not shown); Next enter step 32 " control module reads boot program in internal memory ", this step makes control module 20 read boot program 220 in internal memory 22, in order to instruction necessary in the computer booting program to be provided; Afterwards, further rapid 33 " check whether the main firmware program of backup arranged in the CD-ROM drive ", this step regulations control module 20 checks in the CD-ROM drive whether CD is arranged, whether the backup firmware of storage program 260 is arranged: if step 33 is output as "No" in this CD, then enter step 34 " control module reads main firmware program in hard disk; control module 20 will read main firmware program 242 in hard disk 24, and then will finish the opening computer program; If step 33 is output as and is, expression need be upgraded the state of main firmware program 242, then enter step 35 " control module reads to upgrade firmware program in internal memory; control module will read the main firmware program of a backup in CD-ROM drive, in order to cover main firmware program, at this moment; control module 20 loads in internal memory 22 and upgrades after the firmware program 224; control module 20 will read the main firmware program 260 of backup in CD-ROM drive, in order to cover main firmware program 242, to repair the main firmware program 242 of damage; Enter step 36 afterwards and take out CD, promptly take out CD; Enter step 37 afterwards and " finish, again start ", control module 20 will finish above-mentioned steps, and get back to step 31, and computer is started shooting again.
Whether can also be designed to directly get back to step 33 after above-mentioned steps 37 finishes, reexamining has CD in the CD-ROM drive, and whether the backup firmware of storage program 260 is arranged in this CD, also can reach identical effect.
In addition, above-mentioned storing media reading device 26 is an example with the CD-ROM drive, and similarly, storing media reading device 26 can also also can reach identical effect equally for a floppy drive or an external connected hand disk.