diff --git a/zh-cn/device-dev/faqs/faqs-building.md b/zh-cn/device-dev/faqs/faqs-building.md deleted file mode 100644 index 12be2bceb835a87697cac6fb06425a3f966dfe91..0000000000000000000000000000000000000000 --- a/zh-cn/device-dev/faqs/faqs-building.md +++ /dev/null @@ -1,251 +0,0 @@ -# 编译构建子系统常见问题 - -- [轻量和小型系统](#section78686441462) - - [编译构建过程中,提示“usr/sbin/ninja: invalid option -- w”](#section67961431372) - - [编译构建过程中,提示“/usr/bin/ld: cannot find -lncurses”](#section199631617371) - - [编译构建过程中,提示“line 77: mcopy: command not found”](#section937435175) - - [编译构建过程中,提示“riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory”](#section1115535018713) - - [编译构建过程中,提示“No module named 'Crypto'”](#section17982573813) - - [编译构建过程中,提示“xx.sh : xx unexpected operator”](#section53663205819) - - [编译构建过程中,提示“Could not find a version that satisfies the requirement six\>=1.9.0”](#section1917790845) - - [编译构建过程中,提示找不到“-lgcc”](#section141771701647) - - [编译构建过程中,提示找不到“python”](#section51781202415) - - [编译构建过程中,提示找不到“python3”](#section1917950148) - - -## 轻量和小型系统 - -### 编译构建过程中,提示“usr/sbin/ninja: invalid option -- w” - -- **现象描述:** - - 编译失败,提示“usr/sbin/ninja: invalid option -- w”。 - -- **可能原因:** - - 编译环境中ninja版本太低,不支持--w选项。 - -- **解决办法:** - - 卸载环境中ninja和gn,按照[获取工具](../get-code/gettools-ide.md)。 - - -### 编译构建过程中,提示“/usr/bin/ld: cannot find -lncurses” - -- **现象描述:** - - 编译失败,提示“/usr/bin/ld: cannot find -lncurses”。 - -- **可能原因:** - - 编译环境ncurses库缺失。 - -- **解决办法:** - - ``` - sudo apt-get install lib32ncurses5-dev - ``` - - -### 编译构建过程中,提示“line 77: mcopy: command not found” - -- **现象描述:** - - ​编译失败,提示“line 77: mcopy: command not found”。 - -- **可能原因:** - - 编译环境未安装mcopy。 - -- **解决办法:** - - ``` - ​sudo apt-get install dosfstools mtools - ``` - - -### 编译构建过程中,提示“riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory” - -- **现象描述:** - - 编译失败,提示“riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory”。 - -- ​**可能原因:** - - 当前用户对riscv编译器路径下的文件访问权限不够。 - -- ​**解决办法:** - - 查询gcc\_riscv32所在目录。 - - ``` - which riscv32-unknown-elf-gcc - ``` - - 使用chmod命令修改目录权限为755。 - - -### 编译构建过程中,提示“No module named 'Crypto'” - -- **现象描述:** - - 编译失败,提示“No module named 'Crypto'”。 - -- **可能原因:** - - python3未安装Crypto。 - -- **解决办法:** - 1. 查询Python版本号。 - - ``` - python3 --version - ``` - - 2. 需使用python3.7以上版本,然后安装pycryptodome。 - - ``` - sudo pip3 install pycryptodome - ``` - - - -### 编译构建过程中,提示“xx.sh : xx unexpected operator” - -- **现象描述:** - - 编译失败:“xx.sh \[: xx unexpected operator”。 - -- **可能原因:** - - 编译环境shell不是bash。 - -- **解决办法:** - - ``` - sudo rm -rf /bin/sh - sudo ln -s /bin/bash /bin/sh - ``` - - -### 编译构建过程中,提示“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 - ``` - - -- **可能原因** - - 环境中未安装合适的“six”。 - - -- **解决办法** - - 方法1:通过命令“pip3 install six”,在线安装。 - - 方法2:离线安装 - - 通过网页[https://pypi.org/project/six/\#files](https://pypi.org/project/six/#files),下载安装包。 - - ![](figures/download-six.png) - - 将源码放置在Linux服务器中,并安装“pip3 install six-1.14.0-py2.py3-none-any.whl”。 - - 完成上述安装后,重新构建。 - - -### 编译构建过程中,提示找不到“-lgcc” - -- **现象描述** - - 编译构建过程中出现以下错误: - - ``` - riscv32-unknown-elf-ld: cannot find -lgcc - ``` - - -- **可能原因** - - 交叉编译器gcc\_riscv32的PATH添加错误,如下,在"bin"后多添加了一个“/”,应该删除。 - - ``` - ~/gcc_riscv32/bin/:/data/toolchain/ - ``` - - -- **解决办法** - - 重新修改gcc\_riscv32的PATH,将多余的“/”删除。 - - ``` - ~/gcc_riscv32/bin:/data/toolchain/ - ``` - - -### 编译构建过程中,提示找不到“python” - -- **现象描述** - - 编译构建过程中出现以下错误: - - ``` - -bash: /usr/bin/python: No such file or directory - ``` - - -- **可能原因**1 - - 没有装python。 - -- **解决办法** - - 请使用如下命令安装Python,下方以Python3.8为例。 - ``` - sudo apt-get install python3.8 - ``` - -- **可能原因2** - usr/bin目录下没有python软链接 - - ![](figures/reason-no-python-soft-link.png) - -- **解决办法** - - 请运行以下命令添加软链接: - - ``` - # cd /usr/bin/ - # which python3 - # ln -s /usr/local/bin/python3 python - # python --version - ``` - - 例: - - ![](figures/solution-add-soft-link.png) - - -### 编译构建过程中,提示找不到“python3” - -- **现象描述** - - 安装python3过程中出现以下错误: - ``` - configure: error: no acceptable C compiler found in $PATH. See 'config.log' for more details - ``` - -- **可能原因** - - 环境中未安装“gcc”。 - -- **解决办法** - - 1. 通过命令“apt-get install gcc”在线安装。 - 2. 完成后,重新安装python3。 - diff --git a/zh-cn/device-dev/faqs/faqs-burning.md b/zh-cn/device-dev/faqs/faqs-burning.md deleted file mode 100644 index 8e1424d971579d0caac271ecda23281d04c4aa18..0000000000000000000000000000000000000000 --- a/zh-cn/device-dev/faqs/faqs-burning.md +++ /dev/null @@ -1,129 +0,0 @@ -# 烧录常见问题 - -- [轻量和小型系统](#section278314413530) - - [烧写选择串口后,提示“Error: Opening COMxx: Access denied”](#section18988185615914) - - [烧写失败](#section1370982513317) - - [串口无回显](#section183421944953) - - [Windows电脑与单板网络连接失败](#section1215410450215) - - -## 轻量和小型系统 - -### 烧写选择串口后,提示“Error: Opening COMxx: Access denied” - -- **现象描述** - - 点击烧写并选择串口后,出现“Error: Opening COMxx: Access denied”。 - - ![](figures/Failed-to-open-the-serial-port.png) - -- **可能原因** - - 串口已经被占用。 - -- 解决方法 - - 检查主机中可能占用该端口的工具,关闭即可。若是当前工具占用,可按以下步骤排查并关闭: - - 1. 排查终端窗口列表,检查是否被monitor或其他终端占用。 - - ![](figures/terminal-list.png) - - 2. 找到占用,点击垃圾桶图标,关闭占用。 - - -### 烧写失败 - -- **现象描述** - - 点击烧写并选择串口后,出现无法烧写的情况。 - -- **可能原因** - - 安装IDE插件DevEco后未重启。 - -- **解决方法** - - 重启IDE。 - - -### 串口无回显 - -- **现象描述** - - 串口显示已连接,重启单板后,回车无任何回显。 - -- **可能原因1** - - 串口连接错误。 - -- **解决办法** - - 修改串口号。 - - 请查看设备管理器,确认连接单板的串口与终端中连接串口是否一致,若不一致,请按镜像运行修改串口号。 - - -- **可能原因2** - - 单板U-boot被损坏。 - -- **解决办法** - - 烧写U-boot。 - - 若上述步骤依旧无法连接串口,可能由于单板U-boot损坏,按下述步骤烧写U-boot。 - - -1. 获取引导文件U-boot。 - - >![](../public_sys-resources/icon-notice.gif) **须知:** - >单板的U-boot文件请在开源包中获取: - >Hi3516DV300:device\\hisilicon\\hispark\_taurus\\sdk\_liteos\\uboot\\out\\boot\\u-boot-hi3516dv300.bin - >Hi3518EV300:device\\hisilicon\\hispark\_aries\\sdk\_liteos\\uboot\\out\\boot\\u-boot-hi3518ev300.bin - -2. 根据USB烧写步骤烧写U-boot文件。 - - 按照[Hi3516系列USB烧写步骤](https://device.harmonyos.com/cn/docs/ide/user-guides/hi3516_upload-0000001052148681)/[Hi3518系列USB烧写步骤](https://device.harmonyos.com/cn/docs/ide/user-guides/hi3518_upload-0000001057313128)中描述的USB烧写方法,选择对应单板的U-boot文件进行烧写。 - -3. 烧写完成后,登录串口如下图所示。 - - **图 1** U-boot烧写完成串口显示图 - ![](figures/U-boot烧写完成串口显示图.png "U-boot烧写完成串口显示图") - - -### Windows电脑与单板网络连接失败 - -- **现象描述** - - 点击烧写并选择串口后,无法获取文件。 - - **图 2** 网络不通,Hi3516单板无法获取文件 - ![](figures/网络不通-Hi3516单板无法获取文件.png "网络不通-Hi3516单板无法获取文件") - -- **可能原因** - - 单板网络与Windows电脑不联通。 - - Windows电脑防火墙未允许Visual Studio Code联网。 - -- **解决方法** - -1. 检查网线是否连接。 -2. 点击Windows防火墙。 - - ![](figures/hi3516-network-and-firewall-setting.png) - -3. 点击“允许应用通过防火墙”。 - - ![](figures/hi3516-firewall-and-network-protection.png) - -4. 查找Visual Studio Code应用。 - - ![](figures/hi3516-selecting-the-visual-studio-code-application.png) - -5. 勾选Visual Studio Code的专用和公用网络的访问权限。 - - ![](figures/hi3516-allowing-the-visual-studio-code-application-to-access-the-network.png) - - diff --git a/zh-cn/device-dev/faqs/faqs-environment-building.md b/zh-cn/device-dev/faqs/faqs-environment-building.md deleted file mode 100644 index 29ff2a322c3980befd1ff7543d5d44e0e220eefa..0000000000000000000000000000000000000000 --- a/zh-cn/device-dev/faqs/faqs-environment-building.md +++ /dev/null @@ -1,239 +0,0 @@ -# 环境搭建常见问题 - -- [轻量和小型系统](#section1742119306399) - - [安装hb过程中,出现乱码、段错误](#section36351051193919) - - [安装hb过程中,提示"cannot import 'sysconfig' from 'distutils'"](#section48221013144011) - - [安装hb过程中,提示"module 'platform' has no attribute 'linux\_distribution'"](#section10307193044111) - - [安装hb过程中,提示"Could not find a version that satisfies the requirement ohos-build"](#section8692735427) - - [安装python3过程中,提示“configure: error: no acceptable C compiler found in $PATH”](#section870082884217) - - [安装python3过程中,提示“-bash: make: command not found”](#section198707170455) - - [安装python3过程中,提示“zlib not available”](#section85401445204518) - - [安装python3过程中,提示“No module named '\_ctypes'”](#section12202694460) - - [安装 kconfiglib时,遇到lsb\_release错误](#section5803174135115) - - [Linux编译服务器终端输入不识别的命令时提示“ImportError: No module named apt\_pkg”](#section510820516515) - - -## 轻量和小型系统 - -### 安装hb过程中,出现乱码、段错误 - -- **现象描述** - - 执行“python3 -m pip install --user ohos-build”出现乱码、段错误(segmentation fault)。 - - -- **可能原因** - - pip版本过低。 - -- **解决办法** - - 执行如下命令升级pip。 - - ``` - python3 -m pip install -U pip - ``` - - -### 安装hb过程中,提示"cannot import 'sysconfig' from 'distutils'" - -- **现象描述** - - 执行“python3 -m pip install --user ohos-build”提示"cannot import 'sysconfig' from 'distutils'"。 - - -- **可能原因** - - 缺少distutils模块。 - -- **解决办法** - - 执行如下命令安装。 - - ``` - sudo apt-get install python3.8-distutils - ``` - - -### 安装hb过程中,提示"module 'platform' has no attribute 'linux\_distribution'" - -- **现象描述** - - 执行“python3 -m pip install --user ohos-build”提示"module 'platform' has no attribute 'linux\_distribution'"。 - - -- **可能原因** - - python3 pip安装兼容性问题。 - -- **解决办法** - - 执行如下命令重新安装pip。 - - ``` - sudo apt remove python3-pip - curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py - python get-pip.py - ``` - - -### 安装hb过程中,提示"Could not find a version that satisfies the requirement ohos-build" - -- **现象描述** - - 执行“python3 -m pip install --user ohos-build”提示"Could not find a version that satisfies the requirement ohos-build" - - -- **可能原因** - - 可能是网络环境较差导致的安装失败。 - -- **解决办法** - 1. 请检查网络连接是否正常。如果网络有问题,请修复网络问题后重新安装。 - 2. 若网络正常,请尝试指定临时pypi源的方式安装: - - ``` - python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ohos-build - ``` - - - -### 安装python3过程中,提示“configure: error: no acceptable C compiler found in $PATH” - -- **现象描述** - - 安装python3过程中出现以下错误: - - ``` - configure: error: no acceptable C compiler found in $PATH. See 'config.log' for more details - ``` - -- **可能原因** - - 环境中未安装“gcc”。 - -- **解决办法** - - 1、通过命令“apt-get install gcc”在线安装。 - - 2、完成后,重新安装python3。 - - -### 安装python3过程中,提示“-bash: make: command not found” - -- **现象描述** - - 安装python3过程中出现以下错误: - - ``` - -bash: make: command not found - ``` - -- **可能原因** - - 环境中未安装“make”。 - -- **解决办法** - - 1、通过命令“apt-get install make”在线安装。 - - 2、完成后,重新安装python3。 - - -### 安装python3过程中,提示“zlib not available” - -- **现象描述** - - 安装python3过程中出现以下错误: - - ``` - zipimport.ZipImportError: can't decompress data; zlib not available - ``` - -- **可能原因** - - 环境中未安装“zlib”。 - -- **解决办法** - - 方法1:通过命令“apt-get install zlib”在线安装。 - - 方法2:如果软件源中没有该软件,请从“www.zlib.net”下载版本代码,并离线安装。 - - ![](figures/download-zlib.png) - - 完成下载后,通过以下命令安装: - - ``` - # tar xvf zlib-1.2.11.tar.gz - # cd zlib-1.2.11 - # ./configure - # make && make install - ``` - - 完成后,重新安装python3。 - - -### 安装python3过程中,提示“No module named '\_ctypes'” - -- **现象描述** - - 安装python3过程中出现以下错误: - - ``` - ModuleNotFoundError:No module named ‘_ctypes’ - ``` - - -- **可能原因** - - 环境中未安装“libffi”和“libffi-devel”。 - - -- **解决办法** - - 1、通过命令“apt-get install libffi\* -y”,在线安装。 - - 2、完成后,重新安装python3。 - - -### 安装 kconfiglib时,遇到lsb\_release错误 - -- **现象描述** - - 安装kconfiglib过程中遇到如下错误打印: - - ``` - subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1. - ``` - -- **可能原因** - - lsb\_release模块基于的python版本与现有python版本不一致 - -- **解决办法** - - 执行"find / -name lsb\_release",找到lsb\_release位置并删除,如:"sudo rm -rf /usr/bin/lsb\_release" - - -### Linux编译服务器终端输入不识别的命令时提示“ImportError: No module named apt\_pkg” - -- **现象描述** - - Linux编译服务器终端输入不识别的命令时,提示"ImportError: No module named apt\_pkg" - - -- **可能原因** - - python3 apt安装兼容性问题。 - -- **解决办法** - - 执行如下命令重新安装python3-apt。 - - ``` - sudo apt-get remove python3-apt - sudo apt-get install python3-apt - ``` - - diff --git a/zh-cn/device-dev/faqs/faqs-init.md b/zh-cn/device-dev/faqs/faqs-init.md deleted file mode 100644 index 5b4350b27fbaed8520f2a85f68160851bff91b6f..0000000000000000000000000000000000000000 --- a/zh-cn/device-dev/faqs/faqs-init.md +++ /dev/null @@ -1,57 +0,0 @@ -# 启动恢复常见问题 - -- [系统启动过程中打印“parse failed!”错误后停止启动](#section835662214302) -- [系统启动过程未结束就自动重启,如此反复持续](#section3857921143117) -- [参数正确的情况下调用SetParameter/GetParameter返回失败](#section548818116328) - -## 系统启动过程中打印“parse failed!”错误后停止启动 - -**现象描述** - -系统启动过程中,打印“\[Init\] InitReadCfg, parse failed! please check file /etc/init.cfg format.”错误,启动过程停止,如下图所示: - -**图 1** 运行报错图 -![](figures/运行报错图.png "运行报错图") - -**可能原因** - -修改init.cfg文件时,漏掉或多加了逗号或括号等,导致init.cfg文件的json格式被破坏。 - -**解决办法** - -仔细检查init.cfg文件,确保其格式符合json格式要求。 - -## 系统启动过程未结束就自动重启,如此反复持续 - -**现象描述** - -镜像烧写完成后系统启动,启动过程未完成即自动重新启动,如此反复持续。 - -**可能原因** - -被init启动的服务都有一个叫做“importance”的属性(详见[第2章表3](../subsystems/subsys-boot-init.md)描述)。 - -- 当该属性为0时,表示若当前服务进程退出,init不需要重启单板。 -- 当该属性为1时,表示若当前服务进程退出,init需要重启单板。 - -因此出现上述现象的可能原因:有“importance”属性为1的服务在每次启动的过程中都会退出(可能是进程崩溃或出错自动退出),导致init进程自动重启单板。 - -**解决办法** - -1. 需要通过日志确认崩溃或报错退出的服务,并解决其崩溃/报错的问题,然后重新烧写镜像即可。 -2. 也可以将崩溃/报错退出的服务的“importance”属性改为0,然后重新烧写镜像,这样即使其退出,init也不会重启单板。 - -## 参数正确的情况下调用SetParameter/GetParameter返回失败 - -**现象描述** - -在各参数正确的情况下调用SetParameter/GetParameter返回失败。 - -**可能原因** - -程序对SetParameter/GetParameter这两个接口做了权限校验,在各参数正确的情况下调用SetParameter/GetParameter返回操作失败,很有可能是调用者的uid大于1000,没有调用权限。 - -**解决办法** - -无需处理 - diff --git a/zh-cn/device-dev/faqs/faqs-kernel.md b/zh-cn/device-dev/faqs/faqs-kernel.md deleted file mode 100644 index 42b541cfc09099810af74957dc92f4acbe35a6db..0000000000000000000000000000000000000000 --- a/zh-cn/device-dev/faqs/faqs-kernel.md +++ /dev/null @@ -1,92 +0,0 @@ -# 内核常见问题 - -- [基础内核](#section263912372168) - - [LiteOS-A和LiteOS-M内核对外API的差异](#section447571122918) - - [如何分析线程栈溢出](#section8623141711293) - -- [文件系统](#section098519592162) - - [Hi3516开源板以写的模式打开同一个文件失败(LiteOS-A)](#section517972255311) - - [LiteOS内核已支持哪些硬件平台](#section868413518533) - - [LiteOS内核已支持哪几款芯片架构](#section1131661465417) - -- [三方组件](#section971818231178) - - [OpenHarmony已支持哪些三方组件](#section74138185411) - - [在OpenHarmony上使用OpenSSL,出现秘钥长度校验不正确](#section10564614135516) - - [setsockopt是否支持SO\_RCVBUF和SO\_SNDBUF选项](#section2093373215556) - -- [编译链接](#section10955302179) - - [Arm Linux开发的应用程序,OpenHarmony如何在LiteOS-A上运行](#section1164175713557) - - [OpenHarmony在什么系统下编译,使用什么编译器](#section132287223567) - - [LiteOS-M上使用单独编译成静态库的三方组件,出现三方组件中的全局变量值不正确,或调用三方组件的函数后系统卡死](#section15189154225619) - - [LiteOS-A生成目标可执行文件时,提示 use VFP register arguments,xxx.o does not](#section193571012578) - - [clock\_gettime接口获取的时间打印不对](#section8973152015717) - - -## 基础内核 - -### LiteOS-A和LiteOS-M内核对外API的差异 - -基础内核API存在差异,但是LiteOS-A提供标准POSIX接口,LiteOS-M提供标准POSIX和CMSIS接口。如果要支持跨平台,三方适配建议使用POSIX等标准接口。 - -### 如何分析线程栈溢出 - -**问题现象** - -系统异常,提示CURRENT task xxx stack overflow! - -**解决措施** - -1. 创建xxx线程的时候成倍加大栈空间,多次尝试如果问题不复现,则说明任务栈不够,需要调整; -2. 如果成倍加大线程栈,问题依旧复现,则排查xxx线程中是否定义超大数组,或者流程是否存在递归调用; -3. 确认无前述问题,则需要排查是否存在踩内存的情况。 - -## 文件系统 - -### Hi3516开源板以写的模式打开同一个文件失败(LiteOS-A) - -Hi3516开源板使用FAT文件系统,不允许该操作。 - -### LiteOS内核已支持哪些硬件平台 - -开源版本LiteOS-A已支持Hi3516/Hi3518开发板;LiteOS-M已支持Hi3861开发板、STM32F103、野火挑战者STM32F429IGTb、Nucleo\_f767zi等,详细查看kernel/liteos\_m目录下的README\_zh.md文件。 - -### LiteOS内核已支持哪几款芯片架构 - -LiteOS-M已支持risc-v、Cortex-m3\\m4\\m7\\m33、arm9,待支持c-sky、xtensa;LiteOS-A已支持armv7-a,待支持armv8-a,请关注开源社区更新。 - -## 三方组件 - -### OpenHarmony已支持哪些三方组件 - -已提供mbedtls、lwip等开源组件和三方库,可以直接使用;另外提供标准的POSIX接口,可以自行适配。 - -### 在OpenHarmony上使用OpenSSL,出现秘钥长度校验不正确 - -OpenSSL编译选项中要注意架构类型(ARM,X86等)和系统位数(32、64位)是否选择正确。 - -### setsockopt是否支持SO\_RCVBUF和SO\_SNDBUF选项 - -不支持。 - -## 编译链接 - -### Arm Linux开发的应用程序,OpenHarmony如何在LiteOS-A上运行 - -需要用开源版本提供的交叉编译器重新编译应用程序,才可以运行。 - -### OpenHarmony在什么系统下编译,使用什么编译器 - -LiteOS-A在linux环境进行编译,使用LLVM编译器;LiteOS-M在Linux或Windows环境进行编译,使用IAR、Keil、GCC等编译工具。 - -### LiteOS-M上使用单独编译成静态库的三方组件,出现三方组件中的全局变量值不正确,或调用三方组件的函数后系统卡死 - -检查三方组件编译选项中是否有-fPIE -fpie -fPIC -fpic等地址无关编译选项,如果有,则去掉,重新编译成库使用。 - -### LiteOS-A生成目标可执行文件时,提示 use VFP register arguments,xxx.o does not - -请确认xxx.o编译时是否添加-mfloat-abi=xxx -mcpu=xxx -mfpu=xxx编译选项,若没有,则需要添加。 - -### clock\_gettime接口获取的时间打印不对 - -struct timespec结构中tv\_sec为time\_t,而time\_t为long long类型,打印控制符为%lld,请确认实际打印控制符是否正确。 - diff --git a/zh-cn/device-dev/faqs/faqs-overview.md b/zh-cn/device-dev/faqs/faqs-overview.md deleted file mode 100644 index e8ed3fc369d6e55bd18ebc1395fa9d941f59bbc4..0000000000000000000000000000000000000000 --- a/zh-cn/device-dev/faqs/faqs-overview.md +++ /dev/null @@ -1,138 +0,0 @@ -# 常见问题概述 - -- [环境搭建](#section93289248249) - - [轻量和小型系统](#section197234983111) - -- [编译构建子系统](#section18826114693810) - - [轻量和小型系统](#section693410399) - -- [烧录](#section6556741113712) - - [轻量和小型系统](#section1029933713812) - -- [内核](#section13741125564211) - - [基础内核](#section1723365191114) - - [文件系统](#section14523145918136) - - [芯片适配](#section141541939159) - - [三方组件](#section4988163321816) - - [编译链接](#section080219574225) - -- [移植](#section129331824154313) -- [启动恢复](#section83501764443) -- [系统服务](#section19567132114455) - - [公共基础库](#section3214181711465) - - [视觉应用常见问题](#section295651815466) - - [hdc](#section178081876506) - - -常见问题主要用于帮助开发者解决在开发过程中经常出现的一类问题问题。当前提供了如下常见问题供开发者进行查询。 - -## 环境搭建 - -### 轻量和小型系统 - -- [安装hb过程中出现乱码、段错误](faqs-environment-building.md#section36351051193919) -- [安装hb过程中,提示"cannot import 'sysconfig' from 'distutils'"](faqs-environment-building.md#section48221013144011) -- [安装hb过程中,提示"module 'platform' has no attribute 'linux\_distribution'"](faqs-environment-building.md#section8692735427) -- [安装hb过程中,提示"Could not find a version that satisfies the requirement ohos-build"](faqs-environment-building.md#section8692735427) -- [安装python3过程中,提示“configure: error: no acceptable C compiler found in $PATH”](faqs-environment-building.md#section870082884217) -- [安装python3过程中,提示“-bash: make: command not found”](faqs-environment-building.md#section198707170455) -- [安装python3过程中,提示“zlib not available”](faqs-environment-building.md#section85401445204518) -- [安装python3过程中,提示“No module named '\_ctypes'”](faqs-environment-building.md#section12202694460) -- [安装 kconfiglib时,遇到lsb\_release错误](faqs-environment-building.md#section5803174135115) -- [Linux编译服务器终端输入不识别的命令时提示“ImportError: No module named apt\_pkg”](faqs-environment-building.md#section510820516515) - -## 编译构建子系统 - -### 轻量和小型系统 - -- [编译构建过程中,提示“usr/sbin/ninja: invalid option -- w”](faqs-building.md#section67961431372) -- [编译构建过程中,提示“/usr/bin/ld: cannot find -lncurses”](faqs-building.md#section199631617371) -- [编译构建过程中,提示“line 77: mcopy: command not found”](faqs-building.md#section937435175) -- [编译构建过程中,提示“riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory”](faqs-building.md#section1115535018713) -- [编译构建过程中,提示“No module named 'Crypto'”](faqs-building.md#section17982573813) -- [编译构建过程中,提示“Could not find a version that satisfies the requirement six\>=1.9.0”](faqs-building.md#section1917790845) -- [编译构建过程中,提示“Could not find a version that satisfies the requirement six\>=1.9.0”](faqs-building.md#section1917790845)” -- [编译构建过程中,提示找不到“-lgcc”](faqs-building.md#section141771701647) -- [编译构建过程中,提示找不到“python”](faqs-building.md#section51781202415) -- [编译构建过程中,提示找不到“python3”](faqs-building.md#section1917950148) - -## 烧录 - -### 轻量和小型系统 - -- [烧写选择串口后,提示“Error: Opening COMxx: Access denied”](faqs-burning.md#section18988185615914) - -- [烧写失败](faqs-burning.md#section1370982513317) -- [串口无回显](faqs-burning.md#section183421944953) -- [Windows电脑与单板网络连接失败](faqs-burning.md#section1215410450215) - -## 内核 - -### 基础内核 - -- [LiteOS-A和LiteOS-M内核对外API的差异](faqs-kernel.md#section447571122918) -- [如何分析线程栈溢出](faqs-kernel.md#section8623141711293) - -### 文件系统 - -- [Hi3516开源板以写的模式打开同一个文件失败(LiteOS-A)](faqs-kernel.md#section517972255311) - -### 芯片适配 - -- [LiteOS内核已支持哪些硬件平台](faqs-kernel.md#section868413518533) -- [LiteOS内核已支持哪几款芯片架构](faqs-kernel.md#section1131661465417) - -### 三方组件 - -- [OpenHarmony已支持哪些三方组件](faqs-kernel.md#section74138185411) -- [在OpenHarmony上使用OpenSSL,出现秘钥长度校验不正确](faqs-kernel.md#section10564614135516) -- [setsockopt是否支持SO\_RCVBUF和SO\_SNDBUF选项](faqs-kernel.md#section2093373215556) - -### 编译链接 - -- [Arm Linux开发的应用程序,如何在LiteOS-A上运行](faqs-kernel.md#section1164175713557) -- [OpenHarmony在什么系统下编译,使用什么编译器](faqs-kernel.md#section132287223567) -- [LiteOS-M上使用单独编译成静态库的三方组件,出现三方组件中的全局变量值不正确,或调用三方组件的函数后系统卡死](faqs-kernel.md#section15189154225619) -- [LiteOS-A生成目标可执行文件,提示 use VFP register arguments,xxx.o does not](faqs-kernel.md#section193571012578) -- [clock\_gettime接口获取的时间打印不对](faqs-kernel.md#section8973152015717) - -## 移植 - -- [如何将用户的堆内存挂载进内核](faqs-transplant.md#section21471536184914) - -## 启动恢复 - -- [系统启动过程中打印“parse failed!”错误后停止启动](faqs-init.md#section835662214302) -- [系统启动过程未结束就自动重启,如此反复持续](faqs-init.md#section3857921143117) -- [参数正确的情况下调用SetParameter/GetParameter返回失败](faqs-init.md#section548818116328) - -## 系统服务 - -### 公共基础库 - -- [LiteOS-A内核\(Hi3516、Hi3518平台\)KV存储路径设置错误,导致KV存储运行失败](faqs-system-using.md#section16520347131511) - -### 视觉应用常见问题 - -- [是否存在一个全局变量,所有的页面都可以访问?](faqs-system-using.md#section187297991718) -- [如何获取dom中的元素](faqs-system-using.md#section1833493719175) -- [如何在页面间传值?](faqs-system-using.md#section184283812183) -- [list如何滚动到某个item?](faqs-system-using.md#section11897734131811) -- [text支持多行吗?](faqs-system-using.md#section5872656121814) -- [为什么控件不显示?](faqs-system-using.md#section7397125317107) -- [如何实现页面滑动?](faqs-system-using.md#section338794422010) -- [Left、Top为什么不生效?](faqs-system-using.md#section2597193611217) -- [动态绑定为什么不生效?](faqs-system-using.md#section6939050172115) -- [如何实现相对定位和绝对定位?](faqs-system-using.md#section5547311192215) -- [如何控制控件的显示与隐藏?](faqs-system-using.md#section16107113352213) -- [使用Margin时,有什么注意事项?](faqs-system-using.md#section1524910142314) -- [使用事件订阅时,有什么注意事项?](faqs-system-using.md#section1537132012231) -- [使用动态绑定时,有什么注意事项?](faqs-system-using.md#section96561452236) -- [swiper loop属性如何生效?](faqs-system-using.md#section690166112414) -- [使用数组时,有什么注意事项?](faqs-system-using.md#section1554552822414) - -### hdc - -- [hdc\_std连接不到设备](faqs-system-using.md#section1965012223257) -- [hdc\_std运行不了](faqs-system-using.md#section1157575212515) -