修复编译问题

Signed-off-by: Laowang-BearPi <wangcheng@holdiot.com>
This commit is contained in:
Laowang-BearPi
2024-05-14 09:33:53 +08:00
parent 2d50696abd
commit 7be9ae06de
7 changed files with 25 additions and 15 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
],
"component": {
"name": "bearpi_hm_micro_sample",
"subsystem": "bearpi_hm_micro_sample",
"subsystem": "device_bearpi_hm_micro",
"syscap": [
""
],
@@ -18,7 +18,7 @@ repo forall -c 'git lfs pull'
选择bearpi_hm_micro
hb build --tee -f
hb build --tee -f --gn-args tee_enable=true
```
2. 查看编译出的固件位置
@@ -46,10 +46,10 @@ repo forall -c 'git lfs pull'
### 一、安装软件
- 下载并安装JRE
- 下载地址(百度云):https://pan.baidu.com/s/1yuMn4YulfP6j50mQA8faoA 提取码:1234
- 下载地址(百度云):https://pan.baidu.com/s/1y6ev83VV7mk7RMigdBDMmw?pwd=1234 提取码:1234
- 下载并安装STM32CubeProgrammer(需要2.4.0+版本)
- 下载地址(百度云):https://pan.baidu.com/s/1XfFFFs7UdE9TPdN0FdA6ag 提取码:1234
- 下载地址(百度云):https://pan.baidu.com/s/1y6ev83VV7mk7RMigdBDMmw?pwd=1234 提取码:1234
### 二、连接开发板
@@ -118,7 +118,7 @@ Linux服务器通用环境配置需要的工具及其获取途径如下表所示
</td>
<td class="cellrowborder" valign="top" width="50.29502950295029%" headers="mcps1.2.4.1.2 "><p id="p18342658131511"><a name="p18342658131511"></a><a name="p18342658131511"></a>代码烧录工具。</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.3 "><p id="p6449184214148"><a name="p6449184214148"></a><a name="p6449184214148"></a><a href="https://pan.baidu.com/s/1XfFFFs7UdE9TPdN0FdA6ag" target="_blank" rel="noopener noreferrer">https://pan.baidu.com/s/1XfFFFs7UdE9TPdN0FdA6ag</a>密码:1234</p>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.3 "><p id="p6449184214148"><a name="p6449184214148"></a><a name="p6449184214148"></a><a href="https://pan.baidu.com/s/1y6ev83VV7mk7RMigdBDMmw?pwd=1234" target="_blank" rel="noopener noreferrer">https://pan.baidu.com/s/1y6ev83VV7mk7RMigdBDMmw?pwd=1234</a>密码:1234</p>
</td>
</tr>
</tbody>
+10
View File
@@ -0,0 +1,10 @@
{
"parts": {
"device_bearpi_hm_micro": {
"module_list": [
"//device/board/bearpi/bearpi_hm_micro:bearpi_hm_micro"
]
}
},
"subsystem": "device_bearpi_hm_micro"
}
@@ -6,9 +6,9 @@
## 二、开始下载
- 下载官方提供镜像
- 下载地址(百度云):https://pan.baidu.com/s/1T0Tcl3y48C1p5L6y-6HJNg 提取码:eusr
- 下载地址(百度云):https://pan.baidu.com/s/1vSpPWvIhL8wCVGnEOjXS7g?pwd=1234 提取码:eusr
- 下载HiBurn
- 下载地址(百度云):https://pan.baidu.com/s/1i6P_LuUzclS6hlQ3XHOobQ&t=downloads 提取码:1234
- 下载地址(百度云):https://pan.baidu.com/s/1vSpPWvIhL8wCVGnEOjXS7g?pwd=1234 提取码:1234
- 下载并安装虚拟机VMware Workstation
- 下载地址:https://www.vmware.com/products/workstation-player/workstation-player-evaluation.html
@@ -67,7 +67,7 @@ Linux服务器通用环境配置需要的工具及其获取途径如下表所示
</td>
<td class="cellrowborder" valign="top" width="20.7020702070207%" headers="mcps1.2.4.1.2 "><p id="p1219863434519"><a name="p1219863434519"></a><a name="p1219863434519"></a>交叉编译工具</p>
</td>
<td class="cellrowborder" valign="top" width="53.73537353735374%" headers="mcps1.2.4.1.3 "><p id="p165031126103215"><a name="p165031126103215"></a><a name="p165031126103215"></a><a href="https://pan.baidu.com/s/1bp2ypAfH2HaNPTY2KwEhEA" target="_blank" rel="noopener noreferrer">https://pan.baidu.com/s/1bp2ypAfH2HaNPTY2KwEhEA </a>提取码:1234 </p>
<td class="cellrowborder" valign="top" width="53.73537353735374%" headers="mcps1.2.4.1.3 "><p id="p165031126103215"><a name="p165031126103215"></a><a name="p165031126103215"></a><a href="https://pan.baidu.com/s/1vSpPWvIhL8wCVGnEOjXS7g?pwd=1234" target="_blank" rel="noopener noreferrer">https://pan.baidu.com/s/1vSpPWvIhL8wCVGnEOjXS7g?pwd=1234 </a>提取码:1234 </p>
</td>
</tr>
<tr id="row430016273514"><td class="cellrowborder" valign="top" width="25.562556255625562%" headers="mcps1.2.4.1.1 "><p id="p330015271158"><a name="p330015271158"></a><a name="p330015271158"></a>Python3.7+</p>
@@ -102,14 +102,14 @@ Linux服务器通用环境配置需要的工具及其获取途径如下表所示
</td>
<td class="cellrowborder" valign="top" width="20.7020702070207%" headers="mcps1.2.4.1.2 "><p id="p4588135634213"><a name="p4588135634213"></a><a name="p4588135634213"></a>产生ninja编译脚本</p>
</td>
<td class="cellrowborder" valign="top" width="53.73537353735374%" headers="mcps1.2.4.1.3 "><p id="p10572194318318"><a name="p10572194318318"></a><a name="p10572194318318"></a><a href="https://pan.baidu.com/s/1bp2ypAfH2HaNPTY2KwEhEA" target="_blank" rel="noopener noreferrer">https://pan.baidu.com/s/1bp2ypAfH2HaNPTY2KwEhEA </a>提取码:1234</p>
<td class="cellrowborder" valign="top" width="53.73537353735374%" headers="mcps1.2.4.1.3 "><p id="p10572194318318"><a name="p10572194318318"></a><a name="p10572194318318"></a><a href="https://pan.baidu.com/s/1vSpPWvIhL8wCVGnEOjXS7g?pwd=1234" target="_blank" rel="noopener noreferrer">https://pan.baidu.com/s/1vSpPWvIhL8wCVGnEOjXS7g?pwd=1234 </a>提取码:1234</p>
</td>
</tr>
<tr id="row16990164213404"><td class="cellrowborder" valign="top" width="25.562556255625562%" headers="mcps1.2.4.1.1 "><p id="p1858825613428"><a name="p1858825613428"></a><a name="p1858825613428"></a>ninja</p>
</td>
<td class="cellrowborder" valign="top" width="20.7020702070207%" headers="mcps1.2.4.1.2 "><p id="p15844174611816"><a name="p15844174611816"></a><a name="p15844174611816"></a>执行ninja编译脚本</p>
</td>
<td class="cellrowborder" valign="top" width="53.73537353735374%" headers="mcps1.2.4.1.3 "><p id="p377581023312"><a name="p377581023312"></a><a name="p377581023312"></a><a href="https://pan.baidu.com/s/1bp2ypAfH2HaNPTY2KwEhEA" target="_blank" rel="noopener noreferrer">https://pan.baidu.com/s/1bp2ypAfH2HaNPTY2KwEhEA </a>提取码:1234</p>
<td class="cellrowborder" valign="top" width="53.73537353735374%" headers="mcps1.2.4.1.3 "><p id="p377581023312"><a name="p377581023312"></a><a name="p377581023312"></a><a href="https://pan.baidu.com/s/1vSpPWvIhL8wCVGnEOjXS7g?pwd=1234" target="_blank" rel="noopener noreferrer">https://pan.baidu.com/s/1vSpPWvIhL8wCVGnEOjXS7g?pwd=1234 </a>提取码:1234</p>
</td>
</tr>
</tbody>
@@ -154,7 +154,7 @@ Linux服务器通用环境配置需要的工具及其获取途径如下表所示
</td>
<td class="cellrowborder" valign="top" width="50.29502950295029%" headers="mcps1.2.4.1.2 "><p id="p18342658131511"><a name="p18342658131511"></a><a name="p18342658131511"></a>代码烧录工具。</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.3 "><p id="p6449184214148"><a name="p6449184214148"></a><a name="p6449184214148"></a><a href="https://pan.baidu.com/s/1bp2ypAfH2HaNPTY2KwEhEA" target="_blank" rel="noopener noreferrer">https://pan.baidu.com/s/1bp2ypAfH2HaNPTY2KwEhEA</a>密码:1234</p>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.3 "><p id="p6449184214148"><a name="p6449184214148"></a><a name="p6449184214148"></a><a href="https://pan.baidu.com/s/1vSpPWvIhL8wCVGnEOjXS7g?pwd=1234" target="_blank" rel="noopener noreferrer">https://pan.baidu.com/s/1vSpPWvIhL8wCVGnEOjXS7g?pwd=1234</a>密码:1234</p>
</td>
</tr>
</tbody>
@@ -314,7 +314,7 @@ sudo ln -s /bin/bash /bin/sh
## 安装gn<a name="section2024354014506"></a>
1. 打开Linux编译服务器终端。
2. 下载gn工具:https://pan.baidu.com/s/1bp2ypAfH2HaNPTY2KwEhEA 提取码:1234
2. 下载gn工具:https://pan.baidu.com/s/1vSpPWvIhL8wCVGnEOjXS7g?pwd=1234 提取码:1234
3. 解压gn安装包至\~/gn路径下:"tar -xvf gn.1523.tar -C \~/"。
4. 设置环境变量:"vim \~/.bashrc", 新增:"export PATH=\~/gn:$PATH"。
5. 生效环境变量:"source \~/.bashrc"。
@@ -322,7 +322,7 @@ sudo ln -s /bin/bash /bin/sh
## 安装ninja<a name="section182441140185010"></a>
1. 打开Linux编译服务器终端
2. 下载ninja工具:https://pan.baidu.com/s/1bp2ypAfH2HaNPTY2KwEhEA 提取码:1234
2. 下载ninja工具:https://pan.baidu.com/s/1vSpPWvIhL8wCVGnEOjXS7g?pwd=1234 提取码:1234
3. 解压ninja安装包至\~/ninja路径下:"tar -xvf ninja.1.9.0.tar -C \~/"。
4. 设置环境变量:"vim \~/.bashrc", 新增:"export PATH=\~/ninja:$PATH"。
5. 生效环境变量:"source \~/.bashrc"。
@@ -333,7 +333,7 @@ sudo ln -s /bin/bash /bin/sh
>Hi3861平台仅支持使用libgcc运行时库的静态链接,**不建议开发者使用libgcc运行时库的动态链接,会导致商业分发时被GPL V3污染。**
1. 打开Linux编译服务器终端。
2. 下载gcc\_riscv32工具:https://pan.baidu.com/s/1bp2ypAfH2HaNPTY2KwEhEA 提取码:1234
2. 下载gcc\_riscv32工具:https://pan.baidu.com/s/1vSpPWvIhL8wCVGnEOjXS7g?pwd=1234 提取码:1234
3. 解压gcc\_riscv32安装包至/opt/gcc\_riscv32路径下:"tar -xvf gcc\_riscv32-linux-7.3.0.tar.gz -C \~/"。
4. 设置环境变量:"vim \~/.bashrc",新增:"export PATH=\~/gcc\_riscv32/bin:$PATH"。
5. 生效环境变量:"source \~/.bashrc"。
@@ -45,7 +45,7 @@ repo forall -c 'git lfs pull'
### 二、烧录代码
1. 在Windows打开Hiburn工具,并点击`Refresh`,在`COM`中选择`第一-4`看到的COM号,如下图所示。
- Hiburn工具下载地址(百度云):https://pan.baidu.com/s/1i6P_LuUzclS6hlQ3XHOobQ&amp;t=downloads 提取码:1234
- Hiburn工具下载地址(百度云):https://pan.baidu.com/s/1vSpPWvIhL8wCVGnEOjXS7g?pwd=1234 提取码:1234