CN102314354A - Embedded system starting method and embedded device - Google Patents

Embedded system starting method and embedded device Download PDF

Info

Publication number
CN102314354A
CN102314354A CN2010102219513A CN201010221951A CN102314354A CN 102314354 A CN102314354 A CN 102314354A CN 2010102219513 A CN2010102219513 A CN 2010102219513A CN 201010221951 A CN201010221951 A CN 201010221951A CN 102314354 A CN102314354 A CN 102314354A
Authority
CN
China
Prior art keywords
embedded system
data block
application program
usb
configuration file
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
CN2010102219513A
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.)
Wuxi Vimicro Corp
Original Assignee
Wuxi Vimicro Corp
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 Wuxi Vimicro Corp filed Critical Wuxi Vimicro Corp
Priority to CN2010102219513A priority Critical patent/CN102314354A/en
Publication of CN102314354A publication Critical patent/CN102314354A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses an embedded system starting method and an embedded device, which relate to the computer technology. The embedded system starting method comprises the following steps of: after a bootloader on an embedded chip is started, reading a pre-stored configuration file; according to the configuration information in the configuration file, initializing the start frequency of an embedded system; and starting the embedded system by using the initialized start frequency of the embedded system. Because the pre-configured configuration file is read by the bootloader before the start frequency of the embedded system is initialized, and the start frequency of the embedded system is initialized according to parameters in the configuration file, so the start performance of the embedded system is improved.

Description

A kind of embedded system startup method and embedded equipment
Technical field
The present invention relates to computer technology, relate in particular to a kind of embedded system startup method and embedded equipment.
Background technology
Along with popularizing of handheld terminals such as mobile phone, MP4, the user is also growing to the demand of this type handheld terminal function, and this has more powerful processing power with regard to needing the embedded system in the handheld terminal.
Present embedded system reads the value of register STRAP_PIN [0] earlier, if this value is 1 usually when starting; Carry out external chip SPI (Serial Peripheral Interface; Continuous peripheral interface) program of E2PROM if this value is 0, reads SOC (System-On-a-Chip so; Monolithic system) bootloader on CPU (Central Processing Unit, the central processing unit) chip normally starts in the plate.When normal the startup, no matter this processor is primary processor or coprocessor, all can initialization Pll (Phase Locked Loop phaselocked loop) 1, the frequency of CPU and Bus (bus), and the initialization serial ports is done further processing according to system situation again.
The present inventor finds, present embedded system causes can not normally moving of start-up routine for preventing that frequency is too high when starting; When the frequency of initialization Pll1, CPU and Bus, all unified be initialized as one group of specific frequency, for example Pll1 is initialized as 480M; CPU is initialized as 360M; BUS is initialized as 120M, like this, on the SOC plate can be operated in other startup frequency, starts and when downloading; Still the most conservative frequency of employing starts and downloads, and has influenced the startability of embedded system.
Summary of the invention
The embodiment of the invention provides a kind of embedded system startup method and embedded equipment, starts frequency to realize basis configuration initialization embedded system in advance.
A kind of embedded system startup method comprises:
After download start-up routine bootloader on the embedded chip starts, the configuration file of reading pre-stored;
According to the configuration information in the said configuration file, the startup frequency of initialization embedded system comprises the startup frequency of setting according to said embedded system in the said configuration information;
Embedded system after the application initializes starts frequency and starts said embedded system.
A kind of embedded equipment comprises:
The bootloader start unit is used for starting the download start-up routine bootloader of embedded chip;
The configuration file reading unit is arranged among the said bootloader, is used for the configuration file of reading pre-stored;
Initialization unit is arranged among the said bootloader, is used for the configuration information according to said configuration file, and the startup frequency of initialization embedded system comprises the startup frequency of setting according to said embedded system in the said configuration information;
The embedded system start unit is used for embedded system after the application initializes and starts frequency and start said embedded system.
A kind of embedded system startup method comprises:
Configuration file according to storage in advance reads the application program mirror image among the flash memory nandflash, and each data block that reads is carried out verification;
When obstructed out-of-date, from the backup application mirror image, read and corresponding second data block of said first data block the first data block verification;
When the second data block verification is passed through, use said second data block to replace said first data block;
After all data block verifications are passed through in the application program mirror image, carry out the application program that reads.
A kind of embedded equipment comprises:
Application program reads subelement, is used for reading according to the configuration file of storage in advance the application program mirror image of flash memory nandflash, and each data block that reads is carried out verification;
Subelement is read in backup, is used for from the backup application mirror image, reading and corresponding second data block of said first data block when obstructed out-of-date to the first data block verification;
The replacement subelement is used for when the second data block verification is passed through, using said second data block to replace said first data block;
First carries out subelement, is used for after all the data block verifications of application program mirror image are passed through, and carries out the application program that reads.
A kind of embedded system startup method comprises:
Download applications in the internal memory through USB interface;
Read the configuration information in the configuration file, make that according to said configuration information USB continues to communicate by letter with PC, perhaps stop USB and communicate by letter with PC according to said configuration information;
Carry out the application program of being downloaded.
A kind of embedded equipment comprises:
Download subelement, be used for downloading applications into internal memory through USB interface;
Control sub unit is used for reading the configuration information of configuration file, makes that according to said configuration information USB continues to communicate by letter with PC, perhaps stops USB according to said configuration information and communicates by letter with PC;
Second carries out subelement, is used to carry out the application program of being downloaded.
The embodiment of the invention provides a kind of embedded system startup method and embedded equipment; By bootloader before the initialization embedded system starts frequency; Read pre-configured configuration file; And come the startup frequency of initialization embedded system according to the parameter in the configuration file, because the startup frequency that is disposed in the configuration file is to set according to the actual conditions of embedded system, thereby improve the startability of embedded system.
Description of drawings
Fig. 1 starts one of method flow diagram for the embedded system that the embodiment of the invention provides;
Fig. 2 starts two of method flow diagram for the embedded system that the embodiment of the invention provides;
Fig. 3 starts three of method flow diagram for the embedded system that the embodiment of the invention provides;
Fig. 4 reads the configuration file method flow diagram for what the embodiment of the invention provided;
One of embedded equipment structural representation that Fig. 5 provides for the embodiment of the invention;
Two of the embedded equipment structural representation that Fig. 6 provides for the embodiment of the invention;
Three of the embedded equipment structural representation that Fig. 7 provides for the embodiment of the invention;
Four of the embedded equipment structural representation that Fig. 8 provides for the embodiment of the invention;
Five of the embedded equipment structural representation that Fig. 9 provides for the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of embedded system startup method and embedded equipment; This embedded system when starting, configuration file that can reading pre-stored, and come the startup frequency of initialization embedded system according to configuration information wherein; Like this; In the process that embedded system starts, be fit to the frequency of operation of self owing to adopted, so realized improving the startability of embedded system.
As shown in Figure 1, the embedded system startup method that the embodiment of the invention provides comprises:
After bootloader on step S101, the embedded chip (downloading and start-up routine) starts, the configuration file of reading pre-stored;
Step S102, according to the configuration information in the configuration file, the startup frequency of initialization embedded system comprises the startup frequency of setting according to this embedded system in configuration information;
Embedded system after step S103, the application initializes starts frequency and starts embedded system.
Bootloader is after startup; According to setting in advance, at first seek the configuration file of storage in advance, this configuration file is stored among the nandflash (flash memory) usually; After reading configuration file, come the startup frequency of initialization embedded system according to stored configuration information in the configuration file.This configuration file is generally the info file; This document is used for initialization sdram/ddr internal memory, initialization nandflash, multiple nandflash is operated, reconfigures pll, is defined in the nandflash the inside and places some other behaviors of the mode of various programs/resource image, constraint bootloader, also will write down some information simultaneously: for the operation of application program (like 2 grades of bootloader) provides some information; For example: the program of record embedded system (mobile phone/MP4 or the like) is downloaded, and start-up system is to the operating position of nandflash.Write down the placement location of every part of core image (application program image), carry out the data replacement of block level with application programs.These information just are recorded in info file the inside; This info file has 512 bytes usually; This info file is deposited the appointment umber since the 0th block (using the 0th page of each block) of the 0th nandfash chip usually, supplies bootloader and application program to use.Info can be filled in and revised by application program, also can filled in and revise according to actual conditions by bootloader operation back, can also be disposed by the user.
The startup frequency of embedded system generally includes frequency, cpu frequency and the BUS frequency of Pll1, and at present, bootloader is when carrying out initialization; Usually the Pll1 frequency is initialized as 480M; Cpu frequency is initialized as 240M, the BUS frequency is initialized as 120M, when plate level and device property are better; Can support higher startup frequency fully; At this moment, just can revise the configuration information in the configuration file, make bootloader come frequency, cpu frequency and the BUS frequency of initialization Pll1 according to the startup frequency of stipulating in the configuration information; For example, can be under situation about allowing frequency, cpu frequency and the BUS frequency of Pll1 be initialized as 480M, 360M, 240M etc. respectively.
The startup frequency of setting in the configuration information is set according to the performance of SOC plate and the situation of device by the user usually, normally write configuration information in the configuration file after, configuration file is loaded in the embedded system through interfaces such as USB.
After the initialization of embedded system startup frequency finishes; The buffer memory of common also possibility initialization serial ports and OPEN; And the state according to register judges whether under dormant state, to start, if the mode that then starts according to dormancy starts; If not, carry out normal embedded system again and start.
Initialized startup frequency in step S102 possibly only be applied in Embedded startup, download phase, in other application software implementations, might further revise the frequency of Pll1, CPU and BUS as required.In step S103; Embedded system after the application initializes starts frequency and starts embedded system; Wherein, The embedded system that the present invention relates to starts has two kinds, and a kind of is through reading application program from nandflash and operation realizes, another kind is through USB down load application program and carries out and realize.
Usually when bootloader carries out normal embedded startup; At first whether judges is set to start through USB; If do not have; Again through acquiescence read application program and operation starts from nandflash, if the user has been set to start through USB, so directly through through USB down load application program and carry out and realize the startup embedded system.
When reading application program from nandflash and moving, step S103 is specially, and the embedded system after the application initializes starts frequency, and the configuration file according to storing in advance reads the application program mirror image among the nandflash, and carries out.
In the process that embedded system starts, when reading application program, read an application program mirror image among the nandflash usually earlier at present; In nandflash, comprise a lot of pieces (block), comprise a lot of pages or leaves (page) in each piece again; The a plurality of application program mirror images of storage among the nandflash, each application program mirror image takies a plurality of block again, in embodiments of the present invention; Data among the block are called data block, in the process that reads the application program mirror image, to each data block that reads; Verification is carried out in the capital, takes the mode of CRC (Cyclic Redundancy Check, CRC) to carry out usually; In case finding has data block not through verification, abandons this application program mirror image immediately, then reads the backup application mirror image.Inventor of the present invention finds; When adopting this application program mirror image to read mode; When all there is different damage in the application program mirror image with each backup application mirror image, just can't read the application program mirror image, be merely able to use other Starting mode to start.
The embedded system startup method that the embodiment of the invention provides; When finding first data block is arranged not through verification; Further can read in the backup application mirror image and corresponding second data block of first data block; If second data block has been passed through verification, then use second data block to replace first data block, continue to read other data in the application program mirror image again.Like this; Only when application program mirror image and all backup application mirror images have all damaged same data block; Unsuccessful result just can appear reading; Avoided causing to read the application program mirror image because all there are different damages in the application program mirror image with each backup application mirror image.
At this moment, as shown in Figure 2, the configuration file according to storing in advance reads the application program mirror image among the nandflash, and carries out, and specifically comprises:
Step S201, the basis configuration file of storage in advance read the application program mirror image among the nandflash, and each data block that reads is carried out verification;
Step S202, when obstructed out-of-date to the first data block verification, from the backup application mirror image, read and corresponding second data block of first data block;
Step S203, when the second data block verification through the time, use second data block to replace first data block;
Step S204, after all data block verifications are passed through in the application program mirror image, carry out the application program read.
Like this, when only in all backup application mirror images, all not having verification to pass through, just can cause reading the failure of application program mirror image with corresponding second data block of first data block.
When reading the failure of application program mirror image, a kind of processing mode is to start embedded system through USB.If perhaps the user has been set to start through USB, does not read the application program mirror image so and directly realize starting embedded system through also carrying out through USB down load application program
When starting embedded system through USB, download applications in the internal memory through USB interface earlier, carry out this application program again, thereby realize the startup of embedded system.
At present; When starting embedded system through USB; After the down load application program finishes, can stop to communicate by letter of USB and PC usually automatically, if follow-up in the program implementation process; Also need communicate, then rebulid being connected of USB and PC with USB and PC (Personal Computer PC).
Inventor of the present invention finds that such flow process is very loaded down with trivial details, and frequent stops to communicate by letter of USB and PC, rebulids being connected of USB and PC again, has also influenced the efficient of program execution.
The embedded system startup method that the embodiment of the invention provides after having downloaded application program, can read configuration file, and according to corresponding configuration information in the configuration file, what further whether decision stopped USB and PC communicates by letter the raising starting efficiency.
This configuration file can be set according to actual conditions, if in the process of executive utility, still can use USB and PC to communicate; So just can in configuration information, be configured; Make after having downloaded program, make that USB continues to communicate with PC, avoided frequent the communicating by letter of USB and PC that stop; Rebulid being connected of USB and PC again, the efficient that the raising program is carried out; If in the process of follow-up executive utility, do not re-use USB fully and PC communicates, the user also can dispose in configuration information so, makes after having downloaded program, and USB stops and the communicating by letter of PC immediately.
As shown in Figure 3, the method that starts embedded system through USB comprises:
Step S301, download applications in the internal memory through USB interface;
Step S302, read the configuration information in the configuration file, make that according to configuration information USB continues to communicate by letter with PC, perhaps stop USB and communicate by letter with PC according to configuration information;
The application program that step S303, execution are downloaded.
Certainly, can only download applications in the internal memory and directly carry out, also can when starting embedded system, further read and carry out this application program for follow-up; Reburn and write among the nandflash downloading to application program in the internal memory; According to the space and the operating position of internal memory, concrete programming mode has two kinds, a kind ofly is; When downloading to application program in the internal memory, with the application program programming in nandflash; Another kind is, after all downloading to application program in the internal memory, with the application program programming in the internal memory in nandflash.
Be set to carry out outside USB startup embedded system when USB starts except read when failure and user in application program, after the bootloader startup,, also can trigger the USB Starting mode if bootloader reads less than configuration file.
At this moment, owing to bootloader reads less than configuration file, so the direct startup frequency of meeting according to default value initialization embedded system; After carrying out other necessary initialization, trigger USB and start embedded system, usually; When lacking configuration file, can be at first download configuration file and store this configuration file, after definite configuration file download finishes; Bootloader can read this configuration file, and according to the configuration information in the configuration file, reinitializes the startup frequency of embedded system; And use the startup frequency of the embedded system after reinitializing, carry out follow-up application program and download and carry out, accomplish the startup of embedded system.
At this moment, as shown in Figure 4, the configuration file of the reading pre-stored among the step S101 specifically comprises:
After bootloader on step S1011, the chip started, if do not read the configuration file of storage in advance, the startup frequency of then initialization embedded system was to default value;
Step S1012, through the USB download configuration file and the storage;
Step S1013, read the configuration file of being stored.
Equally, after reading configuration file, carry out the initialization that embedded system starts frequency according to configuration information; The embedded system of using again after reinitializing starts frequency startup embedded system, generally, is can continue to start embedded system through USB; At this moment; Among the step S103, the embedded system after the application initializes starts frequency and starts embedded system, and is identical with the method through USB startup embedded system among Fig. 3.
Accordingly, the embodiment of the invention also provides a kind of embedded equipment, and is as shown in Figure 5, comprising: bootloader start unit 501, configuration file reading unit 502, initialization unit 503 and embedded system start unit 504, wherein:
Bootloader start unit 501 is used for starting the bootloader of embedded chip;
Configuration file reading unit 502 is arranged among the bootloader, is used for the configuration file of reading pre-stored;
Initialization unit 503 is arranged among the bootloader, is used for the configuration information according to configuration file, the startup frequency of initialization embedded system;
Embedded system start unit 504 is used for embedded system after the application initializes and starts frequency and start embedded system.
When carrying out the embedded system startup through the mode that reads the application program mirror image among the nandflash and carry out, embedded system start unit 504 specifically is used for:
Embedded system after the application initializes starts frequency, and the configuration file according to storing in advance reads the application program mirror image among the nandflash, and carries out.
In the process that reads the application program mirror image, if run into the data block that verification is not passed through, can use in the backup application mirror image corresponding data block to replace this can not be through the data block of verification; At this moment; As shown in Figure 6, embedded system start unit 504 specifically comprises:
Application program reads subelement 6041, is used for reading according to the configuration file of storage in advance the application program mirror image of nandflash, and each data block that reads is carried out verification;
Subelement 6042 is read in backup, is used for from the backup application mirror image, reading and corresponding second data block of first data block when obstructed out-of-date to the first data block verification;
Replacement subelement 6043 is used for when the second data block verification is passed through, using second data block to replace first data block;
First carries out subelement 6044, is used for after all the data block verifications of application program mirror image are passed through, and carries out the application program that reads.
When the same data block in application program mirror image and all backup application mirror images all can't pass verification, can start embedded system through the USB Starting mode, at this moment, the embedded system start unit also comprises:
Trigger subelement, be used for when corresponding second data block of all the backup application mirror images and first data block does not all have verification to pass through, trigger the embedded system start unit and start embedded system through USB.
Perhaps, embedded equipment can also be after initialization finishes, can also according to the user be provided with from nandflash, read application program when confirming and still pass through USB down load application program, at this moment, also comprise:
Trigger element is used for after the startup frequency of initialization embedded system, according to setting in advance, triggers the embedded system start unit and starts embedded system through USB.
As shown in Figure 7, when starting embedded system through USB, embedded system start unit 504 specifically comprises:
Download subelement 7041, be used for downloading applications into internal memory through USB interface;
Control sub unit 7042 is used for reading the configuration information of configuration file, makes that according to configuration information USB continues to communicate by letter with PC, perhaps stops USB according to configuration information and communicates by letter with PC;
Second carries out subelement 7043, is used to carry out the application program of being downloaded.
After bootloader starts, if bootloader reads less than configuration file, also can trigger the USB Starting mode, this moment, the configuration file reading unit 502, also were used for:
When not reading the configuration file of storage in advance; By the startup frequency of initialization unit 503 initialization embedded systems to default value; Trigger the embedded system start unit by trigger element and start embedded system through USB; And after the embedded system start unit is through USB download configuration file and storage, read the configuration file of being stored;
Trigger element also is used for, and when the configuration file reading unit does not read the configuration file of storage in advance, triggers the embedded system start unit and starts embedded system through USB.
The embodiment of the invention also provides a kind of embedded system startup method; When finding first data block is arranged not through verification; Further can read in the backup application mirror image and corresponding second data block of first data block; If second data block has been passed through verification, then use second data block to replace first data block, continue to read other data in the application program mirror image again.Like this; Only when application program mirror image and all backup application mirror images have all damaged same data block; Unsuccessful result just can appear reading; Avoided causing to read the application program mirror image because all there are different damages in the application program mirror image with each backup application mirror image.
Step is identical among this embedded system startup method and Fig. 2, just repeated description no longer.
Accordingly, the embodiment of the invention also provides a kind of embedded equipment, and is as shown in Figure 8, comprising:
Application program reads subelement 801, is used for reading according to the configuration file of storage in advance the application program mirror image of nandflash, and each data block that reads is carried out verification;
Subelement 802 is read in backup, is used for from the backup application mirror image, reading and corresponding second data block of first data block when obstructed out-of-date to the first data block verification;
Replacement subelement 803 is used for when the second data block verification is passed through, using second data block to replace first data block;
First carries out subelement 804, is used for after all the data block verifications of application program mirror image are passed through, and carries out the application program that reads.
When the same data block in application program mirror image and all backup application mirror images all can't pass verification, can start embedded system through the USB Starting mode, at this moment, the embedded system start unit also comprises:
Trigger subelement, be used for when corresponding second data block of all the backup application mirror images and first data block does not all have verification to pass through, trigger the embedded system start unit and start embedded system through USB.
When starting embedded system through USB, the embedded system start unit also comprises:
Download subelement, be used for downloading applications into internal memory through USB interface;
Control sub unit is used for reading the configuration information of configuration file, makes that according to configuration information USB continues to communicate by letter with PC, perhaps stops USB according to configuration information and communicates by letter with PC;
Second carries out subelement, is used to carry out the application program of being downloaded.
The embodiment of the invention also provides a kind of embedded system startup method, after having downloaded application program, can read configuration file, and according to corresponding configuration information in the configuration file, further whether decision stops to communicate by letter of USB and PC.
This configuration file can be set according to actual conditions, if in the process of executive utility, still can use USB and PC to communicate; So just can in configuration information, be configured; Make after having downloaded program, make that USB continues to communicate with PC, avoided frequent the communicating by letter of USB and PC that stop; Rebulid being connected of USB and PC again, the efficient that the raising program is carried out; If in the process of follow-up executive utility, do not re-use USB fully and PC communicates, the user also can dispose in configuration information so, makes after having downloaded program, and USB stops and the communicating by letter of PC immediately.
These embedded system startup method concrete steps just no longer repeat at this with identical shown in Fig. 3.
Accordingly, the embodiment of the invention provides a kind of embedded equipment, and is as shown in Figure 9, comprising:
Download subelement 901, be used for downloading applications into internal memory through USB interface;
Control sub unit 902 is used for reading the configuration information of configuration file, makes that according to configuration information USB continues to communicate by letter with PC, perhaps stops USB according to configuration information and communicates by letter with PC;
Second carries out subelement 903, is used to carry out the application program of being downloaded.
The embodiment of the invention provides a kind of embedded system startup method and embedded equipment; By bootloader before the initialization embedded system starts frequency; Read pre-configured configuration file; And come the startup frequency of initialization embedded system, thereby improve the startability of embedded system according to the parameter in the configuration file.
And further when finding first data block is arranged not through verification; Further can read in the backup application mirror image and corresponding second data block of first data block; If second data block has been passed through verification; Then use second data block to replace first data block, continue to read other data in the application program mirror image again.Like this; Only when application program mirror image and all backup application mirror images have all damaged same data block; Unsuccessful result just can appear reading; Avoided causing to read the application program mirror image because all there are different damages in the application program mirror image with each backup application mirror image.
And further after having downloaded application program, read configuration file, according to corresponding configuration information in the configuration file, further whether decision stops to communicate by letter of USB and PC, further improves starting efficiency.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (22)

1. an embedded system startup method is characterized in that, comprising:
After download start-up routine bootloader on the embedded chip starts, the configuration file of reading pre-stored;
According to the configuration information in the said configuration file, the startup frequency of initialization embedded system comprises the startup frequency of setting according to said embedded system in the said configuration information;
Embedded system after the application initializes starts frequency and starts said embedded system.
2. the method for claim 1 is characterized in that, the startup frequency of said embedded system comprises:
Embedded system the unloading phase, the frequency of the frequency of phaselocked loop Pll1, the frequency of central processor CPU and bus B US.
3. the method for claim 1 is characterized in that, the embedded system after the said application initializes starts frequency and starts said embedded system, is specially:
Configuration file according to storage in advance reads the application program mirror image among the flash memory nandflash, and each data block that reads is carried out verification;
When obstructed out-of-date, from the backup application mirror image, read and corresponding second data block of said first data block the first data block verification;
When the second data block verification is passed through, use said second data block to replace said first data block;
After all data block verifications are passed through in the application program mirror image, carry out the application program that reads.
4. method as claimed in claim 3 is characterized in that, when all not having verification to pass through with corresponding second data block of said first data block in all backup application mirror images, starts embedded system through USB.
5. the method for claim 1 is characterized in that, the embedded system after the said application initializes starts frequency and starts said embedded system, is specially:
According to setting in advance, start embedded system through USB.
6. like claim 4 or 5 described methods, it is characterized in that, saidly start embedded system through USB and specifically comprise:
Download applications in the internal memory through USB interface;
Read the configuration information in the configuration file, make that according to said configuration information USB continues to communicate by letter with PC, perhaps stop USB and communicate by letter with PC according to said configuration information;
Carry out the application program of being downloaded.
7. method as claimed in claim 6 is characterized in that, said downloading applications in the internal memory specifically comprises:
When downloading to application program in the internal memory, with said application program programming in nandflash; Perhaps
After all downloading to application program in the internal memory, with the application program programming in the said internal memory in nandflash.
8. the method for claim 1 is characterized in that, after the bootloader on the said chip started, the configuration file of reading pre-stored specifically comprised:
After bootloader on the chip started, if do not read the configuration file of storage in advance, the startup frequency of then initialization embedded system was to default value;
Through USB download configuration file and storage;
Read the configuration file of being stored.
9. method as claimed in claim 8 is characterized in that, the embedded system after the said application initializes starts frequency and starts said embedded system, is specially:
Download applications in the internal memory through USB interface;
Read the configuration information in the configuration file, make that according to said configuration information USB continues to communicate by letter with PC, perhaps stop USB and communicate by letter with PC according to said configuration information;
Carry out the application program of being downloaded.
10. an embedded equipment is characterized in that, comprising:
The bootloader start unit is used for starting the download start-up routine bootloader of embedded chip;
The configuration file reading unit is arranged among the said bootloader, is used for the configuration file of reading pre-stored;
Initialization unit is arranged among the said bootloader, is used for the configuration information according to said configuration file, and the startup frequency of initialization embedded system comprises the startup frequency of setting according to said embedded system in the said configuration information;
The embedded system start unit is used for embedded system after the application initializes and starts frequency and start said embedded system.
11. device as claimed in claim 10 is characterized in that, said embedded system start unit specifically comprises:
Application program reads subelement, is used for reading according to the configuration file of storage in advance the application program mirror image of flash memory nandflash, and each data block that reads is carried out verification;
Subelement is read in backup, is used for from the backup application mirror image, reading and corresponding second data block of said first data block when obstructed out-of-date to the first data block verification;
The replacement subelement is used for when the second data block verification is passed through, using said second data block to replace said first data block;
First carries out subelement, is used for after all the data block verifications of application program mirror image are passed through, and carries out the application program that reads.
12. device as claimed in claim 11 is characterized in that, said embedded system start unit also comprises:
Trigger subelement, be used for when all backup application mirror images all do not have verification to pass through with corresponding second data block of said first data block, trigger said embedded system start unit and start embedded system through USB.
13. device as claimed in claim 10 is characterized in that, also comprises:
Trigger element is used for after the startup frequency of initialization embedded system, according to setting in advance, triggers said embedded system start unit and starts embedded system through USB.
14., it is characterized in that when starting embedded system through USB, said embedded system start unit specifically comprises like claim 12 or 13 described devices:
Download subelement, be used for downloading applications into internal memory through USB interface;
Control sub unit is used for reading the configuration information of configuration file, makes that according to said configuration information USB continues to communicate by letter with PC, perhaps stops USB according to said configuration information and communicates by letter with PC;
Second carries out subelement, is used to carry out the application program of being downloaded.
15. device as claimed in claim 13 is characterized in that, said configuration file reading unit also is used for:
When not reading the configuration file of storage in advance; By the startup frequency of initialization unit initialization embedded system to default value; Trigger said embedded system start unit by trigger element and start embedded system through USB; And after said embedded system start unit is through USB download configuration file and storage, read the configuration file of being stored;
Said trigger element also is used for, and when said configuration file reading unit does not read the configuration file of storage in advance, triggers said embedded system start unit and starts embedded system through USB.
16. an embedded system startup method is characterized in that, comprising:
Configuration file according to storage in advance reads the application program mirror image among the flash memory nandflash, and each data block that reads is carried out verification;
When obstructed out-of-date, from the backup application mirror image, read and corresponding second data block of said first data block the first data block verification;
When the second data block verification is passed through, use said second data block to replace said first data block;
After all data block verifications are passed through in the application program mirror image, carry out the application program that reads.
17. method as claimed in claim 16 is characterized in that, when all not having verification to pass through with corresponding second data block of said first data block in all backup application mirror images, starts embedded system through USB.
18. an embedded equipment is characterized in that, comprising:
Application program reads subelement, is used for reading according to the configuration file of storage in advance the application program mirror image of flash memory nandflash, and each data block that reads is carried out verification;
Subelement is read in backup, is used for from the backup application mirror image, reading and corresponding second data block of said first data block when obstructed out-of-date to the first data block verification;
The replacement subelement is used for when the second data block verification is passed through, using said second data block to replace said first data block;
First carries out subelement, is used for after all the data block verifications of application program mirror image are passed through, and carries out the application program that reads.
19. device as claimed in claim 18 is characterized in that, also comprises:
Trigger subelement, be used for when all backup application mirror images all do not have verification to pass through with corresponding second data block of said first data block, trigger said embedded equipment and start embedded system through USB.
20. an embedded system startup method is characterized in that, comprising:
Download applications in the internal memory through USB interface;
Read the configuration information in the configuration file, make that according to said configuration information USB continues to communicate by letter with PC, perhaps stop USB and communicate by letter with PC according to said configuration information;
Carry out the application program of being downloaded.
21. method as claimed in claim 20 is characterized in that, said downloading applications in the internal memory specifically comprises:
When downloading to application program in the internal memory, with said application program programming in flash memory nandflash; Perhaps
After all downloading to application program in the internal memory, with the application program programming in the said internal memory in nandflash.
22. an embedded equipment is characterized in that, comprising:
Download subelement, be used for downloading applications into internal memory through USB interface;
Control sub unit is used for reading the configuration information of configuration file, makes that according to said configuration information USB continues to communicate by letter with PC, perhaps stops USB according to said configuration information and communicates by letter with PC;
Second carries out subelement, is used to carry out the application program of being downloaded.
CN2010102219513A 2010-06-30 2010-06-30 Embedded system starting method and embedded device Pending CN102314354A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102219513A CN102314354A (en) 2010-06-30 2010-06-30 Embedded system starting method and embedded device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102219513A CN102314354A (en) 2010-06-30 2010-06-30 Embedded system starting method and embedded device

Publications (1)

Publication Number Publication Date
CN102314354A true CN102314354A (en) 2012-01-11

Family

ID=45427550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102219513A Pending CN102314354A (en) 2010-06-30 2010-06-30 Embedded system starting method and embedded device

Country Status (1)

Country Link
CN (1) CN102314354A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662711A (en) * 2012-04-06 2012-09-12 中兴通讯股份有限公司 Method and device for quickly initiating chip
CN104035833A (en) * 2013-03-07 2014-09-10 联发科技股份有限公司 Method And System For Verifying Machine Readable Code Integrity
CN104407888A (en) * 2014-11-12 2015-03-11 苏州科达科技股份有限公司 Method and system for starting embedded type equipment
CN104951328A (en) * 2014-03-31 2015-09-30 国基电子(上海)有限公司 Embedded equipment and starting method thereof
CN105653269A (en) * 2015-12-28 2016-06-08 北京星地恒通信息科技有限公司 Boot starting device and method
CN105718248A (en) * 2014-12-02 2016-06-29 比亚迪股份有限公司 System on chip, and method and apparatus for port function initialization for system on chip
CN107632868A (en) * 2017-09-14 2018-01-26 苏州国芯科技有限公司 The method of chip startup, control device, system, computer-readable recording medium
CN109408110A (en) * 2018-11-05 2019-03-01 郑州云海信息技术有限公司 A kind of embedded chip configuration method and device
CN111399926A (en) * 2018-12-13 2020-07-10 北汽福田汽车股份有限公司 Method and device for downloading starting program
CN112230997A (en) * 2020-09-30 2021-01-15 瑞芯微电子股份有限公司 Chip starting method and storage medium
CN114816571A (en) * 2022-04-15 2022-07-29 西安广和通无线通信有限公司 Method, device and equipment for hanging flash memory and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801107A (en) * 2006-01-12 2006-07-12 上海洲信信息技术有限公司 Data recovery method
US20060271728A1 (en) * 2005-05-31 2006-11-30 Stmicroelectronics S.R.L. A low area architecture solution for embedded flash programming memories in microcontrollers
CN101122936A (en) * 2007-09-21 2008-02-13 武汉大学 Embed type platform guiding of credible mechanism
CN101510161A (en) * 2009-03-30 2009-08-19 北京中星微电子有限公司 Bootstrap implementing method, apparatus and portable electronic apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060271728A1 (en) * 2005-05-31 2006-11-30 Stmicroelectronics S.R.L. A low area architecture solution for embedded flash programming memories in microcontrollers
CN1801107A (en) * 2006-01-12 2006-07-12 上海洲信信息技术有限公司 Data recovery method
CN101122936A (en) * 2007-09-21 2008-02-13 武汉大学 Embed type platform guiding of credible mechanism
CN101510161A (en) * 2009-03-30 2009-08-19 北京中星微电子有限公司 Bootstrap implementing method, apparatus and portable electronic apparatus

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662711B (en) * 2012-04-06 2017-03-29 中兴通讯股份有限公司 A kind of chip fast initializing method and device
WO2013149561A1 (en) * 2012-04-06 2013-10-10 中兴通讯股份有限公司 Method and device for quick initialization of chip
CN102662711A (en) * 2012-04-06 2012-09-12 中兴通讯股份有限公司 Method and device for quickly initiating chip
CN104035833A (en) * 2013-03-07 2014-09-10 联发科技股份有限公司 Method And System For Verifying Machine Readable Code Integrity
CN104951328A (en) * 2014-03-31 2015-09-30 国基电子(上海)有限公司 Embedded equipment and starting method thereof
CN104407888A (en) * 2014-11-12 2015-03-11 苏州科达科技股份有限公司 Method and system for starting embedded type equipment
CN104407888B (en) * 2014-11-12 2017-12-15 苏州科达科技股份有限公司 A kind of embedded device starts method and system
CN105718248A (en) * 2014-12-02 2016-06-29 比亚迪股份有限公司 System on chip, and method and apparatus for port function initialization for system on chip
CN105653269A (en) * 2015-12-28 2016-06-08 北京星地恒通信息科技有限公司 Boot starting device and method
CN107632868A (en) * 2017-09-14 2018-01-26 苏州国芯科技有限公司 The method of chip startup, control device, system, computer-readable recording medium
CN109408110A (en) * 2018-11-05 2019-03-01 郑州云海信息技术有限公司 A kind of embedded chip configuration method and device
CN111399926A (en) * 2018-12-13 2020-07-10 北汽福田汽车股份有限公司 Method and device for downloading starting program
CN112230997A (en) * 2020-09-30 2021-01-15 瑞芯微电子股份有限公司 Chip starting method and storage medium
CN114816571A (en) * 2022-04-15 2022-07-29 西安广和通无线通信有限公司 Method, device and equipment for hanging flash memory and storage medium
CN114816571B (en) * 2022-04-15 2023-06-16 西安广和通无线通信有限公司 Method, device, equipment and storage medium for plug-in flash memory

Similar Documents

Publication Publication Date Title
CN102314354A (en) Embedded system starting method and embedded device
US7969809B2 (en) Power consumption-oriented management of a storage system
US9286164B2 (en) Electronic device to restore MBR, method thereof, and computer-readable medium
JP5173818B2 (en) Initializing flash storage via embedded controller
US8539471B2 (en) Updating firmware of an electronic device
CN105745617A (en) Selective power management for pre-boot firmware updates
CN109634645B (en) Firmware upgrading method and terminal
US20070055969A1 (en) System and method for updating firmware
US7739469B2 (en) Patching ROM code
CN101110039B (en) Terminal unit self-installing and self-starting system and method thereof
US10437580B2 (en) Software updating methods and systems
CN102722394B (en) Start upgrading method of embedded equipment
CN102141923B (en) Memory file system loading method and device
US20120131320A1 (en) Booting apparatus and method using snapshot image
US20100064036A1 (en) Peripheral device operation method, peripheral device and host
CN101571807A (en) System with firmware and starting method thereof
CN110321170B (en) Starting-up method
WO2013013396A1 (en) Method and system for managing bios configuration data of basic input/output system
US20030188223A1 (en) BIOS shadowed small-print hard disk drive as robust, always on, backup for hard disk image & software failure
US20060015678A1 (en) Virtual memory device including a bridge circuit
CN102004657A (en) Electronic equipment and updating method thereof
CN103514014A (en) Method for designing boot system of embedded terminal equipment
CN105159716A (en) Memory device initialization method and electronic equipment
US20110179195A1 (en) Field upgradable firmware for electronic devices
CN102740279A (en) Wireless network access terminal and run method thereof

Legal Events

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

Application publication date: 20120111