File tree Expand file tree Collapse file tree 2 files changed +30
-18
lines changed
docs/xrobot/guide/xiaozhi-firmware Expand file tree Collapse file tree 2 files changed +30
-18
lines changed Original file line number Diff line number Diff line change 1- # esp32固件编译
1+ ---
2+ title : esp32固件编译
3+ ---
24
3- ## 第1步 准备好ota地址
45
6+ ## 1. 准备好OTA址
7+
8+ ``` PlainText
59https://xrobo.qiniuapi.com/v1/ota/
10+ ```
11+
12+ ## 2. 配置环境
613
7- ## 第2步 配置环境
814### Windows
915
10- 先按照这个教程配置项目环境 [ 《Windows搭建 ESP IDF 5.3.2开发环境以及编译小智》] ( https://icnynnzcwou8.feishu.cn/wiki/JEYDwTTALi5s2zkGlFGcDiRknXf )
16+ 参考教程 [ 《Windows搭建 ESP IDF 5.3.2开发环境以及编译小智》] ( https://icnynnzcwou8.feishu.cn/wiki/JEYDwTTALi5s2zkGlFGcDiRknXf )
1117
1218### Mac / Linux
1319
14- 参考该教程进行配置:https://docs.espressif.com/projects/esp-idf/zh_CN/v5.5/esp32s3/get-started/linux-macos-setup.html
20+ 参考教程 < https://docs.espressif.com/projects/esp-idf/zh_CN/v5.5/esp32s3/get-started/linux-macos-setup.html >
21+
22+ ## 3. 打开配置文件
1523
16- ## 第3步 打开配置文件
1724配置好编译环境后,下载虾哥iaozhi-esp32项目源码,
1825
1926从这里下载虾哥[ xiaozhi-esp32项目源码] ( https://github.com/78/xiaozhi-esp32 ) 。
2027
2128下载后,打开` xiaozhi-esp32/main/Kconfig.projbuild ` 文件。
2229
23- ## 第4步 修改OTA地址
30+ ## 4. 修改OTA地址
2431
2532找到` OTA_URL ` 的` default ` 的内容,把` https://api.tenclass.net/xiaozhi/ota/ `
2633 改成·` https://xrobo.qiniuapi.com/v1/ota/ ` ,就把内容改成这个。
2734
2835修改前:
29- ```
36+
37+ ``` PlainText
3038config OTA_URL
3139 string "Default OTA URL"
3240 default "https://api.tenclass.net/xiaozhi/ota/"
3341 help
3442 The application will access this URL to check for new firmwares and server address.
3543```
44+
3645修改后:
37- ```
46+
47+ ``` PlainText
3848config OTA_URL
3949 string "Default OTA URL"
4050 default "https://xrobo.qiniuapi.com/v1/ota/"
4151 help
4252 The application will access this URL to check for new firmwares and server address.
4353```
4454
45- ## 第4步 设置编译参数
55+ ## 5. 设置编译参数
4656
4757设置编译参数
4858
49- ```
59+ ``` cmd
5060# 终端命令行进入xiaozhi-esp32的根目录
5161cd xiaozhi-esp32
5262# 例如我使用的板子是esp32s3,所以设置编译目标为esp32s3,如果你的板子是其他型号,请替换成对应的型号
@@ -58,21 +68,23 @@ idf.py menuconfig
5868进入菜单配置后,再进入` Xiaozhi Assistant ` ,将` BOARD_TYPE ` 设置你板子的具体型号
5969保存退出,回到终端命令行。
6070
61- ## 第5步 编译固件
71+ ## 6. 编译固件
6272
63- ```
73+ ``` cmd
6474idf.py build
6575```
6676
67- ## 第6步 打包bin固件
77+ ## 7. 打包bin固件
6878
69- ```
79+ ``` cmd
7080cd scripts
7181python release.py
7282```
7383
7484上面的打包命令执行完成后,会在项目根目录下的` build ` 目录下生成固件文件` merged-binary.bin ` 。
7585这个` merged-binary.bin ` 就是要烧录到硬件上的固件文件。
7686
77- 注意:如果执行到第二命令后,报了“zip”相关的错误,请忽略这个错误,只要` build ` 目录下生成固件文件` merged-binary.bin `
78- ,对你没有太大影响,请继续。
87+ > [ !NOTE]
88+ >
89+ > 如果执行到第二命令后,报了“zip”相关的错误,请忽略这个错误,只要` build ` 目录下生成固件文件` merged-binary.bin `
90+ > ,对你没有太大影响,请继续。
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ title: 通过微信小程序
55<script setup >
66import { Chapters , ChapterItems } from " ../../../.vitepress/theme/constrants/route" ;
77
8- const chapter_root = Chapters .xrobot_platform_others_mp ;
8+ const chapter_root = Chapters .xrobot_guide_xiaozhi_hardware ;
99const mp_net_config_link = ChapterItems[chapter_root].filter (item => item .link === chapter_root)[0 ].items .filter (item => item .link .endsWith (" net-config" ))[0 ].link ;
1010</script >
1111
You can’t perform that action at this time.
0 commit comments