The Moxa UC-8100 line of "industrial IoT gateways", such as the Moxa UC-8112-LX, can be a good solution for on-site data acquisition. To get the most out of them we want to enable them to run snaps, like https://snapcraft.io/ammp-edge. Unfortunately, as of writing, the latest v2.0 firmware provided with these devices does not support this, for two main reasons:
- The pre-installed OS is Debian 8, while
snapd
requires at least Debian 9. - The stock kernel does not include SquashFS support, and does not have the required
CONFIG_DEVPTS_MULTIPLE_INSTANCES
option set.
The steps for rectifying these shortcomings are roughly as follows:
The following commands assume you're doing this on the Moxa device itself, though for more expedient results you'll want to cross-compile on something more powerful. Also note that in order to build the kernel you'll need a couple of GB of free space, which is more