Hi, I have enabled RS485 access in the config.txt on my Raspberry Pi Compute Module 4 Rev 1.0. As a result I have /dev/ttyAMA1 and /dev/ttyAMA2 devices showing up. My snap (running as a daemon) would like to access these. In GitHub it looks like only ttyAMA0 is supported by a slot: bt-serial: interface: serial-port path: /dev/ttyAMA0
I am using the following version of the pi snap:
name: pi summary: Raspberry Pi gadget publisher: Canonical✓ store-url: https://snapcraft.io/pi license: unset description: | Support files for booting Raspberry Pi. This gadget snap supports the Raspberry Pi 2B, 3B, 3A+, 3B+, 4B, Compute Module 3, and the Compute Module 3+ universally. type: gadget snap-id: YbGa9O3dAXl88YLI6Y1bGG74pwBxZyKg tracking: 20/stable refresh-date: 2022-06-15
Is my only option to rebuild the pi gadget snap adding the slots I need?