CN115469935A - Starting method of intelligent terminal and related equipment - Google Patents

Starting method of intelligent terminal and related equipment Download PDF

Info

Publication number
CN115469935A
CN115469935A CN202110655620.9A CN202110655620A CN115469935A CN 115469935 A CN115469935 A CN 115469935A CN 202110655620 A CN202110655620 A CN 202110655620A CN 115469935 A CN115469935 A CN 115469935A
Authority
CN
China
Prior art keywords
kernel
system snapshot
smart terminal
snapshot
startup
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110655620.9A
Other languages
Chinese (zh)
Inventor
张小田
刘伟
黄记
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110655620.9A priority Critical patent/CN115469935A/en
Publication of CN115469935A publication Critical patent/CN115469935A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a starting method of an intelligent terminal and related equipment, wherein the method comprises the following steps: starting up and powering up for the first time; starting a boot loader, and determining the boot loader to be started for the first time according to a boot starting parameter in the boot loader; starting Kernel; and starting a Framework, wherein the Framework confirms that the intelligent terminal is started for the first time, and the Framework sends an instruction to Kernel to trigger the Kernel to make a system snapshot. According to the method and the system, the system snapshot is made in the process of starting the terminal for the first time, so that the intelligent terminal can be started according to the system snapshot when being started next time. In addition, because the system snapshot is made in the first starting process of the intelligent terminal, the system snapshot is made to serve as a process of starting the intelligent terminal, so that the system snapshot is made successfully.

Description

智能终端的启动方法及相关设备Starting method of intelligent terminal and related equipment

技术领域technical field

本申请涉及智能终端技术领域,尤其涉及一种智能终端的启动方法及相关设备。The present application relates to the technical field of smart terminals, and in particular, to a method for starting a smart terminal and related equipment.

背景技术Background technique

随着智能手机、车载导航等智能终端的快速发展,智能操作系统如Android/IOS平台越来越多的应用于这些产品,但由于智能操作系统的业务复杂度较高,使得智能终端的开机启动时间较长,影响用户体验。With the rapid development of smart terminals such as smart phones and car navigation, more and more smart operating systems such as Android/IOS platforms are used in these products. However, due to the high business complexity of smart operating systems, the startup of smart terminals A long time will affect the user experience.

为了提升智能终端的开机启动速度,现有技术中存在两种解决方案,方案一为STD(Suspend to Disk,休眠至硬盘),智能终端将当前系统状态保存到硬盘后关机;当智能终端开机后不再重新加载操作系统,直接从硬盘恢复原来的状态;方案二STR(Suspend toRAM,休眠至内存),智能终端将系统状态保存在内存中,而不是硬盘。STR状态下电源只向内存和芯片组供电,其他部件都处于关机状态;而在智能终端下次开机时,可以在根据内存中保存的资料迅速地恢复到关机前的状态。上述两种方案STD和STR均需在智能终端关机前实施系统状态的保存,即只能应用于带电池的设备上,用户在执行智能终端的关机时,智能终端必须具有足够的时间及电源来完成STR或STD过程。但是对于无电池的设备,如智能电视等设备,用户直接断电时,智能终端无法完成STR或STD系统状态的保存,进而无法使用上述方案实现。In order to improve the boot speed of the smart terminal, there are two solutions in the prior art. The first is STD (Suspend to Disk, sleep to the hard disk). The smart terminal saves the current system state to the hard disk and then shuts down; when the smart terminal is turned on, The operating system is no longer reloaded, and the original state is directly restored from the hard disk; in the second solution, STR (Suspend to RAM, sleep to memory), the smart terminal saves the system state in the memory instead of the hard disk. In the STR state, the power supply only supplies power to the memory and the chipset, and other components are in the off state; when the smart terminal is turned on next time, it can be quickly restored to the state before the shutdown according to the data stored in the memory. The above two schemes, STD and STR, need to save the system state before the smart terminal is shut down, that is, it can only be applied to devices with batteries. When the user shuts down the smart terminal, the smart terminal must have enough time and power to Complete the STR or STD course. However, for devices without batteries, such as smart TVs and other devices, when the user directly cuts off the power, the smart terminal cannot complete the storage of the STR or STD system state, and thus cannot be implemented using the above solution.

发明内容Contents of the invention

本申请实施例公开了一种智能终端的启动方法及相关设备,能够在终端首次开启过程制作系统快照,以防止智能终端在使用过程中断电导致系统快照制作失败。The embodiment of the present application discloses a start-up method of a smart terminal and related equipment, which can make a system snapshot when the terminal is turned on for the first time, so as to prevent the failure of making a system snapshot due to a power failure during the use of the smart terminal.

本申请第一方面公开了一种智能终端的启动方法,所述智能终端具有智能系统,所述方法包括:The first aspect of the present application discloses a method for starting an intelligent terminal, the intelligent terminal has an intelligent system, and the method includes:

首次开机上电;Power on for the first time;

启动引导加载程序,依据所述引导加载程序中的启动引导参数确定为首次启动;Start the bootloader, which is determined as the first startup according to the startup boot parameters in the bootloader;

启动Kernel;Start Kernel;

启动Framework,所述Framework确认所述智能终端为首次启动,所述Framework向Kernel发送指令,以触发Kernel制作系统快照。Start the Framework, the Framework confirms that the smart terminal is started for the first time, and the Framework sends an instruction to the Kernel to trigger the Kernel to make a system snapshot.

如此,智能终端首次开机启动时,通过Framework向Kernel发送指令,以使Kernel制作系统快照,以使智能终端在下次启动时可依据该系统快照实现启动。另由于系统快照在智能终端首次开机过程中制作,使制作快照作为智能终端开机启动的一个流程,以保证系统快照成功制作。进一步地,只需要在首次开机启动后制作系统快照,减少系统快照制作的次数,减少对Flash器件寿命的影响。In this way, when the smart terminal starts up for the first time, an instruction is sent to the Kernel through the Framework, so that the Kernel makes a system snapshot, so that the smart terminal can be started according to the system snapshot when it is started next time. In addition, since the system snapshot is made during the first boot process of the smart terminal, making the snapshot is taken as a process of starting the smart terminal to ensure that the system snapshot is successfully made. Further, it is only necessary to make a system snapshot after the first startup, reducing the number of system snapshots and reducing the impact on the life of the Flash device.

在第一方面的某些实现方式中,所述方法还包括:In some implementations of the first aspect, the method further includes:

二次开机上电;Power on the second time;

启动引导加载程序,依据所述引导加载程序的启动引导参数确定为非首次启动;所述引导加载程序依据所述非首次启动将所述启动引导参数传递至所述Kernel;Start the boot loader, and determine that it is not the first startup according to the startup boot parameters of the boot loader; the boot loader passes the startup boot parameters to the Kernel according to the non-first startup;

启动Kernel,所述Kernel依据所述启动引导参数加载所述系统快照,以依据所述系统快照恢复系统数据。Start the Kernel, and the Kernel loads the system snapshot according to the boot parameters, so as to restore system data according to the system snapshot.

如此,当智能终端非首次启动时,引导加载程序依据启动引导参数确定为非首次启动并将该启动引导参数传递至Kernel,以使Kernel依据启动引导参数加载系统快照,并依据系统快照恢复内核生成快照时的状态,以提升智能终端的开机速度。In this way, when the smart terminal is not started for the first time, the boot loader determines that it is not the first boot according to the boot parameters and passes the boot parameters to the Kernel, so that the Kernel loads the system snapshot according to the boot parameters, and restores the kernel generation according to the system snapshot The status at the time of the snapshot to improve the boot speed of the smart terminal.

在第一方面的某些实现方式中,所述Kernel制作系统快照之后,所述方法还包括:In some implementation manners of the first aspect, after the Kernel makes a system snapshot, the method further includes:

确定所述系统快照制作成功;Determining that the system snapshot is successfully made;

依据所述系统快照制作成功调整所述启动引导参数。The boot parameters are adjusted successfully according to the system snapshot.

如此,通过调整启动引导参数,使智能终端在非首次启动时可依据启动引导参数加载述系统快照,以实现智能终端的快速启动。In this way, by adjusting the boot parameters, the smart terminal can load the system snapshot according to the boot parameters when it is not starting for the first time, so as to realize the quick boot of the smart terminal.

在第一方面的某些实现方式中,所述Kernel制作系统快照之后,所述方法还包括:In some implementation manners of the first aspect, after the Kernel makes a system snapshot, the method further includes:

所述Kernel制作所述系统快照的校验值。The Kernel makes a check value of the system snapshot.

所述Kernel依据所述启动引导参数加载所述系统快照之前,所述方法还包括:Before the Kernel loads the system snapshot according to the boot parameters, the method also includes:

所述Kernel校验所述校验值,以确定所述系统快照的完整性。The Kernel verifies the verification value to determine the integrity of the system snapshot.

如此,通过设置校验值并在加载系统快照之前检验校验值,以保证系统快照的完整性。In this way, the integrity of the system snapshot is guaranteed by setting the checksum value and verifying the checksum value before loading the system snapshot.

在第一方面的某些实现方式中,所述方法还包括:In some implementations of the first aspect, the method further includes:

所述Framework从用户数据文件加载并恢复用户数据。The Framework loads and restores user data from a user data file.

如此,通过二次恢复实现智能终端的系统数据和用户数据的恢复,实现系统数据和用户数据相互独立执行恢复。In this way, the recovery of the system data and the user data of the smart terminal is realized through the secondary recovery, and the system data and the user data are recovered independently of each other.

在第一方面的某些实现方式中,所述方法还包括:In some implementations of the first aspect, the method further includes:

所述首次启动包括升级重启、恢复出厂设置后重启和出厂状态下开机。The first startup includes upgrading and restarting, restarting after restoring factory settings, and starting up in the factory state.

在第一方面的某些实现方式中,所述Kernel具有第一监测模块,所述第一监测模块用于在所述系统快照制作完成后触发所述智能终端重启,所述Kernel制作系统快照之后,所述方法还包括:In some implementation manners of the first aspect, the Kernel has a first monitoring module, and the first monitoring module is used to trigger the restart of the smart terminal after the system snapshot is made, and after the Kernel makes the system snapshot , the method also includes:

所述Kernel关闭所述第一监测模块。The Kernel closes the first monitoring module.

如此,在系统快照制作之前,Kernel关闭第一监测模块,以使智能终端首次开机过程中系统快照制作完成后智能终端不重启且可继续运行。In this way, before the system snapshot is made, the Kernel closes the first monitoring module, so that the smart terminal can continue to run without restarting after the system snapshot is made during the first boot process of the smart terminal.

在第一方面的某些实现方式中,所述依据系统快照恢复系统数据之后,所述方法还包括:In some implementation manners of the first aspect, after restoring system data according to the system snapshot, the method further includes:

所述Kernel关闭所述第二监测模块。The Kernel closes the second monitoring module.

在第一方面的某些实现方式中,所述Kernel的服务包括必要服务和非必要服务,所述Kernel制作系统快照之前,所述方法还包括:In some implementation manners of the first aspect, the services of the Kernel include necessary services and non-essential services, and before the Kernel makes a system snapshot, the method further includes:

所述Framework关闭所述非必要服务,以使所述Kernel制作所述必要服务的系统快照。The Framework closes the non-essential service, so that the Kernel makes a system snapshot of the necessary service.

如此,通过关闭非必要服务,以减少Kernel制作的系统快照中服务的数量,进而减少系统快照所占用的存储空间,同时提升系统快照的制作时间。In this way, by closing non-essential services, the number of services in the system snapshot made by the Kernel is reduced, thereby reducing the storage space occupied by the system snapshot and increasing the time for making the system snapshot.

本发明第二方面公开了一种计算机可读存储介质,包括计算机指令,当计算机指令在智能终端上运行时,使得智能终端执行如第一方面的方法。The second aspect of the present invention discloses a computer-readable storage medium, including computer instructions. When the computer instructions are run on the smart terminal, the smart terminal is made to execute the method of the first aspect.

本申请第三方面公开了一种智能终端,智能终端包括处理器和存储器,存储器用于存储指令,处理器用于调用存储器中的指令,使得智能终端执行如第一方面的方法。The third aspect of the present application discloses a smart terminal, the smart terminal includes a processor and a memory, the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the smart terminal executes the method as in the first aspect.

本申请第四方面公开了一种芯片系统,该芯片系统应用于智能终端;芯片系统包括接口电路和处理器;接口电路和处理器通过线路互联;接口电路用于从智能终端的存储器接收信号,并向处理器发送信号,信号包括存储器中存储的计算机指令;当处理器执行该计算机指令时,芯片系统执行如第一方面的方法。The fourth aspect of the present application discloses a chip system, which is applied to a smart terminal; the chip system includes an interface circuit and a processor; the interface circuit and the processor are interconnected through a line; the interface circuit is used to receive signals from the memory of the smart terminal, And send a signal to the processor, the signal includes a computer instruction stored in the memory; when the processor executes the computer instruction, the chip system executes the method according to the first aspect.

应当理解地,上述提供的第二方面的计算机可读存储介质、第三方面的智能终端、第四方面的芯片系统与上述第一方面的方法对应,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。It should be understood that the computer-readable storage medium of the second aspect, the smart terminal of the third aspect, and the chip system of the fourth aspect provided above correspond to the method of the first aspect above. Therefore, the beneficial effects that can be achieved can refer to The beneficial effects of the corresponding method provided above will not be repeated here.

附图说明Description of drawings

图1是本申请实施例公开的首次启动方法的流程图。Fig. 1 is a flow chart of the first startup method disclosed in the embodiment of the present application.

图2是本申请实施例公开的非首次启动方法的流程图。Fig. 2 is a flow chart of a non-initial startup method disclosed in an embodiment of the present application.

图3是本申请实施例公开的智能终端启动的场景示意图。Fig. 3 is a schematic diagram of a scenario in which a smart terminal is started according to an embodiment of the present application.

图4是本申请实施例公开的智能终端启动的逻辑示意图。Fig. 4 is a logical schematic diagram of the startup of the smart terminal disclosed in the embodiment of the present application.

图5是本申请实施例公开的智能终端首次开机启动的过程示意图。Fig. 5 is a schematic diagram of the process of starting the smart terminal for the first time disclosed in the embodiment of the present application.

图6是本申请实施例公开的智能终端非首次开机启动的过程示意图。FIG. 6 is a schematic diagram of a non-first-time startup process of a smart terminal disclosed in an embodiment of the present application.

图7是本申请实施例公开的智能终端的结构示意图。FIG. 7 is a schematic structural diagram of a smart terminal disclosed in an embodiment of the present application.

具体实施方式detailed description

为了更好地理解本申请实施例公开的智能终端的启动方法及相关设备,下面首先对本申请智能终端的启动方法的应用场景进行描述。In order to better understand the method for starting a smart terminal disclosed in the embodiments of the present application and related devices, the application scenarios of the method for starting a smart terminal of the present application are firstly described below.

本申请实施例提供的启动方法,适用于无电池的智能终端中,例如各种智能家居设备,如无电池的智能电视、智能冰箱等,由于该智能终端未配置电池,关机之后智能设备迅速断电,关机过程的智能终端没有足够的时间和电量完成系统数据或用户数据的快照的制作,因此无法应用现有的启动方案。本申请提供的启动方案在智能终端首次开机过程中即实现了系统快照的制作,后续每次开机均使用该快照进行启动,即保证系统快照的成功制作,又可提升无电池的智能终端的非首次开机启动速度;The startup method provided by the embodiment of the present application is suitable for smart terminals without batteries, such as various smart home devices, such as smart TVs and smart refrigerators without batteries. The smart terminal in the shutdown process does not have enough time and power to complete the snapshot of system data or user data, so the existing startup scheme cannot be applied. The start-up solution provided by this application realizes the production of a system snapshot during the first boot process of the smart terminal, and uses the snapshot to start each subsequent boot, which not only ensures the successful creation of the system snapshot, but also improves the non-stop performance of smart terminals without batteries. First boot speed;

进一步地,智能终端仅在首次开机时进行系统快照的制作,后续每次开机均使用该快照进行启动,减少系统快照制作的次数,减少对智能终端的Flash器件寿命的影响,减少系统快照的制作对智能终端存储寿命的影响。Further, the smart terminal only makes a system snapshot when it is turned on for the first time, and uses the snapshot to start each subsequent boot, reducing the number of system snapshots, reducing the impact on the life of the Flash device of the smart terminal, and reducing the production of system snapshots. The impact on the storage life of smart terminals.

可以理解,本申请的智能终端均设置有操作系统,其中操作系统可为安卓系统、鸿蒙系统,当然,还可为其他操作系统。It can be understood that the smart terminals of the present application are all provided with an operating system, wherein the operating system can be an Android system, a Hongmeng system, and of course, other operating systems.

为了便于理解,本申请首先介绍具有安卓系统的智能终端的启动过程,该启动过程包括两个阶段,第一个阶段是上电、加载BootLoader(引导加载程序)引导、启动Kernel、加载Driver(设备驱动)等;第二个阶段是Android的启动,即内核空间进入用户空间后,第一个运行init程序,该程序启动android的native(本地)服务,包括Servicemanager(服务管理器)和Zygote(孵化器)进程。Framework作为native(本地)服务加载的多个服务中的一种。For ease of understanding, this application first introduces the startup process of an intelligent terminal with an Android system. This startup process includes two stages. Driver), etc.; the second stage is the startup of Android, that is, after the kernel space enters the user space, the init program is the first to run, which starts the native (local) service of android, including Servicemanager (service manager) and Zygote (incubator )process. Framework is one of multiple services loaded as a native (local) service.

本申请后续为了便于理解,将智能终端的启动过程简化为与本申请解决的技术问题相关的三部分:引导加载程序、Kernel启动和Framework启动,易于理解,终端启动的过程并不限于以上三部分,还包括其他的步骤。In order to facilitate understanding, this application simplifies the startup process of the smart terminal into three parts related to the technical problems solved by this application: boot loader, Kernel startup and Framework startup. It is easy to understand, and the terminal startup process is not limited to the above three parts. , including other steps.

请参阅图1,图1为本申请一个实施例提供的智能终端的启动方法的流程示意图。根据不同的需求,所述流程图中步骤的顺序可以改变,某些步骤可以省略。为了便于说明,仅示出了与本申请实施例相关的部分。Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a method for starting a smart terminal provided by an embodiment of the present application. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted. For ease of description, only the parts related to the embodiment of the present application are shown.

所述启动方法包括以下步骤。The starting method includes the following steps.

步骤S1、首次开机上电。Step S1, power on for the first time.

本实施例中,智能终端未设置电池,因此只有接通外接电源之后才可以工作,且智能终端在关机模式下,由于该智能终端未设置有电池,智能终端不能提供待机功耗。In this embodiment, the smart terminal is not equipped with a battery, so it can only work after being connected to an external power supply, and the smart terminal is in shutdown mode, since the smart terminal is not equipped with a battery, the smart terminal cannot provide standby power consumption.

其中首次开机启动即智能终端在升级重启、恢复出厂设置后重启和出厂状态下开机之后首次上电开机。其中升级重启为智能终端的操作系统升级版本之后的重启。Among them, the first power-on is the first power-on and start-up of the smart terminal after the upgrade and restart, the restart after restoring the factory settings, and the power-on in the factory state. The upgrading and restarting refers to restarting after the operating system of the smart terminal is upgraded.

步骤S2、启动引导加载程序,依据所述引导加载程序中启动引导参数确定智能终端为首次启动。Step S2, start the boot loader, and determine that the smart terminal is started for the first time according to the boot parameters in the boot loader.

其中,Kernel仅在制作完成系统快照之后修改启动引导参数,因此,若启动引导参数未被修改,则引导加载程序可依据启动引导参数确定智能终端为首次启动,智能终端的硬盘中没有制作的系统快照,智能终端按照正常模式进行启动;若启动引导参数被修改,则引导加载程序可依据启动引导参数确定智能终端为非首次启动,智能终端的硬盘中具有制作的系统快照,智能终端按照STD(Suspend to Disk,休眠至硬盘)模式进行启动。Among them, the Kernel only modifies the boot parameters after the system snapshot is made. Therefore, if the boot parameters have not been modified, the boot loader can determine that the smart terminal is the first boot based on the boot parameters. There is no created system in the hard disk of the smart terminal. Snapshot, the smart terminal starts in the normal mode; if the boot parameters are modified, the bootloader can determine that the smart terminal is not the first boot based on the boot parameters, the hard disk of the smart terminal has a system snapshot made, and the smart terminal follows the STD ( Suspend to Disk, hibernation to hard disk) mode to start.

步骤S3、启动Kernel。Step S3, start the Kernel.

具体地,智能终端的Kernel开始启动,初始化各种软硬件环境,加载驱动程序,挂载根文件系统,并执行init程序。Specifically, the Kernel of the smart terminal starts, initializes various hardware and software environments, loads drivers, mounts the root file system, and executes the init program.

步骤S4、启动Framework,所述Framework确认所述智能终端为首次启动,所述Framework向Kernel发送指令,以触发Kernel制作系统快照。Step S4, start the Framework, the Framework confirms that the smart terminal is started for the first time, and the Framework sends an instruction to the Kernel to trigger the Kernel to make a system snapshot.

其中,快照又称还原点,制作系统快照就是保存在拍快照时候的系统的状态,以便智能终端在后续启动过程中可利用开快照启动,以恢复拍快照时的系统的状态,由于本申请的实施例中,快照仅为系统快照,仅保存系统数据,因此可以依据内快快照恢复系统数据。Among them, a snapshot is also called a restore point. Making a system snapshot is to save the state of the system when the snapshot is taken, so that the smart terminal can use the snapshot to start in the subsequent startup process to restore the state of the system when the snapshot was taken. Due to the In the embodiment, the snapshot is only a system snapshot and only saves system data, so the system data can be restored according to the internal snapshot.

具体地,由于快照制作时间在智能终端首次启动过程中,且仅由Kernel制作系统快照,因此本次快照仅包括操作系统的系统数据,不包括用户数据。Specifically, since the snapshot is made during the first startup process of the smart terminal, and only the Kernel makes a system snapshot, this snapshot only includes system data of the operating system and does not include user data.

步骤S5、启动其他服务模块。Step S5, start other service modules.

可以理解,在Kernel制作完成系统快照之后,Framework加载其他服务,以使智能终端正常启动。It can be understood that after the Kernel completes the system snapshot, the Framework loads other services to enable the smart terminal to start normally.

如此,智能终端首次开机启动时,通过Framework向Kernel发送指令,以使Kernel制作系统快照,以使智能终端在下次启动时可依据该系统快照实现启动。另由于系统快照在智能终端首次开机过程中制作,使制作快照作为智能终端开机启动的一个流程,以保证系统快照成功制作。进一步地,只需要在首次开机启动后制作系统快照,减少系统快照制作的次数,减少对Flash器件寿命的影响。In this way, when the smart terminal starts up for the first time, an instruction is sent to the Kernel through the Framework, so that the Kernel makes a system snapshot, so that the smart terminal can be started according to the system snapshot when it is started next time. In addition, since the system snapshot is made during the first boot process of the smart terminal, making the snapshot is taken as a process of starting the smart terminal to ensure that the system snapshot is successfully made. Further, it is only necessary to make a system snapshot after the first startup, reducing the number of system snapshots and reducing the impact on the life of the Flash device.

在一实施例中,智能终端为无电池电子设备,智能终端在开机启动过程中实现系统快照的制作,防止智能终端在用户使用过程中突然拔电关机,导致系统快照制作失败,进而影响下次智能终端的快速启动。In one embodiment, the smart terminal is a battery-free electronic device, and the smart terminal realizes the production of system snapshots during the startup process, preventing the smart terminal from being suddenly unplugged and shut down during the user's use, resulting in failure to make system snapshots, which in turn affects the next time. Quick start of smart terminals.

在一实施例中,请参见图2,为本申请另一实施例中方法示意图。所述方法包括以下步骤:In an embodiment, please refer to FIG. 2 , which is a schematic diagram of a method in another embodiment of the present application. The method comprises the steps of:

步骤S11、二次开机上电。Step S11, power on the second time.

其中,二次开机上电为智能终端非首次开机启动。可以理解,二次开机上电不限定智能终端第二次开机启动、第三次开机启动,只要智能终端不是首次开机启动,则均可称为二次开机上电。Wherein, the second power-on refers to the non-first power-on of the smart terminal. It can be understood that the second power-on is not limited to the second power-on and the third power-on of the smart terminal, as long as the smart terminal is not the first power-on, it can be called the second power-on.

步骤S12、启动引导加载程序,依据所述转载程序的启动引导参数确定为非首次启动;所述引导加载程序依据所述非首次启动将所述启动引导参数传递至所述Kernel。Step S12: Start the boot loader, which is determined to be a non-first boot according to the boot parameters of the reprinted program; the boot loader transfers the boot boot parameters to the Kernel according to the non-first boot.

在一实施例中,启动引导参数包括系统快照存储的地址,以使Kernel依据该地址加载系统快照。In one embodiment, the boot parameter includes the address of the system snapshot storage, so that the Kernel loads the system snapshot according to the address.

在一实施例中,引导加载程序可通过判断启动引导参数中是否包含地址信息或启动引导参数中的地址信息是否有效,以确定该智能终端是否为首次启动,例如若引导加载程序中包含启动引导参数且启动引导参数中的地址信息为有效地址信息,则判断该智能终端为非首次启动。In one embodiment, the boot loader can determine whether the smart terminal is started for the first time by judging whether the boot parameter contains address information or whether the address information in the boot parameter is valid, for example, if the boot loader includes a boot boot parameter parameter and the address information in the startup boot parameter is valid address information, then it is judged that the smart terminal is not started for the first time.

步骤S13、启动Kernel,所述Kernel依据所述启动引导参数加载所述系统快照,以依据所述系统快照恢复所述Kernel。Step S13, start the Kernel, the Kernel loads the system snapshot according to the boot parameters, so as to restore the Kernel according to the system snapshot.

具体地,当智能终端非首次启动时,引导加载程序依据启动引导参数确定为非首次启动并将该启动引导参数传递至Kernel,以使Kernel依据启动引导参数加载系统快照,并依据系统快照恢复内核生成快照时的状态,以提升智能终端的开机速度。Specifically, when the smart terminal is not started for the first time, the boot loader determines that it is not the first start according to the boot parameters and passes the boot parameters to the Kernel, so that the Kernel loads the system snapshot according to the boot parameters, and restores the kernel according to the system snapshot The status when the snapshot is generated to improve the boot speed of the smart terminal.

另一实施例中,所述方法还包括:In another embodiment, the method also includes:

步骤S14、启动Framework,以使Framework加载用户数据。Step S14, start the Framework, so that the Framework loads user data.

在一实施例中,用户数据保存于userdata区,Framework启动完成,Framework通过加载userdata区保存的用户数据,以实现用户数据的恢复。In one embodiment, the user data is stored in the userdata area, and the Framework is started, and the Framework loads the user data stored in the userdata area to restore the user data.

如此,通过制作的系统快照实现系统数据的恢复,通过加载本地文件保存的用户数据以实现用户数据的恢复,通过系统数据和用户数据二次恢复完成,以简化实现流程。In this way, the recovery of system data is realized through the created system snapshot, the recovery of user data is realized by loading the user data saved in local files, and the recovery of system data and user data is completed through the secondary recovery to simplify the implementation process.

请参见图3,图3为本申请提供的无电池的智能终端掉电关机后启动的示意图。Please refer to FIG. 3 . FIG. 3 is a schematic diagram of a smart terminal without a battery provided by the present application starting after power-off and shutdown.

图3中的Bootrom模块和uboot模块均为引导加载程序,launcher为操作系统中的桌面启动器,launcher启动之后才可实现用户的操作,FWK为Framework的简写。Both the Bootrom module and the uboot module in Figure 3 are boot loaders, the launcher is the desktop launcher in the operating system, and the user's operations can only be realized after the launcher is started, and FWK is the abbreviation of Framework.

其中图3示意了两种场景,其中一个场景为智能终端在恢复出厂设置、升级系统版本或出厂状态下首次开机,其中首次开机场景下,启动引导加载程序,包括Bootrom模块和uboot模块;引导加载程序依据启动引导参数确定智能终端为首次开机启动,依次启动Kernel、native模块及Framework,通过Framework向Kernel发送指令,以使Kernel制作系统快照,然后启动launcher,以便可实现用户操作,进而完成非首次启动。Figure 3 shows two scenarios. One of the scenarios is that the smart terminal is turned on for the first time after restoring factory settings, upgrading the system version or leaving the factory. In the first startup scenario, the bootloader is started, including the Bootrom module and the uboot module; the bootloader The program determines that the smart terminal is the first startup based on the startup parameters, starts the Kernel, native module and Framework in turn, sends instructions to the Kernel through the Framework, so that the Kernel can make a system snapshot, and then starts the launcher, so that user operations can be realized, and then the non-first time can be completed. start up.

另一个场景为非首次开机,由于非首次开机的智能终端的硬盘中已经存储有系统快照,因此,智能终端上电,启动引导加载程序,包括Bootrom模块和uboot模块;引导加载程序依据启动引导参数确定智能终端为非首次开机启动,并将启动引导参数传递至Kernel,启动Kernel,Kernel依据启动引导参数加载系统快照,以恢复制作系统快照时的内核,恢复完成之后,启动launcher,以便可实现用户操作,进而完成非首次启动。Another scenario is that it is not the first boot. Since the hard disk of the smart terminal that is not the first boot has already stored a system snapshot, the smart terminal is powered on and starts the bootloader, including the Bootrom module and the uboot module; the bootloader is based on the boot parameter Determine that the smart terminal is not booting for the first time, and pass the boot parameters to the Kernel, start the Kernel, and the Kernel loads the system snapshot according to the boot parameters to restore the kernel when the system snapshot was made. After the recovery is complete, start the launcher so that the user can operation, and then complete the non-initial startup.

请参见图4,图4为智能终端启动的逻辑示意图,其中智能终端启动包括上电开机和重启开机,其中重启开机包括异常自动重启、用户软重启、升级重启及恢复出厂重启,其中异常自动重启和用户软重启场景下,智能终端按照正常启动流程开机;升级重启及恢复出厂重启场景下,智能终端在正常启动过程中执行系统快照的制作。上电开机包括出厂状态开机和非出厂状态下开机,在出厂状态下开机的场景下,智能终端依据图1中步骤S1~步骤S5的方法执行开机启动,在非出厂状态下开机的场景下,智能终端依据图2中步骤S11~步骤S14的方法执行开机启动。Please refer to Figure 4. Figure 4 is a logical schematic diagram of the startup of the smart terminal. The startup of the smart terminal includes power-on and restart, and restart includes abnormal automatic restart, user soft restart, upgrade restart and factory reset restart. In the scenario of user soft restart, the smart terminal starts up according to the normal startup process; in the scenario of upgrade restart and factory reset restart, the smart terminal performs system snapshot creation during the normal startup process. Power-on and booting include booting in the factory state and booting in a non-factory state. In the scene of booting in the factory state, the smart terminal performs the booting according to the method of step S1 to step S5 in Figure 1. In the scene of booting in a non-factory state, The smart terminal executes booting according to the method of step S11 to step S14 in FIG. 2 .

在一实施例中,步骤S4之后,所述方法还包括:In one embodiment, after step S4, the method further includes:

所述Kernel制作系统快照的校验值。The Kernel makes a check value of the system snapshot.

如此,通过Kernel制作系统快照的校验值以保证系统快照的完整性。In this way, the verification value of the system snapshot is made through the Kernel to ensure the integrity of the system snapshot.

例如,校验值可为内核的签名文件、MD5值等。For example, the verification value may be a signature file of the kernel, an MD5 value, and the like.

在一实施例中,加载所述系统快照之前,所述方法还包括:In one embodiment, before loading the system snapshot, the method further includes:

所述Kernel校验所述校验值,以确定所述系统快照的完整性。The Kernel verifies the verification value to determine the integrity of the system snapshot.

例如,若校验值为MD5值,则Kernel通过计算系统快照的MD5值与校验值是否匹配,若相匹配,则判断系统快照为完整的,若不匹配,则判断系统快照为不完整的,即硬盘中存储的系统快照可能损坏或缺失。可以理解,在其他实施例,可通过其他校验算法确定系统快照的完整性。For example, if the verification value is an MD5 value, the Kernel calculates whether the MD5 value of the system snapshot matches the verification value. If they match, the system snapshot is judged to be complete. If not, the system snapshot is judged to be incomplete. , that is, the system snapshot stored in the hard disk may be damaged or missing. It can be understood that in other embodiments, other verification algorithms may be used to determine the integrity of the system snapshot.

在一实施例中,Kernel具有第一监测模块,所述第一监测模块用于在所述系统快照制作完成后触发所述智能终端重启,所述Kernel制作系统快照之后,所述方法还包括:In one embodiment, the Kernel has a first monitoring module, the first monitoring module is used to trigger the restart of the smart terminal after the system snapshot is made, and after the Kernel makes the system snapshot, the method further includes:

所述Kernel关闭第一监测模块,以防止所述Kernel制作系统快照后智能终端发生重启。The Kernel closes the first monitoring module to prevent the smart terminal from restarting after the Kernel makes a system snapshot.

在一实施例中,第一监测模块为看门狗,看门狗用于监测系统快照的制作,制作完成后看门狗触发智能终端重启。在系统快照制作之前,Kernel关闭看门狗,以使智能终端首次开机过程中系统快照制作完成后智能终端不重启且可继续运行。In an embodiment, the first monitoring module is a watchdog, and the watchdog is used to monitor the production of the system snapshot, and the watchdog triggers the restart of the smart terminal after the production is completed. Before the system snapshot is taken, the Kernel turns off the watchdog, so that the smart terminal can continue to run without restarting after the system snapshot is taken during the first boot process of the smart terminal.

在一实施例中,Kernel具有第二监测模块,所述第二监测模块用于在所述Kernel依据系统快照恢复系统数据触发系统快照的删除。In an embodiment, the Kernel has a second monitoring module, and the second monitoring module is configured to trigger deletion of the system snapshot when the Kernel restores system data according to the system snapshot.

所述依据系统快照恢复系统数据之后,所述方法还包括:After restoring the system data according to the system snapshot, the method further includes:

所述Kernel关闭所述第二监测模块。The Kernel closes the second monitoring module.

如此,通过依据系统快照恢复系统数据之后,Kernel关闭所述第二监测模块,以防止系统快照的删除,使已生成的系统快照可被多次使用,以减少系统快照的制作次数。In this way, after the system data is restored according to the system snapshot, the Kernel closes the second monitoring module to prevent the deletion of the system snapshot, so that the generated system snapshot can be used multiple times, so as to reduce the number of times of making system snapshots.

其中,第二监测模块可为看门狗或其他检测器。Wherein, the second monitoring module can be a watchdog or other detectors.

在一实施例中,所述Kernel的服务包括必要服务和非必要服务,其中非必要服务为与智能终端开机启动不相关的服务,例如,WiFi和蓝牙服务;其中必要服务为包含系统数据且与智能终端开机启动相关联的服务。In one embodiment, the services of the Kernel include necessary services and non-essential services, wherein non-essential services are services that are not related to the startup of the smart terminal, for example, WiFi and Bluetooth services; wherein the necessary services include system data and are related to The smart terminal starts up the associated service.

所述Kernel制作系统快照之前,所述方法还包括:Before the Kernel makes a system snapshot, the method also includes:

所述Framework关闭所述非必要服务,以使Kernel制作所述必要服务的系统快照。The Framework shuts down the non-essential services, so that the Kernel makes a system snapshot of the necessary services.

如此,通过关闭非必要服务,以减少Kernel制作的系统快照中服务的数量,进而减少系统快照所占用的存储空间,同时提升系统快照的制作时间。In this way, by closing non-essential services, the number of services in the system snapshot made by the Kernel is reduced, thereby reducing the storage space occupied by the system snapshot and increasing the time for making the system snapshot.

在一实施例中,步骤S13之后,所述方法还包括:In one embodiment, after step S13, the method further includes:

重新启动native服务,重新加载数据。Restart the native service and reload the data.

具体地,在native层重启相关服务,其中相关服务包括制作keymaster,其中keymaster主要用于处理秘钥相关服务,用于提升后续用户使用智能终端的安全性。Specifically, restart related services at the native layer, where the related services include creating a keymaster, where the keymaster is mainly used to process key-related services and to improve the security of subsequent users using smart terminals.

请参见图5,为本申请提供的智能终端首次开机启动的系统快照制作的过程示意图:Please refer to Figure 5, which is a schematic diagram of the process of making a system snapshot for the first startup of the smart terminal provided by this application:

引导加载程序、Kernel和Framework启动完成之后,Framework确定本次智能终端为首次开机启动,Framework作为上层应用向下发送指令给kernel的power模块(位于sys/power/disk),以使power模块制作系统快照;Power模块的hibernation模块通知内核的驱动模块并调用驱动的suspend函数进行现场保护。Power模块制作完成系统快照,把系统快照写入到磁盘,Power模块修改启动引导参数(包括resume=/dev/xxx)。After the boot loader, Kernel and Framework are started, the Framework determines that this smart terminal is booting for the first time, and the Framework, as an upper-layer application, sends instructions down to the power module of the kernel (located in sys/power/disk), so that the power module makes the system snapshot; the hibernation module of the Power module notifies the driver module of the kernel and calls the suspend function of the driver to perform site protection. The Power module completes the system snapshot, writes the system snapshot to the disk, and the Power module modifies the boot parameters (including resume=/dev/xxx).

本实施例中,驱动模块包括USB、hi1103、EMMC、TEE及TVMW。In this embodiment, the driver module includes USB, hi1103, EMMC, TEE and TVMW.

非首次上电后,引导加载程序(例如fastboot)把系统快照所在设备的信息作为启动参数(resume=/dev/xxx)传递到Power模块的bootargs;power模块从磁盘中校验并加载系统快照,恢复内核Kernel到上电前的运行状态,Power模块的resume模块通知驱动模块的各个驱动进行现场恢复。After the first power-on, the boot loader (such as fastboot) passes the information of the device where the system snapshot is located as a startup parameter (resume=/dev/xxx) to the bootargs of the Power module; the power module verifies and loads the system snapshot from the disk, To restore the Kernel to the operating state before power-on, the resume module of the Power module notifies each driver of the driver module to perform on-site recovery.

请参见图6,为本申请提供的智能终端制作系统快照的过程示意图:Please refer to Figure 6, which is a schematic diagram of the process of making a system snapshot for the smart terminal provided by this application:

QuickBoot为本申请一实施例中Framework的功能模块,用于在终端启动过程中检测启动状态并负责power模块制作系统快照,具体地,Kernel的上层QuickBoot检测启动状态,确定智能终端为首次开机启动,QuickBoot进行快照前清理工作,包括:清理java服务,关闭不必要服务(WiFi服务、Bluetooth);调用内核接口,通知内核power模块生成系统快照。QuickBoot is a functional module of the Framework in an embodiment of the present application, which is used to detect the startup state during the startup process of the terminal and is responsible for making a system snapshot of the power module. Specifically, the upper-level QuickBoot of the Kernel detects the startup status and determines that the smart terminal is the first startup. QuickBoot cleans up before the snapshot, including: clean up java services, close unnecessary services (WiFi service, Bluetooth); call the kernel interface, and notify the kernel power module to generate a system snapshot.

在一实施例中,依据系统快照的恢复过程包括:Kernel依据系统快照恢复系统数据之后,上层QuickBoot模块开始数据恢复,QuickBoot通知Framework各模块(包括pms、settings)从数据区重新加载数据;数据加载完成,重新启动一些native服务,重新加载数据;重新启动停止的不必要服务,进入Launcher供用户使用,以完成智能终端的启动。In one embodiment, the restoration process according to the system snapshot includes: after Kernel restores the system data according to the system snapshot, the upper-level QuickBoot module starts data recovery, and QuickBoot notifies each module of Framework (comprising pms, settings) to reload data from the data area; data loading After completion, restart some native services and reload data; restart unnecessary services that have been stopped, and enter the Launcher for users to use to complete the startup of the smart terminal.

请参见图7,图7是本申请公开的智能终端的结构示意图。如图7所示,所述智能终端70包括一个或多个处理器701和存储器702。处理器701、存储器702通过一个或多个通信总线703连接。存储器702用于存储一个或多个计算机程序704。一个或多个计算机程序704被配置为被该处理器701执行。该一个或多个计算机程序704包括指令,上述指令可以用于执行上述实施例中智能终端(如手机)执行的各个步骤,以实现在智能终端中的启动功能。Please refer to FIG. 7, which is a schematic structural diagram of the smart terminal disclosed in the present application. As shown in FIG. 7 , the smart terminal 70 includes one or more processors 701 and memory 702 . The processor 701 and the memory 702 are connected through one or more communication buses 703 . The memory 702 is used to store one or more computer programs 704 . One or more computer programs 704 are configured to be executed by the processor 701 . The one or more computer programs 704 include instructions, and the above instructions can be used to execute various steps performed by the smart terminal (such as a mobile phone) in the above embodiments, so as to realize the startup function in the smart terminal.

本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在智能终端上运行时,使得智能终端执行上述相关方法步骤实现上述实施例中的启动方法。This embodiment also provides a computer storage medium, in which computer instructions are stored, and when the computer instructions are run on the smart terminal, the smart terminal is made to execute the above related method steps to implement the startup method in the above embodiment.

本实施例还提供了一种计算机程序产品,当该计算机程序产品在智能终端上运行时,使得智能终端执行上述相关步骤,以实现上述实施例中的启动方法。This embodiment also provides a computer program product. When the computer program product is run on the smart terminal, the smart terminal is made to perform the above related steps, so as to implement the starting method in the above embodiment.

另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的智能终端的启动方法。In addition, an embodiment of the present application also provides a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, The processor can execute the computer-executable instructions stored in the memory, so that the chip executes the method for starting the smart terminal in the above method embodiments.

其中,本实施例提供的智能终端、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Wherein, the smart terminal, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the corresponding method provided above The beneficial effects in the method will not be repeated here.

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated according to needs It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined Or it can be integrated into another device, or some features can be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separated, and a component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places. Part or all of the units can 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, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the protection scope of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application should be covered within the protection scope of the application . Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (12)

1.一种智能终端的启动方法,其特征在于,所述智能终端具有智能系统,所述方法包括:1. A method for starting an intelligent terminal, characterized in that the intelligent terminal has an intelligent system, and the method comprises: 首次开机上电;Power on for the first time; 启动引导加载程序,依据所述引导加载程序中的启动引导参数确定为首次启动;Start the bootloader, which is determined as the first startup according to the startup boot parameters in the bootloader; 启动Kernel;Start Kernel; 启动Framework,所述Framework确认所述智能终端为首次启动,所述Framework向Kernel发送指令,以触发Kernel制作系统快照。Start the Framework, the Framework confirms that the smart terminal is started for the first time, and the Framework sends an instruction to the Kernel to trigger the Kernel to make a system snapshot. 2.如权利要求1所述的方法,其特征在于,所述方法还包括:2. The method of claim 1, further comprising: 二次开机上电;Power on the second time; 启动引导加载程序,依据所述引导加载程序的启动引导参数确定为非首次启动;所述引导加载程序依据所述非首次启动将所述启动引导参数传递至所述Kernel;Start the boot loader, and determine that it is not the first startup according to the startup boot parameters of the boot loader; the boot loader passes the startup boot parameters to the Kernel according to the non-first startup; 启动Kernel,所述Kernel依据所述启动引导参数加载所述系统快照,以依据所述系统快照恢复系统数据。Start the Kernel, and the Kernel loads the system snapshot according to the boot parameters, so as to restore system data according to the system snapshot. 3.如权利要求2所述的方法,其特征在于,所述Kernel制作系统快照之后,所述方法还包括:3. The method according to claim 2, wherein, after the Kernel makes a system snapshot, the method further comprises: 确定所述系统快照制作成功;Determining that the system snapshot is successfully made; 依据所述系统快照制作成功调整所述启动引导参数。The boot parameters are adjusted successfully according to the system snapshot. 4.如权利要求3所述的方法,其特征在于,所述Kernel制作系统快照之后,所述方法还包括:4. The method according to claim 3, wherein, after the Kernel makes a system snapshot, the method further comprises: 所述Kernel制作所述系统快照的校验值;Described Kernel makes the verification value of described system snapshot; 所述Kernel依据所述启动引导参数加载所述系统快照之前,所述方法还包括:Before the Kernel loads the system snapshot according to the boot parameters, the method also includes: 所述Kernel校验所述校验值,以确定所述系统快照的完整性。The Kernel verifies the verification value to determine the integrity of the system snapshot. 5.如权利要求2所述的方法,其特征在于,所述方法还包括:5. The method of claim 2, further comprising: 所述Framework从用户数据文件加载并恢复用户数据。The Framework loads and restores user data from a user data file. 6.如权利要求2所述的方法,其特征在于,所述方法还包括:6. The method of claim 2, further comprising: 所述首次启动包括升级重启、恢复出厂设置后重启和出厂状态下开机。The first startup includes upgrading and restarting, restarting after restoring factory settings, and starting up in the factory state. 7.如权利要求1所述的方法,其特征在于,所述Kernel具有第一监测模块,所述第一监测模块用于在所述系统快照制作完成后触发所述智能终端重启,所述Kernel制作系统快照之后,所述方法还包括:7. The method according to claim 1, wherein the Kernel has a first monitoring module, and the first monitoring module is used to trigger the restart of the smart terminal after the system snapshot is made, and the Kernel After making the system snapshot, the method further includes: 所述Kernel关闭所述第一监测模块。The Kernel closes the first monitoring module. 8.如权利要求1所述的方法,其特征在于,所述依据系统快照恢复系统数据之后,所述方法还包括:8. The method according to claim 1, wherein after restoring system data according to the system snapshot, the method further comprises: 所述Kernel关闭所述第二监测模块。The Kernel closes the second monitoring module. 9.如权利要求1所述的方法,其特征在于,所述Kernel的服务包括必要服务和非必要服务,所述Kernel制作系统快照之前,所述方法还包括:9. The method according to claim 1, wherein the services of the Kernel include essential services and non-essential services, and before the Kernel makes a system snapshot, the method also includes: 所述Framework关闭所述非必要服务,以使所述Kernel制作所述必要服务的系统快照。The Framework closes the non-essential service, so that the Kernel makes a system snapshot of the necessary service. 10.一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在智能终端上运行时,使得所述智能终端执行如权利要求1至9中任一项所述的智能终端的启动方法。10. A computer-readable storage medium, characterized in that it includes computer instructions, and when the computer instructions are run on a smart terminal, the smart terminal executes the smart terminal according to any one of claims 1 to 9. How to start the terminal. 11.一种智能终端,其特征在于,所述智能终端包括处理器和存储器,所述存储器用于存储指令,所述处理器用于调用所述存储器中的指令,使得所述智能终端执行如权利要求1至9中任一项所述的智能终端的启动方法。11. An intelligent terminal, characterized in that the intelligent terminal includes a processor and a memory, the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the intelligent terminal executes the The starting method of the intelligent terminal described in any one of requirements 1 to 9. 12.一种芯片系统,其特征在于,该芯片系统应用于智能终端;芯片系统包括接口电路和处理器;接口电路和处理器通过线路互联;接口电路用于从智能终端的存储器接收信号,并向处理器发送信号,信号包括存储器中存储的计算机指令;当处理器执行该计算机指令时,芯片系统执行如权利要求1至9中任一项所述的方法。12. A chip system, characterized in that the chip system is applied to an intelligent terminal; the chip system includes an interface circuit and a processor; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive signals from the memory of the intelligent terminal, and Sending a signal to the processor, the signal includes a computer instruction stored in the memory; when the processor executes the computer instruction, the chip system executes the method according to any one of claims 1 to 9.
CN202110655620.9A 2021-06-11 2021-06-11 Starting method of intelligent terminal and related equipment Pending CN115469935A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110655620.9A CN115469935A (en) 2021-06-11 2021-06-11 Starting method of intelligent terminal and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110655620.9A CN115469935A (en) 2021-06-11 2021-06-11 Starting method of intelligent terminal and related equipment

Publications (1)

Publication Number Publication Date
CN115469935A true CN115469935A (en) 2022-12-13

Family

ID=84364766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110655620.9A Pending CN115469935A (en) 2021-06-11 2021-06-11 Starting method of intelligent terminal and related equipment

Country Status (1)

Country Link
CN (1) CN115469935A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126377A (en) * 2016-07-04 2016-11-16 广东欧珀移动通信有限公司 The method and device of system start-up
CN109460258A (en) * 2017-08-28 2019-03-12 西安中兴新软件有限责任公司 A kind of method and device starting electronic equipment
CN111930429A (en) * 2020-07-07 2020-11-13 上海商米科技集团股份有限公司 Method for quickly starting Android operating system and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126377A (en) * 2016-07-04 2016-11-16 广东欧珀移动通信有限公司 The method and device of system start-up
CN109460258A (en) * 2017-08-28 2019-03-12 西安中兴新软件有限责任公司 A kind of method and device starting electronic equipment
CN111930429A (en) * 2020-07-07 2020-11-13 上海商米科技集团股份有限公司 Method for quickly starting Android operating system and electronic equipment

Similar Documents

Publication Publication Date Title
CN101281469B (en) Embedded type system and start-up load application method
EP3063620B1 (en) Selective power management for pre-boot firmware updates
CN103425506B (en) Closedown method and starting-up method and communication terminal
TWI363298B (en) Communication device and firmware update method thereof
CN105917306B (en) System and method for configuring system firmware configuration data
US20100325622A1 (en) Updating Firmware of an Electronic Device
US20090271660A1 (en) Motherboard, a method for recovering the bios thereof and a method for booting a computer
CN112612524A (en) Method, device and equipment for starting Linux system and storage medium
TW201843583A (en) Method and computer system for automatically recovering the BIOS image file
EP2798428B1 (en) Apparatus and method for managing operation of a mobile device
CN114035818B (en) Firmware upgrade method, device, computer equipment and storage medium
TWI764454B (en) Firmware corruption recovery
CN108345464A (en) A kind of the startup method and Android vehicle device of Android system
CN107315656A (en) The Embedded PLC software rejuvenation method and PLC of many kernels
CN108874459B (en) Quick start method and device based on virtualization technology
CN101526903B (en) Communication device and method for updating firmware thereof
WO2021136200A1 (en) Bootloader loading method, storage medium, and embedded terminal
CN115509578A (en) System upgrading method and device, electronic equipment and storage medium
CN105049936B (en) Method and device for switching on and off
CN120780542B (en) Restarting control method and device of server processor, storage medium and electronic equipment
CN101739315A (en) System and method for automatically starting backup firmware
CN103699412B (en) The quick start method and system of terminal
CN114995852A (en) Device upgrade method, device and computer-readable storage medium
CN115469935A (en) Starting method of intelligent terminal and related equipment
CN108829442A (en) Program starts method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination