CN103678030A - Multi-system equipment start system and method thereof - Google Patents

Multi-system equipment start system and method thereof Download PDF

Info

Publication number
CN103678030A
CN103678030A CN201210323087.7A CN201210323087A CN103678030A CN 103678030 A CN103678030 A CN 103678030A CN 201210323087 A CN201210323087 A CN 201210323087A CN 103678030 A CN103678030 A CN 103678030A
Authority
CN
China
Prior art keywords
file
subregion
memory
verification
carry out
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
CN201210323087.7A
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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201210323087.7A priority Critical patent/CN103678030A/en
Publication of CN103678030A publication Critical patent/CN103678030A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to the field of computers, and discloses a multi-system equipment start system and a method thereof. The multi-system equipment start system comprises a first memorizer and a second memorizer, wherein the first memorizer adopts an SPI flash memory and is used for storing a boot loader, an NAND flash memory is adopted in the second memorizer, and the second memorizer comprises at least two partitions used for storing the same system files. Starting of multi-system equipment is achieved in the mode that the SPI flash memory is adopted for storing the boot loader and the system files are stored through the NAND flash memory, so that production cost is reduced and system stability is guaranteed. Starting is achieved from the first partition, if the first partition is normally started, loading is carried out, the second partition is not detected, the second partition is skipped and started only when the first partition is faulty, a kernel is used in the detection process, and system start time is saved.

Description

Multi-system equipment starts system and method thereof
Technical field
The present invention relates to computer realm, particularly multi-system equipment start-up technique.
Background technology
Flash memory is a kind of nonvolatile memory, even power-off, data can not lost yet, so the system file of embedded device is deposited in flash memory conventionally.
Current most embedded devices, its system file is all stored on NOR flash memory.The feature of such flash memory is to carry out in chip, application program can directly be moved in flash memory like this, needn't again code be read to system random access memory (Random Access Memory, be called for short " RAM ") in, and its transfer efficiency is very high, during low capacity below 4M bytes, there is very high cost benefit, very low but it writes with erasing speed, greatly have influence on its performance, under large capacity, do not possess cost advantage.And Serial Peripheral Interface (SPI) (Serial Peripheral Interface is called for short " SPI ") flash memory is a kind of of NOR flash memory.
Nand flash memory is to use more complicated I/O interface to carry out the flash chip of reading and writing data, and its erasable speed is very fast, and the relative NOR flash memory of cost, compared with low and capacity is large, is the ideal solution of high data density.But nand flash memory itself is due to bit flipping phenomenon easily occurring, be in the binary data that contains of the packet in storer, to occur that 1 becomes 0,0 and becomes 1 situation, need mistake in using inspection and correction (Error Correcting Code is called for short " ECC ") algorithm to guarantee its reliability.The present inventor finds, if system file is directly stored in above nand flash memory, though can reduce production costs, still in view of easily there is bit flipping phenomenon in such storer, once exceed the error correcting capability of ECC, the phenomenon that there will be system normally not start.
The present inventor also finds, the system file of current embedded device is placed in flash memory, substantially only has a system, if system file damages, can only again be upgraded by technical support personnel, this mode can reduce undoubtedly user's degree of belief and also can increase maintenance cost.
In the Chinese patent that is 201110269908.9 at application number, a kind of embedded system automatic recovery method and device of Set Top Box disclosed, if the situation that will cause system normally not start for power down in escalation process has adopted dual system.But this bright inventor discovery, there is following several problem in this invention:
1. this invention is deposited in bootstrap loader and system file on same flash memory, and because bit flipping phenomenon easily occurs nand flash memory, bootstrap loader is deposited in very dangerous above.
2. this invention is all detected for the system of two partition holdings in start-up course, if wrong, starts backup, and this can strengthen the on time undoubtedly.
3. when explanation is backed up in this invention, do not copy how to copy completely, if the data of Physical layer copy, can cause following problem: as shown in Figure 1, if there is a bad piece in system partitioning 0, data on this bad piece will cause detecting this partition system mistake, if the data direct copying of subregion 1 come and cover subregion 0, the data that copy on this bad piece still can cause detecting mistake, can not back up successfully all the time.
Summary of the invention
The object of the present invention is to provide a kind of multi-system equipment to start system and method thereof, both reduced production cost, guaranteed again the stability of system.
For solving the problems of the technologies described above, embodiments of the present invention disclose a kind of multi-system equipment and have started system, comprising:
First memory, for storing bootstrap loader;
Second memory, comprising at least two subregions, deposits respectively identical system file;
First memory adopts serial SPI flash memory, and second memory adopts nand flash memory;
Processor, for carry out initialization from first memory bootload loading procedure after board powers on, read in second memory the system file in the first subregion and carry out verification, if start system from the first subregion by verification, otherwise read in second memory the system file in the second subregion and carry out verification, if start system from the second subregion by verification.
Embodiments of the present invention also disclose a kind of multi-system equipment starting method, this multi-system equipment startup system comprises for storing the first memory of bootstrap loader and comprising at least two second memories of depositing respectively the subregion of identical system file, first memory adopts SPI flash memory, second memory adopts NAN D flash memory, and method comprises the following steps:
After board powers on, load the bootstrap loader in first memory and carry out initialization;
Read in second memory the system file in the first subregion and carry out verification, if start system by verification, otherwise read in second memory the system file in the second subregion and carry out verification, if start system from the second subregion by verification;
Start the system file in the first subregion in second memory.
Compared with prior art, the key distinction and effect thereof are embodiment of the present invention:
Bootstrap loader is put in to the SPI flash memory that stability is higher, has guaranteed the safety of bootstrap loader; Nand flash memory is carried out subregion and deposits respectively identical system file, even if depositing like this data of certain file in a subregion exceeds error correcting capability and can not correctly read owing to there is bit flipping, jumping to another subregion starts, both bring into play the advantage of nand flash memory mass-storage system, simultaneously by multisystem, started to make up the shortcoming that bit flipping easily occurs nand flash memory again.The present invention, by adopting the mode of SPI flash memory storage bootstrap loader and nand flash memory storage system file to carry out the startup of multi-system equipment, has both reduced production cost, has guaranteed again the stability of system.
The present invention starts from first subregion, normally loads, and second subregion is not detected, and only at the first subregion, skips to the second subregion when wrong again and starts, and testing process is left kernel for and done, and has saved system start-up time.
Further, in each subregion, add logo file, generic core mirror image (Universal Image is called for short " uImage ") file, before system starts, subregion is carried out to verification, further improve stability.
Further, conventionally memory techniques equipment (memory technology device is called for short " MTD ") drives the ECC algorithm carrying, and can only in continuous 256 bytes, correct 1 bit-errors, its checking feature is limited, and in the nand flash memory that bit flipping phenomenon easily occurs, effect is not fine.And the stronger ECC algorithm more complicated of checking feature has occupied larger memory size.Therefore after the inventor's repetition test, find, can to continuous 512 bytes, correct the ECC algorithm of 4 bit-errors, both guaranteed the stability of data in nand flash memory, its algorithm requires also relatively low.
Further, the present invention is after kernel starts, the system backup of carrying out under file system, and file system can automatically detect bad piece and directly skip bad piece part, guarantee that the existence that does not have bad piece of physics in file copy process causes file corruption, has guaranteed the reliability of file backup.
Further, a plurality of systems are upgraded simultaneously, rather than only write a system, other system empties, in order to avoid the too fast automated back-up other system that has little time that shuts down has guaranteed that a plurality of systems are upgraded in time.
Accompanying drawing explanation
Fig. 1 is physical layer data copy schematic diagram in prior art;
Fig. 2 is the structural representation that in first embodiment of the invention, a kind of multi-system equipment starts system;
Fig. 3 is the structural representation of second memory in a kind of multi-system equipment startup system in second embodiment of the invention;
Fig. 4 is ECC algorithm error correcting capability schematic diagram in prior art;
Fig. 5 is ECC algorithm error correcting capability schematic diagram in second embodiment of the invention
Fig. 6 is the schematic flow sheet of a kind of multi-system equipment starting method in third embodiment of the invention;
Fig. 7 is the schematic flow sheet of a kind of multi-system equipment starting method in four embodiment of the invention;
Fig. 8 is the schematic flow sheet of system backup in a kind of multi-system equipment starting method in four embodiment of the invention;
Fig. 9 is the schematic flow sheet of a kind of dual system device start in four embodiment of the invention.
Embodiment
In the following description, in order to make reader understand the application better, many ins and outs have been proposed.But, persons of ordinary skill in the art may appreciate that even without these ins and outs and the many variations based on following embodiment and modification, also can realize each claim of the application technical scheme required for protection.
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiments of the present invention are described in further detail.
First embodiment of the invention relates to a kind of multi-system equipment and starts system.Fig. 2 is the structural representation that this multi-system equipment starts system.This multi-system equipment startup system comprises:
First memory, for storing bootstrap loader.Be appreciated that, bootstrap loader can be universal guiding code (Universal BootLoader, be called for short " UBoot "), it is to follow general public licence (General Public License, abbreviation " GPL ") the open source code project of clause, being widely used in embedded device, is the first paragraph program of carrying out after start, is used for guidance system to start.
Second memory, comprising at least two subregions, deposits respectively identical system file.
First memory adopts serial SPI flash memory, and second memory adopts nand flash memory.
Processor, for carry out initialization from first memory bootload loading procedure after board powers on, read in second memory the system file in the first subregion and carry out verification, if start system from the first subregion by verification, otherwise read in second memory the system file in the second subregion and carry out verification, if start system from the second subregion by verification.
Bootstrap loader is put in to the SPI flash memory that stability is higher, has guaranteed the safety of bootstrap loader.Nand flash memory is carried out subregion and deposits respectively identical system file, even if depositing like this data of certain file in a subregion exceeds error correcting capability and can not correctly read owing to there is bit flipping, jumping to another subregion starts, both bring into play the advantage of nand flash memory mass-storage system, simultaneously by multisystem, started to make up the shortcoming that bit flipping easily occurs nand flash memory again.The present invention, by adopting the mode of SPI flash memory storage bootstrap loader and nand flash memory storage system file to carry out the startup of multi-system equipment, has both reduced production cost, has guaranteed again the stability of system.
Second embodiment of the invention relates to a kind of multi-system equipment and starts system.
The second embodiment improves on the basis of the first embodiment.
Fig. 3 is the structural representation of second memory in this multi-system equipment startup system.As shown in Figure 3, each subregion in second memory comprises a generic core mirror image uImage file, this uImage file is the image file that comprises all system files in current subregion, and it is the image file generating after recompile kernel, is the vital document of embedded system.
Each subregion in second memory also comprises a logo file, and this logo file exists, and represents that the system file in current subregion is complete.Above-mentioned processor is also for the system file in reading second memory the first subregion and before carrying out verification, judge whether the logo file in the first subregion exists, if exist, by processor, read the system file in the first subregion and carry out verification, otherwise represent that the system file in current subregion is imperfect, by processor, read in second memory the system file in the second subregion and carry out verification, if start system from the second subregion by verification.
As shown in Figure 3, in second memory, can comprise a plurality of subregions, and in each subregion, also comprise the other system file except logo file, uImage file.In addition, be appreciated that in other embodiments of the present invention, without logo file and uImage file, also can realize the present invention's technical scheme required for protection.
In each subregion, add logo file, uImage file, before system starts, subregion is carried out to verification, further improve stability.
In addition, this multi-system equipment startup system adopts ECC algorithm to carry out error correction, and this ECC algorithm at least meets continuous 512 bytes are corrected to the requirement of 4 bit-errors.Be appreciated that ECC algorithm can adopt Hamming code, RS(Reed-Solomon) code, BCH code etc.
Fig. 4, Fig. 5 are respectively different ECC algorithm error correcting capability schematic diagram.ECC is the technology of a kind of can realization " bug check and correction ", also can correct there is the situation of bit flipping within the scope of its checking feature, is applied to storer aspect more.As shown in Figure 4, adopt MTD to drive the ECC algorithm carrying, its error correcting capability can only be corrected the bit flipping of 1bit in continuous 256 bytes, can detect 2bit bit flipping mistake and provide prompting, but can not correct.Because above-mentioned ECC algorithm can not be corrected the situation of 2bit bit flipping in continuous 256 bytes, so its checking feature is limited, the equipment that is easy to go wrong as the nand flash memory of easy generation bit flipping phenomenon in effect be not fine.And the stronger ECC algorithm more complicated of checking feature has occupied larger memory size.Therefore after the inventor's repetition test, find, adopt stronger ECC algorithm, as shown in Figure 5, can can correct not the bit flipping phenomenon higher than 4bit to continuous 512 bytes, its error correcting capability promotes greatly, has both guaranteed the stability of data in nand flash memory, and its algorithm requires also relatively low.
It should be noted that, each unit of mentioning in each equipment embodiment of the present invention is all logical block, physically, a logical block can be a physical location, also can be a part for a physical location, can also realize with the combination of a plurality of physical locations, the physics realization mode of these logical blocks itself is not most important, and the combination of the function that these logical blocks realize is only the key that solves technical matters proposed by the invention.In addition, for outstanding innovation part of the present invention, above-mentioned each equipment embodiment of the present invention is not introduced the unit not too close with solving technical matters relation proposed by the invention, and this does not show that the said equipment embodiment does not exist other unit.
Third embodiment of the invention relates to a kind of multi-system equipment starting method.Fig. 6 is the schematic flow sheet of this multi-system equipment starting method.This multi-system equipment startup system comprises for storing the first memory of bootstrap loader and comprising at least two second memories of depositing respectively the subregion of identical system file, first memory adopts SPI flash memory, and second memory adopts nand flash memory.
Above-mentioned second memory comprises n subregion, and n is more than or equal to 2 integer.
As shown in Figure 6, this multi-system equipment starting method comprises the following steps:
In step 601, after board powers on, load the bootstrap loader in first memory and carry out initialization.
After this enter step 602, read in second memory the system file in the first subregion and carry out verification, if enter step 603 by verification, otherwise read the system file in next subregion and carry out verification.
In step 603, start the system file in the first subregion in second memory.
After this process ends.
At the first subregion, not by verification in the situation that, successively each subregion before n subregion in second memory is carried out to verification by above-mentioned steps, if by verification, from respective partition, start system, otherwise enter step 604
In step 604, read in second memory the system file in n subregion and carry out verification, if enter step 605 by verification, otherwise process ends.
In step 605, start the system file in n subregion in second memory.
After this process ends.
Bootstrap loader is put in to the SPI flash memory that stability is higher, has guaranteed the safety of bootstrap loader.Nand flash memory is carried out subregion and deposits respectively identical system file, even if depositing like this data of certain file in a subregion exceeds error correcting capability and can not correctly read owing to there is bit flipping, jumping to another subregion starts, both bring into play the advantage of nand flash memory mass-storage system, simultaneously by multisystem, started to make up the shortcoming that bit flipping easily occurs nand flash memory again.By adopting the mode of SPI flash memory storage bootstrap loader and nand flash memory storage system file to carry out the startup of multi-system equipment, both reduced production cost, guaranteed again the stability of system.In addition, the present invention starts from first subregion, normally loads, and second subregion is not detected, and only has the first subregion to skip to the second subregion when wrong again and starts, and testing process is left kernel for and done, and has saved system start-up time.
The first embodiment is the method embodiment corresponding with present embodiment, present embodiment can with the enforcement of working in coordination of the first embodiment.The correlation technique details of mentioning in the first embodiment is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in present embodiment also can be applicable in the first embodiment.
Four embodiment of the invention relates to a kind of multi-system equipment starting method.The 4th embodiment improves on the basis of the 3rd embodiment.
As shown in Figure 3, each subregion in second memory comprises that one for representing the whether complete logo file of current partition system file, and a uImage file that comprises all system files in current subregion, and second memory comprises n subregion, n is more than or equal to 2 integer.
Fig. 7 is the schematic flow sheet of this multi-system equipment starting method, and as shown in Figure 7, in step 601,, after step 701, this multi-system equipment starting method is further comprising the steps of:
In step 702, by the file system in second memory, judge whether the logo file of the first subregion exists, if exist, enter step 703, otherwise judge whether the logo file in next subregion exists.
Be appreciated that, dissimilar storer disposes different file system, as main another flash memory file system (Yet Another Flash File System that uses on nand flash memory, abbreviation " yaffs2 ") carry out the data of managed storage, the main data of using flash memory log type file system the 2nd edition (Journalling Flash File System Version 2 is called for short " jffs2 ") to carry out managed storage on NOR flash memory.Yaffs2 is the embedded file system designing for nand flash memory specially, can better support jumbo nand flash memory chip.Jffs2 is mainly the log type file system for NOR flash memory design, and the content that normally scans whole flash memory device when carry is carried out reset file system architecture itself, therefore its applicable low capacity memory device.
In step 703, read the uImage file of the first subregion and carry out verification, if enter step 704 by verification, otherwise enter step 706.
In step 704, start the system file in the first subregion in second memory, and the system core file in the first subregion is carried out to data check, by verification, enter step 705, otherwise enter step 706.
In step 705, operational system.
After this process ends.
In step 706, delete the logo file of the first subregion.
After this judge whether the logo file in next subregion exists.
At the first subregion, not by verification in the situation that, successively each subregion before n subregion in second memory is checked and verification by above-mentioned steps, if by complete inspection and verification, from respective partition, start and operational system, otherwise enter step 707.
In step 707, by the file system in second memory, judge whether the logo file of n subregion exists, if exist, enter step 708, otherwise enter step 711.
In step 708, read the uImage file of n subregion and carry out verification, if enter step 709 by verification, otherwise enter step 710.
In step 709, start the system file in n subregion in second memory, and the system core file in n subregion is carried out to data check, by verification, enter step 705, otherwise enter step 710.
In step 705, operational system.
After this process ends.
In step 710, delete the logo file of n subregion
After this enter step 711, at each partition system file, all start after failure, prompt system file corruption, upgrading again, and the system file in each subregion is upgraded simultaneously.
After this process ends.
At each partition system file, all start after failure, a plurality of systems are upgraded simultaneously, rather than only write a system, other system empties, in order to avoid the too fast automated back-up other system that has little time that shuts down has guaranteed that a plurality of systems are upgraded in time.
Except above-mentioned steps, this multi-system equipment starting method also comprises system backup, and as shown in Figure 8, this system backup flow process comprises the following steps:
In step 801, kernel started after a period of time, started backup thread.
After this enter step 802, obtain current boot partition number.
After this enter step 803, check whether the logo file of other subregions exists, if all exist, process ends, otherwise enter step 804.
In step 804, by respective partition format, and by the file copy in boot partition in respective partition.
After this process ends.
Be appreciated that in other embodiments of the present invention, also can not pass through logo file, directly each subregion is checked.
The present invention is after kernel starts, the system backup of carrying out under file system, file system can automatically detect bad piece and directly skip bad piece part, guarantees that the existence that does not have bad piece of physics in file copy process causes file corruption, has guaranteed the reliability of file backup.
In addition, this multi-system equipment starting method adopts ECC algorithm, and this ECC algorithm at least meets continuous 512 bytes are corrected to the requirement of 4 bit-errors.
As a preferred embodiment of the present invention, a kind of dual system device start flow process as shown in Figure 9, comprises the following steps:
In step 901, after board electrifying startup, UBoot (bootstrap loader) initiating hardware.
After this enter step 902, initialization yaffs2 file system.
After a little, enter step 903, whether the logo file that reads the first subregion exists, if exist, enters step 904, otherwise enters step 909.
In step 904, the uImage file that loads the first subregion also carries out data check, successful enter step 905, otherwise enters step 908.
In step 905, jump to kernel and start system.
After this enter step 906, the system core file of the first subregion is carried out to data check, successful enter step 907, otherwise enter step 908.
In step 907, operational system.
After this process ends.
In step 908, delete the logo file of the first subregion.
After this enter step 909, whether the logo file that reads the second subregion exists, if exist, enters step 910, otherwise enters step 913.
In step 910, the uImage file that loads the second subregion also carries out data check, successful enter step 911, otherwise enters step 914.
In step 911, jump to kernel and start system.
After this enter step 912, the system core file of the second subregion is carried out to data check, successful enter step 907, otherwise enter step 915.
In step 907, operational system.
After this process ends.
In step 913, prompt system file is imperfect, asks upgrade-system.
After this process ends.
In step 914, prompting kernel file is damaged and upgrades.
After this process ends.
In step 915, prompting file corruption is also upgraded.
After this process ends.
Be appreciated that in other embodiments of the invention, after any verification failure, also can only point out file corruption, and then whole partitioned file is upgraded.Preferably, in the present embodiment, according to corresponding verification failure, make corresponding prompting.
In addition, in other embodiments of the invention, storer can have a plurality of subregions, has respectively identical system file.Preferably, the present embodiment is dual system.
Present embodiment is the method embodiment corresponding with the second embodiment, present embodiment can with the enforcement of working in coordination of the second embodiment.The correlation technique details of mentioning in the second embodiment is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in present embodiment also can be applicable in the second embodiment.
Each method embodiment of the present invention all can be realized in modes such as software, hardware, firmwares.No matter the present invention realizes with software, hardware or firmware mode, instruction code can be stored in the storer of computer-accessible of any type (for example permanent or revisable, volatibility or non-volatile, solid-state or non-solid-state, fixing or removable medium etc.).Equally, storer can be for example programmable logic array (Programmable Array Logic, be called for short " PAL "), random access memory (Random Access Memory, be called for short " RAM "), programmable read only memory (Programmable Read Only Memory, be called for short " PROM "), ROM (read-only memory) (Read-Only Memory, be called for short " ROM "), Electrically Erasable Read Only Memory (Electrically Erasable Programmable ROM, be called for short " EEPROM "), disk, CD, digital versatile disc (Digital Versatile Disc, be called for short " DVD ") etc.
It should be noted that, in the claim and instructions of this patent, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element that " comprises " and limit by statement, and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
Although pass through with reference to some of the preferred embodiment of the invention, the present invention is illustrated and described, but those of ordinary skill in the art should be understood that and can do various changes to it in the form and details, and without departing from the spirit and scope of the present invention.

Claims (9)

1. multi-system equipment starts a system, it is characterized in that, comprising:
First memory, for storing bootstrap loader;
Second memory, comprising at least two subregions, deposits respectively identical system file;
Described first memory adopts serial peripheral equipment interface SPI flash memory, and described second memory adopts nand flash memory;
Processor, for carry out initialization from described first memory bootload loading procedure after board powers on, read in described second memory the system file in the first subregion and carry out verification, if start system from the first subregion by verification, otherwise read in described second memory the system file in the second subregion and carry out verification, if start system from the second subregion by verification.
2. multi-system equipment according to claim 1 starts system, it is characterized in that, each subregion in described second memory comprises a logo file, and this logo file exists, and represents that the system file in current subregion is complete;
Described processor is also for the system file in reading described second memory the first subregion and before carrying out verification, judge whether the logo file in the first subregion exists, if exist, by processor, read the system file in the first subregion and carry out verification, otherwise represent that the system file in current subregion is imperfect, by processor, read in described second memory the system file in the second subregion and carry out verification, by verification, from the second subregion, starting system.
3. multi-system equipment according to claim 1 starts system, it is characterized in that, each subregion in described second memory comprises a generic core mirror image uImage file, and this uImage file is the image file that comprises all system files in current subregion.
4. according to the multi-system equipment described in any one in claims 1 to 3, start system, it is characterized in that, described multi-system equipment startup system adopts bug check and corrects ECC algorithm, and this ECC algorithm at least meets continuous 512 bytes are corrected to the requirement of 4 bit-errors.
5. a multi-system equipment starting method, it is characterized in that, this multi-system equipment startup system comprises for storing the first memory of bootstrap loader and comprising at least two second memories of depositing respectively the subregion of identical system file, described first memory adopts SPI flash memory, described second memory adopts nand flash memory, said method comprising the steps of:
After board powers on, load the bootstrap loader in described first memory and carry out initialization;
Read in described second memory the system file in the first subregion and carry out verification, if start system by verification, otherwise read in described second memory the system file in the second subregion and carry out verification, if start system from the second subregion by verification;
Start the system file in the first subregion in described second memory.
6. multi-system equipment starting method according to claim 5, it is characterized in that, each subregion in described second memory comprises that one for representing the whether complete logo file of current partition system file, an and uImage file that comprises all system files in current subregion, after described board powers on, load the bootstrap loader in first memory and carry out after initialization, further comprising the steps of:
Whether the logo file that judges described the first subregion by the file system in described second memory exists, if exist, reads uImage file, otherwise judges in described second memory, whether the logo file in the second subregion exists;
Read the uImage file of the first subregion and carry out verification, if start system by verification, otherwise the logo file of deletion the first subregion, and judge in described second memory, whether the logo file in the second subregion exists;
Start the system file in the first subregion in described second memory, and the system core file in the first subregion is carried out to data check, if pass through operational system, otherwise delete the logo file of the first subregion, and judge in described second memory, whether the logo file in the second subregion exists.
7. according to the multi-system equipment starting method described in claim 5 or 6, it is characterized in that, described method is further comprising the steps of:
Kernel started after a period of time, started backup thread;
Obtain current boot partition number;
Whether the logo file that checks other subregions exists, if all exist, finishes backup thread, otherwise, by respective partition format, and by the file copy in boot partition in respective partition.
8. according to the multi-system equipment starting method described in claim 5 or 6, it is characterized in that, described method is further comprising the steps of:
At each partition system file, all start after failure, prompt system file corruption, upgrading again, and the system file in each subregion is upgraded simultaneously.
9. according to the multi-system equipment starting method described in claim 5 or 6, it is characterized in that, described method adopts ECC algorithm, and this ECC algorithm at least meets continuous 512 bytes are corrected to the requirement of 4 bit-errors.
CN201210323087.7A 2012-09-04 2012-09-04 Multi-system equipment start system and method thereof Pending CN103678030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210323087.7A CN103678030A (en) 2012-09-04 2012-09-04 Multi-system equipment start system and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210323087.7A CN103678030A (en) 2012-09-04 2012-09-04 Multi-system equipment start system and method thereof

Publications (1)

Publication Number Publication Date
CN103678030A true CN103678030A (en) 2014-03-26

Family

ID=50315677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210323087.7A Pending CN103678030A (en) 2012-09-04 2012-09-04 Multi-system equipment start system and method thereof

Country Status (1)

Country Link
CN (1) CN103678030A (en)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156281A (en) * 2014-08-15 2014-11-19 福建星网视易信息系统有限公司 Method and system for starting disk backups in embedded system
CN104572229A (en) * 2015-02-12 2015-04-29 西安诺瓦电子科技有限公司 Firmware upgrade method and firmware upgrade device for embedded system
CN104615387A (en) * 2015-03-10 2015-05-13 株洲南车时代电气股份有限公司 Vehicle-mounted equipment based on XPE system and design method of vehicle-mounted equipment
CN104834574A (en) * 2015-04-29 2015-08-12 青岛海信移动通信技术股份有限公司 Method and device for solving damage of system partition
CN105072044A (en) * 2015-07-28 2015-11-18 上海斐讯数据通信技术有限公司 System and method for remotely recovering router by using router guide system
CN105138430A (en) * 2015-08-24 2015-12-09 浪潮集团有限公司 Embedded operating system backup and restoration method and device
WO2017020647A1 (en) * 2015-08-04 2017-02-09 深圳市中兴微电子技术有限公司 Novel storage-based embedded file system and realization method thereof
CN106776122A (en) * 2016-11-23 2017-05-31 武汉光迅科技股份有限公司 A kind of method of main-apparatus protection in start-up course based on Flash
WO2017121077A1 (en) * 2016-01-15 2017-07-20 中兴通讯股份有限公司 Method and device for switching between two boot files
CN107085547A (en) * 2017-05-16 2017-08-22 合肥联宝信息技术有限公司 A kind of electronic equipment and BIOS data processing methods
CN109614265A (en) * 2018-11-05 2019-04-12 北京原子机器人科技有限公司 The double copies system and its configuration starting method of intelligent inertial navigation sensor-based system
CN109857586A (en) * 2019-03-14 2019-06-07 康泰医学系统(秦皇岛)股份有限公司 A kind of NAND FLASH data verification method and relevant apparatus
CN109871679A (en) * 2018-12-27 2019-06-11 延锋伟世通电子科技(上海)有限公司 Data display method, system, device and medium
CN110134639A (en) * 2019-04-19 2019-08-16 龙芯中科技术有限公司 A kind of facility information storage location recognition methods and device
CN110737481A (en) * 2019-09-25 2020-01-31 浙江万胜智能科技股份有限公司 Starting method of embedded LINUX operating system based on multiple backup bootstrap programs
CN111061514A (en) * 2019-10-30 2020-04-24 翱捷智能科技(上海)有限公司 Flash device, integrated circuit and Flash device starting method
CN112748959A (en) * 2020-12-29 2021-05-04 杭州迪普科技股份有限公司 Embedded system starting method, flash memory burning method and system updating method
CN114327659A (en) * 2021-12-29 2022-04-12 飞依诺科技(苏州)有限公司 Equipment starting method and wireless ultrasonic equipment
CN114356443A (en) * 2021-12-23 2022-04-15 常州新途软件有限公司 Management method based on multiple partitions of instrument
CN115328563A (en) * 2022-10-09 2022-11-11 荣耀终端有限公司 System starting method and electronic equipment
CN115373906A (en) * 2022-10-24 2022-11-22 北京智芯微电子科技有限公司 Backup starting method, device, equipment and chip of embedded system architecture
WO2022262744A1 (en) * 2021-06-15 2022-12-22 荣耀终端有限公司 Upgrade method for operating system, and device, storage medium and computer program product
WO2022262753A1 (en) * 2021-06-15 2022-12-22 荣耀终端有限公司 Operating system starting method, device, storage medium, and computer program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040210848A1 (en) * 1999-03-11 2004-10-21 Vineyard James L. Multiple operating system quick boot utility
CN201349258Y (en) * 2008-12-30 2009-11-18 深圳市同洲电子股份有限公司 Storage device and set-top box adopting same
CN101604252A (en) * 2009-07-10 2009-12-16 深圳华为通信技术有限公司 Multicomputer system and multicomputer system startup method
CN102110000A (en) * 2009-12-25 2011-06-29 康佳集团股份有限公司 Method, device and equipment for controlling software for auto-updating
CN102289397A (en) * 2011-09-13 2011-12-21 全星科技(珠海)有限公司 Method and device for automatically restoring embedded system of set top box

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040210848A1 (en) * 1999-03-11 2004-10-21 Vineyard James L. Multiple operating system quick boot utility
CN201349258Y (en) * 2008-12-30 2009-11-18 深圳市同洲电子股份有限公司 Storage device and set-top box adopting same
CN101604252A (en) * 2009-07-10 2009-12-16 深圳华为通信技术有限公司 Multicomputer system and multicomputer system startup method
CN102110000A (en) * 2009-12-25 2011-06-29 康佳集团股份有限公司 Method, device and equipment for controlling software for auto-updating
CN102289397A (en) * 2011-09-13 2011-12-21 全星科技(珠海)有限公司 Method and device for automatically restoring embedded system of set top box

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156281A (en) * 2014-08-15 2014-11-19 福建星网视易信息系统有限公司 Method and system for starting disk backups in embedded system
CN104156281B (en) * 2014-08-15 2017-06-06 福建星网视易信息系统有限公司 Start the method and its system of Disk Backup in a kind of embedded system
CN104572229A (en) * 2015-02-12 2015-04-29 西安诺瓦电子科技有限公司 Firmware upgrade method and firmware upgrade device for embedded system
CN104572229B (en) * 2015-02-12 2018-07-20 西安诺瓦电子科技有限公司 The firmware upgrade method and device for upgrading firmware of embedded system
CN104615387B (en) * 2015-03-10 2018-03-16 株洲南车时代电气股份有限公司 Mobile unit and its design method based on XPE systems
CN104615387A (en) * 2015-03-10 2015-05-13 株洲南车时代电气股份有限公司 Vehicle-mounted equipment based on XPE system and design method of vehicle-mounted equipment
CN104834574A (en) * 2015-04-29 2015-08-12 青岛海信移动通信技术股份有限公司 Method and device for solving damage of system partition
CN104834574B (en) * 2015-04-29 2019-01-29 青岛海信移动通信技术股份有限公司 A kind of method and device solving system partitioning damage
CN105072044A (en) * 2015-07-28 2015-11-18 上海斐讯数据通信技术有限公司 System and method for remotely recovering router by using router guide system
WO2017020647A1 (en) * 2015-08-04 2017-02-09 深圳市中兴微电子技术有限公司 Novel storage-based embedded file system and realization method thereof
CN105138430A (en) * 2015-08-24 2015-12-09 浪潮集团有限公司 Embedded operating system backup and restoration method and device
WO2017121077A1 (en) * 2016-01-15 2017-07-20 中兴通讯股份有限公司 Method and device for switching between two boot files
CN106776122A (en) * 2016-11-23 2017-05-31 武汉光迅科技股份有限公司 A kind of method of main-apparatus protection in start-up course based on Flash
CN107085547A (en) * 2017-05-16 2017-08-22 合肥联宝信息技术有限公司 A kind of electronic equipment and BIOS data processing methods
CN109614265A (en) * 2018-11-05 2019-04-12 北京原子机器人科技有限公司 The double copies system and its configuration starting method of intelligent inertial navigation sensor-based system
CN109871679A (en) * 2018-12-27 2019-06-11 延锋伟世通电子科技(上海)有限公司 Data display method, system, device and medium
CN109857586A (en) * 2019-03-14 2019-06-07 康泰医学系统(秦皇岛)股份有限公司 A kind of NAND FLASH data verification method and relevant apparatus
CN110134639A (en) * 2019-04-19 2019-08-16 龙芯中科技术有限公司 A kind of facility information storage location recognition methods and device
CN110134639B (en) * 2019-04-19 2021-09-17 龙芯中科技术股份有限公司 Equipment information storage position identification method and device
CN110737481A (en) * 2019-09-25 2020-01-31 浙江万胜智能科技股份有限公司 Starting method of embedded LINUX operating system based on multiple backup bootstrap programs
CN111061514A (en) * 2019-10-30 2020-04-24 翱捷智能科技(上海)有限公司 Flash device, integrated circuit and Flash device starting method
CN112748959A (en) * 2020-12-29 2021-05-04 杭州迪普科技股份有限公司 Embedded system starting method, flash memory burning method and system updating method
WO2022262753A1 (en) * 2021-06-15 2022-12-22 荣耀终端有限公司 Operating system starting method, device, storage medium, and computer program product
WO2022262744A1 (en) * 2021-06-15 2022-12-22 荣耀终端有限公司 Upgrade method for operating system, and device, storage medium and computer program product
CN114356443A (en) * 2021-12-23 2022-04-15 常州新途软件有限公司 Management method based on multiple partitions of instrument
CN114327659A (en) * 2021-12-29 2022-04-12 飞依诺科技(苏州)有限公司 Equipment starting method and wireless ultrasonic equipment
CN114327659B (en) * 2021-12-29 2024-02-20 飞依诺科技股份有限公司 Equipment starting method and wireless ultrasonic equipment
CN115328563A (en) * 2022-10-09 2022-11-11 荣耀终端有限公司 System starting method and electronic equipment
CN115328563B (en) * 2022-10-09 2023-04-14 荣耀终端有限公司 System starting method and electronic equipment
CN115373906A (en) * 2022-10-24 2022-11-22 北京智芯微电子科技有限公司 Backup starting method, device, equipment and chip of embedded system architecture
CN115373906B (en) * 2022-10-24 2023-02-17 北京智芯微电子科技有限公司 Backup starting method, device, equipment and chip of embedded system architecture

Similar Documents

Publication Publication Date Title
CN103678030A (en) Multi-system equipment start system and method thereof
TWI501253B (en) Handling errors during device bootup from a non-volatile memory
US8341386B2 (en) Method for updating basic input/output system and method for repairing thereof
US7675776B2 (en) Bit map control of erase block defect list in a memory
US8479039B2 (en) Memory errors
US9417967B2 (en) Computing device and method for automatically recovering bios of computing device
JP4901987B1 (en) Storage device, electronic device, and error data correction method
US8812910B2 (en) Pilot process method for system boot and associated apparatus
US20080109798A1 (en) Methods for performing resilient firmware upgrades to a functioning memory
US20120260027A1 (en) Device bootup from a nand-type non-volatile memory
US20150199190A1 (en) System and method for updating firmware
EP2266039A1 (en) Data updating method, memory system and memory device
CN106776122A (en) A kind of method of main-apparatus protection in start-up course based on Flash
CN104424047A (en) NVRAM data recovery method and NVRAM data recovery device
US8966344B2 (en) Data protecting method, memory controller and memory storage device
CN105786545B (en) Breakpoint recovery method and system based on heterogeneous hybrid memory
CN114895845A (en) EMmC data storage control method and embedded mainboard
US20160124816A1 (en) Computing device and method for recovering bios of computing device
KR101512927B1 (en) Method and apparatus for managing page of non-volatile memory
CN103092713A (en) Method for storing embedded code by using NAND flash
US9880926B1 (en) Log structured reserved zone for a data storage device
KR100575927B1 (en) Method for booting the nand flash memory using multi boot loader in mobile station
US11250929B2 (en) System for detecting computer startup and method of system
CN113094107B (en) Data protection method, device, equipment and computer storage medium
US20100037004A1 (en) Storage system for backup data of flash memory and method for the same

Legal Events

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

Application publication date: 20140326