CN106227568A - Terminal unit start, upgrade method and equipment - Google Patents

Terminal unit start, upgrade method and equipment Download PDF

Info

Publication number
CN106227568A
CN106227568A CN201610606359.2A CN201610606359A CN106227568A CN 106227568 A CN106227568 A CN 106227568A CN 201610606359 A CN201610606359 A CN 201610606359A CN 106227568 A CN106227568 A CN 106227568A
Authority
CN
China
Prior art keywords
system bootstrap
boot subregion
bootstrap routine
crc
boot
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
CN201610606359.2A
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610606359.2A priority Critical patent/CN106227568A/en
Publication of CN106227568A publication Critical patent/CN106227568A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a kind of terminal unit start, upgrade method and equipment, relate to wireless communication field, for improving the success rate of terminal unit start.In the present invention, the memory element of terminal unit comprises the first guiding BOOT subregion and the 2nd BOOT subregion, and in a BOOT subregion and the 2nd BOOT subregion, each storage has a identical system bootstrap routine;After receiving start-up command, load the system bootstrap routine in a BOOT subregion, this system bootstrap routine is carried out integrity verification and/or cyclic redundancy check (CRC);If integrity verification and/or CRC success, then perform starting procedure according to this system bootstrap routine;Otherwise, load the system bootstrap routine in the 2nd BOOT subregion, and perform starting procedure according to the system bootstrap routine in the 2nd BOOT subregion being loaded into.Use the present invention, it is possible to increase the success rate of terminal unit start.

Description

Terminal unit start, upgrade method and equipment
The application is invention entitled " terminal unit start, upgrade method and the equipment " proposed on November 9th, 2012 The divisional application of Chinese invention patent application 201210449070.6.
Technical field
The present invention relates to wireless communication field, particularly relate to a kind of terminal unit start, upgrade method and equipment.
Background technology
At present, some external multimedia cards (externel MultiMedia Card, eMMC) product, such as mobile phone are eventually End, uses single OEM bootstrap (OEM Secondary Bootloader, OEMSBL) scheme.
When using single OEMSBL scheme, the Initiated Mechanism of mobile phone terminal is as follows:
First pass through main bootstrap program (Primary Bootloader, PBL) and load the second bootstrap (Qualcomm Secondary Bootloader, QCSBL), then load OEMSBL, advanced mobile subscriber station program by QCSBL order (Advanced Mobile Subscriber Station, AMSS).If loading failure or the loading error to OEMSBL, then Mobile phone terminal will normally start.
As it is shown in figure 1, existing scheme start-up course is described as follows:
Step 1: load QCSBL by PBL, if PBL successfully loads QCSBL, then arrives step 2, otherwise, enters and download (DLOAD) Pattern, to carry out the download of handset program, and then carries out brush machine;The execution CPU of this step is modem CPU(MODEM CPU, mARM);
Step 2:QCSBL loads OEMSBL;The execution CPU of this step is mARM;
Step 3:OEMSBL loads application bootstrap (APPSBL), and starts (cortex-A5 CPU, aARM);This step Execution CPU is mARM;Application program (APPS) in APPSBL meeting starting hand-set terminal, thus complete starting procedure;
Load AMSS with step 4:QCSBL of step 2 executed in parallel, if loading successfully, then run AMSS, otherwise, enter DLOAD Pattern, to carry out the download of handset program, and then carries out brush machine;
When running AMSS and makeing mistakes, also into DLOAD pattern, to carry out the download of handset program, and then carry out brush machine.
During realizing the present invention, inventor finds to there is techniques below problem in prior art:
During the starting up of terminal unit, when QCSBL loads OEMSBL, if OEMSBL damages, it will cause mobile phone Terminal cannot normally start.
Summary of the invention
The embodiment of the present invention provides a kind of terminal unit start, upgrade method and equipment, is used for improving terminal unit start Success rate.
A kind of terminal unit starting-up method, the memory element of this terminal unit comprises the first guiding BOOT subregion and second BOOT subregion, in a BOOT subregion and the 2nd BOOT subregion, each storage has a identical system bootstrap routine;The method bag Include:
After receiving start-up command, load the system bootstrap routine in a BOOT subregion, this system bootstrap routine is carried out Integrity verification and/or cyclic redundancy check (CRC);If integrity verification and/or CRC success, then according to this system bootstrap routine Perform starting procedure;Otherwise,
Load the system bootstrap routine in the 2nd BOOT subregion, and according to the System guides journey in the 2nd BOOT subregion being loaded into Sequence performs starting procedure.
A kind of updating terminal device method, the memory element of this terminal unit comprises the first guiding BOOT subregion and second BOOT subregion, in a BOOT subregion and the 2nd BOOT subregion, each storage has a identical system bootstrap routine, the method bag Include:
Receive upgrade command when performing starting procedure according to the system bootstrap routine in a BOOT subregion, download this system The AKU of bootstrap, after the system bootstrap routine in the 2nd BOOT subregion being updated according to this AKU, according under System bootstrap routine in oneth BOOT subregion is updated by the AKU being downloaded to;Or,
Receive upgrade command when performing the system bootstrap routine in the 2nd BOOT subregion, download the liter of this system bootstrap routine Level bag, after being updated the system bootstrap routine in a BOOT subregion according to this AKU, according to the AKU downloaded to System bootstrap routine in 2nd BOOT subregion is updated.
A kind of terminal unit, the memory element of this terminal unit comprises the first guiding BOOT subregion and the 2nd BOOT subregion, In oneth BOOT subregion and the 2nd BOOT subregion, each storage has a identical system bootstrap routine;This terminal unit also includes:
Modem processor, for after receiving start-up command, loads the System guides in a BOOT subregion Program, carries out integrity verification and/or cyclic redundancy check (CRC) to this system bootstrap routine;If integrity verification and/or CRC Success, then perform starting procedure according to this system bootstrap routine;Otherwise,
Load the system bootstrap routine in the 2nd BOOT subregion, and according to the System guides journey in the 2nd BOOT subregion being loaded into Sequence performs starting procedure.
A kind of terminal unit, the memory element of this terminal unit comprises the first guiding BOOT subregion and the 2nd BOOT subregion, In oneth BOOT subregion and the 2nd BOOT subregion, each storage has a identical system bootstrap routine, and this terminal unit also includes:
Modem processor, for performing starting procedure according to the system bootstrap routine in a BOOT subregion Time receive upgrade command, download the AKU of this system bootstrap routine, according to this AKU to the 2nd BOOT subregion is After system bootstrap is updated, according to the AKU downloaded to, the system bootstrap routine in the oneth BOOT subregion is carried out more Newly;Or,
Receive upgrade command when performing the system bootstrap routine in the 2nd BOOT subregion, download the liter of this system bootstrap routine Level bag, after being updated the system bootstrap routine in a BOOT subregion according to this AKU, according to the AKU downloaded to System bootstrap routine in 2nd BOOT subregion is updated.
In a kind of scheme that the embodiment of the present invention provides, the memory element of equipment comprises a BOOT subregion and the 2nd BOOT Subregion, in a BOOT subregion and the 2nd BOOT subregion, each storage has a identical system bootstrap routine, when start, to one System bootstrap routine in individual BOOT subregion carries out integrity verification and/or CRC, if integrity verification and/or CRC success, then Starting procedure is performed according to this system bootstrap routine;Otherwise, load the system bootstrap routine in another BOOT subregion, and according to This system bootstrap routine performs starting procedure.Visible, this programme stores two cover system bootstrap, guides journey in set of system Sequence is damaged and another set of system bootstrap routine can also be used to boot up when causing integrity verification and/or CRC failure, thus carries The high start success rate of equipment.
In the another kind of scheme that the embodiment of the present invention provides, if holding according to the system bootstrap routine in a BOOT subregion Carry out the upgrading of system bootstrap routine during row starting procedure, then first according to the AKU downloaded to the 2nd BOOT subregion is After system bootstrap is updated, further according to the AKU downloaded to, the system bootstrap routine in the oneth BOOT subregion is carried out more Newly.If carry out the upgrading of system bootstrap routine when performing starting procedure according to the system bootstrap routine in the 2nd BOOT subregion, After then first the system bootstrap routine in the oneth BOOT subregion being updated according to the AKU downloaded to, further according to download to System bootstrap routine in 2nd BOOT subregion is updated by AKU.This programme can ensure that in terminal unit and stores all the time There is the system bootstrap routine of at least complete set, and then improve the start success rate of terminal unit.
Accompanying drawing explanation
Fig. 1 is starting procedure schematic diagram of the prior art;
Fig. 2 is the method flow schematic diagram provided for the embodiment of the present invention;
The other method schematic flow sheet that Fig. 3 provides for the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the embodiment of the present invention one;
The terminal structure schematic diagram that Fig. 5 provides for the embodiment of the present invention.
Detailed description of the invention
In order to improve the success rate of terminal unit start, the embodiment of the present invention provides a kind of terminal unit starting-up method, this In method, the memory element of terminal unit comprises the first guiding (BOOT) subregion and the 2nd BOOT subregion, a BOOT subregion and In 2nd BOOT subregion, each storage has a identical system bootstrap routine, when start, to the system in a BOOT subregion Bootstrap carries out integrity verification and/or Cyclic Redundancy Check, if integrity verification and/or CRC success, then basis This system bootstrap routine performs starting procedure;Otherwise, load the system bootstrap routine in another BOOT subregion, and according to this be System bootstrap performs starting procedure.
See Fig. 2, the terminal unit starting-up method that the embodiment of the present invention provides, comprise the following steps:
Step 20: after receiving start-up command, loads the system bootstrap routine in a BOOT subregion, to this System guides journey Sequence carries out integrity verification and/or Cyclic Redundancy Check;If integrity verification and/or CRC success, then arrive step 21, no Then, to step 22;
Step 21: perform starting procedure according to the system bootstrap routine in the BOOT subregion being loaded into;
Step 22: load the system bootstrap routine in the 2nd BOOT subregion, and according to the 2nd BOOT subregion being loaded into is System bootstrap performs starting procedure.
Concrete, when terminal unit in this method is the product using high-pass platform, described system bootstrap routine is OEMSBL;
Accordingly, being implemented as of step 20-step 22: load QCSBL by PBL, load a BOOT by QCSBL and divide OEMSBL in district, carries out integrity verification and/or CRC to this OEMSBL;If integrity verification and/or CRC success, then basis This OEMSBL performs starting procedure;Otherwise, load the OEMSBL in the 2nd BOOT subregion by QCSBL, hold according to this OEMSBL Row starting procedure.
Wherein, PBL is the program for loading QCSBL, and QCSBL is the program for loading OEMSBL, AMSS, OEMSBL It is for direct application (AP) side program, and completes multinomial MODEM side function (such as: TF card download function, start logo show Show, initialize each hardware function) program.
Concrete, the method that system bootstrap routine carries out integrity verification can be such that
The integrity flag pre-set in the memory unit is compared with the integrity flag in this system bootstrap routine, If both are consistent, it is determined that integrity verification success, otherwise, it determines integrity verification failure.Here, need single in storage in advance Unit preserves an integrity flag, such as, integrity flag can be saved in oemsbl.scl file, in addition it is also necessary in advance Same integrity flag is added, such as at the code integrity added behind mark of system bootstrap routine in system bootstrap routine Will;Integrity flag can be the data message of any other data can being different from terminal unit.
Concrete, the method that system bootstrap routine carries out CRC can be such that
The CRC code of this system bootstrap routine is calculated, by calculated CRC code and this system bootstrap routine according to CRC algorithm CRC code compare, if both are consistent, it is determined that CRC success, otherwise, it determines CRC failure.Here, need in advance by system The CRC code of bootstrap is added in system bootstrap routine, for example, it is possible at the code CRC added behind of system bootstrap routine Code.
By system bootstrap routine is carried out CRC, it can be ensured that the system bootstrap routine being loaded in internal memory is correct. Prevent problems with: although system bootstrap routine is loaded in internal memory, and its integrity flag is also correct, but Wherein partial content is wrong, and so, terminal unit will normally start.
It is also preferred that the left can also in advance the size (such as byte length) of system bootstrap routine be arranged in the memory unit, Such as the size of system bootstrap routine can be saved in oemsbl.scl file, then, system bootstrap routine is being carried out When integrity verification and CRC, the integrity flag in system bootstrap routine can be read according to the size of system bootstrap routine And CRC code, such as, size wei 100 byte of system bootstrap routine, then can read the content of the 101st byte as complete Integrity verification, reads the content of the 102nd byte as CRC code.
It is also preferred that the left when performing starting procedure according to the system bootstrap routine in a BOOT subregion, if receiving upgrading Instruction, then download the AKU of this system bootstrap routine, according to this AKU to the system bootstrap routine in the 2nd BOOT subregion After being updated, according to the AKU downloaded to, the system bootstrap routine in the oneth BOOT subregion is updated;Or,
When performing starting procedure according to the system bootstrap routine in the 2nd BOOT subregion, if receiving upgrade command, then download The AKU of this system bootstrap routine, after the system bootstrap routine in the oneth BOOT subregion being updated according to this AKU, According to the AKU downloaded to, the system bootstrap routine in the 2nd BOOT subregion is updated.
Refer to it is also preferred that the left receive upgrading when performing starting procedure according to the system bootstrap routine in a BOOT subregion Order, to the System guides journey in the 2nd BOOT subregion after downloading the AKU of this system bootstrap routine and according to this AKU Before sequence is updated, this AKU can be carried out CRC check;
After the CRC check success to this AKU, according to this AKU, the system bootstrap routine in the 2nd BOOT subregion is entered Row updates, and is then updated the system bootstrap routine in a BOOT subregion further according to the AKU downloaded to.
Same, receive upgrading when performing starting procedure according to the system bootstrap routine in the 2nd BOOT subregion and refer to Order, to the System guides journey in a BOOT subregion after downloading the AKU of this system bootstrap routine and according to this AKU Before sequence is updated, this AKU can be carried out CRC check;After the CRC check success to this AKU, according to this liter System bootstrap routine in oneth BOOT subregion is updated, then further according to the AKU downloaded to the 2nd BOOT by level bag System bootstrap routine in subregion is updated.
The method that AKU carries out CRC can be: calculates the CRC code of AKU according to CRC algorithm, by calculated CRC code is compared with the CRC code being set in advance in AKU, if both are consistent, it is determined that CRC success, otherwise, it determines CRC failure.Here, the CRC code in AKU can be saved in a single file, and this document may be located at TF card and downloads Certain catalogue in.
By AKU is carried out CRC, it is possible to prevent user's illegal brush machine, because AKU has been carried out CRC, if CRC result is incorrect, then it is assumed that this upgrades to illegal update, is upgraded by refusal, to prevent phenomenon of not starting shooting.
See Fig. 3 a, the updating terminal device method that the embodiment of the present invention provides, comprise the following steps 301-step 302, Or, see Fig. 3 b, the updating terminal device method that the embodiment of the present invention provides, comprise the following steps 311-step 312:
Step 301: receive upgrade command when performing starting procedure according to the system bootstrap routine in a BOOT subregion;
Step 302: download the AKU of this system bootstrap routine, according to this AKU to the System guides in the 2nd BOOT subregion After program is updated, according to the AKU downloaded to, the system bootstrap routine in the oneth BOOT subregion is updated.
Step 311: receive upgrade command when performing the system bootstrap routine in the 2nd BOOT subregion;
Step 312: download the AKU of this system bootstrap routine, according to this AKU to the System guides in a BOOT subregion After program is updated, according to the AKU downloaded to, the system bootstrap routine in the 2nd BOOT subregion is updated.
It is also preferred that the left in step 302, after the AKU downloading to this system bootstrap routine and according to this AKU pair Before system bootstrap routine in 2nd BOOT subregion is updated root, this AKU can be carried out CRC check;To this liter After the CRC check success of level bag, according to this AKU, the system bootstrap routine in the 2nd BOOT subregion is updated, then root According to the AKU downloaded to, the system bootstrap routine in the oneth BOOT subregion is updated.
It is also preferred that the left in step 312, to the after downloading the AKU of this system bootstrap routine and according to this AKU Before system bootstrap routine in one BOOT subregion is updated, this AKU can be carried out CRC check;To this AKU CRC check success after, according to this AKU, the system bootstrap routine in the oneth BOOT subregion is updated, then according under System bootstrap routine in 2nd BOOT subregion is updated by the AKU being downloaded to.
The method that AKU carries out CRC can be: calculates the CRC code of AKU according to CRC algorithm, by calculated CRC code is compared with the CRC code being set in advance in AKU, if both are consistent, it is determined that CRC success, otherwise, it determines CRC failure.Here, the CRC code in AKU can be saved in a single file, and this document may be located at TF card and downloads Certain catalogue in.
By AKU is carried out CRC, it is possible to prevent user's illegal brush machine, because AKU has been carried out CRC, if CRC result is incorrect, then it is assumed that this upgrades to illegal update, is upgraded by refusal, to prevent phenomenon of not starting shooting.
It is also preferred that the left after step 302 or after step 312 or before step 301 or before step 311, can hold Row following steps A:
Step A, receive start-up command, load the system bootstrap routine in a BOOT subregion, this system bootstrap routine is entered Row integrity verification and/or CRC;If integrity verification and/or CRC success, then perform start stream according to this system bootstrap routine Journey;Otherwise, load the system bootstrap routine in the 2nd BOOT subregion, and according to the system in the 2nd BOOT subregion being loaded into Bootstrap performs starting procedure.
Concrete, when terminal unit in this method is the product using high-pass platform, described system bootstrap routine is OEMSBL;
Now, being implemented as of step A: load QCSBL by PBL, loaded in a BOOT subregion by QCSBL OEMSBL, carries out integrity verification and/or CRC to this OEMSBL;If integrity verification and/or CRC success, then according to being somebody's turn to do OEMSBL performs starting procedure;Load the OEMSBL in the 2nd BOOT subregion by QCSBL, perform start stream according to this OEMSBL Journey.
Wherein, PBL is the program for loading QCSBL, and QCSBL is the program for loading OEMSBL, AMSS, OEMSBL It is for direct application (AP) side program, and completes multinomial MODEM side function (such as: TF card download function, start logo show Show, initialize each hardware function) program.
Concrete, the method that system bootstrap routine carries out integrity verification can be such that
The integrity flag pre-set in the memory unit is compared with the integrity flag in this system bootstrap routine, If both are consistent, it is determined that integrity verification success, otherwise, it determines integrity verification failure.Here, need single in storage in advance Unit preserves an integrity flag, such as, integrity flag can be saved in oemsbl.scl file, in addition it is also necessary in advance Same integrity flag is added, such as at the code integrity added behind mark of system bootstrap routine in system bootstrap routine Will;Integrity flag can be the data message of any other data can being different from terminal unit.
Concrete, the method that system bootstrap routine carries out CRC can be such that
The CRC code of this system bootstrap routine is calculated, by calculated CRC code and this system bootstrap routine according to CRC algorithm CRC code compare, if both are consistent, it is determined that CRC success, otherwise, it determines CRC failure.Here, need in advance by system The CRC code of bootstrap is added in system bootstrap routine, for example, it is possible at the code CRC added behind of system bootstrap routine Code.
By system bootstrap routine is carried out CRC, it can be ensured that the system bootstrap routine being loaded in internal memory is correct. Prevent problems with: although system bootstrap routine is loaded in internal memory, and its integrity flag is also correct, but Wherein partial content is wrong, and so, terminal unit will normally start.
It is also preferred that the left can also in advance the size (such as byte length) of system bootstrap routine be arranged in the memory unit, Such as the size of system bootstrap routine can be saved in oemsbl.scl file, then, system bootstrap routine is being carried out When integrity verification and CRC, the integrity flag in system bootstrap routine can be read according to the size of system bootstrap routine And CRC code, such as, size wei 100 byte of system bootstrap routine, then can read the content of the 101st byte as complete Integrity verification, reads the content of the 102nd byte as CRC code.
In the present invention, the executive agent of method can be specifically that modem (MODEM) CPU of terminal unit is MARM, this method can be applied at high-pass platform etc..
Embodiment one:
As shown in Figure 4, specific as follows:
Step one: the mARM of terminal unit loads QCSBL by PBL, if PBL successfully loads QCSBL, then arrives step 2, otherwise, Enter (DLOAD) pattern of download, to carry out the download of handset program, and then carry out brush machine;
Step 2: load OEMSBL by QCSBL, this OEMSBL is carried out integrity verification and/or CRC;If integrity verification And/or CRC success, then perform OEMSBL, OEMSBL and load APPSBL, and start aARM, in APPSBL meeting starting hand-set terminal Application program (APPS), thus complete starting procedure;Otherwise, loading OSBL, and perform OSBL, OSBL is copying of OEMSBL Shellfish, completes identical function, and OSBL from OEMSBL is positioned at different BOOT subregion.
Step 3 with step 2 executed in parallel: loading AMSS by QCSBL, if loading successfully, then running AMSS, no Then, enter DLOAD pattern, to carry out the download of handset program, and then carry out brush machine;When running AMSS and makeing mistakes, also into DLOAD pattern, to carry out the download of handset program, and then carries out brush machine.
Embodiment two:
Step one: the mARM of terminal unit loads QCSBL by PBL, if PBL successfully loads QCSBL, then arrives step 2, otherwise, Enter (DLOAD) pattern of download, to carry out the download of handset program, and then carry out brush machine;
Step 2: load OEMSBL by QCSBL, this OEMSBL is carried out integrity verification and/or CRC;If integrity verification And/or CRC success, then perform OEMSBL;Otherwise, load OSBL, and perform OSBL;
Step 3: receive upgrade command, downloads the AKU of OEMSBL, if currently starting from OEMSBL, then according to this upgrading OSBL is first updated by bag, is updated OEMSBL further according to AKU;If currently starting from OSBL, then according to this upgrading OEMSBL is first updated by bag, is updated OSBL further according to AKU.
Step 4: after completing upgrading, the starting procedure described in embodiment one can be performed.
Seeing Fig. 5, the embodiment of the present invention provides a kind of terminal unit, and the memory element of this terminal unit comprises a BOOT Subregion 50 and the 2nd BOOT subregion 51, a BOOT subregion 50 storage each with in the 2nd BOOT subregion 51 has a identical system Bootstrap;This terminal unit also includes:
Modem (MODEM) processor 52, for after receiving start-up command, loads and in a BOOT subregion 50 is System bootstrap, carries out integrity verification and/or cyclic redundancy check (CRC) to this system bootstrap routine;If integrity verification and/ Or CRC success, then perform starting procedure according to this system bootstrap routine;Otherwise,
Load the system bootstrap routine in the 2nd BOOT subregion 51, and draw according to the system in the 2nd BOOT subregion 51 being loaded into Helical pitch sequence performs starting procedure.
Further, described MODEM processor 52 is used for:
When described system bootstrap routine is OEM bootstrap OEMSBL, load the second bootstrap by main bootstrap program PBL QCSBL, loads the OEMSBL in a BOOT subregion 50 by QCSBL, this OEMSBL is carried out integrity verification and/or CRC; If integrity verification and/or CRC success, then perform starting procedure according to this OEMSBL;Otherwise,
Load the OEMSBL in the 2nd BOOT subregion 51 by QCSBL, perform starting procedure according to this OEMSBL.
Further, described MODEM processor 52 is additionally operable to:
According in a BOOT subregion 50 system bootstrap routine perform starting procedure time, if receiving upgrade command, then under Carry the AKU of this system bootstrap routine, according to this AKU, the system bootstrap routine in the 2nd BOOT subregion 51 is updated After, according to the AKU downloaded to, the system bootstrap routine in the oneth BOOT subregion 50 is updated;Or,
According in the 2nd BOOT subregion 51 system bootstrap routine perform starting procedure time, if receiving upgrade command, then under Carry the AKU of this system bootstrap routine, according to this AKU, the system bootstrap routine in the oneth BOOT subregion 50 is updated After, according to the AKU downloaded to, the system bootstrap routine in the 2nd BOOT subregion 51 is updated.
Further, described MODEM processor 52 is additionally operable to:
Receiving upgrade command when performing starting procedure according to the system bootstrap routine in a BOOT subregion 50, downloading this is After the AKU of system bootstrap and according to this AKU, the system bootstrap routine in the 2nd BOOT subregion 51 is updated Before, this AKU is carried out CRC check;
After the CRC check success to this AKU, according to this AKU to the system bootstrap routine in the 2nd BOOT subregion 51 It is updated.
Further, described MODEM processor 52 is additionally operable to:
Receiving upgrade command when performing starting procedure according to the system bootstrap routine in the 2nd BOOT subregion 51, downloading this is After the AKU of system bootstrap and according to this AKU, the system bootstrap routine in the oneth BOOT subregion 50 is updated Before, this AKU is carried out CRC check;
After the CRC check success to this AKU, according to this AKU to the system bootstrap routine in a BOOT subregion 50 It is updated.
Referring also to Fig. 5, the embodiment of the present invention provides a kind of terminal unit, and the memory element of this terminal unit comprises first BOOT subregion 50 and the 2nd BOOT subregion 51, a BOOT subregion 50 storage each with in the 2nd BOOT subregion 51 has a identical System bootstrap routine, this terminal unit also includes:
MODEM processor 52, for receiving when performing starting procedure according to the system bootstrap routine in a BOOT subregion 50 To upgrade command, download the AKU of this system bootstrap routine, according to this AKU, the system in the 2nd BOOT subregion 51 is drawn After helical pitch sequence is updated, according to the AKU downloaded to, the system bootstrap routine in the oneth BOOT subregion 50 is updated; Or,
Receive upgrade command when performing the system bootstrap routine in the 2nd BOOT subregion 51, download this system bootstrap routine AKU, after being updated the system bootstrap routine in a BOOT subregion 50 according to this AKU, according to the liter downloaded to System bootstrap routine in 2nd BOOT subregion 51 is updated by level bag.
Further, described MODEM processor 52 is additionally operable to:
Receiving upgrade command when performing starting procedure according to the system bootstrap routine in a BOOT subregion 50, downloading this is After the AKU of system bootstrap and according to this AKU, the system bootstrap routine in the 2nd BOOT subregion 51 is updated Before, this AKU is carried out CRC check;
After the CRC check success to this AKU, according to this AKU to the system bootstrap routine in the 2nd BOOT subregion 51 It is updated.
Further, described MODEM processor 52 is additionally operable to:
Receiving upgrade command when performing starting procedure according to the system bootstrap routine in the 2nd BOOT subregion 51, downloading this is After the AKU of system bootstrap and according to this AKU, the system bootstrap routine in the oneth BOOT subregion 50 is updated Before, this AKU is carried out CRC check;
After the CRC check success to this AKU, according to this AKU to the system bootstrap routine in a BOOT subregion 50 It is updated.
Further, described MODEM processor 52 is additionally operable to:
After receiving start-up command, load the system bootstrap routine in a BOOT subregion 50, this system bootstrap routine is entered Row integrity verification and/or cyclic redundancy check (CRC);If integrity verification and/or CRC success, then according to this System guides journey Sequence performs starting procedure;Otherwise,
Load the system bootstrap routine in the 2nd BOOT subregion 51, and draw according to the system in the 2nd BOOT subregion 51 being loaded into Helical pitch sequence performs starting procedure.
Further, described MODEM processor 52 is used for:
When described system bootstrap routine is OEM bootstrap OEMSBL, load the second bootstrap by main bootstrap program PBL QCSBL, by loading the OEMSBL in a BOOT subregion 50, carries out integrity verification and/or CRC to this OEMSBL;If it is complete Integrity verification and/or CRC success, then perform starting procedure according to this OEMSBL;Otherwise,
Load the OEMSBL in the 2nd BOOT subregion 51 by QCSBL, perform starting procedure according to this OEMSBL.
Terminal unit in the present invention can be specifically panel computer, mobile phone terminal etc..
To sum up, the beneficial effect comprise that
In a kind of scheme that the embodiment of the present invention provides, the memory element of equipment comprises a BOOT subregion and the 2nd BOOT divides District, in a BOOT subregion and the 2nd BOOT subregion, each storage has a identical system bootstrap routine, when start, to one System bootstrap routine in BOOT subregion carries out integrity verification and/or CRC, if integrity verification and/or CRC success, then root Starting procedure is performed according to this system bootstrap routine;Otherwise, load the system bootstrap routine in another BOOT subregion, and according to this System bootstrap routine performs starting procedure.Visible, this programme stores two cover system bootstrap, in set of system bootstrap Damage can also use another set of system bootstrap routine to boot up when causing integrity verification and/or CRC failure, thus improves The start success rate of equipment.
In the another kind of scheme that the embodiment of the present invention provides, if holding according to the system bootstrap routine in a BOOT subregion Carry out the upgrading of system bootstrap routine during row starting procedure, then first according to the AKU downloaded to the 2nd BOOT subregion is After system bootstrap is updated, further according to the AKU downloaded to, the system bootstrap routine in the oneth BOOT subregion is carried out more Newly.This programme can ensure that in terminal unit, storage all the time has the system bootstrap routine of at least complete set, and then improves terminal The start success rate of equipment, reason is as follows: performed starting procedure by thus according to the system bootstrap routine in a BOOT subregion, Therefore the system bootstrap routine upgraded in a front BOOT subregion does not damage, and after downloading to AKU, first upgrades System bootstrap routine in 2nd BOOT subregion is upgraded the system bootstrap routine in a BOOT subregion again, if in upgrading second Occur during system bootstrap routine in BOOT subregion that the situations such as power-off cause the failure of whole escalation process, although now the System bootstrap routine in two BOOT subregions is the most imperfect, but has the System guides journey do not damaged in a BOOT subregion Sequence, additionally it is possible to use this system bootstrap routine not damaged to boot up, improve the start success rate of equipment;If in upgrading Occur that the situations such as power-off cause during system bootstrap routine in oneth BOOT subregion and upgrade unsuccessfully, although a BOOT divides System bootstrap routine in district is the most imperfect, but has the complete system bootstrap routine after upgrading in the 2nd BOOT subregion, This complete system bootstrap routine can also be used to boot up, improve the start success rate of equipment.
If carrying out system bootstrap routine when performing starting procedure according to the system bootstrap routine in the 2nd BOOT subregion Upgrading, then after first the system bootstrap routine in the oneth BOOT subregion being updated according to the AKU downloaded to, further according under System bootstrap routine in 2nd BOOT subregion is updated by the AKU being downloaded to.This programme can ensure that in terminal unit and begins Storage has the system bootstrap routine of at least complete set, and then the start success rate of raising terminal unit eventually, and reason is as follows: due to It is to perform starting procedure according to the system bootstrap routine in the 2nd BOOT subregion, the system in front 2nd BOOT subregion of therefore upgrading Bootstrap is not damaged, and after downloading to AKU, first the system bootstrap routine in upgrading the oneth BOOT subregion is again Upgrade the system bootstrap routine in the 2nd BOOT subregion, if during the system bootstrap routine in upgrading the oneth BOOT subregion Occur that the situation such as power-off causes the failure of whole escalation process, although now the system bootstrap routine in a BOOT subregion is not the most Completely, but the 2nd BOOT subregion there is the system bootstrap routine not damaged, additionally it is possible to use this system do not damaged to draw Helical pitch sequence boots up, and improves the start success rate of equipment;If the system bootstrap routine in upgrading the 2nd BOOT subregion During occur that the situations such as power-off cause and upgrade unsuccessfully, although the system bootstrap routine in the 2nd BOOT subregion is the most imperfect, But a BOOT subregion has the complete system bootstrap routine after upgrading, additionally it is possible to use the system bootstrap routine that this is complete Boot up, improve the start success rate of equipment.
The present invention is with reference to method, terminal unit (system) and computer program according to embodiments of the present invention Flow chart and/or block diagram describe.It should be understood that can every by computer program instructions flowchart and/or block diagram Flow process in one flow process and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computers can be provided Programmed instruction is to general purpose computer, special-purpose computer, Embedded Processor or the place of other programmable data processing terminal equipment Reason device is to produce a machine so that the finger performed by the processor of computer or other programmable data processing terminal equipment Order produces for realizing specifying in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame The device of function.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing terminal equipment In the computer-readable memory worked in a specific way so that the instruction being stored in this computer-readable memory produces bag Including the manufacture of command device, this command device realizes in one flow process of flow chart or multiple flow process and/or one side of block diagram The function specified in frame or multiple square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal equipment so that On computer or other programmable terminal equipment, execution sequence of operations step is to produce computer implemented process, thus The instruction performed on computer or other programmable terminal equipment provides for realizing in one flow process of flow chart or multiple flow process And/or the step of the function specified in one square frame of block diagram or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed to include excellent Select embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present invention God and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereof Within, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a updating terminal device method, it is characterised in that the memory element of described terminal unit comprises the first guiding BOOT Subregion and the 2nd BOOT subregion, in a BOOT subregion and the 2nd BOOT subregion, each storage has a identical System guides journey Sequence, the method includes:
The AKU of download system bootstrap, carries out verifying successfully to described AKU;
Enter according to the system bootstrap routine in described AKU one of them BOOT subregion of memory element to described terminal unit Row upgrading updates;
After completing upgrading renewal, the system bootstrap routine in another BOOT subregion is carried out upgrading and updates.
2. the method for claim 1, it is characterised in that farther include:
After receiving start-up command, load the system bootstrap routine in a BOOT subregion, this system bootstrap routine is carried out Integrity verification and/or cyclic redundancy check (CRC);
If integrity verification and/or CRC success, then perform starting procedure according to the system bootstrap routine in a BOOT subregion;
If integrity verification and/or CRC are unsuccessful, then load the system bootstrap routine in the 2nd BOOT subregion, and according to loading The 2nd BOOT subregion in system bootstrap routine perform starting procedure.
3. the method for claim 1, it is characterised in that described system bootstrap routine is OEM bootstrap OEMSBL.
4. method as claimed in claim 2, it is characterised in that load the system bootstrap routine in a BOOT subregion, to this System bootstrap routine carries out integrity verification and/or CRC;If integrity verification and/or CRC success, then according to this System guides Program performs starting procedure, specifically includes:
Load the second bootstrap QCSBL by main bootstrap program PBL, loaded in a BOOT subregion by QCSBL OEMSBL, carries out integrity verification and/or CRC to this OEMSBL;If integrity verification and/or CRC success, then according to being somebody's turn to do OEMSBL performs starting procedure.
5. the method as described in claim 2 or 4, it is characterised in that load the system bootstrap routine in the 2nd BOOT subregion, and Perform starting procedure according to the system bootstrap routine in the 2nd BOOT subregion being loaded into, specifically include:
Load the OEMSBL in the 2nd BOOT subregion by QCSBL, perform starting procedure according to this OEMSBL.
6. a terminal unit, it is characterised in that including:
Memory element, comprises the first guiding BOOT subregion and the 2nd BOOT subregion, in a BOOT subregion and the 2nd BOOT subregion Each storage has a identical system bootstrap routine;
Download unit, for the AKU of download system bootstrap, carries out verifying successfully to described AKU;
Upgrade unit, for according in one of them BOOT subregion of memory element to described terminal unit of described AKU being System bootstrap carries out upgrading and updates, and after completing upgrading renewal, rises the system bootstrap routine in another BOOT subregion Level updates.
7. terminal unit as claimed in claim 6, it is characterised in that also include:
Start-up unit: after being used for receiving start-up command, loads the system bootstrap routine in a BOOT subregion, draws this system Helical pitch sequence carries out integrity verification and/or cyclic redundancy check (CRC);
If integrity verification and/or CRC success, then perform starting procedure according to the system bootstrap routine in a BOOT subregion;
If integrity verification and/or CRC are unsuccessful, then load the system bootstrap routine in the 2nd BOOT subregion, and according to loading The 2nd BOOT subregion in system bootstrap routine perform starting procedure.
8. terminal unit as claimed in claim 6, it is characterised in that
Described system bootstrap routine is OEM bootstrap OEMSBL.
9. terminal unit as claimed in claim 7, it is characterised in that
Start-up unit, for loading the second bootstrap QCSBL by main bootstrap program PBL, loads a BOOT by QCSBL OEMSBL in subregion, carries out integrity verification and/or CRC to this OEMSBL;If integrity verification and/or CRC success, then root Starting procedure is performed according to this OEMSBL.
10. the terminal unit as described in claim 7 or 9, it is characterised in that
Start-up unit, for being loaded the OEMSBL in the 2nd BOOT subregion by QCSBL, performs starting procedure according to this OEMSBL.
CN201610606359.2A 2012-11-09 2012-11-09 Terminal unit start, upgrade method and equipment Pending CN106227568A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610606359.2A CN106227568A (en) 2012-11-09 2012-11-09 Terminal unit start, upgrade method and equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610606359.2A CN106227568A (en) 2012-11-09 2012-11-09 Terminal unit start, upgrade method and equipment
CN201210449070.6A CN102945176B (en) 2012-11-09 2012-11-09 Terminal unit start, upgrade method and equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201210449070.6A Division CN102945176B (en) 2012-11-09 2012-11-09 Terminal unit start, upgrade method and equipment

Publications (1)

Publication Number Publication Date
CN106227568A true CN106227568A (en) 2016-12-14

Family

ID=47728125

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201610606359.2A Pending CN106227568A (en) 2012-11-09 2012-11-09 Terminal unit start, upgrade method and equipment
CN201210449070.6A Active CN102945176B (en) 2012-11-09 2012-11-09 Terminal unit start, upgrade method and equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201210449070.6A Active CN102945176B (en) 2012-11-09 2012-11-09 Terminal unit start, upgrade method and equipment

Country Status (1)

Country Link
CN (2) CN106227568A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190627A (en) * 2019-12-30 2020-05-22 四川虹美智能科技有限公司 System upgrading method and device
CN111625832A (en) * 2019-02-27 2020-09-04 智原科技股份有限公司 Method for executing initial loading program in electronic device
WO2021012170A1 (en) * 2019-07-23 2021-01-28 深圳市大疆创新科技有限公司 Firmware booting method and device, and computer-readable storage medium

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103123589B (en) * 2013-02-28 2016-01-13 青岛海信移动通信技术股份有限公司 A kind of starting up's method and apparatus of mobile terminal
CN104182242A (en) * 2013-05-28 2014-12-03 华为技术有限公司 System booting method and system booting device
CN105183580A (en) * 2014-06-06 2015-12-23 西安中兴新软件有限责任公司 Storage method and fault recovery method for bootstrap program, and devices
CN104699500B (en) * 2015-01-06 2018-05-08 上海华测导航技术股份有限公司 The method that bootstrap upgrades automatically is realized in smart machine
CN104636171B (en) * 2015-03-04 2017-11-07 广东欧珀移动通信有限公司 The method, device and mobile terminal of upgrading
CN104899524B (en) * 2015-05-25 2018-11-27 上海兆芯集成电路有限公司 The method of central processing unit and verifying motherboard data
CN106325911A (en) * 2015-07-02 2017-01-11 中兴通讯股份有限公司 Method and device for implementing BOOTROM upgrade
FR3040094B1 (en) 2015-08-14 2017-09-15 Alstom Transp Tech ELECTRONIC EQUIPMENT COMPRISING A PARTITIONED STARTING PROGRAM, RAILWAY VEHICLE AND RAILWAY SYSTEM THEREFOR
CN106775674B (en) * 2016-11-29 2020-06-05 深圳市恒扬数据股份有限公司 Equipment based on universal boot loader and starting method thereof
CN106598686B (en) * 2017-01-03 2020-03-06 青岛海信移动通信技术股份有限公司 Method and device for realizing differential upgrade debugging in system partition
CN107105345A (en) * 2017-02-17 2017-08-29 青岛海信宽带多媒体技术有限公司 A kind of set top box upgrading method and set top box
CN107145363A (en) * 2017-03-21 2017-09-08 捷开通讯(深圳)有限公司 The driver loading method and terminal device of a kind of starting up of terminal process
KR102567097B1 (en) * 2018-12-05 2023-08-14 삼성전자주식회사 Method for updating Boot ROM of Embedded system and booting of thereof
CN111104173A (en) * 2019-11-25 2020-05-05 晶晨半导体(深圳)有限公司 Protection design method of bootstrap program
CN113220319A (en) * 2021-03-17 2021-08-06 广州橙行智动汽车科技有限公司 Data updating method and device and vehicle
CN114116023B (en) * 2021-06-15 2023-05-09 荣耀终端有限公司 Operating system starting method, device, storage medium and computer program product
CN114610415B (en) * 2022-03-23 2024-01-16 北京经纬恒润科技股份有限公司 Program starting method, system, storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017441A (en) * 2007-02-27 2007-08-15 华为技术有限公司 Electric device, start method of electric and update method of BIOS
CN101308470A (en) * 2007-05-17 2008-11-19 华硕电脑股份有限公司 Computer system for initiative restoration, backup and update of BIOS

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7664836B2 (en) * 2004-02-17 2010-02-16 Zhe Khi Pak Device and method for booting an operation system for a computer from a passive directly attached network device
CN101329632B (en) * 2008-04-30 2014-02-19 中兴通讯股份有限公司 Method and apparatus for starting CPU by BOOT
CN101650662B (en) * 2009-08-26 2013-09-11 中兴通讯股份有限公司 Memory device of embedded system and staring method and upgrading of firmware
CN101714093A (en) * 2009-12-01 2010-05-26 福建新大陆通信科技有限公司 Three-section type double-backup Loader upgrading method of set-top box

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017441A (en) * 2007-02-27 2007-08-15 华为技术有限公司 Electric device, start method of electric and update method of BIOS
CN101308470A (en) * 2007-05-17 2008-11-19 华硕电脑股份有限公司 Computer system for initiative restoration, backup and update of BIOS

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625832A (en) * 2019-02-27 2020-09-04 智原科技股份有限公司 Method for executing initial loading program in electronic device
WO2021012170A1 (en) * 2019-07-23 2021-01-28 深圳市大疆创新科技有限公司 Firmware booting method and device, and computer-readable storage medium
CN111190627A (en) * 2019-12-30 2020-05-22 四川虹美智能科技有限公司 System upgrading method and device

Also Published As

Publication number Publication date
CN102945176A (en) 2013-02-27
CN102945176B (en) 2016-09-28

Similar Documents

Publication Publication Date Title
CN106227568A (en) Terminal unit start, upgrade method and equipment
CN105573780B (en) A kind of mobile terminal operating system upgrade method and device based on container
CN107193612B (en) Version upgrading method and device for mobile terminal
EP3179366A1 (en) Method and terminal for ota updating
US9804933B2 (en) System differential upgrade method, apparatus, and mobile terminal
KR100915564B1 (en) Method, software and apparatus for application upgrade during execution
CN109062598B (en) Safe OTA (over the air) upgrading method and system
CN106572372A (en) Set-top box upgrading method and set-top box
CN106790247A (en) A kind of method and apparatus of android system upgrading
CN105528225A (en) Application loading method and loading apparatus
CN102646043A (en) Method and device for upgrading mobile terminal software and mobile terminal
CN105740017B (en) The upgrade method and device of cloud television system
CN102004657B (en) A kind of electronic equipment and upgrade method thereof
CN102981872A (en) Start-up and upgrade method of terminal equipment and terminal equipment
CN107643898A (en) Terminal staging method and device
CN106020882A (en) Application upgrading method, intelligent terminal and upgrading system
CN110597545A (en) Hot patch intelligent upgrading method and system based on OTA component
CN105511920A (en) Container based mobile terminal operating system upgrading method and device
CN104809011B (en) A kind of management method of application program
CN106886436A (en) A kind of method and apparatus of android system upgrading
CN114840242A (en) System upgrading method and device of electronic equipment and readable storage medium
CN105677409A (en) System upgrading method and device
CN114153484A (en) Operation method and device for updating program, electronic device and storage medium
CN107145282A (en) The brush machine method and apparatus of smart machine based on Android operation system
CN104158907A (en) Method and device of downloading application program file

Legal Events

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

Application publication date: 20161214