当前位置:网站首页>Hongmeng introduction and development environment construction
Hongmeng introduction and development environment construction
2022-07-06 17:37:00 【Moon Dream Studio】
The first 1 Chapter HarmonyOS Introduce
1.1 Hongmeng system and its application Linux、Android Different
HarmonyOS Is a “ Facing the future ”、 Facing the whole scene ( Mobile office 、 Sports Health 、 Social communications 、 Media entertainment, etc ) Distributed operating system . On the basis of traditional single device system capability ,HarmonyOS Based on the same system capability 、 The distributed concept of adapting to a variety of terminal forms , Can support a variety of terminal devices .
HarmonyOS The overall compliance with layered design , From bottom to top is : Kernel layer 、 System service layer 、 Framework layer and application layer . The system functions according to “ System > Subsystem > function / modular ” Step by step , In a multi device deployment scenario , Support tailoring some non essential subsystems or functions according to actual needs / modular .HarmonyOS The technical architecture is shown in the figure .
We can see , Hongmeng system is not just a kernel , It also contains all the frameworks of the entire operating system , More like Windows and Android.
The kernel of Hongmeng system supports Linux and LiteOS.
1.2 LiteOS kernel
LiteOS It's a kernel , Compared with its Linux Come on , It's more streamlined , Faster startup time . meanwhile liteOS Kernel has liteOS-a and liteOS-m .
liteOS-a Usually run support MMU On the chip , Support kernel /APP Spatial isolation .A series
liteOS-m Running without MMU On the chip , That is to say MCU, For example, we often see STM32 chip . So Hongmeng OS Also support STM32 A series of single chip computers , However, the transplantation has not been completed yet .
1.3 Related information
Official documents of Hongmeng :HarmonyOS Development _HarmonyOS ecology _HarmonyOS Operating system application device development - HarmonyOS Official website
Hongmeng OS The code download : Document center
Official technology community : Hongmeng HarmonyOS Technology community - Hongmeng's official partner -51CTO.COM
The first 2 Chapter Development environment construction
About the construction of development environment , Please refer to the instructions on Huawei's official website .
At present, the development mode of Hongmeng system is Linux Compile the source code above the system ,Windows Write on the system 、 burn .
Therefore, we need to build two development environments .
2.1 Linux Environment building
About Linux System environment construction , I suggest using ubuntu 20.04. Of course, we also provide a good environment ubuntu 20.04 Mirror image , You can download it directly , Directly compile the code , There is no need to rebuild the environment according to the operation of the official website .
It takes at least a few hours to visually inspect the first building of an individual , There may also be errors .
Tencent cloud disk
link : File sharing
Baidu SkyDrive ( Here are a few links , Just choose a download that works ):
1、 link : Baidu SkyDrive Please enter the extraction code
Extraction code :iaap
2、 link : Baidu SkyDrive Please enter the extraction code
Extraction code :zgew
explain :
1、 The development environment has been configured , Code can be compiled directly , The compilation can run normally
2、 Good configuration sftp , Files can be transferred remotely
account number :harmony
password :123456
Code path :~/harmony/code/code-1.0
Relevant environment tool path ( You can leave it alone , It's already configured , Can be compiled directly ):~/harmony/tools
Compile command :
(1) Corresponding to the development board : hi3516 IPC Development board
python build.py ipcamera_hi3516dv300
(2) Corresponding to the development board : hi3518 IPC Development board
python build.py ipcamera_hi3518ev300
(3) Corresponding to the development board : hi3861 Smart home Development board
python build.py wifiiot
Compilation result , You can see that it has been compiled successfully
2.2 Windows visit ubuntu file
Because we need to be in the back Windows Go to the direct editor ubuntu Hongmeng source code in the system , So we need to use samba service , Give Way Windows Can access ubuntu.
The operation is as follows :
1. Set up apt-get Source
You can download it faster samba. Set as follows
(1) Click in the upper right corner of the desktop to open the menu , Click on setting Options .
(2) Drop down on the right side of the setting options to find “ About ”, Click on Software Updates.
(3) In the software and update interface, you can see “ Download from ”, We can make changes .
(4) Recommended choice mirros.aliyun.com perhaps mirrors.tuna.tsinghua.edu.cn, You can also click to select the best server , measuring
(5) Try connecting to the fastest software source ( The test time is long ).
(6) Last , When exiting the software and update interface , You will be prompted to update the software list information , Click reload .
2. install samba
Enter the following command :
sudo apt-get install samba
sudo apt-get install samba-common
modify samba The configuration file
sudo vim /etc/samba/smb.conf
Add the following at the end :
[work]
comment = samba home directory
path = /home/harmony/
public = yes
browseable = yes
public = yes
writeable = yes
read only = no
valid users = harmony
create mask = 0777
directory mask = 0777
#force user = nobody
#force group = nogroup
available = yes
Save after exit , Enter the following command , Set up samba password , Suggest 123456 that will do
sudo smbpasswd -a harmony
restart samba service
sudo service smbd restart
3.windows mapping
Enter the name of the virtual machine in the folder path IP Address
Finally, it can be mapped into a network drive
2.3 Windows Environment building
Windows Environment construction of , The official website already has , I'm not going to go over it here .
2.4 burn
You can also refer to the official documents for burning :
Link to the original text : Hongmeng entry and development environment construction _ Lian Zhian -CSDN Blog _ Hongmeng development environment construction
边栏推荐
- 02个人研发的产品及推广-短信平台
- February database ranking: how long can Oracle remain the first?
- mysql 基本增删改查SQL语句
- Pyspark operator processing spatial data full parsing (4): let's talk about spatial operations first
- About selenium starting Chrome browser flash back
- Chrome prompts the solution of "your company management" (the startup page is bound to the company's official website and cannot be modified)
- Shawshank's sense of redemption
- Akamai anti confusion
- mysql高級(索引,視圖,存儲過程,函數,修改密碼)
- 关于Selenium启动Chrome浏览器闪退问题
猜你喜欢
Interpretation of Flink source code (II): Interpretation of jobgraph source code
连接局域网MySql
【逆向初级】独树一帜
【Elastic】Elastic缺少xpack无法创建模板 unknown setting index.lifecycle.name index.lifecycle.rollover_alias
自动化运维利器ansible基础
C WinForm series button easy to use
Take you hand-in-hand to do intensive learning experiments -- knock the level in detail
Re signal writeup
Development and practice of lightweight planning service tools
全网最全tcpdump和Wireshark抓包实践
随机推荐
pip install pyodbc : ERROR: Command errored out with exit status 1
C # nanoframework lighting and key esp32
Jetpack compose 1.1 release, based on kotlin's Android UI Toolkit
Virtual machine startup prompt probing EDD (edd=off to disable) error
Models used in data warehouse modeling and layered introduction
PySpark算子处理空间数据全解析(4): 先说说空间运算
vscode
Kali2021 installation and basic configuration
The solution to the left-right sliding conflict caused by nesting Baidu MapView in the fragment of viewpager
How does wechat prevent withdrawal come true?
February database ranking: how long can Oracle remain the first?
DataGridView scroll bar positioning in C WinForm
学 SQL 必须了解的 10 个高级概念
04个人研发的产品及推广-数据推送工具
JVM 垃圾回收器之Serial SerialOld ParNew
微信防撤回是怎么实现的?
Shawshank's sense of redemption
[VNCTF 2022]ezmath wp
Example of batch update statement combining update and inner join in SQL Server
Pyspark operator processing spatial data full parsing (4): let's talk about spatial operations first