当前位置:网站首页>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
边栏推荐
- How does wechat prevent withdrawal come true?
- Xin'an Second Edition: Chapter 25 mobile application security requirements analysis and security protection engineering learning notes
- PostgreSQL 14.2, 13.6, 12.10, 11.15 and 10.20 releases
- Garbage first of JVM garbage collector
- Flink parsing (IV): recovery mechanism
- [CISCN 2021 华南赛区]rsa Writeup
- 03 products and promotion developed by individuals - plan service configurator v3.0
- 自动化运维利器ansible基础
- C version selenium operation chrome full screen mode display (F11)
- 自动答题 之 Selenium测试直接运行在浏览器中,就像真正的用户在操作一样。
猜你喜欢

Akamai talking about risk control principles and Solutions

JVM 垃圾回收器之Serial SerialOld ParNew
![Case: check the empty field [annotation + reflection + custom exception]](/img/50/47cb40e6236a0ba34362cdbf883205.png)
Case: check the empty field [annotation + reflection + custom exception]

Wu Jun's trilogy insight (V) refusing fake workers

【逆向中级】跃跃欲试

07 personal R & D products and promotion - human resources information management system

应用服务配置器(定时,数据库备份,文件备份,异地备份)

【MySQL入门】第一话 · 初入“数据库”大陆

Yarn: unable to load file d:\programfiles\nodejs\yarn PS1, because running scripts is prohibited on this system

Akamai浅谈风控原理与解决方案
随机推荐
Flink parsing (III): memory management
Display picture of DataGridView cell in C WinForm
Selenium test of automatic answer runs directly in the browser, just like real users.
pip install pyodbc : ERROR: Command errored out with exit status 1
Xin'an Second Edition: Chapter 24 industrial control safety demand analysis and safety protection engineering learning notes
Akamai浅谈风控原理与解决方案
[reverse] repair IAT and close ASLR after shelling
分布式(一致性协议)之领导人选举( DotNext.Net.Cluster 实现Raft 选举 )
Program counter of JVM runtime data area
远程代码执行渗透测试——B模块测试
Wu Jun trilogy insight (IV) everyone's wisdom
【ASM】字节码操作 ClassWriter 类介绍与使用
Example of batch update statement combining update and inner join in SQL Server
About selenium starting Chrome browser flash back
Vscode matches and replaces the brackets
JVM garbage collector part 1
[ciscn 2021 South China]rsa writeup
Vscode replaces commas, or specific characters with newlines
Shawshank's sense of redemption
Flink analysis (II): analysis of backpressure mechanism