CN104598284A - Method for starting embedded equipment - Google Patents

Method for starting embedded equipment Download PDF

Info

Publication number
CN104598284A
CN104598284A CN201510064928.0A CN201510064928A CN104598284A CN 104598284 A CN104598284 A CN 104598284A CN 201510064928 A CN201510064928 A CN 201510064928A CN 104598284 A CN104598284 A CN 104598284A
Authority
CN
China
Prior art keywords
file
embedded device
card
upgrade
internal memory
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
CN201510064928.0A
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.)
CHAINWAY INFORMATION TECHNOLOGY Co Ltd
Original Assignee
CHAINWAY INFORMATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHAINWAY INFORMATION TECHNOLOGY Co Ltd filed Critical CHAINWAY INFORMATION TECHNOLOGY Co Ltd
Priority to CN201510064928.0A priority Critical patent/CN104598284A/en
Publication of CN104598284A publication Critical patent/CN104598284A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a method for starting embedded equipment. The embedded equipment supports the starting from a TF (trans-flash) card and the starting from a FLASH memory. The method comprises the following steps that (A) a preset press key of the embedded equipment is set to be the selection of starting from the TF card during the embedded equipment booting; (B) during the embedded equipment booting, whether a preset press key is pressed down or not is detected; (C) under the condition that the preset press key is pressed down, the starting from the TF card is selected, and under the condition that the preset press key is not pressed down, the starting from the FLASH memory is selected. In the method according to the embodiment of the invention, the embedded equipment can be conveniently started from the TF card. In addition, the TF card can be used for upgrading an operating system and/or a booting image of the embedded equipment.

Description

Start the method for embedded device
Technical field
Present invention relates in general to embedded system, more particularly, relate to a kind of method starting embedded device.
Background technology
In recent years, embedded device, the advantage such as high reliability, applying flexible little with its volume is applied to the fields such as industry, consumer electronics, military and national defense widely.At present, for the ease of developing embedded device and safeguarding, embedded device is generally all supported from FLASH memory startup with from TF card start-up.But, be do not store any system in the FLASH memory in bare board, if want programming system, then need to be selected from TF card start-up programming system by DIP switch, after burning completes, also will reselecting as starting from FLASH.That is, normally selected from TF card start-up embedded device by DIP switch in prior art, such operation is very loaded down with trivial details.
Summary of the invention
For overcoming the deficiencies in the prior art, exemplary embodiment of the present invention provides a kind of method of startup embedded device simple to operate.
According to exemplary embodiment of the present invention, a kind of method starting embedded device is provided, described embedded device support is from TF card start-up with from FLASH card start-up, it is characterized in that, described method comprises: select from TF card start-up when the predetermined key of embedded device is arranged in use in embedded device start by (A); (B) when embedded device is started shooting, detect described predetermined key and whether be pressed; (C) when described predetermined key is pressed, from TF card start-up; When described predetermined key is not pressed, start from FLASH memory.
Alternatively, the step started from FLAS storer comprises: whether (D) detects user and select to upgrade to the system of embedded device; (E) when detecting that user selects to upgrade to system, the upgrading project that user selects is determined; (F) the system upgrade file corresponding to the upgrading project that user selects stored in TF card is read in the internal memory of embedded device, and verify the legitimacy of the system upgrade file in internal memory; (G) when the result indication mechanism upgrade file has legitimacy, by the system upgrade file write FLASH memory in internal memory, and start up system.
Alternatively, upgrading project comprises operating system and/or start-up picture.
Alternatively, described operating system is WINCE system.
Alternatively, corresponding to operating system system upgrade file comprises stepldr.nb0 file, eboot.bin file and nk.bin file.
Alternatively, corresponding to start-up picture system upgrade file comprises logo.bmp file.
Alternatively, when detecting that user selects to upgrade to system in step (D), in step (E), showing upgrading item menu to user, determining by detecting the operation of user to upgrading item menu the upgrading project that user selects.
Alternatively, comprise from the step of TF card start-up: the system file stored TF card reads in the internal memory of embedded device by (H), and verifies the legitimacy of the system file in internal memory; (I) when the result indication mechanism file has legitimacy, by the system file write FLASH memory in internal memory, and the system in internal memory is started.
Starting in the method for embedded device according to an exemplary embodiment of the present invention, can easily from TF card start-up embedded device.In addition, the system (such as, operating system and/or start-up picture) of TF card to embedded device can also be utilized to upgrade.
Accompanying drawing explanation
By the description to embodiment carried out below in conjunction with accompanying drawing, above-mentioned and/or other object of the present invention and advantage will become apparent, wherein:
Fig. 1 is the process flow diagram of the method for the startup embedded device illustrated according to exemplary embodiment of the present invention;
Fig. 2 is the process flow diagram of the step from TF card start-up illustrated according to exemplary embodiment of the present invention;
Fig. 3 is the process flow diagram of the step from FLASH memory startup illustrated according to exemplary embodiment of the present invention.
Embodiment
Now will describe exemplary embodiment of the present invention in detail, the example of described embodiment is shown in the drawings, and wherein, identical label indicates identical part.Below by referring to accompanying drawing, described embodiment will be described, to explain the present invention.
Fig. 1 is the process flow diagram of the method for the startup embedded device illustrated according to exemplary embodiment of the present invention.Here, embedded device refers to be installed and runs the equipment of embedded OS, such as, and hand-held digital terminal etc.Both described embedded device support starts from TF card start-up with from FLASH memory.
As shown in Figure 1, in step S100, select from TF card start-up when the predetermined key of embedded device being arranged in use in embedded device start.Here, any button (such as, side switch etc.) of embedded device can be set to predetermined key.When user performs corresponding operation (such as, press, stir) to described predetermined key, user can be defined as and select from TF card start-up embedded device.
In step S200, embedded device is started shooting.Such as, by pressing the power key of embedded device to open embedded device.
In step S300, detect described predetermined key and whether be pressed.Here, described predetermined key can be detected when embedded device is started shooting whether to be pressed.In other words, when pressing described predetermined key in user's blink while pressing power key or after pressing power key (such as, 2 seconds), in step S300, will detect that described predetermined key is pressed.
When step S300 detects that described predetermined key is pressed, in step S400, from TF card start-up embedded device.
When step S300 detects that described predetermined key is not pressed, in step S500, start embedded device from FLASH memory.Here, FLASH memory is the default memory of embedded device.
The method of the startup embedded device according to Fig. 1, can start shooting time, easily from TF card start-up embedded device.Exemplarily, when needs carry out system burning to bare board, the operation of user is simplified.
Fig. 2 is the process flow diagram of the step from TF card start-up illustrated according to exemplary embodiment of the present invention.
As shown in Figure 2, in step S410, the system file stored in TF card is read in the internal memory of embedded device.Here, be previously stored with in TF card and will install in embedded device and the system file run.
In step S410, can first initialization TF card controller, then by TF card controller, the system file stored in TF card is read in the internal memory of embedded device.
In step S420, verify whether the system file read in internal memory in step S410 has legitimacy.Here, the legitimacy of described system file can be verified by existing various method.
When the result indication mechanism file of step S420 has legitimacy, in step S430, by the system file write FLASH memory in internal memory.
In step S440, start the system in internal memory.Here, exemplarily, in step S410, the precalculated position in internal memory after system file is extracted, is stored in a predetermined format, correspondingly, in step S440, by the entry address of storage system file directly from internal storage starting system.Particularly, system file comprises boot file and operating system file, in step S440, can call and dependent instruction executive operating system file, starting to realize system from storing the entry address of operating system file.
When the result indication mechanism file of step S420 does not have legitimacy, in step S450, prompting cannot installation system.Such as, coming by pop-up window cannot installation system to user's prompting.
More than show the example from TF card start-up system, as optimal way, according to exemplary embodiment of the present invention, also can utilize TF card to realize the upgrading to system.Describing below with reference to Fig. 3 utilizes TF card to realize the example of system upgrade.
Fig. 3 is the process flow diagram of the step from FLASH memory startup illustrated according to exemplary embodiment of the present invention.
As shown in Figure 3, in step S510, detect user and whether select to upgrade to the system of embedded device.Here, when starting from FLASH memory, user can be detected by the boot in FLASH memory and whether on corresponding operation interface, having made the selection that system is upgraded.
When step S510 detects that user selects to upgrade to system, in step S520, determine the upgrading project that user selects.Here, the project that user can select any expectation to upgrade, such as, operating system and/or start-up picture.Wherein, the various operating systems that described operating system can use for embedded device, such as, WINCE system.
Exemplarily, when step S510 detects that user selects to upgrade to system, in step S520, show upgrading item menu to user, make user can select to expect the project of upgrading from upgrading item menu.Wherein, display upgrading item menu can adopt various forms to show, and user selects the specific project of upgrading in item menu to upgrade by the predetermined physical button or virtual key operating embedded device.
In step S530, the system upgrade file corresponding to the upgrading project that user selects stored in TF card is read in the internal memory of embedded device.Here, can first initialization TF card controller, then by TF card controller, the system upgrade file corresponding to the upgrading project that user selects stored in TF card is read in internal memory.
When upgrading project is operating system, corresponding system upgrade file can be stepldr.nb0 file, eboot.bin file and nk.bin file.Correspondingly, in step S530, the stepldr.nb0 file stored in TF card, eboot.bin file and nk.bin file are read in internal memory.
When upgrading project is start-up picture, corresponding system upgrade file can be logo.bmp file.Correspondingly, in step S530, the logo.bmp file stored in TF card is read in internal memory.
When upgrading project is for operating system and start-up picture, corresponding system upgrade file can be stepldr.nb0 file, eboot.bin file, nk.bin file and logo.bmp file.Correspondingly, in step S530, the stepldr.nb0 file stored in TF card, eboot.bin file, nk.bin file and logo.bmp file are read in internal memory.
In addition, preferably, when user selects operating system as upgrading project, in step S530, also can additionally detect in TF card whether store logo.bmp file, when storing logo.bmp file in TF card, the upgrading of start-up picture can be completed in the lump, that is, in step S530, the stepldr.nb0 file stored in TF card, eboot.bin file, nk.bin file and logo.bmp file are all read in internal memory.Now, the alternative upgrading project shown in actual upgrade item menu can comprise operating system and start-up picture.
After reading in internal memory by system upgrade file, in step S540, whether the checking described system upgrade file read in internal memory has legitimacy.Here, the legitimacy of described system upgrade file can be verified by existing various method.
When the result indication mechanism upgrade file of step S540 has legitimacy, in step S550, by the system upgrade file write FLASH memory in internal memory.Because FLASH memory is nonvolatile memory, so, need, by after system file erasing original in FLASH memory, the system upgrade file in internal memory is write FLASH memory.
In step S560, start up system.Here, when upgrading project is operating system, can start in step S560 the upgrade-system write in internal memory.When upgrading project is start-up picture, can restart the system in FLASH memory in step S560, this system has the start-up picture after upgrading.When upgrading project is for operating system and start-up picture, can start in step S560 the upgrade-system write in internal memory, this upgrade-system has the start-up picture after upgrading.
When the result indication mechanism upgrade file of step S540 does not have legitimacy, in step S570, start the original system in FLASH memory.
The mode started from FLASH memory according to Fig. 3, can utilize TF card to realize system upgrade easily in above-mentioned start-up course, such as, and the operating system of embedded device of can upgrading easily and/or start-up picture.
Starting in the method for embedded device according to an exemplary embodiment of the present invention, can easily from TF card start-up embedded device.In addition, the system (such as, operating system and/or start-up picture) of TF card to embedded device can also be utilized to upgrade.
Above embodiment of the present invention is only exemplary, and the present invention is not limited to this.Those skilled in the art should understand that: without departing from the principles and spirit of the present invention, can change these embodiments, wherein, scope of the present invention limits in claim and equivalent thereof.

Claims (8)

1. start a method for embedded device, both described embedded device support starts from TF card start-up with from FLASH memory, it is characterized in that, described method comprises:
(A) select from TF card start-up when the predetermined key of embedded device being arranged in use in embedded device start;
(B) when embedded device is started shooting, detect described predetermined key and whether be pressed;
(C) when described predetermined key is pressed, from TF card start-up; When described predetermined key is not pressed, start from FLASH memory.
2. the step the method for claim 1, wherein started from FLASH memory comprises:
(D) detect user whether to select to upgrade to the system of embedded device;
(E) when detecting that user selects to upgrade to system, the upgrading project that user selects is determined;
(F) the system upgrade file corresponding to the upgrading project that user selects stored in TF card is read in the internal memory of embedded device, and verify the legitimacy of the system upgrade file in internal memory;
(G) when the result indication mechanism upgrade file has legitimacy, by the system upgrade file write FLASH memory in internal memory, and start up system.
3. method as claimed in claim 2, wherein, upgrading project comprises operating system and/or start-up picture.
4. method as claimed in claim 3, wherein, described operating system is WINCE system.
5. method as claimed in claim 4, wherein, the system upgrade file corresponding to operating system comprises stepldr.nb0 file, eboot.bin file and nk.bin file.
6. method as claimed in claim 4, wherein, the system upgrade file corresponding to start-up picture comprises logo.bmp file.
7. method as claimed in claim 2, wherein, when detecting that user selects to upgrade to system in step (D), in step (E), showing upgrading item menu to user, determining by detecting the operation of user to upgrading item menu the upgrading project that user selects.
8. the method for claim 1, wherein comprise from the step of TF card start-up:
(H) system file stored in TF card is read in the internal memory of embedded device, and verify the legitimacy of the system file in internal memory;
(I) when the result indication mechanism file has legitimacy, by the system file write FLASH memory in internal memory, and the system in internal memory is started.
CN201510064928.0A 2015-02-05 2015-02-05 Method for starting embedded equipment Pending CN104598284A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510064928.0A CN104598284A (en) 2015-02-05 2015-02-05 Method for starting embedded equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510064928.0A CN104598284A (en) 2015-02-05 2015-02-05 Method for starting embedded equipment

Publications (1)

Publication Number Publication Date
CN104598284A true CN104598284A (en) 2015-05-06

Family

ID=53124102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510064928.0A Pending CN104598284A (en) 2015-02-05 2015-02-05 Method for starting embedded equipment

Country Status (1)

Country Link
CN (1) CN104598284A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965744A (en) * 2015-07-10 2015-10-07 上海斐讯数据通信技术有限公司 System upgrading method and embedded system
WO2017032134A1 (en) * 2015-08-26 2017-03-02 中兴通讯股份有限公司 Method and apparatus for device software version upgrade
CN106909418A (en) * 2017-02-13 2017-06-30 深圳市广和通无线股份有限公司 SCM system update method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102253846A (en) * 2010-05-21 2011-11-23 康佳集团股份有限公司 Method for upgrading embedded system software
CN102279755A (en) * 2010-06-10 2011-12-14 康佳集团股份有限公司 Embedded device and updating method of embedded software thereof
CN103514014A (en) * 2013-09-16 2014-01-15 北京科技大学 Method for designing boot system of embedded terminal equipment
CN103677915A (en) * 2013-12-11 2014-03-26 厦门雅迅网络股份有限公司 Automatic burning method of flash mirror image based on TF starting card
CN103677914A (en) * 2013-12-10 2014-03-26 广州中海达卫星导航技术股份有限公司 Device and method for easy switching and guiding starting of media of embedded system
CN104111851A (en) * 2014-07-18 2014-10-22 广州市中海达测绘仪器有限公司 Embedded system switching starter

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102253846A (en) * 2010-05-21 2011-11-23 康佳集团股份有限公司 Method for upgrading embedded system software
CN102279755A (en) * 2010-06-10 2011-12-14 康佳集团股份有限公司 Embedded device and updating method of embedded software thereof
CN103514014A (en) * 2013-09-16 2014-01-15 北京科技大学 Method for designing boot system of embedded terminal equipment
CN103677914A (en) * 2013-12-10 2014-03-26 广州中海达卫星导航技术股份有限公司 Device and method for easy switching and guiding starting of media of embedded system
CN103677915A (en) * 2013-12-11 2014-03-26 厦门雅迅网络股份有限公司 Automatic burning method of flash mirror image based on TF starting card
CN104111851A (en) * 2014-07-18 2014-10-22 广州市中海达测绘仪器有限公司 Embedded system switching starter

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965744A (en) * 2015-07-10 2015-10-07 上海斐讯数据通信技术有限公司 System upgrading method and embedded system
WO2017032134A1 (en) * 2015-08-26 2017-03-02 中兴通讯股份有限公司 Method and apparatus for device software version upgrade
CN106487550A (en) * 2015-08-26 2017-03-08 中兴通讯股份有限公司 A kind of method and apparatus for device software edition upgrading
CN106909418A (en) * 2017-02-13 2017-06-30 深圳市广和通无线股份有限公司 SCM system update method and device

Similar Documents

Publication Publication Date Title
CN105094903A (en) Method and device for upgrading firmware
CN102521031B (en) Management method of preset application programs of mobile terminal and mobile terminal
CN107168818B (en) Terminal and machine-refreshing failure recovery method
CN102609290B (en) The method for upgrading software of electronic product
US20060047938A1 (en) Method and apparatus to initialize CPU
CN105988843A (en) Firmware upgrade method and firmware upgrade device for mobile terminal
CN105183517A (en) Method and device for mounting external storage equipment in recovery mode and electronic device
CN109905770B (en) Terminal starting method and device and terminal
CN101510161A (en) Bootstrap implementing method, apparatus and portable electronic apparatus
US20110154484A1 (en) Information processing apparatus, method of controlling authentication process, and recording medium
CN105068848B (en) Method for upgrading system and device
CN102135893A (en) Method for integrating operating system on BIOS (Basic Input Output System) chip and starting operating system on server
US20130219086A1 (en) Electronic device capable of automatically switching modes of a memory module and related method
US20130337868A1 (en) Method and terminal for using mobile memory card to boot up mobile phone operating system
CN104598284A (en) Method for starting embedded equipment
CN105760191A (en) Embedded system equipment programming mass production method
CN102541591A (en) Automatic guiding method of computer U-disc operating system compatible with multioperation system platform
CN103593281A (en) Test system and test method
CN102414662A (en) Method and system for providing a data module lock to device hardware, system and method for confirming that a circuit card is compatible with a computer
CN104199726A (en) Device function extension method and device
CN102664990A (en) Installation and display method of dynamic wallpaper of Android mobile phone
CN104461622A (en) System update method and system update device for intelligent terminal
CN102135923A (en) Method for integrating operating system into BIOS (Basic Input/Output System) chip and method for starting operating system
CN104765631A (en) Restoration method and device for application program of mobile terminal
CN102014214A (en) Hand-held terminal powered-on/powered-off method and identification method of memory card of hand-held terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150506

WD01 Invention patent application deemed withdrawn after publication