4285 views|4 replies

25

Posts

0

Resources
The OP
 

[Runhe Neptune Evaluation] Second Environment Construction [Copy link]

 

Official reference to build environment:

链接已隐藏,如需查看请登录或者注册

I took the route of installing a virtual machine. First install VM, then install UBUNTU20.4 (it is said that version 18 or above is required. I want to avoid pitfalls and follow the official advice);
After Ubuntu is installed, start installing software, but pay attention to the network configuration. If the network is not connected, then congratulations~you can't install it, Baidu can make it available online.
Install the required software:


Install the toolchain:

After the operation is completed, the code is pulled and compiled to see if the following VS tools can be used and compiled successfully.

Let me talk about the problems I encountered during the installation:
1. The node installation failed. I found that I downloaded the source package, not the compiled binary package, so... I'm ashamed. Everyone should pay attention when downloading.
2. The hb command was not found:

Solution:
# Execute the following command in the root directory of the source code to install hb.
python3 -m pip install --user build/lite
# Set the environment variable
vim ~/.bashrc
# Copy the following command to the last line of the .bashrc file, save and exit.
export PATH=~/.local/bin:$PATH
# Execute the following command to update the environment variables.
source ~/.bashrc
# Set the compilation path and select the current path.
hb set .
# Select ipcamera_hispark_taurus@hisilicon and press Enter to compile.
hb build -f
# Uninstall
hb python3 -m pip uninstall ohos-build
# If there is a problem when installing hb, pip upgrades
python3 -m pip install -U pip

You can turn the page after reading this~
I don’t know about other environments. The experience of using a similar interface in my computer virtual machine is not user-friendly, the operation is slow, and it often freezes!
I am a lazy person, so I found an environment that a great god has installed: [Resource] Ubuntu 20.04 image with Hongmeng development environment configured-Hongmeng HarmonyOS Technology Community-Hongmeng Official Partner-51CTO.COM
Download it, the environment inside is basically set up, you only need to install a CSKY, installation method: see below
Video course:
Neptune module hardware introduction and HarmonyOS development environment configuration
https://harmonyos.51cto.com/activity/46
Neptune module HarmonyOS peripheral control
https://harmonyos.51cto.com/activity/47
Neptune module HarmonyOS network programming
https://harmonyos.51cto.com/activity/48
Or download the courseware here: "Hongmeng System Internet of Things Module-Neptune Three-Day Complete Guide》Courseware, Code - Hongmeng HarmonyOS Technology Community - Hongmeng Official Partner - 51CTO.COMAfter
installation, I went to the source code repository to download the code directly and put it in the virtual machine, compile, and compile with just one command: build.py w800. It saves
a lot of complicated operations. I use the entire virtual machine just like using KEIL in the microcontroller, just to compile the code, and then the code is shared through the network, operated under WINDOWS, and downloaded~
Download:
Download with SecureCRT software XMODEM protocol, which is good, download and debug together, download need to pay attention to press and hold the upper left corner "ESC" key, then press the reset button, so that you can enter the download mode, click transfer and select send xmode and then go to the project OUT directory, select w800.img to burn, the process is slow, wait patiently, the burning is successful as follows:


Run:
Pull the code through VS, compile and run the status:

Download the compile and run status by yourself:

Will you find that the operation is different? Don’t ask me why ~ because I don’t know! I will look at the code first and share it with you next time.

Finally, I will share the development environment I built with you. You can download it if you need it. Neptune is the source code pulled by VS, and Neptune1 is the source code downloaded by yourself. The address is as follows: (The login password is still 123456; the root password is changed to three spaces by me)
Link: https://pan.baidu.com/s/1KJzbkO2KMKtgLYiyNKJc2w
Extraction code: a6uq

If you encounter any problems, please leave a message and contact me~

Latest reply

I'd like to ask the original poster, is there any information about the file structure of the Hongmeng system? How to use git for version management? The size of the entire project is much larger than the SDK. Putting it all in git will take up a lot of warehouse space. Is there a good way to only manage the app layer and pull the basic components online?   Details Published on 2021-12-12 14:40
 

1667

Posts

0

Resources
2
 

Install UBUNTU20.4, build the environment, is it related to the operating system?

Win10 can not

Comments

You can try WSL under win10.  Details Published on 2021-10-12 05:42
You can try WSL under win10.  Details Published on 2021-10-9 18:06
 
 
 

7452

Posts

2

Resources
3
 
Hot Ximi Show published on 2021-10-8 21:25 Install UBUNTU20.4, build the environment, and it is related to the operating system. It is not necessary to have Win10

You can try WSL under win10.

 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

25

Posts

0

Resources
4
 
Hot Ximi Show published on 2021-10-8 21:25 Install UBUNTU20.4, build the environment, and it is related to the operating system. It is not necessary to have Win10

I use WIN10, and after installing VMware, I can open it

 
 
 

10

Posts

0

Resources
5
 

I'd like to ask the original poster, is there any information about the file structure of the Hongmeng system? How to use git for version management? The size of the entire project is much larger than the SDK. Putting it all in git will take up a lot of warehouse space. Is there a good way to only manage the app layer and pull the basic components online?

 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list