当前位置:网站首页>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
边栏推荐
- Example of batch update statement combining update and inner join in SQL Server
- Final review of information and network security (full version)
- 1. Introduction to JVM
- Solrcloud related commands
- 04个人研发的产品及推广-数据推送工具
- 04 products and promotion developed by individuals - data push tool
- The solution to the left-right sliding conflict caused by nesting Baidu MapView in the fragment of viewpager
- Wordcloud colormap color set and custom colors
- 03 products and promotion developed by individuals - plan service configurator v3.0
- Kali2021 installation and basic configuration
猜你喜欢
连接局域网MySql
基于LNMP部署flask项目
February database ranking: how long can Oracle remain the first?
Development and practice of lightweight planning service tools
List集合数据移除(List.subList.clear)
【MySQL入门】第一话 · 初入“数据库”大陆
Flink analysis (II): analysis of backpressure mechanism
The most complete tcpdump and Wireshark packet capturing practice in the whole network
List set data removal (list.sublist.clear)
The NTFS format converter (convert.exe) is missing from the current system
随机推荐
The problem of "syntax error" when uipath executes insert statement is solved
信息与网络安全期末复习(完整版)
Flink parsing (IV): recovery mechanism
Concept and basic knowledge of network layering
MySQL error reporting solution
Redis quick start
【MMdetection】一文解决安装问题
mysql高级(索引,视图,存储过程,函数,修改密码)
07 personal R & D products and promotion - human resources information management system
C version selenium operation chrome full screen mode display (F11)
Wu Jun's trilogy insight (V) refusing fake workers
CentOS7上Redis安装
分布式(一致性协议)之领导人选举( DotNext.Net.Cluster 实现Raft 选举 )
PySpark算子处理空间数据全解析(4): 先说说空间运算
Development and practice of lightweight planning service tools
Pyspark operator processing spatial data full parsing (4): let's talk about spatial operations first
PySpark算子处理空间数据全解析(5): 如何在PySpark里面使用空间运算接口
Xin'an Second Edition: Chapter 12 network security audit technology principle and application learning notes
Jetpack compose 1.1 release, based on kotlin's Android UI Toolkit
Remote code execution penetration test - B module test