I’m running an own image + gadget snap, which is based on stock pi3-gadget with very minor modifications. On it,
snap changes shows me a long list of errored out attempts to “Initialize device”. The detail of each is along the lines of
error: cannot perform the following tasks: - Request device serial (cannot deliver device serial request: Cannot process serial request for device with brand "<brand-id>" and model "<model>")
Is there a straightforward way to take care of these?
I read a few seemingly related threads (The gadget snap, Not able to use serial-port interfaces, Getting a product serial number in prepare-device for amd64 classic) but am none the wiser as to how to deal with assignment of device serials, or indeed what their significance is in the grand scheme of things. What would be the potential benefit of setting up a “device service” and a serial vault? Are these things I would set up myself (i.e. my own API service for device registration), or are they available as part of the snap store/snapcraft infrastructure?
FYI, we do generate and use unique device identifiers in the software we’re running on these devices, but those are generated and managed within that software - which then talks to our API. If there’s meaningful benefit, I’d be open to switching to something that’s managed by the snap system.
Finally, I suppose on the RPi the serial from
cat /proc/cpuinfo | grep Serial can be used as the device serial - but that currently seems like only a small piece of the overall puzzle.