WO2020113469A1 - Power on self test method, power on self test device and mobile terminal - Google Patents

Power on self test method, power on self test device and mobile terminal Download PDF

Info

Publication number
WO2020113469A1
WO2020113469A1 PCT/CN2018/119377 CN2018119377W WO2020113469A1 WO 2020113469 A1 WO2020113469 A1 WO 2020113469A1 CN 2018119377 W CN2018119377 W CN 2018119377W WO 2020113469 A1 WO2020113469 A1 WO 2020113469A1
Authority
WO
WIPO (PCT)
Prior art keywords
preset
stage
startup
phase
storage device
Prior art date
Application number
PCT/CN2018/119377
Other languages
French (fr)
Chinese (zh)
Inventor
王立中
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2018/119377 priority Critical patent/WO2020113469A1/en
Priority to CN201880098763.0A priority patent/CN112912855A/en
Publication of WO2020113469A1 publication Critical patent/WO2020113469A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Definitions

  • the present application belongs to the technical field of mobile terminals, and particularly relates to a boot detection method, a boot detection device, a mobile terminal, and a computer-readable storage medium.
  • the present application provides a boot detection method, a boot detection device, a mobile terminal, and a computer-readable storage medium to solve the problem that the prior art cannot determine at which stage in the boot process the boot is not completed.
  • the first aspect of the present application provides a boot detection method.
  • the boot detection method includes:
  • a second aspect of the present application provides a boot detection device, the boot detection device includes:
  • the identification detection module is used to detect whether a preset identification exists in the storage device
  • a stage obtaining module configured to obtain a start-up stage corresponding to the preset identifier if the preset identifier exists in the storage device;
  • the stage determination module is used to determine that the start-up stage corresponding to the preset identifier is not completed during the start-up process.
  • a third aspect of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the computer program, The steps of the method of the first aspect described above.
  • a fourth aspect of the present application provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the steps of the method of the first aspect described above.
  • a fifth aspect of the present application provides a computer program product, the computer program product comprising a computer program, which when executed by one or more processors implements the steps of the method of the first aspect described above.
  • FIG. 1 is a schematic flowchart of an implementation of the boot detection method provided in Embodiment 1 of the present application;
  • FIG. 2 is a schematic diagram of an implementation process of the boot detection method provided in Embodiment 2 of the present application;
  • FIG. 3 is a schematic diagram of a boot detection device provided in Embodiment 3 of the present application.
  • FIG. 4 is a schematic diagram of a mobile terminal provided in Embodiment 4 of the present application.
  • FIG. 5 is a schematic diagram of a mobile terminal provided in Embodiment 5 of the present application.
  • the mobile terminals described in the embodiments of the present application include but are not limited to other portable devices such as mobile phones, laptop computers, or tablet computers with touch-sensitive surfaces (eg, touch screen displays and/or touch pads) .
  • the device is not a portable communication device, but a desktop computer with a touch-sensitive surface (eg, touch screen display and/or touch pad).
  • a mobile terminal including a display and a touch-sensitive surface is described.
  • the mobile terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
  • the mobile terminal supports various applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, website creation applications, disk burning applications, spreadsheet applications, game applications, phones Apps, video conferencing apps, email apps, instant messaging apps, exercise support apps, photo management apps, digital camera apps, digital camera apps, web browsing apps, digital music player apps And/or digital video player applications.
  • drawing applications such as one or more of the following: drawing applications, presentation applications, word processing applications, website creation applications, disk burning applications, spreadsheet applications, game applications, phones Apps, video conferencing apps, email apps, instant messaging apps, exercise support apps, photo management apps, digital camera apps, digital camera apps, web browsing apps, digital music player apps And/or digital video player applications.
  • Various applications that can be executed on the mobile terminal can use at least one common physical user interface device such as a touch-sensitive surface.
  • One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or changed between applications and/or within the corresponding applications.
  • the common physical architecture of the terminal eg, touch-sensitive surface
  • FIG. 1 it is a schematic diagram of an implementation process of the boot detection method provided in Embodiment 1 of the present application.
  • the boot detection method is applied to a mobile terminal.
  • the boot detection method may include the following steps:
  • Step S101 Detect whether a preset identifier exists in the storage device.
  • the preset identifier may refer to a preset identifier used to indicate that the startup is not completed.
  • the mobile terminal usually includes multiple startup phases during the startup process, and a preset logo can be set for each startup phase, that is, a correspondence relationship between different startup phases and different preset logos is established, and different startup phases correspond to different preset logos, thereby According to the preset logo, determine the specific stage of incomplete booting.
  • the startup stage includes a first startup stage, a second startup stage, a kernel kernel stage and an Android stage.
  • the booting process may include four booting stages, which are a first booting stage, a second booting stage, a Kernel stage, and an Android stage.
  • the four booting stages are sequentially executed during the booting process.
  • the first startup stage is used to set up a secure environment, initialize the bus, double data rate (DDR) memory, clock, power management integrated circuit (Power Management IC, PMIC) and other drivers, and load the second startup stage;
  • the second startup stage is used to initialize drivers such as PMIC, Universal Asynchronous Receiver/Transmitter (UART), and load Fastboot or Kernel;
  • the Kernel stage provides functions such as file system, process management, and memory management;
  • the Android stage provides Application, interface and other support.
  • the first startup stage is an extensible boot loader (eXtensible Boot Loader, XBL) stage or a preloader program Preloader stage.
  • extensible boot loader eXtensible Boot Loader, XBL
  • preloader program Preloader stage eXtensible Boot Loader
  • the second startup stage is a unified extensible firmware interface (Unified Extensible Firmware Interface, UEFI) stage and a small kernel (Little Kernel, LK) stage.
  • UEFI Unified Extensible Firmware Interface
  • LK Small Kernel
  • the mobile terminal uses different platforms, and the first startup stage and the second startup stage may be different.
  • the first startup stage may be the XBL stage, and the second startup stage may be UEFI phase;
  • the first startup phase may be the Preloader phase, and the second startup phase may be the LK phase.
  • Step S102 if the preset identifier exists in the storage device, acquire a start-up phase corresponding to the preset identifier.
  • the preset identifier exists in the storage device, it is determined that there is a situation in which the startup is not completed during the startup process, and the specific stage in which the startup is not completed can be obtained through the preset identifier; if If the preset identifier does not exist in the storage device, it is determined that there is no incomplete booting in the booting process, and there is no need to perform subsequent processes.
  • step S103 it is determined that the startup phase corresponding to the preset identifier is not completed during the startup process.
  • failing to complete the power-on phase corresponding to the preset logo may refer to a failure (eg, stuck) during the power-on phase corresponding to the preset logo, and the power-on corresponding to the preset logo cannot be executed Everything in the stage.
  • the first startup phase corresponds to the preset logo 0x5A
  • the second startup phase corresponds to the preset logo 0x6B
  • the Kernel phase corresponds to the preset logo 0x7C
  • the Android phase corresponds to the preset logo 0x8D. If 0x7C is detected in the storage device, then It indicates that the Kernel phase was not completed during the boot process.
  • a preset logo indicating that the startup is not completed is set for each startup stage, and the preset logo is written into the storage device to detect whether the preset logo exists in the storage device. If there is a preset logo, it can be determined The startup phase corresponding to the preset logo is not completed, so that the uncompleted startup phase is quickly and accurately found according to the preset logo.
  • FIG. 2 is a schematic diagram of an implementation process of a power-on detection method provided in Embodiment 2 of the present application.
  • the power-on detection method is applied to a mobile terminal. As shown in the figure, the power-on detection method may include the following steps:
  • Step S201 Monitor each startup stage during the startup process, and if it is detected that any startup stage is not completed, write a preset identifier corresponding to the startup stage in the storage device.
  • the storage device may be an embedded multimedia memory card (Embedded Multi Media (eMMC) or universal flash memory (Universal Flash Storage, UFS).
  • eMMC embedded Multi Media
  • UFS Universal Flash Storage
  • the monitoring of each startup stage during the startup process, and if it is detected that any startup stage is not completed, writing the preset identifier corresponding to the startup stage in the storage device includes:
  • the watchdog timer when the first start-up phase is started, the watchdog timer is started. If the watchdog timer timeout is detected in the first start-up phase, it may be determined that the first start-up is not completed during the boot process Phase, because if the first start-up phase is successfully completed, the watchdog timer clear operation is performed and the watchdog timer does not time out. Similarly, if the first start-up phase is successfully completed during the boot process, the watchdog timer is cleared, the watchdog timer is reset to a preset time (for example, 20 seconds), and the second start-up phase is started.
  • a preset time for example, 20 seconds
  • the watchdog timer timeout is detected during the second start-up phase, it can be determined that the second start-up phase has not been completed during the boot process, because if the first start-up phase is successfully completed, the watchdog timer clear operation is performed. The watchdog timer will not time out.
  • the PMIC watchdog timer can be used for monitoring in the XBL stage
  • the application processor can be used in the UEFI stage (Application Processor, AP) watchdog timer for monitoring; if the first start-up phase is the Preloader phase and the second start-up phase is the LK phase, the AP's watchdog timer can be used in both the Preloader and LK phases monitor.
  • AP Application Processor
  • the monitoring of each startup stage during the startup process, and if it is detected that any startup stage is not completed, writing the preset identifier corresponding to the startup stage in the storage device includes:
  • the first preset flag bit information does not exist, or the first preset flag bit information exists and the first preset flag bit information is not the first preset value, it is determined that the Describe the Kernel stage, and write a third preset identifier in the storage device;
  • the Kernel timer If it is detected that the Kernel timer has expired in the Android stage, it is detected whether the second preset flag bit information exists; or a service Service is started in the Android stage, and after waking up the Service, it is detected whether the second preset flag bit exists information;
  • the second preset flag bit information does not exist, or the second preset flag bit information exists and the second preset flag bit information is not the second preset value, it is determined that the Describe the Android stage, and write a fourth preset identifier in the storage device.
  • the Kernel stage may be monitored using the Kernel timer. Specifically: if the second startup stage is successfully completed during the boot process, the watchdog timer clear operation is performed, and the watchdog timer resets the preset Set a time (for example, 20 seconds) to kick the dog (this watchdog timer can be used to monitor other programs), and start the Kernel timer, the Kernel timer is set with a timeout period (for example, 8 minutes), if in the Kernel stage It is detected that the Kernel timer times out (for example, after 8 minutes), and then it is detected whether the first preset flag bit information is present, and if the first preset flag bit information is not present, it is determined that the process is not completed during the boot process Kernel stage, and write a third preset flag in the storage device; or if the first preset flag bit information is present and the first preset flag bit information is not the first preset value, it is determined that The Kernel stage is not completed during the boot process;
  • the first preset flag bit information is used to indicate whether the Kernel stage is successfully completed, the first preset value is used to indicate the Kernel stage is successfully completed, and when the Kernel stage is successfully completed, the first preset flag is set Bit information, and set the first preset flag bit information to a first preset value, and the user can set the first preset value by himself, for example, 1 or TRUE.
  • the Kernel timer can be used for monitoring in the Android stage. Specifically: if the Kernel stage is successfully completed during the startup process, the Android stage is started, and the Kernel timer is continued to be used. When the Kernel timer times out, it is detected whether there is second preset flag bit information.
  • the Android stage can also start a Service during the execution of the Android stage to monitor the startup process of the Android stage.
  • the Service is set with a sleep time (for example, 5 minutes). After the sleep time, the Service is woken up to detect whether there is a second Set the flag bit information.
  • the second preset flag bit information may be a sys.boot_completed flag, which is used to indicate whether the Android stage is successfully completed.
  • the second preset value is used to indicate the successful completion of the Android stage, and when the successful completion of the Android stage is detected, the second preset flag bit information is set, and the second preset flag bit information is set to the second preset value ,
  • the user can set the second preset value, such as 1 or TRUE.
  • the embodiment of the present application further includes:
  • a preset identifier corresponding to the startup phase may be written in the storage device before the mobile terminal restarts, In order to indicate which stage has not been completed, and record the current on-site log at the same time, store the on-site log to the storage device, after the mobile terminal is successfully turned on, return the on-site log to the preset server, which is convenient for R&D personnel to view the site Logs to analyze the reasons for the incomplete stage of the power-on phase to repair it.
  • the preset server may refer to a server of a mobile terminal operator.
  • the current on-site log may refer to the environment information of the mobile terminal at the current moment, for example, some identification information at the current moment of the unfinished start-up phase, state information of the mobile terminal, etc. These information can analyze the cause of the uncompleted start-up phase.
  • Step S202 Detect whether a preset identifier exists in the storage device.
  • this step is the same as or similar to step 101.
  • steps 101 For details, refer to the related description of step 101, and details are not described herein again.
  • Step S203 if the preset identifier exists in the storage device, obtain a start-up phase corresponding to the preset identifier.
  • this step is the same as or similar to step 102.
  • steps 102 For details, refer to the related description of step 102, and details are not described herein again.
  • step S204 it is determined that the startup phase corresponding to the preset identifier is not completed during the startup process.
  • this step is the same as or similar to step 103.
  • steps 103 For details, refer to the related description of step 103, and details are not described herein again.
  • a preset logo indicating that the startup is not completed is set for each startup stage, and the preset logo is written into the storage device to detect whether the preset logo exists in the storage device. If there is a preset logo, it can be determined The startup phase corresponding to the preset logo is not completed, so that the uncompleted startup phase is quickly and accurately found according to the preset logo.
  • FIG. 3 it is a power-on detection device provided in Embodiment 3 of the present application.
  • the above power-on detection device may be integrated into a mobile terminal. For ease of description, only parts related to the embodiment of the present application are shown.
  • the boot detection device includes:
  • the identification detection module 31 is used to detect whether a preset identification exists in the storage device
  • the stage obtaining module 32 is configured to obtain a start-up stage corresponding to the preset identifier if the preset identifier exists in the storage device;
  • the stage determination module 33 is configured to determine that the start-up stage corresponding to the preset identifier is not completed during the start-up process.
  • the startup stage includes a first startup stage, a second startup stage, a kernel kernel stage and an Android stage.
  • the first startup stage is an extensible bootloader XBL stage or a preloader stage.
  • the second startup stage is a unified extensible firmware interface UEFI stage and a small kernel LK stage.
  • the startup detection device further includes:
  • the power-on monitoring module 34 is used to monitor each power-on phase during the power-on process. If any power-on phase is not completed, a preset identifier corresponding to the power-on phase is written in the storage device.
  • the startup monitoring module 34 includes:
  • the first starting unit is used to start the watchdog timer
  • the first determining unit is configured to determine that the first start-up phase is not completed during the start-up process if the watchdog timer times out during the first start-up phase, and write the first in the storage device Preset logo
  • the second determining unit is configured to, if the watchdog timer times out during the second startup phase, determine that the second startup phase has not been completed during the boot process, and write the second in the storage device Preset logo
  • the second start unit is used to start the Kernel timer
  • a first detection unit configured to detect whether the first preset flag bit information is present if the Kernel timer is detected to expire during the Kernel stage;
  • the third determining unit is configured to determine if the first preset flag bit information does not exist, or if the first preset flag bit information exists and the first preset flag bit information is not the first preset value
  • the Kernel stage is not completed during the boot process, and a third preset logo is written in the storage device;
  • the second detection unit is configured to detect whether the second preset flag bit information is present if the Kernel timer is detected to expire in the Android stage; or to start a service Service in the Android stage and detect whether the service wakes up after the Service There is second preset flag bit information;
  • the fourth determining unit is configured to determine if the second preset flag bit information does not exist, or if the second preset flag bit information exists and the second preset flag bit information is not the second preset value
  • the Android stage is not completed during the boot process, and a fourth preset logo is written in the storage device.
  • boot monitoring module 34 is also used to:
  • the storage device is an embedded multimedia memory card eMMC or a universal flash storage UFS.
  • the boot detection device provided by the embodiment of the present application may be applied to the foregoing method embodiments 1 and 2, for details, refer to the descriptions of the above method embodiments 1 and 2, which will not be repeated here.
  • the mobile terminal may include: one or more processors 401 (only one shown in the figure); one or more input devices 402 (only one shown in the figure), and one or more output devices 403 (Only one is shown in the figure) and the memory 404.
  • the processor 401, the input device 402, the output device 403, and the memory 404 are connected via a bus 405.
  • the memory 404 is used to store instructions, and the processor 401 is used to execute the instructions stored in the memory 404. among them:
  • the processor 401 is configured to detect whether a preset identifier exists in the storage device; if the preset identifier exists in the storage device, acquire a start-up phase corresponding to the preset identifier; determine that no Complete the start-up phase corresponding to the preset identification.
  • the startup stage includes a first startup stage, a second startup stage, a kernel kernel stage and an Android stage.
  • the first startup stage is an extensible bootloader XBL stage or a preloader stage.
  • the second startup stage is a unified extensible firmware interface UEFI stage and a small kernel LK stage.
  • processor 401 is also used to:
  • a preset identifier corresponding to the startup phase is written in the storage device.
  • the processor 401 is specifically used to:
  • the processor 401 is specifically used to:
  • the first preset flag bit information does not exist, or the first preset flag bit information exists and the first preset flag bit information is not the first preset value, it is determined that the Describe the Kernel stage, and write a third preset identifier in the storage device;
  • the Kernel timer If it is detected that the Kernel timer times out in the Android stage, it detects whether there is second preset flag bit information; or in the Android stage, a service Service is started, and after waking up the Service, it is detected whether there is a second preset flag bit information;
  • the second preset flag bit information does not exist, or the second preset flag bit information exists and the second preset flag bit information is not the second preset value, it is determined that the Describe the Android stage, and write a fourth preset identifier in the storage device.
  • processor 401 is also used to:
  • the storage device is an embedded multimedia memory card eMMC or a universal flash storage UFS.
  • the processor 401 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP) , Application Specific Integrated Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the input device 402 may include a touchpad, a fingerprint sensor (for collecting user fingerprint information and fingerprint direction information), a microphone, and a data receiving interface.
  • the output device 403 may include a display (LCD, etc.), a speaker, a data transmission interface, and the like.
  • the memory 404 may include a read-only memory and a random access memory, and provide instructions and data to the processor 401. A portion of the memory 404 may also include non-volatile random access memory. For example, the memory 404 may also store device type information.
  • the processor 401, the input device 402, the output device 403, and the memory 404 described in the embodiments of the present application can execute the implementation described in the embodiment of the boot detection method provided by the embodiments of the present application, and can also be executed The implementation described in the boot detection device in Embodiment 3 will not be repeated here.
  • the mobile terminal 5 of this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50.
  • the processor 50 executes the computer program 52, the steps in the above embodiments of each information processing method are implemented, for example, steps S101 to S103 shown in FIG. 1.
  • the processor 50 executes the computer program 52, the functions of each module/unit in the foregoing device embodiments are realized, for example, the functions of the modules 31 to 34 shown in FIG. 3.
  • the computer program 52 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 51 and executed by the processor 50 to complete This application.
  • the one or more modules/units may be a series of computer program instruction segments capable of performing specific functions.
  • the instruction segments are used to describe the execution process of the computer program 52 in the mobile terminal 5.
  • the computer program 52 may be divided into an identification detection module, a stage acquisition module, a stage determination module, and a start-up monitoring module.
  • the specific functions of each module are as follows:
  • the identification detection module is used to detect whether a preset identification exists in the storage device
  • a stage obtaining module configured to obtain a start-up stage corresponding to the preset identifier if the preset identifier exists in the storage device;
  • the stage determination module is used to determine that the start-up stage corresponding to the preset identifier is not completed during the start-up process.
  • the startup stage includes a first startup stage, a second startup stage, a kernel kernel stage and an Android stage.
  • the first startup stage is an extensible bootloader XBL stage or a preloader stage.
  • the second startup stage is a unified extensible firmware interface UEFI stage and a small kernel LK stage.
  • the startup monitoring module is used to monitor each startup stage during the startup process, and if any startup stage is not completed, write a preset identifier corresponding to the startup stage in the storage device.
  • the startup monitoring module includes:
  • the first starting unit is used to start the watchdog timer
  • the first determining unit is configured to determine that the first start-up phase is not completed during the start-up process if the watchdog timer times out during the first start-up phase, and write the first in the storage device Preset logo
  • the second determining unit is configured to, if the watchdog timer times out during the second startup phase, determine that the second startup phase has not been completed during the boot process, and write the second in the storage device Preset logo
  • the second start unit is used to start the Kernel timer
  • a first detection unit configured to detect whether the first preset flag bit information is present if the Kernel timer is detected to expire during the Kernel stage;
  • the third determining unit is configured to determine if the first preset flag bit information does not exist, or if the first preset flag bit information exists and the first preset flag bit information is not the first preset value
  • the Kernel stage is not completed during the boot process, and a third preset logo is written in the storage device;
  • the second detection unit is configured to detect whether the second preset flag bit information is present if the Kernel timer is detected to expire in the Android stage; or to start a service Service in the Android stage and detect whether the service wakes up after the Service There is second preset flag bit information;
  • the fourth determining unit is configured to determine if the second preset flag bit information does not exist, or if the second preset flag bit information exists and the second preset flag bit information is not the second preset value
  • the Android stage is not completed during the boot process, and a fourth preset logo is written in the storage device.
  • the startup monitoring module is also used for:
  • the storage device is an embedded multimedia memory card eMMC or a universal flash storage UFS.
  • the mobile terminal 5 may be a computing device such as a desktop computer, a notebook, a palmtop computer and a cloud server.
  • the mobile terminal may include, but is not limited to, the processor 50 and the memory 51.
  • FIG. 5 is only an example of the mobile terminal 5 and does not constitute a limitation on the mobile terminal 5, and may include more or fewer components than those illustrated, or a combination of certain components, or different components.
  • the mobile terminal may further include input and output devices, network access devices, buses, and the like.
  • the so-called processor 50 may be a central processing unit CPU or other general-purpose processors, digital signal processors DSP, application specific integrated circuits ASIC, ready-made programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices , Discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory 51 may be an internal storage unit of the mobile terminal 5, such as a hard disk or a memory of the mobile terminal 5.
  • the memory 51 may also be an external storage device of the mobile terminal 5, such as a plug-in hard disk equipped on the mobile terminal 5, a smart memory card (Smart) Media (SMC), and a secure digital (SD) Cards, flash cards, etc. Further, the memory 51 may also include both an internal storage unit of the mobile terminal 5 and an external storage device.
  • the memory 51 is used to store the computer program and other programs and data required by the mobile terminal.
  • the memory 51 can also be used to temporarily store data that has been or will be output.
  • each functional unit and module is used as an example for illustration.
  • the above-mentioned functions can be allocated by different functional units
  • Module completion means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above.
  • the functional units and modules in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may use hardware It can also be implemented in the form of software functional units.
  • the specific names of each functional unit and module are only for the purpose of distinguishing each other, and are not used to limit the protection scope of the present application.
  • the disclosed device/mobile terminal may be implemented in other ways.
  • the device/mobile terminal embodiments described above are only schematic.
  • the division of the module or unit is only a logical function division, and in actual implementation, there may be another division manner, such as multiple units Or components can be combined or integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or software functional unit.
  • the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the present application can implement all or part of the processes in the methods of the above embodiments, and can also be completed by a computer program instructing relevant hardware.
  • the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, the steps of the foregoing method embodiments may be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate form.
  • the computer-readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (Read-Only Memory, ROM) , Random Access Memory (Random Access Memory, RAM), electrical carrier signals, telecommunications signals and software distribution media, etc.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electrical carrier signals telecommunications signals and software distribution media, etc.
  • the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in jurisdictions. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media Does not include electrical carrier signals and telecommunications signals.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to a power on self test method, a power on self test device, mobile terminal (5) and a computer readable storage medium, wherein the power on self test method comprises: detecting whether a preset identifier is present in a storage device (S101, S202); if so, acquiring a power on stage corresponding to the preset identifier (S102, S203); and determining that the power on stage corresponding to the preset identifier is not completed in the power on process. The method solves the problem in the prior art in which it is not possible to determine at which stage non-completion occurs in a power on process.

Description

开机检测方法、开机检测装置及移动终端Boot detection method, boot detection device and mobile terminal 技术领域Technical field
本申请属于移动终端技术领域,尤其涉及一种开机检测方法、开机检测装置、移动终端及计算机可读存储介质。The present application belongs to the technical field of mobile terminals, and particularly relates to a boot detection method, a boot detection device, a mobile terminal, and a computer-readable storage medium.
背景技术Background technique
随着通信技术的发展和进步,手机、平板电脑等移动终端已经成为人们生活中的重要工具。移动终端时常出现开机未完成的情况,现有技术在移动终端开机未完成时,无法判断开机未完成发生在开机过程中哪个阶段。With the development and progress of communication technology, mobile terminals such as mobile phones and tablet computers have become important tools in people's lives. The mobile terminal often has a situation where the startup is not completed. In the prior art, when the startup of the mobile terminal is not completed, it cannot be judged at which stage in the startup process the startup is not completed.
发明内容Summary of the invention
本申请提供了一种开机检测方法、开机检测装置、移动终端及计算机可读存储介质,以解决现有技术无法判断开机未完成发生在开机过程中哪个阶段的问题。The present application provides a boot detection method, a boot detection device, a mobile terminal, and a computer-readable storage medium to solve the problem that the prior art cannot determine at which stage in the boot process the boot is not completed.
本申请的第一方面提供了一种开机检测方法,所述开机检测方法包括:The first aspect of the present application provides a boot detection method. The boot detection method includes:
检测存储装置中是否存在预设标识;Detect whether there is a preset mark in the storage device;
若所述存储装置中存在所述预设标识,则获取与所述预设标识对应的开机阶段;If the preset identifier exists in the storage device, obtain a start-up phase corresponding to the preset identifier;
确定在开机过程中未完成与所述预设标识对应的开机阶段。It is determined that the startup phase corresponding to the preset identification is not completed during the startup process.
本申请的第二方面提供了一种开机检测装置,所述开机检测装置包括:A second aspect of the present application provides a boot detection device, the boot detection device includes:
标识检测模块,用于检测存储装置中是否存在预设标识;The identification detection module is used to detect whether a preset identification exists in the storage device;
阶段获取模块,用于若所述存储装置中存在所述预设标识,则获取与所述预设标识对应的开机阶段;A stage obtaining module, configured to obtain a start-up stage corresponding to the preset identifier if the preset identifier exists in the storage device;
阶段确定模块,用于确定在开机过程中未完成与所述预设标识对应的开机阶段。The stage determination module is used to determine that the start-up stage corresponding to the preset identifier is not completed during the start-up process.
本申请的第三方面提供了一种移动终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面的方法的步骤。A third aspect of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, The steps of the method of the first aspect described above.
本申请的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面的方法的步骤。A fourth aspect of the present application provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the steps of the method of the first aspect described above.
本申请的第五方面提供了一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序被一个或多个处理器执行时实现如上述第一方面的方法的步骤。A fifth aspect of the present application provides a computer program product, the computer program product comprising a computer program, which when executed by one or more processors implements the steps of the method of the first aspect described above.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施 例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only for the application In some embodiments, for those of ordinary skill in the art, without paying creative labor, other drawings may be obtained based on these drawings.
图1是本申请实施例一提供的开机检测方法的实现流程示意图;FIG. 1 is a schematic flowchart of an implementation of the boot detection method provided in Embodiment 1 of the present application;
图2是本申请实施例二提供的开机检测方法的实现流程示意图;2 is a schematic diagram of an implementation process of the boot detection method provided in Embodiment 2 of the present application;
图3是本申请实施例三提供的开机检测装置的示意图;3 is a schematic diagram of a boot detection device provided in Embodiment 3 of the present application;
图4是本申请实施例四提供的移动终端的示意图;4 is a schematic diagram of a mobile terminal provided in Embodiment 4 of the present application;
图5是本申请实施例五提供的移动终端的示意图。5 is a schematic diagram of a mobile terminal provided in Embodiment 5 of the present application.
具体实施方式detailed description
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structure and technology are proposed to thoroughly understand the embodiments of the present application. However, those skilled in the art should understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary details.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements, and/or components, but does not exclude one or more other features , Wholes, steps, operations, elements, components and/or their existence or addition.
具体实现中,本申请实施例中描述的移动终端包括但不限于诸如具有触摸敏感表面(例如,触摸屏显示器和/或触摸板)的移动电话、膝上型计算机或平板计算机之类的其它便携式设备。还应当理解的是,在某些实施例中,所述设备并非便携式通信设备,而是具有触摸敏感表面(例如,触摸屏显示器和/或触摸板)的台式计算机。In a specific implementation, the mobile terminals described in the embodiments of the present application include but are not limited to other portable devices such as mobile phones, laptop computers, or tablet computers with touch-sensitive surfaces (eg, touch screen displays and/or touch pads) . It should also be understood that, in some embodiments, the device is not a portable communication device, but a desktop computer with a touch-sensitive surface (eg, touch screen display and/or touch pad).
在接下来的讨论中,描述了包括显示器和触摸敏感表面的移动终端。然而,应当理解的是,移动终端可以包括诸如物理键盘、鼠标和/或控制杆的一个或多个其它物理用户接口设备。In the following discussion, a mobile terminal including a display and a touch-sensitive surface is described. However, it should be understood that the mobile terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
移动终端支持各种应用程序,例如以下中的一个或多个:绘图应用程序、演示应用程序、文字处理应用程序、网站创建应用程序、盘刻录应用程序、电子表格应用程序、游戏应用程序、电话应用程序、视频会议应用程序、电子邮件应用程序、即时消息收发应用程序、锻炼支持应用程序、照片管理应用程序、数码相机应用程序、数字摄影机应用程序、web浏览应用程序、数字音乐播放器应用程序和/或数字视频播放器应用程序。The mobile terminal supports various applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, website creation applications, disk burning applications, spreadsheet applications, game applications, phones Apps, video conferencing apps, email apps, instant messaging apps, exercise support apps, photo management apps, digital camera apps, digital camera apps, web browsing apps, digital music player apps And/or digital video player applications.
可以在移动终端上执行的各种应用程序可以使用诸如触摸敏感表面的至少一个公共物理用户接口设备。可以在应用程序之间和/或相应应用程序内调整和/或改变触摸敏感表面的一个或多个功能以及终端上显示的相应信息。这样,终端的公共物理架构(例如,触摸敏感表面)可以支持具有对用户而言直观且透明的用户界面的各种应用程序。Various applications that can be executed on the mobile terminal can use at least one common physical user interface device such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or changed between applications and/or within the corresponding applications. In this way, the common physical architecture of the terminal (eg, touch-sensitive surface) can support various applications with a user interface that is intuitive and transparent to the user.
应理解,本实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in this embodiment does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
为了说明本申请上述的技术方案,下面通过具体实施例来进行说明。In order to explain the above technical solutions of the present application, the following will be described by specific embodiments.
实施例1Example 1
参见图1,是本申请实施例一提供的开机检测方法的实现流程示意图,该开机检测方法应用于移动终端,如图所示该开机检测方法可以包括以下步骤:Referring to FIG. 1, it is a schematic diagram of an implementation process of the boot detection method provided in Embodiment 1 of the present application. The boot detection method is applied to a mobile terminal. As shown in the figure, the boot detection method may include the following steps:
步骤S101,检测存储装置中是否存在预设标识。Step S101: Detect whether a preset identifier exists in the storage device.
在本申请实施例中,所述预设标识可以是指预先设置的用于指示开机未完成的标识。移动终端在开机过程中通常包括多个开机阶段,可以为每个开机阶段设置一个预设标识,即建立不同开机阶段与不同预设标识的对应关系,不同开机阶段对应不同的预设标识,从而根据预设标识判断开机未完成的具体阶段。In the embodiment of the present application, the preset identifier may refer to a preset identifier used to indicate that the startup is not completed. The mobile terminal usually includes multiple startup phases during the startup process, and a preset logo can be set for each startup phase, that is, a correspondence relationship between different startup phases and different preset logos is established, and different startup phases correspond to different preset logos, thereby According to the preset logo, determine the specific stage of incomplete booting.
可选的,所述开机阶段包括第一启动阶段、第二启动阶段、内核Kernel阶段和安卓Android阶段。Optionally, the startup stage includes a first startup stage, a second startup stage, a kernel kernel stage and an Android stage.
在本申请实施例中,在开机过程中可以包括四个开机阶段,分别是第一启动阶段、第二启动阶段、Kernel阶段和Android阶段,在开机过程中依次执行上述四个开机阶段。其中,第一启动阶段用于设置安全环境,初始化总线、双倍数据速率(Double Data Rate,DDR)内存、时钟、电源管理集成电路(Power Management IC,PMIC)等驱动,加载第二启动阶段;第二启动阶段用于初始化PMIC、通用异步收发传输器(Universal Asynchronous Receiver/Transmitter,UART)等驱动程序,加载Fastboot或者Kernel;Kernel阶段提供文件文件系统、进程管理、内存管理等功能;Android阶段提供应用、界面等支持。In the embodiment of the present application, the booting process may include four booting stages, which are a first booting stage, a second booting stage, a Kernel stage, and an Android stage. The four booting stages are sequentially executed during the booting process. Among them, the first startup stage is used to set up a secure environment, initialize the bus, double data rate (DDR) memory, clock, power management integrated circuit (Power Management IC, PMIC) and other drivers, and load the second startup stage; The second startup stage is used to initialize drivers such as PMIC, Universal Asynchronous Receiver/Transmitter (UART), and load Fastboot or Kernel; the Kernel stage provides functions such as file system, process management, and memory management; the Android stage provides Application, interface and other support.
可选的,所述第一启动阶段为可扩展启动加载程序(eXtensible Boot Loader,XBL)阶段或者预加载程序Preloader阶段。Optionally, the first startup stage is an extensible boot loader (eXtensible Boot Loader, XBL) stage or a preloader program Preloader stage.
可选的,所述第二启动阶段为统一可扩展固件接口(Unified Extensible Firmware Interface,UEFI)阶段和小内核(Little Kernel,LK)阶段。Optionally, the second startup stage is a unified extensible firmware interface (Unified Extensible Firmware Interface, UEFI) stage and a small kernel (Little Kernel, LK) stage.
在本申请实施例中,移动终端使用不同的平台,第一启动阶段和第二启动阶段可能不同,例如在移动终端使用高通平台时,第一启动阶段可以为XBL阶段,第二启动阶段可以为UEFI阶段;在移动终端使用联发科平台时,第一启动阶段可以为Preloader阶段,第二启动阶段可以为LK阶段。In the embodiment of the present application, the mobile terminal uses different platforms, and the first startup stage and the second startup stage may be different. For example, when the mobile terminal uses the Qualcomm platform, the first startup stage may be the XBL stage, and the second startup stage may be UEFI phase; when the mobile terminal uses the MediaTek platform, the first startup phase may be the Preloader phase, and the second startup phase may be the LK phase.
步骤S102,若所述存储装置中存在所述预设标识,则获取与所述预设标识对应的开机阶段。Step S102, if the preset identifier exists in the storage device, acquire a start-up phase corresponding to the preset identifier.
在本申请实施例中,若所述存储装置中存在所述预设标识,则确定开机过程中存 在开机未完成的情况,可以通过所述预设标识,获取开机未完成发生的具体阶段;若所述存储装置中不存在所述预设标识,则确定开机过程中不存在开机未完成的情况,无需再执行后续流程。In the embodiment of the present application, if the preset identifier exists in the storage device, it is determined that there is a situation in which the startup is not completed during the startup process, and the specific stage in which the startup is not completed can be obtained through the preset identifier; if If the preset identifier does not exist in the storage device, it is determined that there is no incomplete booting in the booting process, and there is no need to perform subsequent processes.
步骤S103,确定在开机过程中未完成与所述预设标识对应的开机阶段。In step S103, it is determined that the startup phase corresponding to the preset identifier is not completed during the startup process.
其中,未完成与所述预设标识对应的开机阶段可以是指在执行与所述预设标识对应的开机阶段时发生故障(例如卡住),无法执行完与所述预设标识对应的开机阶段的所有内容。Wherein, failing to complete the power-on phase corresponding to the preset logo may refer to a failure (eg, stuck) during the power-on phase corresponding to the preset logo, and the power-on corresponding to the preset logo cannot be executed Everything in the stage.
示例性的,第一启动阶段对应预设标识0x5A,第二启动阶段对应预设标识0x6B,Kernel阶段对应预设标识0x7C,Android阶段对应预设标识0x8D,如果检测到存储装置中存在0x7C,那么说明在开机过程中未完成Kernel阶段。Exemplarily, the first startup phase corresponds to the preset logo 0x5A, the second startup phase corresponds to the preset logo 0x6B, the Kernel phase corresponds to the preset logo 0x7C, and the Android phase corresponds to the preset logo 0x8D. If 0x7C is detected in the storage device, then It indicates that the Kernel phase was not completed during the boot process.
本申请实施例为每个开机阶段设置一个表征开机未完成的预设标识,并将该预设标识写入存储装置,检测存储装置中是否存在预设标识,若存在预设标识,则可以确定未完成与预设标识对应的开机阶段,从而根据预设标识快速、准确地查找到开机未完成的阶段。In the embodiment of the present application, a preset logo indicating that the startup is not completed is set for each startup stage, and the preset logo is written into the storage device to detect whether the preset logo exists in the storage device. If there is a preset logo, it can be determined The startup phase corresponding to the preset logo is not completed, so that the uncompleted startup phase is quickly and accurately found according to the preset logo.
实施例2Example 2
参见图2,是本申请实施例二提供的开机检测方法的实现流程示意图,该开机检测方法应用于移动终端,如图所示该开机检测方法可以包括以下步骤:Referring to FIG. 2, which is a schematic diagram of an implementation process of a power-on detection method provided in Embodiment 2 of the present application. The power-on detection method is applied to a mobile terminal. As shown in the figure, the power-on detection method may include the following steps:
步骤S201,在开机过程中监测各个开机阶段,若监测到未完成任一开机阶段,则在存储装置中写入与该开机阶段对应的预设标识。Step S201: Monitor each startup stage during the startup process, and if it is detected that any startup stage is not completed, write a preset identifier corresponding to the startup stage in the storage device.
可选的,所述存储装置可以为嵌入式多媒体存储卡(Embedded Multi Media Card,eMMC)或者通用闪存存储(Universal Flash Storage,UFS)。Optionally, the storage device may be an embedded multimedia memory card (Embedded Multi Media (eMMC) or universal flash memory (Universal Flash Storage, UFS).
可选的,所述在开机过程中监测各个开机阶段,若监测到未完成任一开机阶段,则在所述存储装置中写入与该开机阶段对应的预设标识包括:Optionally, the monitoring of each startup stage during the startup process, and if it is detected that any startup stage is not completed, writing the preset identifier corresponding to the startup stage in the storage device includes:
启动看门狗定时器;Start the watchdog timer;
若在第一启动阶段监测到所述看门狗定时器超时,则确定在开机过程中未完成所述第一启动阶段,并在所述存储装置中写入第一预设标识;If it is detected that the watchdog timer times out during the first start-up phase, it is determined that the first start-up phase has not been completed during the boot process, and a first preset flag is written in the storage device;
若在第二启动阶段监测到所述看门狗定时器超时,则确定在开机过程中未完成所述第二启动阶段,并在所述存储装置中写入第二预设标识。If it is detected that the watchdog timer times out during the second startup phase, it is determined that the second startup phase has not been completed during the startup process, and a second preset flag is written in the storage device.
在本申请实施例中,在开始执行第一启动阶段时,启动看门狗定时器,若在第一启动阶段监测到看门狗定时器超时,则可以确定在开机过程中未完成第一启动阶段,因为如果成功完成第一启动阶段,则执行看门狗定时器清除操作,看门狗定时器不会 超时。同理,如果在开机过程中成功完成第一启动阶段,则执行看门狗定时器清除操作,看门狗定时器重新设置预设时间(例如20秒)踢狗,并开始执行第二启动阶段,若在第二启动阶段监测到看门狗定时器超时,则可以确定在开机过程中未完成第二启动阶段,因为如果成功完成第一启动阶段,则执行看门狗定时器清除操作,看门狗定时器不会超时。In the embodiment of the present application, when the first start-up phase is started, the watchdog timer is started. If the watchdog timer timeout is detected in the first start-up phase, it may be determined that the first start-up is not completed during the boot process Phase, because if the first start-up phase is successfully completed, the watchdog timer clear operation is performed and the watchdog timer does not time out. Similarly, if the first start-up phase is successfully completed during the boot process, the watchdog timer is cleared, the watchdog timer is reset to a preset time (for example, 20 seconds), and the second start-up phase is started. If the watchdog timer timeout is detected during the second start-up phase, it can be determined that the second start-up phase has not been completed during the boot process, because if the first start-up phase is successfully completed, the watchdog timer clear operation is performed. The watchdog timer will not time out.
在本申请实施例中,若第一启动阶段为XBL阶段,则在XBL阶段可以采用PMIC的看门狗定时器进行监测,若第二启动阶段为UEFI阶段,则在UEFI阶段可以采用应用处理器(Application Processor,AP)的看门狗定时器进行监测;若第一启动阶段为Preloader阶段,第二启动阶段为LK阶段,则在Preloader阶段和LK阶段均可以采用AP的看门狗定时器进行监测。In the embodiment of the present application, if the first startup stage is the XBL stage, the PMIC watchdog timer can be used for monitoring in the XBL stage, and if the second startup stage is the UEFI stage, the application processor can be used in the UEFI stage (Application Processor, AP) watchdog timer for monitoring; if the first start-up phase is the Preloader phase and the second start-up phase is the LK phase, the AP's watchdog timer can be used in both the Preloader and LK phases monitor.
可选的,所述在开机过程中监测各个开机阶段,若监测到未完成任一开机阶段,则在所述存储装置中写入与该开机阶段对应的预设标识包括:Optionally, the monitoring of each startup stage during the startup process, and if it is detected that any startup stage is not completed, writing the preset identifier corresponding to the startup stage in the storage device includes:
启动Kernel定时器;Start the Kernel timer;
若在Kernel阶段监测到所述Kernel定时器超时,则检测是否存在第一预设标志位信息;If it is detected that the Kernel timer expires during the Kernel stage, it is detected whether the first preset flag bit information exists;
若不存在所述第一预设标志位信息,或者存在所述第一预设标志位信息且所述第一预设标志位信息不是第一预设值,则确定在开机过程中未完成所述Kernel阶段,并在所述存储装置中写入第三预设标识;If the first preset flag bit information does not exist, or the first preset flag bit information exists and the first preset flag bit information is not the first preset value, it is determined that the Describe the Kernel stage, and write a third preset identifier in the storage device;
若在Android阶段监测到所述Kernel定时器超时,则检测是否存在第二预设标志位信息;或者在Android阶段启动一个服务Service,在唤醒所述Service之后,检测是否存在第二预设标志位信息;If it is detected that the Kernel timer has expired in the Android stage, it is detected whether the second preset flag bit information exists; or a service Service is started in the Android stage, and after waking up the Service, it is detected whether the second preset flag bit exists information;
若不存在所述第二预设标志位信息,或者存在所述第二预设标志位信息且所述第二预设标志位信息不是第二预设值,则确定在开机过程中未完成所述Android阶段,并在所述存储装置中写入第四预设标识。If the second preset flag bit information does not exist, or the second preset flag bit information exists and the second preset flag bit information is not the second preset value, it is determined that the Describe the Android stage, and write a fourth preset identifier in the storage device.
在本申请实施例中,Kernel阶段可以采用Kernel定时器进行监测,具体的:如果在开机过程中成功完成第二启动阶段,则执行看门狗定时器清除操作,看门狗定时器重新设置预设时间(例如20秒)踢狗(此时该看门狗定时器可以用于监测其他程序),并启动Kernel定时器,该Kernel定时器设置有超时时间(例如8分钟),若在Kernel阶段监测到所述Kernel定时器超时(例如8分钟之后),则检测是否存在第一预设标志位信息,若不存在所述第一预设标志位信息,则确定在开机过程中未完成所述Kernel阶段,并在所述存储装置中写入第三预设标识;或者若存在所述第一预设标志位信息且所述第一预设标志位信息不是第一预设值,则确定在开机过程中未完成所述Kernel 阶段;若存在所述第一预设标志位信息且所述第一预设标志位信息为第一预设值,则确定在开机过程中成功完成所述Kernel阶段。其中,所述第一预设标志位信息用于指示是否成功完成Kernel阶段,所述第一预设值用于指示成功完成Kernel阶段,在监测到成功完成Kernel阶段时,设置第一预设标志位信息,并将该第一预设标志位信息设置为第一预设值,用户可以自行设置第一预设值,例如1或者TRUE。In the embodiment of the present application, the Kernel stage may be monitored using the Kernel timer. Specifically: if the second startup stage is successfully completed during the boot process, the watchdog timer clear operation is performed, and the watchdog timer resets the preset Set a time (for example, 20 seconds) to kick the dog (this watchdog timer can be used to monitor other programs), and start the Kernel timer, the Kernel timer is set with a timeout period (for example, 8 minutes), if in the Kernel stage It is detected that the Kernel timer times out (for example, after 8 minutes), and then it is detected whether the first preset flag bit information is present, and if the first preset flag bit information is not present, it is determined that the process is not completed during the boot process Kernel stage, and write a third preset flag in the storage device; or if the first preset flag bit information is present and the first preset flag bit information is not the first preset value, it is determined that The Kernel stage is not completed during the boot process; if the first preset flag bit information is present and the first preset flag bit information is the first preset value, it is determined that the Kernel stage is successfully completed during the boot process . The first preset flag bit information is used to indicate whether the Kernel stage is successfully completed, the first preset value is used to indicate the Kernel stage is successfully completed, and when the Kernel stage is successfully completed, the first preset flag is set Bit information, and set the first preset flag bit information to a first preset value, and the user can set the first preset value by himself, for example, 1 or TRUE.
在本申请实施例中,Android阶段可以采用Kernel定时器进行监测,具体的:如果在开机过程中成功完成Kernel阶段,则开始执行Android阶段,并继续使用Kernel定时器,若在Android阶段监测到所述Kernel定时器超时,则检测是否存在第二预设标志位信息。Android阶段也可以在执行Android阶段时,启动一个Service,用于监测Android阶段的开机过程,该Service设置有睡眠时间(例如5分钟),在睡眠该时间之后,唤醒Service,检测是否存在第二预设标志位信息。其中,所述第二预设标志位信息可以为sys.boot_completed标志,用于指示是否成功完成Android阶段。所述第二预设值用于指示成功完成Android阶段,在监测到成功完成Android阶段时,设置第二预设标志位信息,并将该第二预设标志位信息设置为第二预设值,用户可以自行设置第二预设值,例如1或者TRUE。In the embodiment of the present application, the Kernel timer can be used for monitoring in the Android stage. Specifically: if the Kernel stage is successfully completed during the startup process, the Android stage is started, and the Kernel timer is continued to be used. When the Kernel timer times out, it is detected whether there is second preset flag bit information. The Android stage can also start a Service during the execution of the Android stage to monitor the startup process of the Android stage. The Service is set with a sleep time (for example, 5 minutes). After the sleep time, the Service is woken up to detect whether there is a second Set the flag bit information. Wherein, the second preset flag bit information may be a sys.boot_completed flag, which is used to indicate whether the Android stage is successfully completed. The second preset value is used to indicate the successful completion of the Android stage, and when the successful completion of the Android stage is detected, the second preset flag bit information is set, and the second preset flag bit information is set to the second preset value , The user can set the second preset value, such as 1 or TRUE.
可选的,在所述存储装置中写入与该开机阶段对应的预设标识时,本申请实施例还包括:Optionally, when a preset identifier corresponding to the startup stage is written in the storage device, the embodiment of the present application further includes:
记录当前的现场日志,并将所述现场日志发送至预设服务器。Record the current on-site log and send the on-site log to a preset server.
在本申请实施例中,在监测到未完成的开机阶段时,可以在移动终端重启之前在存储装置中写入与该开机阶段(即监测到的未完成的开机阶段)对应的预设标识,以标明哪个阶段开机未完成,并同时记录当前的现场日志,将该现场日志存储至存储装置,在移动终端成功开机之后,将该现场日志回传至预设服务器,便于研发人员通过查看该现场日志,分析开机阶段未完成的原因,从而进行修复。其中,所述预设服务器可以是指移动终端运营商的服务器。当前的现场日志可以是指移动终端在当前时刻的环境信息,例如未完成的开机阶段在当前时刻的一些标识信息、移动终端的状态信息等,这些信息能够分析开机阶段未完成的原因。In the embodiment of the present application, when an unfinished startup phase is detected, a preset identifier corresponding to the startup phase (ie, the monitored uncompleted startup phase) may be written in the storage device before the mobile terminal restarts, In order to indicate which stage has not been completed, and record the current on-site log at the same time, store the on-site log to the storage device, after the mobile terminal is successfully turned on, return the on-site log to the preset server, which is convenient for R&D personnel to view the site Logs to analyze the reasons for the incomplete stage of the power-on phase to repair it. Wherein, the preset server may refer to a server of a mobile terminal operator. The current on-site log may refer to the environment information of the mobile terminal at the current moment, for example, some identification information at the current moment of the unfinished start-up phase, state information of the mobile terminal, etc. These information can analyze the cause of the uncompleted start-up phase.
步骤S202,检测所述存储装置中是否存在预设标识。Step S202: Detect whether a preset identifier exists in the storage device.
在本申请实施例中,该步骤与步骤101相同或相似,具体可参见步骤101的相关描述,在此不再赘述。In the embodiment of the present application, this step is the same as or similar to step 101. For details, refer to the related description of step 101, and details are not described herein again.
步骤S203,若所述存储装置中存在所述预设标识,则获取与所述预设标识对应的开机阶段。Step S203, if the preset identifier exists in the storage device, obtain a start-up phase corresponding to the preset identifier.
在本申请实施例中,该步骤与步骤102相同或相似,具体可参见步骤102的相关描述, 在此不再赘述。In the embodiment of the present application, this step is the same as or similar to step 102. For details, refer to the related description of step 102, and details are not described herein again.
步骤S204,确定在开机过程中未完成与所述预设标识对应的开机阶段。In step S204, it is determined that the startup phase corresponding to the preset identifier is not completed during the startup process.
在本申请实施例中,该步骤与步骤103相同或相似,具体可参见步骤103的相关描述,在此不再赘述。In the embodiment of the present application, this step is the same as or similar to step 103. For details, refer to the related description of step 103, and details are not described herein again.
本申请实施例为每个开机阶段设置一个表征开机未完成的预设标识,并将该预设标识写入存储装置,检测存储装置中是否存在预设标识,若存在预设标识,则可以确定未完成与预设标识对应的开机阶段,从而根据预设标识快速、准确地查找到开机未完成的阶段。In the embodiment of the present application, a preset logo indicating that the startup is not completed is set for each startup stage, and the preset logo is written into the storage device to detect whether the preset logo exists in the storage device. If there is a preset logo, it can be determined The startup phase corresponding to the preset logo is not completed, so that the uncompleted startup phase is quickly and accurately found according to the preset logo.
实施例3Example 3
参见图3,是本申请实施例三提供的一种开机检测装置,上述开机检测装置可集成于移动终端中,为了便于说明,仅示出了与本申请实施例相关的部分。Referring to FIG. 3, it is a power-on detection device provided in Embodiment 3 of the present application. The above power-on detection device may be integrated into a mobile terminal. For ease of description, only parts related to the embodiment of the present application are shown.
所述开机检测装置包括:The boot detection device includes:
标识检测模块31,用于检测存储装置中是否存在预设标识;The identification detection module 31 is used to detect whether a preset identification exists in the storage device;
阶段获取模块32,用于若所述存储装置中存在所述预设标识,则获取与所述预设标识对应的开机阶段;The stage obtaining module 32 is configured to obtain a start-up stage corresponding to the preset identifier if the preset identifier exists in the storage device;
阶段确定模块33,用于确定在开机过程中未完成与所述预设标识对应的开机阶段。The stage determination module 33 is configured to determine that the start-up stage corresponding to the preset identifier is not completed during the start-up process.
可选的,所述开机阶段包括第一启动阶段、第二启动阶段、内核Kernel阶段和安卓Android阶段。Optionally, the startup stage includes a first startup stage, a second startup stage, a kernel kernel stage and an Android stage.
可选的,所述第一启动阶段为可扩展启动加载程序XBL阶段或者预加载程序Preloader阶段。Optionally, the first startup stage is an extensible bootloader XBL stage or a preloader stage.
可选的,所述第二启动阶段为统一可扩展固件接口UEFI阶段和小内核LK阶段。Optionally, the second startup stage is a unified extensible firmware interface UEFI stage and a small kernel LK stage.
可选的,所述开机检测装置还包括:Optionally, the startup detection device further includes:
开机监测模块34,用于在开机过程中监测各个开机阶段,若监测到未完成任一开机阶段,则在所述存储装置中写入与该开机阶段对应的预设标识。The power-on monitoring module 34 is used to monitor each power-on phase during the power-on process. If any power-on phase is not completed, a preset identifier corresponding to the power-on phase is written in the storage device.
可选的,所述开机监测模块34包括:Optionally, the startup monitoring module 34 includes:
第一启动单元,用于启动看门狗定时器;The first starting unit is used to start the watchdog timer;
第一确定单元,用于若在第一启动阶段监测到所述看门狗定时器超时,则确定在开机过程中未完成所述第一启动阶段,并在所述存储装置中写入第一预设标识;The first determining unit is configured to determine that the first start-up phase is not completed during the start-up process if the watchdog timer times out during the first start-up phase, and write the first in the storage device Preset logo
第二确定单元,用于若在第二启动阶段监测到所述看门狗定时器超时,则确定在开机过程中未完成所述第二启动阶段,并在所述存储装置中写入第二预设标识;The second determining unit is configured to, if the watchdog timer times out during the second startup phase, determine that the second startup phase has not been completed during the boot process, and write the second in the storage device Preset logo
第二启动单元,用于启动Kernel定时器;The second start unit is used to start the Kernel timer;
第一检测单元,用于若在Kernel阶段监测到所述Kernel定时器超时,则检测是否存在第一预设标志位信息;A first detection unit, configured to detect whether the first preset flag bit information is present if the Kernel timer is detected to expire during the Kernel stage;
第三确定单元,用于若不存在所述第一预设标志位信息,或者存在所述第一预设标志位信息且所述第一预设标志位信息不是第一预设值,则确定在开机过程中未完成所述Kernel阶段,并在所述存储装置中写入第三预设标识;The third determining unit is configured to determine if the first preset flag bit information does not exist, or if the first preset flag bit information exists and the first preset flag bit information is not the first preset value The Kernel stage is not completed during the boot process, and a third preset logo is written in the storage device;
第二检测单元,用于若在Android阶段监测到所述Kernel定时器超时,则检测是否存在第二预设标志位信息;或者在Android阶段启动一个服务Service,在唤醒所述Service之后,检测是否存在第二预设标志位信息;The second detection unit is configured to detect whether the second preset flag bit information is present if the Kernel timer is detected to expire in the Android stage; or to start a service Service in the Android stage and detect whether the service wakes up after the Service There is second preset flag bit information;
第四确定单元,用于若不存在所述第二预设标志位信息,或者存在所述第二预设标志位信息且所述第二预设标志位信息不是第二预设值,则确定在开机过程中未完成所述Android阶段,并在所述存储装置中写入第四预设标识。The fourth determining unit is configured to determine if the second preset flag bit information does not exist, or if the second preset flag bit information exists and the second preset flag bit information is not the second preset value The Android stage is not completed during the boot process, and a fourth preset logo is written in the storage device.
可选的,所述开机监测模块34还用于:Optionally, the boot monitoring module 34 is also used to:
记录当前的现场日志,并将所述现场日志发送至预设服务器。Record the current on-site log and send the on-site log to a preset server.
可选的,所述存储装置为嵌入式多媒体存储卡eMMC或者通用闪存存储UFS。Optionally, the storage device is an embedded multimedia memory card eMMC or a universal flash storage UFS.
本申请实施例提供的开机检测装置可以应用在前述方法实施例一和实施例二中,详情参见上述方法实施例一和实施例二的描述,在此不再赘述。The boot detection device provided by the embodiment of the present application may be applied to the foregoing method embodiments 1 and 2, for details, refer to the descriptions of the above method embodiments 1 and 2, which will not be repeated here.
实施例4Example 4
图4是本申请实施例四提供的移动终端的示意图。如图所示的该移动终端可以包括:一个或多个处理器401(图中仅示出一个);一个或多个输入设备402(图中仅示出一个),一个或多个输出设备403(图中仅示出一个)和存储器404。上述处理器401、输入设备402、输出设备403和存储器404通过总线405连接。存储器404用于存储指令,处理器401用于执行存储器404存储的指令。其中:4 is a schematic diagram of a mobile terminal provided in Embodiment 4 of the present application. As shown in the figure, the mobile terminal may include: one or more processors 401 (only one shown in the figure); one or more input devices 402 (only one shown in the figure), and one or more output devices 403 (Only one is shown in the figure) and the memory 404. The processor 401, the input device 402, the output device 403, and the memory 404 are connected via a bus 405. The memory 404 is used to store instructions, and the processor 401 is used to execute the instructions stored in the memory 404. among them:
所述处理器401,用于检测存储装置中是否存在预设标识;若所述存储装置中存在所述预设标识,则获取与所述预设标识对应的开机阶段;确定在开机过程中未完成与所述预设标识对应的开机阶段。The processor 401 is configured to detect whether a preset identifier exists in the storage device; if the preset identifier exists in the storage device, acquire a start-up phase corresponding to the preset identifier; determine that no Complete the start-up phase corresponding to the preset identification.
可选的,所述开机阶段包括第一启动阶段、第二启动阶段、内核Kernel阶段和安卓Android阶段。Optionally, the startup stage includes a first startup stage, a second startup stage, a kernel kernel stage and an Android stage.
可选的,所述第一启动阶段为可扩展启动加载程序XBL阶段或者预加载程序Preloader阶段。Optionally, the first startup stage is an extensible bootloader XBL stage or a preloader stage.
可选的,所述第二启动阶段为统一可扩展固件接口UEFI阶段和小内核LK阶段。Optionally, the second startup stage is a unified extensible firmware interface UEFI stage and a small kernel LK stage.
可选的,所述处理器401还用于:Optionally, the processor 401 is also used to:
监测开机过程中的开机阶段,若监测到开机过程中未完成任一开机阶段,则在所述存储装置中写入与所述开机阶段对应的预设标识。Monitoring the startup phase during the startup process, and if it is detected that any startup phase is not completed during the startup process, a preset identifier corresponding to the startup phase is written in the storage device.
可选的,所述处理器401具体用于:Optionally, the processor 401 is specifically used to:
启动看门狗定时器;Start the watchdog timer;
若在第一启动阶段监测到所述看门狗定时器超时,则确定在开机过程中未完成所述第一启动阶段,并在所述存储装置中写入第一预设标识;If it is detected that the watchdog timer times out during the first start-up phase, it is determined that the first start-up phase has not been completed during the boot process, and a first preset flag is written in the storage device;
若在第二启动阶段监测到所述看门狗定时器超时,则确定在开机过程中未完成所述第二启动阶段,并在所述存储装置中写入第二预设标识。If it is detected that the watchdog timer times out during the second startup phase, it is determined that the second startup phase has not been completed during the startup process, and a second preset flag is written in the storage device.
可选的,所述处理器401具体用于:Optionally, the processor 401 is specifically used to:
启动Kernel定时器;Start the Kernel timer;
若在Kernel阶段监测到所述Kernel定时器超时,则检测是否存在第一预设标志位信息;If it is detected that the Kernel timer expires during the Kernel stage, it is detected whether the first preset flag bit information exists;
若不存在所述第一预设标志位信息,或者存在所述第一预设标志位信息且所述第一预设标志位信息不是第一预设值,则确定在开机过程中未完成所述Kernel阶段,并在所述存储装置中写入第三预设标识;If the first preset flag bit information does not exist, or the first preset flag bit information exists and the first preset flag bit information is not the first preset value, it is determined that the Describe the Kernel stage, and write a third preset identifier in the storage device;
若在Android阶段监测到所述Kernel定时器超时,则检测是否存在第二预设标志位信息;或者在Android阶段启动一个服务Service,在唤醒所述Service之后,检测是否存在第二预设标志位信息;If it is detected that the Kernel timer times out in the Android stage, it detects whether there is second preset flag bit information; or in the Android stage, a service Service is started, and after waking up the Service, it is detected whether there is a second preset flag bit information;
若不存在所述第二预设标志位信息,或者存在所述第二预设标志位信息且所述第二预设标志位信息不是第二预设值,则确定在开机过程中未完成所述Android阶段,并在所述存储装置中写入第四预设标识。If the second preset flag bit information does not exist, or the second preset flag bit information exists and the second preset flag bit information is not the second preset value, it is determined that the Describe the Android stage, and write a fourth preset identifier in the storage device.
可选的,所述处理器401还用于:Optionally, the processor 401 is also used to:
记录当前的现场日志,并将所述现场日志发送至预设服务器。Record the current on-site log and send the on-site log to a preset server.
可选的,所述存储装置为嵌入式多媒体存储卡eMMC或者通用闪存存储UFS。Optionally, the storage device is an embedded multimedia memory card eMMC or a universal flash storage UFS.
应当理解,在本申请实施例中,所述处理器401可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiment of the present application, the processor 401 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP) , Application Specific Integrated Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
输入设备402可以包括触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风、数据接收接口等。输出设备403可以包括显示器(LCD等)、 扬声器、数据发送接口等。The input device 402 may include a touchpad, a fingerprint sensor (for collecting user fingerprint information and fingerprint direction information), a microphone, and a data receiving interface. The output device 403 may include a display (LCD, etc.), a speaker, a data transmission interface, and the like.
该存储器404可以包括只读存储器和随机存取存储器,并向处理器401提供指令和数据。存储器404的一部分还可以包括非易失性随机存取存储器。例如,存储器404还可以存储设备类型的信息。The memory 404 may include a read-only memory and a random access memory, and provide instructions and data to the processor 401. A portion of the memory 404 may also include non-volatile random access memory. For example, the memory 404 may also store device type information.
具体实现中,本申请实施例中所描述的处理器401、输入设备402、输出设备403和存储器404可执行本申请实施例提供的开机检测方法的实施例中所描述的实现方式,也可执行实施例三所述开机检测装置中所描述的实现方式,在此不再赘述。In a specific implementation, the processor 401, the input device 402, the output device 403, and the memory 404 described in the embodiments of the present application can execute the implementation described in the embodiment of the boot detection method provided by the embodiments of the present application, and can also be executed The implementation described in the boot detection device in Embodiment 3 will not be repeated here.
实施例5Example 5
图5是本申请实施例五提供的移动终端的示意图。如图5所示,该实施例的移动终端5包括:处理器50、存储器51以及存储在所述存储器51中并可在所述处理器50上运行的计算机程序52。所述处理器50执行所述计算机程序52时实现上述各个信息处理方法实施例中的步骤,例如图1所示的步骤S101至S103。或者,所述处理器50执行所述计算机程序52时实现上述各装置实施例中各模块/单元的功能,例如图3所示模块31至34的功能。5 is a schematic diagram of a mobile terminal provided in Embodiment 5 of the present application. As shown in FIG. 5, the mobile terminal 5 of this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50. When the processor 50 executes the computer program 52, the steps in the above embodiments of each information processing method are implemented, for example, steps S101 to S103 shown in FIG. 1. Alternatively, when the processor 50 executes the computer program 52, the functions of each module/unit in the foregoing device embodiments are realized, for example, the functions of the modules 31 to 34 shown in FIG. 3.
示例性的,所述计算机程序52可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器51中,并由所述处理器50执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序52在所述移动终端5中的执行过程。例如,所述计算机程序52可以被分割成标识检测模块、阶段获取模块、阶段确定模块以及开机监测模块,各模块具体功能如下:Exemplarily, the computer program 52 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 51 and executed by the processor 50 to complete This application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions. The instruction segments are used to describe the execution process of the computer program 52 in the mobile terminal 5. For example, the computer program 52 may be divided into an identification detection module, a stage acquisition module, a stage determination module, and a start-up monitoring module. The specific functions of each module are as follows:
标识检测模块,用于检测存储装置中是否存在预设标识;The identification detection module is used to detect whether a preset identification exists in the storage device;
阶段获取模块,用于若所述存储装置中存在所述预设标识,则获取与所述预设标识对应的开机阶段;A stage obtaining module, configured to obtain a start-up stage corresponding to the preset identifier if the preset identifier exists in the storage device;
阶段确定模块,用于确定在开机过程中未完成与所述预设标识对应的开机阶段。The stage determination module is used to determine that the start-up stage corresponding to the preset identifier is not completed during the start-up process.
可选的,所述开机阶段包括第一启动阶段、第二启动阶段、内核Kernel阶段和安卓Android阶段。Optionally, the startup stage includes a first startup stage, a second startup stage, a kernel kernel stage and an Android stage.
可选的,所述第一启动阶段为可扩展启动加载程序XBL阶段或者预加载程序Preloader阶段。Optionally, the first startup stage is an extensible bootloader XBL stage or a preloader stage.
可选的,所述第二启动阶段为统一可扩展固件接口UEFI阶段和小内核LK阶段。Optionally, the second startup stage is a unified extensible firmware interface UEFI stage and a small kernel LK stage.
可选的,开机监测模块,用于在开机过程中监测各个开机阶段,若监测到未完成 任一开机阶段,则在所述存储装置中写入与该开机阶段对应的预设标识。Optionally, the startup monitoring module is used to monitor each startup stage during the startup process, and if any startup stage is not completed, write a preset identifier corresponding to the startup stage in the storage device.
可选的,所述开机监测模块包括:Optionally, the startup monitoring module includes:
第一启动单元,用于启动看门狗定时器;The first starting unit is used to start the watchdog timer;
第一确定单元,用于若在第一启动阶段监测到所述看门狗定时器超时,则确定在开机过程中未完成所述第一启动阶段,并在所述存储装置中写入第一预设标识;The first determining unit is configured to determine that the first start-up phase is not completed during the start-up process if the watchdog timer times out during the first start-up phase, and write the first in the storage device Preset logo
第二确定单元,用于若在第二启动阶段监测到所述看门狗定时器超时,则确定在开机过程中未完成所述第二启动阶段,并在所述存储装置中写入第二预设标识;The second determining unit is configured to, if the watchdog timer times out during the second startup phase, determine that the second startup phase has not been completed during the boot process, and write the second in the storage device Preset logo
第二启动单元,用于启动Kernel定时器;The second start unit is used to start the Kernel timer;
第一检测单元,用于若在Kernel阶段监测到所述Kernel定时器超时,则检测是否存在第一预设标志位信息;A first detection unit, configured to detect whether the first preset flag bit information is present if the Kernel timer is detected to expire during the Kernel stage;
第三确定单元,用于若不存在所述第一预设标志位信息,或者存在所述第一预设标志位信息且所述第一预设标志位信息不是第一预设值,则确定在开机过程中未完成所述Kernel阶段,并在所述存储装置中写入第三预设标识;The third determining unit is configured to determine if the first preset flag bit information does not exist, or if the first preset flag bit information exists and the first preset flag bit information is not the first preset value The Kernel stage is not completed during the boot process, and a third preset logo is written in the storage device;
第二检测单元,用于若在Android阶段监测到所述Kernel定时器超时,则检测是否存在第二预设标志位信息;或者在Android阶段启动一个服务Service,在唤醒所述Service之后,检测是否存在第二预设标志位信息;The second detection unit is configured to detect whether the second preset flag bit information is present if the Kernel timer is detected to expire in the Android stage; or to start a service Service in the Android stage and detect whether the service wakes up after the Service There is second preset flag bit information;
第四确定单元,用于若不存在所述第二预设标志位信息,或者存在所述第二预设标志位信息且所述第二预设标志位信息不是第二预设值,则确定在开机过程中未完成所述Android阶段,并在所述存储装置中写入第四预设标识。The fourth determining unit is configured to determine if the second preset flag bit information does not exist, or if the second preset flag bit information exists and the second preset flag bit information is not the second preset value The Android stage is not completed during the boot process, and a fourth preset logo is written in the storage device.
可选的,所述开机监测模块还用于:Optionally, the startup monitoring module is also used for:
记录当前的现场日志,并将所述现场日志发送至预设服务器。Record the current on-site log and send the on-site log to a preset server.
可选的,所述存储装置为嵌入式多媒体存储卡eMMC或者通用闪存存储UFS。Optionally, the storage device is an embedded multimedia memory card eMMC or a universal flash storage UFS.
所述移动终端5可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述移动终端可包括,但不仅限于,处理器50、存储器51。本领域技术人员可以理解,图5仅仅是移动终端5的示例,并不构成对移动终端5的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述移动终端还可以包括输入输出设备、网络接入设备、总线等。The mobile terminal 5 may be a computing device such as a desktop computer, a notebook, a palmtop computer and a cloud server. The mobile terminal may include, but is not limited to, the processor 50 and the memory 51. Those skilled in the art may understand that FIG. 5 is only an example of the mobile terminal 5 and does not constitute a limitation on the mobile terminal 5, and may include more or fewer components than those illustrated, or a combination of certain components, or different components. For example, the mobile terminal may further include input and output devices, network access devices, buses, and the like.
所称处理器50可以是中央处理单元CPU,还可以是其他通用处理器、数字信号处理器DSP、专用集成电路ASIC、现成可编程门阵列FPGA或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 50 may be a central processing unit CPU or other general-purpose processors, digital signal processors DSP, application specific integrated circuits ASIC, ready-made programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices , Discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
所述存储器51可以是所述移动终端5的内部存储单元,例如移动终端5的硬盘或 内存。所述存储器51也可以是所述移动终端5的外部存储设备,例如所述移动终端5上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器51还可以既包括所述移动终端5的内部存储单元也包括外部存储设备。所述存储器51用于存储所述计算机程序以及所述移动终端所需的其他程序和数据。所述存储器51还可以用于暂时地存储已经输出或者将要输出的数据。The memory 51 may be an internal storage unit of the mobile terminal 5, such as a hard disk or a memory of the mobile terminal 5. The memory 51 may also be an external storage device of the mobile terminal 5, such as a plug-in hard disk equipped on the mobile terminal 5, a smart memory card (Smart) Media (SMC), and a secure digital (SD) Cards, flash cards, etc. Further, the memory 51 may also include both an internal storage unit of the mobile terminal 5 and an external storage device. The memory 51 is used to store the computer program and other programs and data required by the mobile terminal. The memory 51 can also be used to temporarily store data that has been or will be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the above-mentioned division of each functional unit and module is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated by different functional units, Module completion means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit may use hardware It can also be implemented in the form of software functional units. In addition, the specific names of each functional unit and module are only for the purpose of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not detailed or recorded in an embodiment, you can refer to the related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art may realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/移动终端可以通过其它的方式实现。例如,以上所描述的装置/移动终端实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device/mobile terminal may be implemented in other ways. For example, the device/mobile terminal embodiments described above are only schematic. For example, the division of the module or unit is only a logical function division, and in actual implementation, there may be another division manner, such as multiple units Or components can be combined or integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例 方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or software functional unit.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the present application can implement all or part of the processes in the methods of the above embodiments, and can also be completed by a computer program instructing relevant hardware. The computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, the steps of the foregoing method embodiments may be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (Read-Only Memory, ROM) , Random Access Memory (Random Access Memory, RAM), electrical carrier signals, telecommunications signals and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in jurisdictions. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media Does not include electrical carrier signals and telecommunications signals.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still implement the foregoing The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application. Within the scope of protection of this application.

Claims (20)

  1. 一种开机检测方法,其特征在于,所述开机检测方法包括:A startup detection method, characterized in that the startup detection method includes:
    检测存储装置中是否存在预设标识;Detect whether there is a preset mark in the storage device;
    若所述存储装置中存在所述预设标识,则获取与所述预设标识对应的开机阶段;If the preset identifier exists in the storage device, obtain a start-up phase corresponding to the preset identifier;
    确定在开机过程中未完成与所述预设标识对应的开机阶段。It is determined that the startup phase corresponding to the preset identification is not completed during the startup process.
  2. 如权利要求1所述的开机检测方法,其特征在于,所述开机阶段包括第一启动阶段、第二启动阶段、内核Kernel阶段和安卓Android阶段。The boot detection method according to claim 1, wherein the boot phase includes a first boot phase, a second boot phase, a kernel Kernel phase, and an Android Android phase.
  3. 如权利要求2所述的开机检测方法,其特征在于,所述第一启动阶段为可扩展启动加载程序XBL阶段或者预加载程序Preloader阶段。The boot detection method according to claim 2, wherein the first startup stage is an extensible startup loader XBL stage or a preloader stage.
  4. 如权利要求2所述的开机检测方法,其特征在于,所述第二启动阶段为统一可扩展固件接口UEFI阶段和小内核LK阶段。The boot detection method according to claim 2, wherein the second startup stage is a unified extensible firmware interface UEFI stage and a small kernel LK stage.
  5. 如权利要求2所述的开机检测方法,其特征在于,在检测存储装置中是否存在预设标识之前,还包括:The boot detection method according to claim 2, wherein before detecting whether the preset identifier exists in the storage device, the method further comprises:
    在开机过程中监测各个开机阶段,若监测到未完成任一开机阶段,则在所述存储装置中写入与该开机阶段对应的预设标识。During the startup process, each startup stage is monitored, and if it is detected that any startup stage is not completed, a preset identifier corresponding to the startup stage is written in the storage device.
  6. 如权利要求5所述的开机检测方法,其特征在于,所述在开机过程中监测各个开机阶段,若监测到未完成任一开机阶段,则在所述存储装置中写入与该开机阶段对应的预设标识包括:The boot detection method according to claim 5, wherein each boot phase is monitored during the boot process, and if it is detected that any boot phase is not completed, the storage device is written to correspond to the boot phase The preset logos include:
    启动看门狗定时器;Start the watchdog timer;
    若在第一启动阶段监测到所述看门狗定时器超时,则确定在开机过程中未完成所述第一启动阶段,并在所述存储装置中写入第一预设标识;If it is detected that the watchdog timer times out during the first start-up phase, it is determined that the first start-up phase has not been completed during the boot process, and a first preset flag is written in the storage device;
    若在第二启动阶段监测到所述看门狗定时器超时,则确定在开机过程中未完成所述第二启动阶段,并在所述存储装置中写入第二预设标识。If it is detected that the watchdog timer times out during the second startup phase, it is determined that the second startup phase has not been completed during the startup process, and a second preset flag is written in the storage device.
  7. 如权利要求5所述的开机检测方法,其特征在于,所述在开机过程中监测各个开机阶段,若监测到未完成任一开机阶段,则在所述存储装置中写入与该开机阶段对应的预设标识包括:The boot detection method according to claim 5, wherein each boot phase is monitored during the boot process, and if it is detected that any boot phase is not completed, the storage device is written to correspond to the boot phase The preset logos include:
    启动Kernel定时器;Start the Kernel timer;
    若在Kernel阶段监测到所述Kernel定时器超时,则检测是否存在第一预设标志位信息;If it is detected that the Kernel timer expires during the Kernel stage, it is detected whether the first preset flag bit information exists;
    若不存在所述第一预设标志位信息,或者存在所述第一预设标志位信息且所述第一预设标志位信息不是第一预设值,则确定在开机过程中未完成所述Kernel阶段,并 在所述存储装置中写入第三预设标识;If the first preset flag bit information does not exist, or the first preset flag bit information exists and the first preset flag bit information is not the first preset value, it is determined that the Describe the Kernel stage, and write a third preset identifier in the storage device;
    若在Android阶段监测到所述Kernel定时器超时,则检测是否存在第二预设标志位信息;或者在Android阶段启动一个服务Service,在唤醒所述Service之后,检测是否存在第二预设标志位信息;If it is detected that the Kernel timer times out in the Android stage, it detects whether there is second preset flag bit information; or in the Android stage, a service Service is started, and after waking up the Service, it is detected whether there is a second preset flag bit information;
    若不存在所述第二预设标志位信息,或者存在所述第二预设标志位信息且所述第二预设标志位信息不是第二预设值,则确定在开机过程中未完成所述Android阶段,并在所述存储装置中写入第四预设标识。If the second preset flag bit information does not exist, or the second preset flag bit information exists and the second preset flag bit information is not the second preset value, it is determined that the Describe the Android stage, and write a fourth preset identifier in the storage device.
  8. 如权利要求5所述的开机检测方法,其特征在于,在所述存储装置中写入与该开机阶段对应的预设标识时,还包括:The boot detection method according to claim 5, wherein when writing a preset logo corresponding to the boot phase in the storage device, the method further comprises:
    记录当前的现场日志,并将所述现场日志发送至预设服务器。Record the current on-site log and send the on-site log to a preset server.
  9. 如权利要求1至8任一项所述的开机检测方法,其特征在于,所述存储装置为嵌入式多媒体存储卡eMMC或者通用闪存存储UFS。The boot detection method according to any one of claims 1 to 8, wherein the storage device is an embedded multimedia memory card eMMC or a universal flash memory UFS.
  10. 一种开机检测装置,其特征在于,所述开机检测装置包括:A startup detection device, characterized in that the startup detection device includes:
    标识检测模块,用于检测存储装置中是否存在预设标识;The identification detection module is used to detect whether a preset identification exists in the storage device;
    阶段获取模块,用于若所述存储装置中存在所述预设标识,则获取与所述预设标识对应的开机阶段;A stage obtaining module, configured to obtain a start-up stage corresponding to the preset identifier if the preset identifier exists in the storage device;
    阶段确定模块,用于确定在开机过程中未完成与所述预设标识对应的开机阶段。The stage determination module is used to determine that the start-up stage corresponding to the preset identifier is not completed during the start-up process.
  11. 一种移动终端,其特征在于,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如下步骤:A mobile terminal, characterized in that it includes a memory, a processor, and a computer program stored in the memory and runable on the processor, wherein the processor is implemented as follows when executing the computer program step:
    检测存储装置中是否存在预设标识;Detect whether there is a preset mark in the storage device;
    若所述存储装置中存在所述预设标识,则获取与所述预设标识对应的开机阶段;If the preset identifier exists in the storage device, obtain a start-up phase corresponding to the preset identifier;
    确定在开机过程中未完成与所述预设标识对应的开机阶段。It is determined that the startup phase corresponding to the preset identification is not completed during the startup process.
  12. 如权利要求11所述的移动终端,其特征在于,所述开机阶段包括第一启动阶段、第二启动阶段、内核Kernel阶段和安卓Android阶段。The mobile terminal according to claim 11, wherein the power-on phase includes a first startup phase, a second startup phase, a kernel Kernel phase, and an Android Android phase.
  13. 如权利要求12所述的移动终端,其特征在于,所述第一启动阶段为可扩展启动加载程序XBL阶段或者预加载程序Preloader阶段。The mobile terminal of claim 12, wherein the first startup stage is an extensible bootloader XBL stage or a preloader stage.
  14. 如权利要求12所述的移动终端,其特征在于,所述第二启动阶段为统一可扩展固件接口UEFI阶段和小内核LK阶段。The mobile terminal of claim 12, wherein the second startup stage is a unified extensible firmware interface UEFI stage and a small kernel LK stage.
  15. 如权利要求12所述的移动终端,其特征在于,所述处理器执行所述计算机程序时还实现以下步骤:The mobile terminal of claim 12, wherein the processor further implements the following steps when executing the computer program:
    监测开机过程中的开机阶段,若监测到开机过程中未完成任一开机阶段,则在所 述存储装置中写入与所述开机阶段对应的预设标识。Monitoring the startup phase during the startup process, if it is detected that any startup phase is not completed during the startup process, a preset identifier corresponding to the startup phase is written in the storage device.
  16. 如权利要求15所述的移动终端,其特征在于,所述处理器执行所述计算机程序时具体实现以下步骤:The mobile terminal of claim 15, wherein the processor specifically implements the following steps when executing the computer program:
    启动看门狗定时器;Start the watchdog timer;
    若在第一启动阶段监测到所述看门狗定时器超时,则确定在开机过程中未完成所述第一启动阶段,并在所述存储装置中写入第一预设标识;If it is detected that the watchdog timer times out during the first start-up phase, it is determined that the first start-up phase has not been completed during the boot process, and a first preset flag is written in the storage device;
    若在第二启动阶段监测到所述看门狗定时器超时,则确定在开机过程中未完成所述第二启动阶段,并在所述存储装置中写入第二预设标识。If it is detected that the watchdog timer times out during the second startup phase, it is determined that the second startup phase has not been completed during the startup process, and a second preset flag is written in the storage device.
  17. 如权利要求15所述的移动终端,其特征在于,其特征在于,所述处理器执行所述计算机程序时具体实现以下步骤:The mobile terminal of claim 15, wherein the processor specifically implements the following steps when executing the computer program:
    启动Kernel定时器;Start the Kernel timer;
    若在Kernel阶段监测到所述Kernel定时器超时,则检测是否存在第一预设标志位信息;If it is detected that the Kernel timer expires during the Kernel stage, it is detected whether the first preset flag bit information exists;
    若不存在所述第一预设标志位信息,或者存在所述第一预设标志位信息且所述第一预设标志位信息不是第一预设值,则确定在开机过程中未完成所述Kernel阶段,并在所述存储装置中写入第三预设标识;If the first preset flag bit information does not exist, or the first preset flag bit information exists and the first preset flag bit information is not the first preset value, it is determined that the Describe the Kernel stage, and write a third preset identifier in the storage device;
    若在Android阶段监测到所述Kernel定时器超时,则检测是否存在第二预设标志位信息;或者在Android阶段启动一个服务Service,在唤醒所述Service之后,检测是否存在第二预设标志位信息;If it is detected that the Kernel timer times out in the Android stage, it detects whether there is second preset flag bit information; or in the Android stage, a service Service is started, and after waking up the Service, it is detected whether there is a second preset flag bit information;
    若不存在所述第二预设标志位信息,或者存在所述第二预设标志位信息且所述第二预设标志位信息不是第二预设值,则确定在开机过程中未完成所述Android阶段,并在所述存储装置中写入第四预设标识。If the second preset flag bit information does not exist, or the second preset flag bit information exists and the second preset flag bit information is not the second preset value, it is determined that the Describe the Android stage, and write a fourth preset identifier in the storage device.
  18. 如权利要求15所述的移动终端,其特征在于,所述处理器执行所述计算机程序时还实现以下步骤:The mobile terminal of claim 15, wherein the processor further implements the following steps when executing the computer program:
    记录当前的现场日志,并将所述现场日志发送至预设服务器。Record the current on-site log and send the on-site log to a preset server.
  19. 如权利要求11至18任一项所述的移动终端,其特征在于,所述存储装置为嵌入式多媒体存储卡eMMC或者通用闪存存储UFS。The mobile terminal according to any one of claims 11 to 18, wherein the storage device is an embedded multimedia memory card eMMC or a universal flash memory UFS.
  20. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至9任一项所述开机检测方法的步骤。A computer-readable storage medium storing a computer program, characterized in that when the computer program is executed by a processor, the steps of the power-on detection method according to any one of claims 1 to 9 are implemented .
PCT/CN2018/119377 2018-12-05 2018-12-05 Power on self test method, power on self test device and mobile terminal WO2020113469A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/119377 WO2020113469A1 (en) 2018-12-05 2018-12-05 Power on self test method, power on self test device and mobile terminal
CN201880098763.0A CN112912855A (en) 2018-12-05 2018-12-05 Starting-up detection method, starting-up detection device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/119377 WO2020113469A1 (en) 2018-12-05 2018-12-05 Power on self test method, power on self test device and mobile terminal

Publications (1)

Publication Number Publication Date
WO2020113469A1 true WO2020113469A1 (en) 2020-06-11

Family

ID=70974451

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/119377 WO2020113469A1 (en) 2018-12-05 2018-12-05 Power on self test method, power on self test device and mobile terminal

Country Status (2)

Country Link
CN (1) CN112912855A (en)
WO (1) WO2020113469A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237378B (en) * 2022-02-24 2022-07-12 荣耀终端有限公司 Electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130132776A1 (en) * 2011-11-21 2013-05-23 Huawei Technologies Co., Ltd. Method for outputting power-on self test information, virtual machine manager, and processor
CN103761124A (en) * 2014-01-06 2014-04-30 武汉烽火富华电气有限责任公司 Method for starting embedded-type Linux system used for protection measuring and controlling device
CN103905603A (en) * 2012-12-21 2014-07-02 上海晨兴希姆通电子科技有限公司 Mobile phone powering-on method and mobile phone powering-on system
CN107145413A (en) * 2017-04-21 2017-09-08 深圳市同泰怡信息技术有限公司 A kind of firmware development method of the server B MC Post runnings detection based on BMC
CN107704380A (en) * 2017-07-26 2018-02-16 深圳天珑无线科技有限公司 Mobile terminal adjustment method, device and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166561B (en) * 2014-07-25 2017-11-07 深圳市大迈科技有限公司 Electronic apparatus system starts method and electronic equipment
CN106021006B (en) * 2016-05-17 2019-03-26 Oppo广东移动通信有限公司 A kind of processing method and terminal that terminal booting is abnormal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130132776A1 (en) * 2011-11-21 2013-05-23 Huawei Technologies Co., Ltd. Method for outputting power-on self test information, virtual machine manager, and processor
CN103905603A (en) * 2012-12-21 2014-07-02 上海晨兴希姆通电子科技有限公司 Mobile phone powering-on method and mobile phone powering-on system
CN103761124A (en) * 2014-01-06 2014-04-30 武汉烽火富华电气有限责任公司 Method for starting embedded-type Linux system used for protection measuring and controlling device
CN107145413A (en) * 2017-04-21 2017-09-08 深圳市同泰怡信息技术有限公司 A kind of firmware development method of the server B MC Post runnings detection based on BMC
CN107704380A (en) * 2017-07-26 2018-02-16 深圳天珑无线科技有限公司 Mobile terminal adjustment method, device and storage medium

Also Published As

Publication number Publication date
CN112912855A (en) 2021-06-04

Similar Documents

Publication Publication Date Title
US8914653B2 (en) Method and system for providing hybrid-shutdown and fast startup processes
US10866623B2 (en) Information handling system and method to detect and recover from no power/no post failures
US8863109B2 (en) Updating secure pre-boot firmware in a computing system in real-time
CN107608693B (en) Version upgrading method and terminal equipment
US20150186161A1 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
CN104185836A (en) Method and system for verifying proper operation of computing device after system change
US20160314002A1 (en) Caching unified extensible firmware interface (uefi) and/or other firmware instructions in a non-volatile memory of an information handling system (ihs)
CN103970560A (en) Starting method and electronic device
TW201416853A (en) Method and system for cloud testing and remote monitoring of integrated circuit device in validation of computerized system
CN111581154B (en) Electronic device and method for managing a database
US20130268744A1 (en) Method for detecting hardware
WO2020015203A1 (en) System recovery method and device
CN113703799A (en) Computing device and BIOS updating method and medium thereof
CN107135462A (en) The Bluetooth pairing methods and its computing system of UEFI firmwares
TWI515557B (en) Computer system and control method
US10115375B2 (en) Systems and methods for enabling a systems management interface with an alternate frame buffer
US20140365758A1 (en) Techniques for booting an information processing system
TWI310157B (en) Method for changing booting source of a computer system and related backuping/restoring method thereof
US11429723B2 (en) Multi-domain boot and runtime status code drift detection
WO2020113469A1 (en) Power on self test method, power on self test device and mobile terminal
US11467849B2 (en) Systems and methods for collecting deep operating system (OS) telemetry
TW202131170A (en) Firmware corruption recovery
US20070162735A1 (en) Control chip for a computer boot procedure and related method
CN109104481B (en) File integrity detection method, file integrity detection device and terminal equipment
CN108520063B (en) Event log processing method and device and terminal equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18942600

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19.10.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18942600

Country of ref document: EP

Kind code of ref document: A1