You can cross build images from an amd64 device to target an arm64 device easily, just run the same ubuntu-image command on amd64 instead of your target device.
Oh, the docs mention: " The ubuntu-image command needs to be run on the same architecture as the target image and needs only the filename of the model assertion to build an image."
This would be used with auto-connect via greedy plugs, see for example the arduino snap which had this approved recently.
So if my device shows up as - snapd:cp2102cp2109uartbrid (allows accessing a specific serial port)
, then in my snapcraftyaml, I need:
apps:
my-app:
plugs:
- cp2102cp2109uartbrid
plugs:
serial-port:
allow-auto-connection:
slots-per-plug: 1
Is that about right?