CN103135997A - Method and device achieving embedded type device bootstrap program generality - Google Patents

Method and device achieving embedded type device bootstrap program generality Download PDF

Info

Publication number
CN103135997A
CN103135997A CN2011103779574A CN201110377957A CN103135997A CN 103135997 A CN103135997 A CN 103135997A CN 2011103779574 A CN2011103779574 A CN 2011103779574A CN 201110377957 A CN201110377957 A CN 201110377957A CN 103135997 A CN103135997 A CN 103135997A
Authority
CN
China
Prior art keywords
configuration parameter
boot code
boot
data structure
hardware
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
CN2011103779574A
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.)
ZTE Corp
Original Assignee
ZTE 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 ZTE Corp filed Critical ZTE Corp
Priority to CN2011103779574A priority Critical patent/CN103135997A/en
Priority to PCT/CN2012/080738 priority patent/WO2013075522A1/en
Publication of CN103135997A publication Critical patent/CN103135997A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Abstract

The invention discloses a method and a device achieving embedded type device bootstrap program generality. The method includes distinguishing general-purpose hardware and non-general-purpose hardware; distributing data structures for the non-general-purpose hardware, generating configuration parameter files corresponding to the data structures, and guiding procedure codes according to data structure configuration; enabling the configuration parameter files and the guiding procedure codes to be chained into mapping files, placing the guiding procedure codes in guiding procedure areas of the mapping files, and placing the configuration parameters in the configuration parameter files in parameter areas in the mapping files; and initializing a central processing unit (CPU) and the general-purpose hardware through the guiding procedure codes, and initializing the non-general-purpose hardware through the configuration parameters and the guiding procedure codes. The invention further provides a corresponding device. According to the method, initialization for the external hardware having difference can utilize general guide procedures, work quantity of maintaining for the guide procedures is reduced, and expandability of the guide procedures is increased.

Description

Realize method and the device of booting embedded type device program versatility
Technical field
The present invention relates to the boot of embedded device, specially refer to a kind of method and device of realizing booting embedded type device program versatility.
Background technology
Present embedded device has the boot of oneself mostly, and along with the coml demand constantly increases, the function of boot and complicacy also increase day by day.In a lot of situations, these hardware devices have very large similarity, but there are differences, at this moment, usually embedded device is adopted the method for a kind of boot of a kind of veneer, or increase a large amount of methods of processing branch in the treatment scheme of boot, solve and processing hardware on the guiding of discrepant different embedded devices.
In fact, if veneer adopts the CPU of same type or close type, the treatment scheme of boot is basically identical, and difference is mainly the hardware chip initialization that causes in the difference due to hardware and the difference of configuration thereof.But, no matter be to adopt a kind of boot of a kind of veneer, or increase a large amount of methods that judge branch in a kind of boot, all can increase the workload that boot is safeguarded, and reduce the extensibility of boot.Secondly, because boot and combination of hardware are tightr, traditional exploitation is also very difficult carries out decoupling zero with the exploitation of bottom layer driving module and the exploitation of upper strata supporting module, is unfavorable for function upgrading and the maintenance of boot.At last, also become very complicated about the version management of boot, every newly-increased veneer often, the version of boot will occur once to change.
Summary of the invention
Fundamental purpose of the present invention is for providing a kind of method that realizes booting embedded type device program versatility, make the initialization of externally establishing discrepant hardware can adopt general boot, reduce workload that boot is safeguarded, and increased the extensibility of boot.
The invention provides a kind of method that realizes booting embedded type device program versatility, comprise the following steps:
Distinguish common hardware and not general hardware;
Be not general hardware distribute data structure, generate the configuration parameter file corresponding with described data structure, and according to described data structure configuration boot code;
Described configuration parameter file and boot code are linked as image file, and leave described boot code in described image file boot district, leave the configuration parameter in described configuration parameter file in described image file parameter region;
By described boot code, CPU and common hardware are carried out initialization, and by described configuration parameter and described boot code, described not general hardware is carried out initialization.
Preferably, describedly be not general hardware distribute data structure, generate the configuration parameter file corresponding with described data structure, and comprise according to described data structure configuration boot code:
According to a kind of data structure of not general hardware definition, and generate the text of configuration parameter, the text of described configuration parameter is converted to the corresponding configuration parameter file of described data structure;
According to described data structure configuration boot code, described boot code is supported the configuration parameter in described configuration parameter file.
Preferably, describedly configuration parameter file and boot code be linked as image file comprise:
Described configuration parameter file and boot code are compiled, be linked as an image file, and described image file is divided into boot district and parameter region.
Preferably, describedly by boot code, CPU and common hardware are carried out initialization, and by described configuration parameter and described boot code, described not general hardware are carried out initialization and comprise:
By the boot code in described boot district, CPU and common hardware are carried out initialization;
Read the configuration parameter in described parameter region, and according to described configuration parameter and described boot code, described not general hardware is carried out initialization.
The present invention also provides a kind of device of realizing booting embedded type device program versatility, comprising:
Discriminating module is used for distinguishing common hardware and not general hardware;
Distribution module is used to not general hardware distribute data structure, generates the configuration parameter file corresponding with described data structure, and according to described data structure configuration boot code;
Link module, be used for described configuration parameter file and boot code are linked as image file, and leave described boot code in described image file boot district, leave the configuration parameter in described configuration parameter file in described image file parameter region;
Initialization module is used for by described boot code, CPU and common hardware being carried out initialization, and by described configuration parameter and described boot code, described not general hardware is carried out initialization.
Preferably, described distribution module comprises:
Converting unit is used for according to a kind of data structure of not general hardware definition, and generates the text of configuration parameter, and the text of described configuration parameter is converted to the corresponding configuration parameter file of described data structure;
Dispensing unit is used for according to described data structure configuration boot code, and described boot code is supported the configuration parameter in described configuration parameter file.
Preferably, described link module comprises:
Link unit is used for described configuration parameter file and boot code are compiled, and is linked as an image file, and described image file is divided into boot district and parameter region.
Preferably, described initialization module comprises:
The first initialization unit is used for by the boot code in described boot district, CPU and common hardware being carried out initialization;
The second initialization unit is used for reading the configuration parameter of described parameter region, and according to described configuration parameter and described boot code, described not general hardware is carried out initialization.
The present invention is by being the data structure of hardware distributing uniform that can not the universal guiding program in veneer, and simultaneously not general according to these hardware generates general configuration parameter file, and configuration can be supported the boot code of configuration parameter according to data structure.Then, will be divided into boot district and the parameter region that is respectively used to deposit the configuration parameter in boot code and configuration parameter file according to the image file that boot code and configuration parameter file chaining form.After the embedded device electrifying startup, can utilize boot code and configuration parameter to carry out initialization to CPU and the hardware of veneer.Adopt this method, make decoupling zero is carried out in the exploitation of hardware bottom layer and the exploitation of upper layer software (applications), thereby reduced workload that boot is safeguarded, and increased the extensibility of boot.
Description of drawings
Fig. 1 is the schematic flow sheet that the present invention realizes method one embodiment of booting embedded type device program versatility;
Fig. 2 is that the present invention realizes the schematic flow sheet that distributes in method one embodiment of booting embedded type device program versatility;
Fig. 3 is that the present invention realizes initialized schematic flow sheet in method one embodiment of booting embedded type device program versatility;
Fig. 4 is the structural representation that the present invention realizes device one embodiment of booting embedded type device program versatility;
Fig. 5 is the structural representation that the present invention realizes distribution module in device one embodiment of booting embedded type device program versatility;
Fig. 6 is the structural representation that the present invention realizes initialization module in device one embodiment of booting embedded type device program versatility.
The realization of the object of the invention, functional characteristics and advantage are described further with reference to accompanying drawing in connection with embodiment.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
With reference to Fig. 1, a kind of method one embodiment that realizes booting embedded type device program versatility of the present invention is proposed, the method comprises the following steps:
Step S101 distinguishes common hardware and not general hardware;
When in the present embodiment, providing a kind of embedded device electrifying startup, hardware in veneer is carried out initialized method.When the type of the CPU that adopts when veneer is identical or close, the common hardware of veneer is separated with the initial work of general hardware not, also can adopt general boot to carry out initialization for not general hardware.Thus, before equipment is carried out initialization, at first to according to can the universal guiding program, the common hardware of veneer and not general hardware be distinguished, in order to respectively common hardware and not general hardware are carried out initialization according to boot.
Step S102 is not general hardware distribute data structure, generates the configuration parameter file corresponding with described data structure, and according to described data structure configuration boot code;
As carrying out initialization to the general boot of uncurrent hardware using, at first to generate a general boot.At this moment, just need according to the not general hardware in veneer, and be that these hardware distribute a unified data structure, then according to the data structure of distributing, generate a configuration parameter file that includes configuration parameter, the configuration parameter in the configuration parameter file that generates can carry out initialization to not general hardware for veneer; Simultaneously, according to the data structure of distributing for not general hardware, boot code is configured, that original boot code in veneer is modified on the process nature of configuration, make amended boot code can support that CPU and common hardware are carried out the initialized while, also can support for veneer, not general hardware to be carried out initialized configuration parameter.
Step S103, described configuration parameter file and boot code are linked as image file, and leave described boot code in described image file boot district, leave the configuration parameter in described configuration parameter file in described image file parameter region;
When according to defined data structure building configuration parameter file, and configured the boot code of configuration parameter in support configuration parameter file according to data structure after, need to configuration parameter file and boot code be linked by chained technology, be linked into an image file.Then image file is divided, be about to it and be divided into boot district and parameter region, the boot district that divides and parameter region are respectively used to deposit the configuration parameter in boot code and configuration parameter file.
Step S104 carries out initialization by described boot code with CPU and common hardware, and by described configuration parameter and described boot code, described not general hardware is carried out initialization.
To the boot in veneer, after having carried out reconfiguring according to not general hardware, after the embedded device electrifying startup, just can carry out initialization to the hardware of embedded device by the boot that reconfigures.When CPU and common hardware are carried out initialization, can directly carry out initialization by the boot code in the boot district and get final product; And when the not general hardware of veneer is carried out initialization, need to completed CPU and common hardware are carried out initialization after, jointly carry out according to the configuration parameter in parameter region and boot code.
The method that realizes booting embedded type device program versatility provided by the present invention, by being the data structure of hardware distributing uniform that can not the universal guiding program in veneer, simultaneously not general according to these hardware generates general configuration parameter file, and configures according to data structure the boot code that can support configuration parameter.Then, will be divided into boot district and the parameter region that is respectively used to deposit the configuration parameter in boot code and configuration parameter file according to the image file that boot code and configuration parameter file chaining form.After the embedded device electrifying startup, can utilize boot code and configuration parameter to carry out initialization to CPU and the hardware of veneer.Adopt this method, make decoupling zero is carried out in the exploitation of hardware bottom layer and the exploitation of upper layer software (applications), thereby reduced workload that boot is safeguarded, and increased the extensibility of boot.
With reference to Fig. 2, in a kind of method one embodiment that realizes booting embedded type device program versatility of the present invention, step S102 comprises:
Step S1021 according to a kind of data structure of not general hardware definition, and generates the text of configuration parameter, and the text of described configuration parameter is converted to the corresponding configuration parameter file of described data structure;
When exist in the peripheral hardware hardware of veneer can not the universal guiding program hardware the time, these hardware unifications can be not general hardware, and according to the not general hardware through unification, define and a kind ofly can support all not data structures of general hardware, simultaneously according to not general hardware of defined data structure building can be general the text of configuration parameter.Then, by crossover tool, the text of configuration parameter is converted to the configuration parameter file of the form corresponding with defined data structure.
Step S1022, according to described data structure configuration boot code, described boot code is supported the configuration parameter in described configuration parameter file.
when according to through unified not general hardware definition can support all not after the data structure of general hardware, need to be according to the new boot code of this data structure configuration, the essence of configuration boot code is that the boot code of script in veneer is modified, the purpose of revising is to make it can support configuration parameter in the configuration parameter file, thereby can come when embedded device starts the common hardware of veneer and not general hardware initialization by boot code and configuration parameter, in order to further the operating system of embedded device is carried out initialization.
According to a kind of data structure of not general hardware definition in veneer, generate simultaneously the text of configuration parameter, and the text of this configuration parameter is changed, be about to it and be converted to the configuration parameter file corresponding with defined data structure; Then, configure according to data structure the boot code that can support configuration parameter.Like this, just provide the foundation for by general boot, the not general hardware of veneer being carried out initialization, further guaranteed the extensibility of boot in the veneer.
In the above-described embodiments, step S103 comprises:
Step S1031 compiles described configuration parameter file and boot code, is linked as an image file, and described image file is divided into boot district and parameter region.
When according to defined data structure building configuration parameter file, and configured the boot code of configuration parameter in support configuration parameter file according to data structure after, need to configuration parameter file and boot code be linked by chained technology, to be linked into an image file, the image file that finally forms is carried out the division in zone, be about to it and be divided into boot district and parameter region two zones.Then, by same chained technology, boot code and configuration parameter are deposited respectively, be about to boot code and leave in the boot district, the configuration parameter in the configuration parameter file is left in parameter region.Like this, CPU and the common hardware of embedded device veneer initialization can be carried out by the boot code in the boot district, just the not general hardware of veneer initialization can be carried out by the configuration parameter in parameter region and boot code.
Configuration parameter file and boot code are linked into an image file, and image file is divided into boot district and parameter region two zones, boot code and configuration parameter are left in respectively in boot district and parameter region.When the embedded device electrifying startup, just can be by the boot code in the boot district and the configuration parameter in parameter region respectively to CPU and the common hardware of equipment veneer, and not general hardware carries out initialization.Like this, just can guarantee when bottom hardware equipment has difference, also can adopt general boot to carry out initialization to veneer, and need not carry out for different veneers the setting of different editions, thereby reduce workload to single board edition management.
With reference to Fig. 3, in a kind of method one embodiment that realizes booting embedded type device program versatility of the present invention, step S104 comprises:
Step S1041 carries out initialization by the boot code in described boot district with CPU and common hardware;
After the embedded device electrifying startup, at first, can carry out the most necessary the simplest initialization to veneer by the boot code in the boot district, namely the relevant register of CUP and general peripheral hardware hardware are carried out initialization.To the purpose of the relevant register of CUP and general peripheral hardware hardware initialization, to be in order realizing, the CPU of veneer to be configured, thereby can to facilitate veneer to read configuration parameter in parameter region.
Step S1042 reads the configuration parameter in described parameter region, and according to described configuration parameter and described boot code, described not general hardware is carried out initialization.
After the register relevant to CUP and general peripheral hardware hardware carry out initialization, veneer just begins to read the configuration parameter in the parameter region that is stored in image file, according to the boot code in the configuration parameter that reads and boot, all not general hardware of veneer are carried out initialization.After all the not general hardware to veneer carry out initialization, just can carry out the follow-up operating system to embedded device and carry out initialized step, like this, just completed the workflow that embedded device is guided by boot.
By image file being divided into boot district and parameter region, call the boot code in the boot district, complete the relevant register of CUP and general peripheral hardware hardware are carried out initialized work; And the configuration parameter in the call parameters district, and utilizing boot code, all the not general hardware that can complete veneer carry out initialized work.Like this, just can further guarantee and to carry out decoupling zero to the exploitation of hardware bottom layer and upper layer software (applications), thereby reduce workload to boot exploitation.
With reference to Fig. 4, a kind of device one embodiment that realizes booting embedded type device program versatility of the present invention is proposed, this device comprises:
Discriminating module 10 is used for distinguishing common hardware and not general hardware;
Distribution module 20 is used to not general hardware distribute data structure, generates the configuration parameter file corresponding with described data structure, and according to described data structure configuration boot code;
Link module 30, be used for described configuration parameter file and boot code are linked as image file, and leave described boot code in described image file boot district, leave the configuration parameter in described configuration parameter file in described image file parameter region;
Initialization module 40 is used for by described boot code, CPU and common hardware being carried out initialization, and by described configuration parameter and described boot code, described not general hardware is carried out initialization.
When in the present embodiment, providing a kind of embedded device electrifying startup, hardware in veneer is carried out initialized method.When the type of the CPU that adopts when veneer is identical or close, the common hardware of veneer is separated with the initial work of general hardware not, also can adopt general boot to carry out initialization for not general hardware.Thus, before equipment was carried out initialization, at first can discriminating module 10 will according to the universal guiding program, be distinguished the common hardware of veneer and not general hardware, in order to respectively common hardware and not general hardware are carried out initialization according to boot.
As carrying out initialization to the general boot of uncurrent hardware using, at first to generate a general boot.At this moment, distribution module 20 just needs according to the not general hardware in veneer, and be that these hardware distribute a unified data structure, then according to the data structure of distributing, generate a configuration parameter file that includes configuration parameter, the configuration parameter in the configuration parameter file that generates can carry out initialization to not general hardware for veneer; Simultaneously, according to the data structure of distributing for not general hardware, boot code is configured, that original boot code in veneer is modified on the process nature of configuration, make amended boot code can support that CPU and common hardware are carried out the initialized while, also can support for veneer, not general hardware to be carried out initialized configuration parameter.
When according to defined data structure building configuration parameter file, and configured the boot code of configuration parameter in support configuration parameter file according to data structure after, link module 30 need to link configuration parameter file and boot code by chained technology, is linked into an image file.Then image file is divided, be about to it and be divided into boot district and parameter region, the boot district that divides and parameter region are respectively used to deposit the configuration parameter in boot code and configuration parameter file.
To the boot in veneer, after having carried out reconfiguring according to not general hardware, after the embedded device electrifying startup, initialization module 40 just can carry out initialization to the hardware of embedded device by the boot that reconfigures.When CPU and common hardware are carried out initialization, can directly carry out initialization by the boot code in the boot district and get final product; And when the not general hardware of veneer is carried out initialization, need to completed CPU and common hardware are carried out initialization after, jointly carry out according to the configuration parameter in parameter region and boot code.
The device of realizing booting embedded type device program versatility provided by the present invention, by being the data structure of hardware distributing uniform that can not the universal guiding program in veneer, simultaneously not general according to these hardware generates general configuration parameter file, and configures according to data structure the boot code that can support configuration parameter.Then, will be divided into boot district and the parameter region that is respectively used to deposit the configuration parameter in boot code and configuration parameter file according to the image file that boot code and configuration parameter file chaining form.After the embedded device electrifying startup, can utilize boot code and configuration parameter to carry out initialization to CPU and the hardware of veneer.Adopt this method, make decoupling zero is carried out in the exploitation of hardware bottom layer and the exploitation of upper layer software (applications), thereby reduced workload that boot is safeguarded, and increased the extensibility of boot.
With reference to Fig. 5, in a kind of device one embodiment that realizes booting embedded type device program versatility of the present invention, distribution module 20 comprises:
Converting unit 21 is used for according to a kind of data structure of not general hardware definition, and generates the text of configuration parameter, and the text of described configuration parameter is converted to the corresponding configuration parameter file of described data structure;
Dispensing unit 22 is used for according to described data structure configuration boot code, and described boot code is supported the configuration parameter in described configuration parameter file.
When exist in the peripheral hardware hardware of veneer can not the universal guiding program hardware the time, these hardware unifications can be not general hardware, and according to the not general hardware through unification, define and a kind ofly can support all not data structures of general hardware, simultaneously according to not general hardware of defined data structure building can be general the text of configuration parameter.Then, converting unit 21 is converted to the text of configuration parameter by crossover tool the configuration parameter file of the form corresponding with defined data structure.
when according to through unified not general hardware definition can support all not after the data structure of general hardware, dispensing unit 22 need to be according to the new boot code of this data structure configuration, the essence of configuration boot code is that the boot code of script in veneer is modified, the purpose of revising is to make it can support configuration parameter in the configuration parameter file, thereby can come when embedded device starts the common hardware of veneer and not general hardware initialization by boot code and configuration parameter, in order to further the operating system of embedded device is carried out initialization.
According to a kind of data structure of not general hardware definition in veneer, generate simultaneously the text of configuration parameter, and the text of this configuration parameter is changed, be about to it and be converted to the configuration parameter file corresponding with defined data structure; Then, configure according to data structure the boot code that can support configuration parameter.Like this, just provide the foundation for by general boot, the not general hardware of veneer being carried out initialization, further guaranteed the extensibility of boot in the veneer.
In the above-described embodiments, link module 30 comprises:
Link unit 31 is used for described configuration parameter file and boot code are compiled, and is linked as an image file, and described image file is divided into boot district and parameter region.
When according to defined data structure building configuration parameter file, and configured the boot code of configuration parameter in support configuration parameter file according to data structure after, link unit 31 need to link configuration parameter file and boot code by chained technology, to be linked into an image file, the image file that finally forms is carried out the division in zone, be about to it and be divided into boot district and parameter region two zones.Then, by same chained technology, boot code and configuration parameter are deposited respectively, be about to boot code and leave in the boot district, the configuration parameter in the configuration parameter file is left in parameter region.Like this, CPU and the common hardware of embedded device veneer initialization can be carried out by the boot code in the boot district, just the not general hardware of veneer initialization can be carried out by the configuration parameter in parameter region and boot code.
Configuration parameter file and boot code are linked into an image file, and image file is divided into boot district and parameter region two zones, boot code and configuration parameter are left in respectively in boot district and parameter region.When the embedded device electrifying startup, just can be by the boot code in the boot district and the configuration parameter in parameter region respectively to CPU and the common hardware of equipment veneer, and not general hardware carries out initialization.Like this, just can guarantee when bottom hardware equipment has difference, also can adopt general boot to carry out initialization to veneer, and need not carry out for different veneers the setting of different editions, thereby reduce workload to single board edition management.
With reference to Fig. 6, in a kind of device one embodiment that realizes booting embedded type device program versatility of the present invention, initialization module 40 comprises:
The first initialization unit 41 is used for by the boot code in described boot district, CPU and common hardware being carried out initialization;
The second initialization unit 42 is used for reading the configuration parameter of described parameter region, and according to described configuration parameter and described boot code, described not general hardware is carried out initialization.
After the embedded device electrifying startup, at first, the first initialization unit 41 can be carried out the most necessary the simplest initialization to veneer by the boot code in the boot district, namely the relevant register of CUP and general peripheral hardware hardware is carried out initialization.To the purpose of the relevant register of CUP and general peripheral hardware hardware initialization, to be in order realizing, the CPU of veneer to be configured, thereby can to facilitate veneer to read configuration parameter in parameter region.
After the register relevant to CUP and general peripheral hardware hardware carry out initialization, veneer just begins to read the configuration parameter in the parameter region that is stored in image file, the second initialization unit 42 is according to the boot code in the configuration parameter that reads and boot, and all not general hardware of veneer are carried out initialization.After all the not general hardware to veneer carry out initialization, just can carry out the follow-up operating system to embedded device and carry out initialized step, like this, just completed the workflow that embedded device is guided by boot.
By image file being divided into boot district and parameter region, call the boot code in the boot district, complete the relevant register of CUP and general peripheral hardware hardware are carried out initialized work; And the configuration parameter in the call parameters district, and utilizing boot code, all the not general hardware that can complete veneer carry out initialized work.Like this, just can further guarantee and to carry out decoupling zero to the exploitation of hardware bottom layer and upper layer software (applications), thereby reduce workload to boot exploitation.
The above is only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in scope of patent protection of the present invention.

Claims (8)

1. a method that realizes booting embedded type device program versatility, is characterized in that, comprises the following steps:
Distinguish common hardware and not general hardware;
Be not general hardware distribute data structure, generate the configuration parameter file corresponding with described data structure, and according to described data structure configuration boot code;
Described configuration parameter file and boot code are linked as image file, and leave described boot code in described image file boot district, leave the configuration parameter in described configuration parameter file in described image file parameter region;
By described boot code, CPU and common hardware are carried out initialization, and by described configuration parameter and described boot code, described not general hardware is carried out initialization.
2. the method for claim 1, is characterized in that, describedly is not general hardware distribute data structure, generates the configuration parameter file corresponding with described data structure, and comprise according to described data structure configuration boot code:
According to a kind of data structure of not general hardware definition, and generate the text of configuration parameter, the text of described configuration parameter is converted to the corresponding configuration parameter file of described data structure;
According to described data structure configuration boot code, described boot code is supported the configuration parameter in described configuration parameter file.
3. method as claimed in claim 2, is characterized in that, describedly configuration parameter file and boot code are linked as image file comprise:
Described configuration parameter file and boot code are compiled, be linked as an image file, and described image file is divided into boot district and parameter region.
4. method as claimed in claim 3, is characterized in that, describedly by boot code, CPU and common hardware carried out initialization, and by described configuration parameter and described boot code, described not general hardware is carried out initialization and comprise:
By the boot code in described boot district, CPU and common hardware are carried out initialization;
Read the configuration parameter in described parameter region, and according to described configuration parameter and described boot code, described not general hardware is carried out initialization.
5. a device of realizing booting embedded type device program versatility, is characterized in that, comprising:
Discriminating module is used for distinguishing common hardware and not general hardware;
Distribution module is used to not general hardware distribute data structure, generates the configuration parameter file corresponding with described data structure, and according to described data structure configuration boot code;
Link module, be used for described configuration parameter file and boot code are linked as image file, and leave described boot code in described image file boot district, leave the configuration parameter in described configuration parameter file in described image file parameter region;
Initialization module is used for by described boot code, CPU and common hardware being carried out initialization, and by described configuration parameter and described boot code, described not general hardware is carried out initialization.
6. device as claimed in claim 5, is characterized in that, described distribution module comprises:
Converting unit is used for according to a kind of data structure of not general hardware definition, and generates the text of configuration parameter, and the text of described configuration parameter is converted to the corresponding configuration parameter file of described data structure;
Dispensing unit is used for according to described data structure configuration boot code, and described boot code is supported the configuration parameter in described configuration parameter file.
7. device as claimed in claim 6, is characterized in that, described link module comprises:
Link unit is used for described configuration parameter file and boot code are compiled, and is linked as an image file, and described image file is divided into boot district and parameter region.
8. device as claimed in claim 7, is characterized in that, described initialization module comprises:
The first initialization unit is used for by the boot code in described boot district, CPU and common hardware being carried out initialization;
The second initialization unit is used for reading the configuration parameter of described parameter region, and according to described configuration parameter and described boot code, described not general hardware is carried out initialization.
CN2011103779574A 2011-11-24 2011-11-24 Method and device achieving embedded type device bootstrap program generality Pending CN103135997A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2011103779574A CN103135997A (en) 2011-11-24 2011-11-24 Method and device achieving embedded type device bootstrap program generality
PCT/CN2012/080738 WO2013075522A1 (en) 2011-11-24 2012-08-29 Method and device for implementing universality of boot program for embedded device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103779574A CN103135997A (en) 2011-11-24 2011-11-24 Method and device achieving embedded type device bootstrap program generality

Publications (1)

Publication Number Publication Date
CN103135997A true CN103135997A (en) 2013-06-05

Family

ID=48469085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103779574A Pending CN103135997A (en) 2011-11-24 2011-11-24 Method and device achieving embedded type device bootstrap program generality

Country Status (2)

Country Link
CN (1) CN103135997A (en)
WO (1) WO2013075522A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677912A (en) * 2013-12-06 2014-03-26 华为技术有限公司 Chip and starting method thereof
CN107436762A (en) * 2017-07-03 2017-12-05 北京东土军悦科技有限公司 A kind of register Code document generating method, device and electronic equipment
CN107844331A (en) * 2017-11-23 2018-03-27 腾讯科技(成都)有限公司 Generate the method, apparatus and equipment of boot configuration file
CN110007910A (en) * 2019-03-29 2019-07-12 上海仁童电子科技有限公司 System development method, system boot method and device
CN111880780A (en) * 2020-07-28 2020-11-03 北京经纬恒润科技有限公司 Method, device and platform for developing boot loader of MCU (microprogrammed control Unit)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904853A (en) * 2006-08-21 2007-01-31 北京中星微电子有限公司 Embedded software loading debugging method and system thereof
CN101763279A (en) * 2010-01-15 2010-06-30 上海维宏电子科技有限公司 BootLoader architectural design method
CN101907997A (en) * 2010-08-11 2010-12-08 深圳市共进电子有限公司 Method for generally starting embedded equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192168A (en) * 2006-11-30 2008-06-04 英业达股份有限公司 Universal computer products hardware configuration management control program setting method and system
CN101840345A (en) * 2010-05-06 2010-09-22 深圳市九洲电器有限公司 Configuration parameter-identifying method, system and embedded equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904853A (en) * 2006-08-21 2007-01-31 北京中星微电子有限公司 Embedded software loading debugging method and system thereof
CN101763279A (en) * 2010-01-15 2010-06-30 上海维宏电子科技有限公司 BootLoader architectural design method
CN101907997A (en) * 2010-08-11 2010-12-08 深圳市共进电子有限公司 Method for generally starting embedded equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677912A (en) * 2013-12-06 2014-03-26 华为技术有限公司 Chip and starting method thereof
US9411603B2 (en) 2013-12-06 2016-08-09 Huawei Technologies Co., Ltd. Chip and starting method thereof
CN107436762A (en) * 2017-07-03 2017-12-05 北京东土军悦科技有限公司 A kind of register Code document generating method, device and electronic equipment
CN107436762B (en) * 2017-07-03 2021-02-23 北京东土军悦科技有限公司 Register code file generation method and device and electronic equipment
CN107844331A (en) * 2017-11-23 2018-03-27 腾讯科技(成都)有限公司 Generate the method, apparatus and equipment of boot configuration file
CN110007910A (en) * 2019-03-29 2019-07-12 上海仁童电子科技有限公司 System development method, system boot method and device
CN111880780A (en) * 2020-07-28 2020-11-03 北京经纬恒润科技有限公司 Method, device and platform for developing boot loader of MCU (microprogrammed control Unit)
CN111880780B (en) * 2020-07-28 2024-03-15 北京经纬恒润科技股份有限公司 Method, device and platform for developing boot loader of MCU

Also Published As

Publication number Publication date
WO2013075522A1 (en) 2013-05-30

Similar Documents

Publication Publication Date Title
US10048865B2 (en) Disk partition stitching and rebalancing using a partition table
CN103135997A (en) Method and device achieving embedded type device bootstrap program generality
CN103729184B (en) Software component combining and constructing method
CN105528232A (en) Automatic installation method and system for software
GB2474178A (en) Encapsulated file management systems
WO2008132924A1 (en) Virtual computer system and its optimization method
CN104081338A (en) Mapping application dependencies at runtime
WO2003069470A1 (en) Application creation system, creation apparatus, creation method, application providing system, providing apparatus, providing method, application operation system, operation apparatus, and operation method
CN102722390A (en) Flash-sharing device for multiprocessors and firmware program loading and upgrading method
CN101604241A (en) A kind of code generating method of embedded system
CN103970578A (en) Method for upgrading master and slave MCUs (micro control units)
CN103019874A (en) Method and device for realizing exception handling based on data synchronization
JP2017520058A5 (en)
CN103186455A (en) Method and system for generating automatic test script on page
CN103856559A (en) Working method and system for web services with various versions coexisting
CN103176802A (en) Method of achieving separation of user interface UI of system and control library through control pool
CN107015812A (en) A kind of bios code design method based on INTEL ME
US9389879B2 (en) System and method for manipulating user-interface display items for web widgets
WO2011020855A3 (en) Updating a client node of a computing system
CN105354071A (en) Method for realizing compatibility between embedded software and hardware
CN105573774A (en) Application parameter managing and configuring method
CN103823703A (en) Method and device in compatibility with different equipment with same firmware
CN104063219A (en) Form development method and system for WEB system
CN102867018B (en) Method for analogue signal communication between threads in database system
CN105138322B (en) Generate the method and system of application program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130605