问题标签 [mender]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
146 浏览

yocto - STM32MP157C-DK2 上的 YOCTO (dunfell) 和 Mender

我们正在尝试在 STM32MP157C-DK2 上使用 yocto dunfell 和 mender

我们(可能是坏的)想法是为 yocto thud 复制 STM32MP157C mender-community 层,使用 devtool 创建 u-boot 补丁。

现在,我们可以构建(获取 .mender 和 .gptimg 文件)并启动开发板。Mender 服务器将电路板识别为待处理设备,并且可以接受它。但是我们在分区方面存在一些问题。如果我们使用修补程序客户端,我们会收到此错误:

无法读取当前活动分区:引导分区和根分区不匹配。:退出状态 243

此外,如果我们使用 fw_printenv 命令,我们会得到:

fw_printenv 无法使用默认值读取环境 无法从文件中读取默认环境

U-boot版本是2020.01

任何建议如何解决这个问题?

0 投票
2 回答
269 浏览

node.js - How can I require node modules across disk partitions?

  • Node.js Version: 14.15.0
  • OS: Raspbian
  • Scope (install, code, runtime, meta, other?): require

I have a Node program that I run on Raspberry Pi 4. I've recently started using a OTA deployment system called Mender to push updates to my code on remote RPis. Mender creates a partition system that uses two 3.5GB partitions, one as the main and the other as a rollback in the event of a failed deployment. And it has a 3rd partition /data, that is around 20GB in my case, for things that need to be persisted between updates.

I was unable to get my entire application and all of it's node module dependencies into the 3.5GB partition. So I moved the node_modules directory to the /data partition and created a symlink that points back to my project directory(home/pi/myProject). This works for module installs but when I try to require an installed module from within my project an error is thrown;

Is there a configuration I need to set to make this work?

0 投票
0 回答
26 浏览

firebase - Firebase 中用于 GC>mender OTA 集成的函数运行时出错

我正在尝试按照本教程将 Google Cloud IOT Core 与修补程序集成。我已经解决了很多部署 firebase 功能以预先授权设备进行修补的问题,现在已经部署了该功能。

当我将设备添加到 GCC 时,该功能运行,但是出现错误

TypeError [ERR_INVALID_ARG_TYPE]:第一个参数必须是 string、Buffer、ArrayBuffer、Array 或 Array-like Object 类型之一。接收类型未定义

js/ts 真的不是我的事,错误并没有真正指出问题所在。我已经看完了剧本,没有什么对我大喊大叫,说有一个不正确的论点。我在运行时尝试过 node v 10 和 12 但错误是一样的

我添加了以下内容来解决 arg 错误(以防万一):

但不确定要在 src 中更改什么,以便函数正常运行。请问有什么想法吗?这是来源

0 投票
1 回答
19 浏览

azure - 将 Mender 设备从旧 Mender 帐户导出到新帐户

我使用 Mender.io,我有我的旧 mender 帐户,现在我创建新的 mender 帐户。我如何将所有设备迁移到新帐户?我使用托管的 Mender(没有 Mender 服务器)。我的 IoT 设备是天蓝色的,我使用 Azure DevOps 来发布。请帮我!