提交 1588b8fd 编写于 作者: A Annie_wang

update docs

Signed-off-by: NAnnie_wang <annie.wangli@huawei.com>
上级 0fd73876
...@@ -8,11 +8,12 @@ ...@@ -8,11 +8,12 @@
- **Symptom** - **Symptom**
The compilation fails, and **usr/sbin/ninja: invalid option -- w** is displayed.
The compilation fails, and **usr/sbin/ninja: invalid option -- w** is displayed.
- **Possible Causes** - **Possible Causes**
The Ninja version in the compilation environment is outdated and does not support the **--w** option. The Ninja version in the compilation environment is outdated and does not support the --w option.
- **Solution** - **Solution**
...@@ -23,16 +24,18 @@ The Ninja version in the compilation environment is outdated and does not suppor ...@@ -23,16 +24,18 @@ The Ninja version in the compilation environment is outdated and does not suppor
- **Symptom** - **Symptom**
The compilation fails, and **/usr/bin/ld: cannot find -lncurses** is displayed.
The compilation fails, and **/usr/bin/ld: cannot find -lncurses** is displayed.
- **Possible Causes** - **Possible Causes**
The ncurses library is not installed.
The ncurses library is not installed.
- **Solution** - **Solution**
``` ```
Run **sudo apt-get install lib32ncurses5-dev** to install the library. sudo apt-get install lib32ncurses5-dev
``` ```
...@@ -40,16 +43,18 @@ The ncurses library is not installed. ...@@ -40,16 +43,18 @@ The ncurses library is not installed.
- **Symptom** - **Symptom**
The compilation fails, and **line 77: mcopy: command not found** is displayed.
The compilation fails, and **line 77: mcopy: command not found** is displayed.
- **Possible Causes** - **Possible Causes**
Mcopy is not installed.
Mcopy is not installed.
- **Solution** - **Solution**
``` ```
Run **sudo apt-get install dosfstools mtools** to install mcopy. sudo apt-get install dosfstools mtools
``` ```
...@@ -57,40 +62,43 @@ Mcopy is not installed. ...@@ -57,40 +62,43 @@ Mcopy is not installed.
- **Symptom** - **Symptom**
The compilation fails, and the following information is displayed: **riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory**.
The compilation fails, and the following information is displayed: **riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory**.
- **Possible Causes** - **Possible Causes**
Permission is required to access files in the **riscv** compiler path.
Permission is required to access files in the **riscv** compiler path.
- **Solution** - **Solution**
Run the following command to query the directory where **gcc_riscv32** is located: 1. Run the following command to query the directory where **gcc_riscv32** is located:
``` ```
which riscv32-unknown-elf-gcc which riscv32-unknown-elf-gcc
``` ```
Run the **chmod** command to change the directory permission to **755**. 2. Run the **chmod** command to change the directory permission to **755**.
### "No module named 'Crypto'" Displayed During the Build Process ### "No module named 'Crypto'" Displayed During the Build Process
- **Symptom** - **Symptom**
The compilation fails, and **No module named'Crypto loaded** is displayed. The compilation fails, and **No module named'Crypto loaded** is displayed.
- **Possible Causes** - **Possible Causes**
Crypto is not installed in Python3. Crypto is not installed in Python3.
- **Solution** - **Solution**
1. Run the following command to query the Python version: 1. Run the following command to query the Python version:
``` ```
python3 --version python3 --version
``` ```
2. Ensure that Python 3.7 or later is installed, and then run the following command to install pycryptodome: 2. Ensure that Python 3.7 or later is installed, and then run the following command to install pycryptodome:
``` ```
...@@ -102,11 +110,13 @@ Crypto is not installed in Python3. ...@@ -102,11 +110,13 @@ Crypto is not installed in Python3.
- **Symptom** - **Symptom**
The compilation fails, and **xx.sh [: xx unexpected operator** is displayed.
The compilation fails, and **xx.sh [: xx unexpected operator** is displayed.
- **Possible Causes** - **Possible Causes**
The compilation environment is shell instead of bash.
The compilation environment is shell instead of bash.
- **Solution** - **Solution**
...@@ -120,28 +130,31 @@ The compilation environment is shell instead of bash. ...@@ -120,28 +130,31 @@ The compilation environment is shell instead of bash.
- **Symptom** - **Symptom**
The following error occurs during compilation and building:
The following error occurs during compilation and building:
``` ```
Could not find a version that satisfies the requirement six>=1.9.0 Could not find a version that satisfies the requirement six>=1.9.0
``` ```
- **Possible Causes** - **Possible Causes**
**six** is not installed.
**six** is not installed.
- **Solution** - **Solution**
Solution 1: Run the **pip3 install six** command to install **six** online.
Method 2: Offline installation Method 1: Run the **pip3 install six** command to install **six** online.
Method 2: Offline installation
Download the installation package from [PyPI](https://pypi.org/project/six/#files). Download the installation package from [PyPI](https://pypi.org/project/six/#files).
![en-us_image_0000001251276115](figures/en-us_image_0000001251276115.png) ![en-us_image_0000001251276115](figures/en-us_image_0000001251276115.png)
Save the source code to the Linux server and run the **pip3 install six-1.14.0-py2.py3-none-any.whl** command to install **six**. Save the source code to the Linux server and run the **pip3 install six-1.14.0-py2.py3-none-any.whl** command to install **six**.
After the preceding installation is complete, rebuild an environment. After the preceding installation is complete, rebuild an environment.
...@@ -150,25 +163,28 @@ Save the source code to the Linux server and run the **pip3 install six-1.14.0-p ...@@ -150,25 +163,28 @@ Save the source code to the Linux server and run the **pip3 install six-1.14.0-p
- **Symptom** - **Symptom**
The following error occurs during the build process:
The following error occurs during the build process:
``` ```
riscv32-unknown-elf-ld: cannot find -lgcc riscv32-unknown-elf-ld: cannot find -lgcc
``` ```
- **Possible Causes** - **Possible Causes**
The PATH is incorrectly written by **gcc_riscv32**. There is an extra slash (/).
The gcc_riscv32 PATH is incorrect. There is an extra slash (/) after **bin**.
``` ```
~/gcc_riscv32/bin/:/data/toolchain/ ~/gcc_riscv32/bin/:/data/toolchain/
``` ```
- **Solution** - **Solution**
Modify the PATH by deleting the slash (/).
Modify the PATH as follows:
``` ```
...@@ -180,35 +196,40 @@ Modify the PATH by deleting the slash (/). ...@@ -180,35 +196,40 @@ Modify the PATH by deleting the slash (/).
- **Symptom** - **Symptom**
The following error occurs during the build process:
The following error occurs during the build process:
``` ```
-bash: /usr/bin/python: No such file or directory -bash: /usr/bin/python: No such file or directory
``` ```
- **Possible Cause 1** - **Possible Cause 1**
Python is not installed.
Python is not installed.
- **Solution** - **Solution**
Run the following command to install Python. The following uses Python 3.8 as an example.
Run the following command to install Python (Python 3.8 for example):
``` ```
sudo apt-get install python3.8 sudo apt-get install python3.8
``` ```
- **Possible Cause 2** - **Possible Cause 2**
The soft link that points to the Python does not exist in the **usr/bin** directory.
![en-us_image_0000001243200677](figures/en-us_image_0000001243200677.png) The soft link that points to the Python does not exist in the **usr/bin** directory.
![en-us_image_0000001243200677](figures/en-us_image_0000001243200677.png)
- **Solution** - **Solution**
Run the following commands to add a soft link:
Run the following commands to add a soft link:
``` ```
...@@ -216,7 +237,7 @@ Run the following commands to add a soft link: ...@@ -216,7 +237,7 @@ Run the following commands to add a soft link:
# which python3 # which python3
# ln -s /usr/local/bin/python3 python # ln -s /usr/local/bin/python3 python
# python --version # python --version
``` ```
Example: Example:
...@@ -231,11 +252,13 @@ Example: ...@@ -231,11 +252,13 @@ Example:
- **Possible Causes** - **Possible Causes**
Python 3 is not installed.
Python 3 is not installed.
- **Solution** - **Solution**
Run the following command to install Python 3:
Run the following command to install Python 3:
``` ```
......
...@@ -181,6 +181,7 @@ Do not include too many elements in an array. Avoid frequent operations on a lar ...@@ -181,6 +181,7 @@ Do not include too many elements in an array. Avoid frequent operations on a lar
- **Symptom** - **Symptom**
After the **hdc_std list targets** command is executed, **[Empty]** is displayed. After the **hdc_std list targets** command is executed, **[Empty]** is displayed.
- **Solution** - **Solution**
...@@ -197,7 +198,8 @@ After the **hdc_std list targets** command is executed, **[Empty]** is displayed ...@@ -197,7 +198,8 @@ After the **hdc_std list targets** command is executed, **[Empty]** is displayed
- **Symptom** - **Symptom**
After you click **hdc_std.exe**, the file fails to execute.
After you click **hdc_std.exe**, the file fails to execute.
- **Solution** - **Solution**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册