IP Library Granted Patent US 11,080,066
Granted Patent B2
US 11,080,066 · App. 16/115,416 · Granted Aug 3, 2021

Method for starting embedded apparatus, and apparatus

Inventors: Lei Liu (Hangzhou, CN); Mihu Wang (Hangzhou, CN); Jieliang Huang (Hangzhou, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G06F9/44521G06F8/41G06F9/4401G06F9/445G06F9/4406G06F9/44578
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,080,066
App. No.
16/115,416
Granted
Aug 3, 2021
Kind
B2
Abstract

Embodiments of the present disclosure provide a method for starting an embedded apparatus, and an apparatus, and are applied to the field of embedded technologies, so as to improve a start speed of an embedded apparatus. The method is: A development and compilation apparatus divides a program of a system of an embedded apparatus, where the divided program includes a fast start loader and program segments corresponding to different services. In this way, after compilation and linking are performed on the program segments obtained by division to generate a system image file of the embedded apparatus, the embedded apparatus may first load the fast start loader after downloading the image file, then load one or more services in the image file one by one based on service requirements of different services by using the fast start loader, and then run the one or more loaded services.

Claims (29)

1. A method for starting an embedded apparatus in a start process, comprising:

loading a fast start loader in a system image file by using a system boot program, wherein the fast start loader is a kernel of the embedded apparatus and is first loaded;

running the fast start loader, wherein the fast start loader is configured to copy the system image file from a loading domain to an execution domain;

loading, based on service requirements of different services after running the fast start loader, one or more services corresponding to remaining image files in the system image file other than the fast start loader, and running the one or more loaded services, including

controlling the fast start loader to load a fast startup program segment in the system image file based on a start address of the fast startup program segment and a length of the fast startup program segment, wherein the fast startup program segment comprises a mission-critical service in the embedded apparatus, wherein the mission-critical service is determined based on service requirements, and wherein the mission-critical service is a designated service to be preferentially started;

running the mission-critical service;

subsequent to running the mission-critical service, controlling the fast start loader to load a non-fast startup program segment in the system image file based on a start address of the non-fast startup program segment and a length of the non-fast startup program segment, wherein the non-fast startup program segment comprises remaining services in the embedded apparatus other than the mission-critical service; and

running the remaining services.

2. The method of claim 1 , wherein controlling the fast start loader to load a fast startup program segment in the system image file comprises:

controlling the fast start loader to obtain the start address and an end address of the fast startup program segment in the system image file; and

controlling the fast start loader to obtain the length of the fast startup program segment based on the start address and the end address of the fast startup program segment.

3. The method of claim 1 , wherein controlling the fast start loader to load a non-fast startup program segment in the system image file comprises:

controlling the fast start loader to obtain the start address and an end address of the non-fast startup program segment in the system image file; and

controlling the fast start loader to obtain the length of the non-fast startup program segment based on the start address and the end address of the non-fast startup program segment.

4. An embedded apparatus, comprising:

at least one processor, a memory storing computer executable instructions, which when executed by the at least one processor, cause the at least one processor to perform operations, the operations comprising:

loading a fast start loader in a system image file by using a system boot program, wherein the fast start loader is a kernel of the embedded apparatus and is first loaded;

running the fast start loader, wherein the fast start loader is configured to copy the system image file from a loading domain to an execution domain; and

loading, by segments based on service requirements of different services after running the fast start loader, one or more services corresponding to remaining image files in the system image file other than the fast start loader, and running the one or more loaded services, including

loading a fast startup program segment in the system image file based on a start address of the fast startup program segment and a length of the fast startup program segment, wherein the fast startup program segment comprises a mission-critical service in the embedded apparatus, wherein the mission-critical service is determined based on service requirements, and wherein the mission-critical service is a designated service to be preferentially started;

running the mission-critical service;

subsequent to running the mission-critical service, loading a non-fast startup program segment in the system image file based on a start address of the non-fast startup program segment and a length of the non-fast startup program segment, wherein the non-fast startup program segment comprises remaining services in the embedded apparatus other than the mission-critical service; and

running the remaining services.

5. The embedded apparatus of claim 4 , wherein the fast start loader is configured to:

obtain the start address and an end address of the fast startup program segment in the system image file; and

obtain the length of the fast startup program segment based on the start address and the end address of the fast startup program segment.

6. The embedded apparatus of claim 4 , wherein the fast start loader is configured to:

obtain the start address and an end address of the non-fast startup program segment in the system image file; and

obtain the length of the non-fast startup program segment based on the start address and the end address of the non-fast startup program segment.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 14, 2018
From: LIU, LEI; WANG, MIHU; HUANG, JIELIANG
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 047506/0072 →
Priority Claims (1)
CN 201610113630.9 · Feb 29, 2016 · national
Continuity (2)
Continuation PCTCN2016104145 · Oct 31, 2016
Related Publication 20180365035A1 · Dec 20, 2018