• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Startup<a name="EN-US_TOPIC_0000001063402122"></a>
2
3-   [Limitations and Constraints](#section2029921310472)
4
5The startup subsystem provides the functions of starting key system processes after the kernel is started and before applications are started, and restoring the system to factory settings. The subsystem consists of the following modules:
6
7-   init module
8
9    This module corresponds to the init process, which is the first user-space process started after the kernel is initialized. Upon startup, the init process reads and parses the configuration file  **init.cfg**. Based on the parsing result, the init module executes the commands listed in Table 2 in  [init Module](subsys-boot-init.md)  and starts the key system service processes in sequence with corresponding permissions granted.
10
11-   appspawn module
12
13    This module spawns application processes upon receiving commands from the application framework, configures permissions for new processes, and calls the entry function of the application framework.
14
15-   bootstrap module
16
17    This module provides entry identifiers for starting services and features. When the Samgr is started, the entry function identified by boostrap is called and system services are started.
18
19-   syspara module
20
21    This module provides APIs for obtaining device information, such as the product name, brand name, and manufacturer name, based on the OpenHarmony Product Compatibility Specifications \(PCS\). It also provides APIs for setting and obtaining system parameters.
22
23
24## Limitations and Constraints<a name="section2029921310472"></a>
25
26The directories of startup subsystem are applicable to different platforms.
27
28**Table  1**  Directories and applicable platforms of the startup subsystem
29
30<a name="table2144134816420"></a>
31<table><thead align="left"><tr id="row11143184819429"><th class="cellrowborder" valign="top" width="32%" id="mcps1.2.3.1.1"><p id="p014334816421"><a name="p014334816421"></a><a name="p014334816421"></a>Directory</p>
32</th>
33<th class="cellrowborder" valign="top" width="68%" id="mcps1.2.3.1.2"><p id="p21434480422"><a name="p21434480422"></a><a name="p21434480422"></a>Applicable Platform</p>
34</th>
35</tr>
36</thead>
37<tbody><tr id="row171431248114219"><td class="cellrowborder" valign="top" width="32%" headers="mcps1.2.3.1.1 "><p id="p214334884214"><a name="p214334884214"></a><a name="p214334884214"></a>base/startup/appspawn_lite</p>
38</td>
39<td class="cellrowborder" valign="top" width="68%" headers="mcps1.2.3.1.2 "><p id="p35161141183916"><a name="p35161141183916"></a><a name="p35161141183916"></a>Small-system devices (reference memory ≥ 1 MB), for example, Hi3516D V300 and Hi3518E V300</p>
40</td>
41</tr>
42<tr id="row1814320488422"><td class="cellrowborder" valign="top" width="32%" headers="mcps1.2.3.1.1 "><p id="p1314315485427"><a name="p1314315485427"></a><a name="p1314315485427"></a>base/startup/bootstrap_lite</p>
43</td>
44<td class="cellrowborder" valign="top" width="68%" headers="mcps1.2.3.1.2 "><p id="p136879536392"><a name="p136879536392"></a><a name="p136879536392"></a>Mini-system devices (reference memory ≥ 128 KB), for example, Hi3861 V100</p>
45</td>
46</tr>
47<tr id="row1114304818420"><td class="cellrowborder" align="left" valign="top" width="32%" headers="mcps1.2.3.1.1 "><p id="p181431448194220"><a name="p181431448194220"></a><a name="p181431448194220"></a>base/startup/init_lite</p>
48</td>
49<td class="cellrowborder" valign="top" width="68%" headers="mcps1.2.3.1.2 "><p id="p865161134018"><a name="p865161134018"></a><a name="p865161134018"></a>Small-system devices (reference memory ≥ 1 MB), for example, Hi3516D V300 and Hi3518E V300</p>
50</td>
51</tr>
52<tr id="row2014324824218"><td class="cellrowborder" valign="top" width="32%" headers="mcps1.2.3.1.1 "><p id="p14143348184215"><a name="p14143348184215"></a><a name="p14143348184215"></a>base/startup/syspara_lite</p>
53</td>
54<td class="cellrowborder" valign="top" width="68%" headers="mcps1.2.3.1.2 "><a name="ul15501216165214"></a><a name="ul15501216165214"></a><ul id="ul15501216165214"><li>Mini-system devices (reference memory ≥ 128 KB), for example, Hi3861 V100</li><li>Small-system devices (reference memory ≥ 1 MB), for example, Hi3516D V300 and Hi3518E V300</li></ul>
55</td>
56</tr>
57</tbody>
58</table>
59
60-   init module
61    -   After being burnt to the development board, the configuration file  **init.cfg**  changes to read-only. If you want to modify the file, you must repack and burn the rootfs image again.
62    -   The configuration file  **init.cfg**  must be in JSON format.
63
64-   bootstrap module: The zInit code needs to be configured in the link script.
65-   syspara module: The  **SetParameter**  and  **GetParameter**  APIs can only be called by applications whose UID is greater than 1000.
66
67