CN102819442A - Method and system for programming programs into embedded equipment program - Google Patents

Method and system for programming programs into embedded equipment program Download PDF

Info

Publication number
CN102819442A
CN102819442A CN2012102684726A CN201210268472A CN102819442A CN 102819442 A CN102819442 A CN 102819442A CN 2012102684726 A CN2012102684726 A CN 2012102684726A CN 201210268472 A CN201210268472 A CN 201210268472A CN 102819442 A CN102819442 A CN 102819442A
Authority
CN
China
Prior art keywords
programming
card
embedded device
boot loader
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.)
Granted
Application number
CN2012102684726A
Other languages
Chinese (zh)
Other versions
CN102819442B (en
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.)
ChinaGPS Co Ltd Shenzhen
Original Assignee
ChinaGPS Co Ltd Shenzhen
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 ChinaGPS Co Ltd Shenzhen filed Critical ChinaGPS Co Ltd Shenzhen
Priority to CN201210268472.6A priority Critical patent/CN102819442B/en
Publication of CN102819442A publication Critical patent/CN102819442A/en
Application granted granted Critical
Publication of CN102819442B publication Critical patent/CN102819442B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Testing Of Individual Semiconductor Devices (AREA)

Abstract

The invention relates to a method for programming programs into embedded equipment, which comprises the following steps of: dividing program files to be programmed into a Boot Loader and other programming files stored in a SD (Secure Digital) card; increasing and modifying an open source of the Boot Loader and writing the increased and modified Boot Loader into the embedded equipment by a universal programmer; and operating a Boot Loader program and programming other programming files into a FLASH of the embedded equipment by utilizing a file in the SD card. The invention also provides a system for programming the programs into the embedded equipment, which comprises a Boot Loader module (1) and a programming module (2). The method and the system for programming the programs into the embedded equipment have the advantages that the universal programmer only needs to program the Boot Loader, so that the influence on a bad sector is reduced; the programming of all the programs to be programmed can be completed by the SD card; and in the programming process, the man-machine interaction is implemented by voice and display prompting.

Description

A kind of method and system of embedded device program burn writing
Technical field
The present invention relates to embedded software technology field, more particularly, relate to a kind of method and system of embedded device program burn writing.
Background technology
Embedded system is widely used in the electronic equipment, like mobile phone, palm PC, electromechanical equipment etc., sees that from the software angle common embedded system is divided into:
Boot: comprise that the guidance code that is solidificated in the firmware is that Boot code and Boot loader are Boot Loader two large divisions, wherein the Boot code is optional;
Kernel: be used for process that management system gives, internal memory, device driver, file etc., determining the performance and the stability of system;
File system: comprise root file system and build on the file system on the FLASH memory device;
User application: specific to application program of user.
And necessary procedure during the program burn writing of embedded system is about in the binary program file write storage device, and these files often comprise above-mentioned boot, kernel, root file system and application program etc.Common programming method is gone into programming such as Boot Loader, kernel and root file system etc. together among the Flash through cd-rom recorder, and the shortcoming of this method is if the programming zone exists bad block will cause the programming failure.
Summary of the invention
The technical matters that the present invention will solve is, to causing the programming failure when there is bad block in the programming zone in the prior art, a kind of method and system of embedded device program burn writing is provided.
The technical solution adopted for the present invention to solve the technical problems is following:
Constructed a kind of method of embedded device program burn writing, having comprised:
A1) will treat that to be divided into Boot loader be Boot Loader to the programming program file be stored in all the other the programming files in the SD card;
A2) increase and change the Boot Loader code of increasing income, the Boot Loader that will increase after changing goes into embedded device through the cd-rom recorder programming; Said Boot Loader source code increases the content that changes and comprises that the support to SD card reading and writing data reaches the parsing to the fat32 file system; The said code of increasing income comprises VIVI.
A3) operation Boot loader utility, start-up system;
A4) judge whether to exist in the SD card and treat the programming file,, utilize the file in the SD card that all the other programming file programmings are gone among the FLASH of embedded device if exist, otherwise, return steps A 3); Said all the other programming files comprise kernel image file, root file system image file, root file system bag, application package and programming instrument, then said steps A 4) further comprise:
B1) start the programming instrument, kernel and root file system image file are copied to the internal memory from the SD card move;
B2) through kernel, root file system and programming instrument the All Files programming is gone among the FLASH of embedded device.
A5) after programming is accomplished, remove the SD card, restart system.
The method of embedded device program burn writing of the present invention, steps A 3) and A4) also comprise: judge whether there is the SD card in the current system, if exist; Then carry SD card obtains the listed files in the SD card, and gets into steps A 4); Otherwise, return steps A 3).
The method of embedded device program burn writing of the present invention is applicable to based on ARM9 and reaches the embedded device with upper mounting plate, in the programming process, can pass through sound or display reminding based on different embedded devices.
The present invention also provides a kind of system of embedded device program burn writing; Comprise Boot Loader module and programming module; Said Boot Loader module is used to judge whether current system exists external SD card; And when having the SD card initialization SD card and read the file in the SD card, when there is the programming instrument in the file in the SD card, start the programming instrument; Said programming module is used for behind the programming instrument start-up, programmings such as kernel, root file system and application program being gone among the FLASH of embedded device.
The method and system of the embedded device program burn writing of embodiment of the present invention have following beneficial effect: cd-rom recorder only needs burning Boot Loader, the less influence of bad block; Can accomplish programming through the SD card to remaining programming program; Through sound and display reminding, realized man-machine interaction in the programming process.
Description of drawings
To combine accompanying drawing and embodiment that the present invention is described further below, in the accompanying drawing:
Fig. 1 is the process flow diagram of the method for embedded device program burn writing among the present invention;
Fig. 2 is the structural representation block diagram of the system of embedded device program burn writing among the present invention.
Fig. 3 is the fundamental diagram of Boot Loader module of the system of embedded device program burn writing in the embodiment of the invention;
Fig. 4 is the fundamental diagram of programming module of the system of embedded device program burn writing in the embodiment of the invention.
Embodiment
To understand in order technical characterictic of the present invention, purpose and effect being had more clearly, to contrast accompanying drawing at present and specify embodiment of the present invention.
Seeing also Fig. 1, is the process flow diagram of the method for embedded device program burn writing of the present invention, and this method specifically may further comprise the steps: constructed a kind of method of program burn writing of embedded device, having comprised:
Step 11: will treat that the programming program file is divided into Boot Loader and is stored in all the other the programming files in the SD card;
Step 12: increase and change the Boot Loader code of increasing income, the Boot Loader that will increase after changing goes into embedded device through the cd-rom recorder programming;
In the present embodiment, Boot Loader uses the code VIVI that increases income, and increases the content that changes and comprises: to the support of SD card reading and writing data, compatibility standard SD card and SDHC card reach the parsing to the fat32 file system.Because Boot Loader file is less, when using cd-rom recorder to carry out programming, cause the possibility of programming failure minimum because of bad block occurring.
Step 13: operation Boot loader utility, normal start-up system;
Step 14: judge whether there is the SD card in the current system, if exist, then carry SD card obtains the listed files in the SD card, and gets into following step, otherwise returns step 103;
Wherein, in step 14, when having the SD card in the detected current system, initialization SD card at first; Differentiate the type of SD card, read the data in the SD card by the address, standard SD card is a byte address, and the SDHC card is a block address; And,,, find the first address of file data through filename at first with reference to the form of fat32 file system to the parsing of fat32 file system; Be delivered to SD card module for reading and writing as parameter, and obtain the number of clusters that file takies, confirm whether file runs through.Through the mount order SD card is mounted in the file system then, carries out following step.
Step 15: judge whether to exist in the SD card and treat the programming file,, return step 13,, utilize all the other programming files in the SD card will treat that the programming of programming file goes in the embedded device if exist if do not exist;
Wherein, said all the other programming files comprise kernel image file, root file system image file, root file system bag, application package and programming instrument, and then said step 15) further comprises:
Step 151: start the programming instrument, kernel and root file system image file are copied to the internal memory from the SD card move;
Step 152: the All Files programming is gone among the FLASH of embedded device through kernel, root file system and programming instrument.For kernel, the kernel subregion that can write direct through the interface that kernel mtd provides is for can the root file system subregion being mounted in the file system with file system, then with the literature kit decompress(ion); For application program, can through duplicate, delete command operation realizes.
Step 16: programming removes the SD card after accomplishing, and restarts system.
Based on above-mentioned steps, accomplished through the SD card remaining programming file has been comprised the programming of kernel, root file system, application program, and need not these to be treated that the programming file carries out programming, thereby avoided the programming failure that causes because of bad block through cd-rom recorder.The method of the program burn writing of the embedded device described in the embodiment of the invention is applicable to based on ARM9 and reaches the embedded device with upper mounting plate; In the programming process; Can pass through sound or display reminding based on different embedded devices; Thereby realized man-machine interaction, in the programming process, occurred in time to stop programming unusually, improved programming quality and efficient greatly.
A kind of system of embedded device program burn writing is also disclosed in the embodiment of the invention, as shown in Figure 2, comprise Boot Loader module 1 and programming module 2, wherein Boot Loader module 1 is arranged in embedded system, and programming module 2 is arranged in the SD card.
See also shown in Figure 3ly, be the fundamental diagram of Boot Loader module 1.Boot Loader module 1 is present in the embedded system; The content of module very burning is gone into the Boot Loader in the embedded device, be mainly used in to judge whether current system exists external SD card, and when having the SD card initialization SD card and read the file in the SD card; When having all the other programming files in the file in the SD card; Kernel in the SD card and root file system image file copied in the internal memory move, and start the programming instrument in all the other programming files, to carry out programming.
See also shown in Figure 4ly, be the fundamental diagram of programming module 2.Said programming module is used for behind the programming instrument start-up; Programmings such as kernel, root file system and application program are gone among the FLASH of embedded device; The interface that provides through kernel mtd of the kernel kernel subregion that writes direct wherein, the root file system subregion is mounted in the file system, then with the literature kit decompress(ion) to write file system; And for application program; Can duplicate through the utilization of programming instrument, order such as deletion carries out programming, simultaneously in the programming process through showing or auditory tone cues programming process, to realize man-machine interaction.
The above for the person of ordinary skill of the art, can make other various corresponding changes and distortion according to technical scheme of the present invention and technical conceive, and all these changes and distortion all should belong to the protection domain of claim of the present invention.

Claims (9)

1. the method for an embedded device program burn writing is characterized in that, comprising:
A1) will treat that the programming program file is divided into Boot loader Boot Loader and is stored in all the other the programming files in the SD card;
A2) increase and change the Boot Loader code of increasing income, the Boot Loader that will increase after changing goes into embedded device through the cd-rom recorder programming;
A3) operation Boot loader utility, start-up system;
A4) judge whether to exist in the SD card and treat the programming file,, utilize the file in the SD card that all the other programming file programmings are gone among the FLASH of embedded device if exist, otherwise, return steps A 3);
A5) after programming is accomplished, remove the SD card, restart system.
2. the method for embedded device program burn writing according to claim 1 is characterized in that, steps A 2) in, said Boot Loader source code increases the content that changes and comprises that the support to SD card reading and writing data reaches the parsing to the fat32 file system; The said code of increasing income comprises VIVI.
3. the method for embedded device program burn writing according to claim 1 is characterized in that, steps A 3) and A4) between also comprise: judge whether there is the SD card in the current system; If exist; Then carry SD card obtains the listed files in the SD card, and gets into steps A 4); Otherwise, return steps A 3).
4. the method for embedded device program burn writing according to claim 1; It is characterized in that; Said all the other programming files comprise kernel image file, root file system image file, root file system bag, application package and programming instrument, then said steps A 4) further comprise:
B1) start the programming instrument, kernel and root file system image file are copied to the internal memory from the SD card move;
B2) through kernel, root file system and programming instrument the All Files programming is gone among the FLASH of embedded device.
5. according to the method for each described embedded device program burn writing among the claim 1-4, it is characterized in that the method for said program burn writing is applicable to based on ARM9 and reaches the embedded device with upper mounting plate.
6. the method for embedded device program burn writing according to claim 5 is characterized in that, the method for said program burn writing is passed through sound or display reminding based on different embedded devices in the programming process.
7. the system of an embedded device program burn writing; It is characterized in that; Comprise Boot Loader module (1) and programming module (2); Said Boot Loader module (1) is used to judge whether current system exists external SD card, and when having the SD card initialization SD card and read the file in the SD card, said programming module (2) is used for the FLASH that embedded device is gone in said all the other programming file programmings.
8. the system of embedded device program burn writing according to claim 7; It is characterized in that; Said Boot Loader module (1) also is used for when there are all the other programming files in the file of SD card; Kernel and root file system image file copied in the internal memory move, and start the programming instrument.
9. the system of embedded device program burn writing according to claim 7 is characterized in that, said programming module (2) also is used in the programming process through sound or display reminding programming progress.
CN201210268472.6A 2012-07-31 2012-07-31 A kind of method and system of embedded device program burn writing Expired - Fee Related CN102819442B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210268472.6A CN102819442B (en) 2012-07-31 2012-07-31 A kind of method and system of embedded device program burn writing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210268472.6A CN102819442B (en) 2012-07-31 2012-07-31 A kind of method and system of embedded device program burn writing

Publications (2)

Publication Number Publication Date
CN102819442A true CN102819442A (en) 2012-12-12
CN102819442B CN102819442B (en) 2018-06-26

Family

ID=47303567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210268472.6A Expired - Fee Related CN102819442B (en) 2012-07-31 2012-07-31 A kind of method and system of embedded device program burn writing

Country Status (1)

Country Link
CN (1) CN102819442B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914303A (en) * 2014-04-10 2014-07-09 福建伊时代信息科技股份有限公司 Method and device for presenting progress bars
CN104317622A (en) * 2014-10-30 2015-01-28 深圳市捷顺科技实业股份有限公司 Embedded device program burn processing method and system
CN104965725A (en) * 2015-01-16 2015-10-07 北京中电兴发科技有限公司 SD-card based full-automatic firmware programming method for embedded equipment
CN105590072A (en) * 2015-12-18 2016-05-18 上海华测导航技术股份有限公司 Method for achieving automatic burning of embedded system
CN105653330A (en) * 2015-12-30 2016-06-08 国家电网公司 SD card based NorFlash programming system and method
CN105677429A (en) * 2016-01-14 2016-06-15 北京天诚盛业科技有限公司 Program burning method, processor and electronic circuit
CN108228281A (en) * 2018-02-07 2018-06-29 深圳怡化电脑股份有限公司 A kind of software programming method and device, embedded device
CN108334453A (en) * 2018-02-28 2018-07-27 深圳创维数字技术有限公司 A kind of file adjustment method, device, terminal device and storage medium
CN108563452A (en) * 2018-03-09 2018-09-21 南昌市科陆智能电网科技有限公司 A kind of method and system of embedded scm automatic online programming program
CN109542466A (en) * 2018-11-15 2019-03-29 上海乐野网络科技有限公司 A method of based on the quick programming firmware of SD card

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216773A (en) * 2008-01-09 2008-07-09 深圳国人通信有限公司 Embedded Linux system firmware downloading method and device
CN101334737A (en) * 2008-07-31 2008-12-31 深圳市同洲电子股份有限公司 Embedded equipment start-up or reset method
CN102063317A (en) * 2010-12-22 2011-05-18 Tcl集团股份有限公司 Method and system for renewedly burning application program by embedded equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216773A (en) * 2008-01-09 2008-07-09 深圳国人通信有限公司 Embedded Linux system firmware downloading method and device
CN101334737A (en) * 2008-07-31 2008-12-31 深圳市同洲电子股份有限公司 Embedded equipment start-up or reset method
CN102063317A (en) * 2010-12-22 2011-05-18 Tcl集团股份有限公司 Method and system for renewedly burning application program by embedded equipment

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914303A (en) * 2014-04-10 2014-07-09 福建伊时代信息科技股份有限公司 Method and device for presenting progress bars
CN104317622B (en) * 2014-10-30 2018-05-29 深圳市捷顺科技实业股份有限公司 A kind of embedded device burning program processing method and system
CN104317622A (en) * 2014-10-30 2015-01-28 深圳市捷顺科技实业股份有限公司 Embedded device program burn processing method and system
CN104965725A (en) * 2015-01-16 2015-10-07 北京中电兴发科技有限公司 SD-card based full-automatic firmware programming method for embedded equipment
CN104965725B (en) * 2015-01-16 2018-06-08 北京中电兴发科技有限公司 A kind of full-automatic firmware programming method of embedded device based on SD card
CN105590072A (en) * 2015-12-18 2016-05-18 上海华测导航技术股份有限公司 Method for achieving automatic burning of embedded system
CN105653330A (en) * 2015-12-30 2016-06-08 国家电网公司 SD card based NorFlash programming system and method
CN105677429A (en) * 2016-01-14 2016-06-15 北京天诚盛业科技有限公司 Program burning method, processor and electronic circuit
CN108228281A (en) * 2018-02-07 2018-06-29 深圳怡化电脑股份有限公司 A kind of software programming method and device, embedded device
CN108334453A (en) * 2018-02-28 2018-07-27 深圳创维数字技术有限公司 A kind of file adjustment method, device, terminal device and storage medium
CN108334453B (en) * 2018-02-28 2021-07-20 深圳创维数字技术有限公司 File debugging method and device, terminal equipment and storage medium
CN108563452A (en) * 2018-03-09 2018-09-21 南昌市科陆智能电网科技有限公司 A kind of method and system of embedded scm automatic online programming program
CN109542466A (en) * 2018-11-15 2019-03-29 上海乐野网络科技有限公司 A method of based on the quick programming firmware of SD card

Also Published As

Publication number Publication date
CN102819442B (en) 2018-06-26

Similar Documents

Publication Publication Date Title
CN102819442A (en) Method and system for programming programs into embedded equipment program
US8838875B2 (en) Systems, methods and computer program products for operating a data processing system in which a file delete command is sent to an external storage device for invalidating data thereon
TWI423026B (en) Data writing method, memory controller and memory storage apparatus
CN103019899A (en) Method and system for replaying intelligent terminal event as well as intelligent terminal
CN111176701A (en) Firmware upgrading method and device based on external memory card
CN104035842A (en) Method for deleting and recovering built-in application program
CN110908734A (en) Application combination method and device based on plug-in, terminal equipment and storage medium
JP2007233638A (en) Information processor, information processing method, and computer program
CN103713926A (en) Method and system for updating software of client in advance
KR20140042431A (en) Computing system and method for managing data in the system
KR20040051322A (en) Data retouching method for executing file on real time and virus elimination method using the data retouching method thereof
CN104268097A (en) Metadata processing method and system
CN100440383C (en) External storing performance testing method and apparatus
CN105069381A (en) Intelligent terminal based partition protection method and system
CN103902300A (en) Method and system for rapidly installing APK program on Android simulator
CN104331311A (en) Upgrade package generating method and device
CN104298618A (en) Instruction processing method and device for intelligent terminal
CN104484212A (en) Method and device for installing and deleting external storage files
CN116841799A (en) Virtual machine backup method, system, equipment and readable storage medium
CN108804258B (en) Data recovery method and device, mobile terminal and storage medium
US9753933B2 (en) Electronic device and method for mounting file system using virtual block device
WO2016095681A1 (en) Method and device for application running in background
TWI741271B (en) Data protection method and associated storage device
TWI382311B (en) Transmission control system and its method
WO2016058188A1 (en) Software upgrading method and apparatus applied to terminal and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180626

Termination date: 20200731