Comments (7)
欢迎使用多bin编译方式,现在开源版本支持kernel和app bin编译方式(两bin),后续版本会支持framework bin方式(三bin)。这里有介绍:
https://github.com/alibaba/AliOS-Things/wiki/AliOS-Things-BINS-Porting-Guide
from alios-things.
@atmfjg
看文档,只介绍了一下如何编译多个 bin 文件,但是没说为啥需要编译多个 bin 文件/这样做的好处是啥
from alios-things.
@tidyjiang8 多个 .bin 文件,实现了 kernel、APP 的组件化(组件化的方式弹性组合),从而比较方便调试&开发。eg. 某个 APP 应用代码的修改可以仅更新板子上的 App.bin,而板子上的内核 kernel.bin 则就可以不用一起更新; 同理,也适用于内核 bin 的更新操作。
from alios-things.
#ifdef MBEDTLS_IN_KERNEL
PROVIDE(app_info_addr = 0x0070400);
PROVIDE(kernel_download_addr = 0x0013200);
PROVIDE(app_download_addr = 0x0077440);
PROVIDE(ota_download_addr = 0x009c300);
#else
PROVIDE(app_info_addr = 0x0067C00);
PROVIDE(kernel_download_addr = 0x0013200);
PROVIDE(app_download_addr = 0x006E3C0);
PROVIDE(ota_download_addr = 0x00A5380);
#endif
@atmfjg 请问 多个 .bin 文件 和 单个 bin 方式下,app_download_addr 对应的加载地址为什么设计成不同的加载地址呢(0x0077440、0x006E3C0)? 我觉得在这里设计成同一个地址应该也可以吧。 向您请教这里设计成不同地址的考虑是什么呢?
from alios-things.
@tidyjiang8 @blueliuyun 面对物联网芯片资源有限的情况下,面对fota升级的硬性需求,除了查分算法等,我们是不是可以使用多bin方式来做这些,是不是可以节省相应的硬件flash资源。
from alios-things.
@blueliuyun 单bin不需要app_download_addr,这里有两份都是针对多bin的(理论上主要一份即可),一个针对mk3060的特殊需求。
from alios-things.
@atmfjg 好的,谢谢回复。
from alios-things.
Related Issues (20)
- [Bug Report]: 烧录m5stack core2设备haas提供的helloworld实例例程时烧录失败 HOT 1
- [Feature Request]: 希望可以添加编码器接口以方便调试调用
- 能否在HaaS python中为esp32实现软串口功能?
- [Feature Request]: 为什么haas-studio没有js的快速开始和haas610?
- 在尝试使用aos-tools编译tflite_micro_speech_demo例程时失败,提示 fatal error: echo_canceller.h: No such file or directory 33 | #include "echo_canceller.h"
- [Bug Report]: Unexpected chip id in image.
- [Bug Report]: BLE蓝牙MTU无法修改问题 HOT 1
- [Bug Report]: esp32 的python轻应用无法退出repl模式进入到cli模式
- [Feature Request]: 请问支持haas600吗?
- [Bug Report]: 烧录失败,请查看输出
- HaaS Studio在WSL中安装无法打开“快速开始”
- [Feature Request]: SmartTrace的分析工具在哪?附件上没有链接呢
- [Feature Request]: 关于SDK是否支持TG7100C HOT 1
- [Feature Request]: 实时性与性能Benchmark相关测试用例
- [Feature Request]: 请问一下HaaS 有没有成熟的适配好的4G模组,功耗低的
- [Bug Report]: Need confirmation for unpatched CVE
- [Feature Request]: 官网Haas钉钉群不能使用了吗,咨询只能通过阿里云工单吗
- 找不到gen_newproject.py文件
- [Bug Report]: 源码中选择helloworld_demo编译报错 HOT 2
- [Bug Report]: 发现与CVE-2021-22901类似的同源漏洞
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alios-things.