Auto connection request for hon-s70-hal-app and hon-s70-camera-app

This is a request to auto connect hon-s70-hal-app and hon-s70-camera-app. Currently, these apps are connected manually using an script but there is a new internal request to chage this using auto-connection.

The following are the interfaces needed for auto-connection:

+---------------------------------------+-------------------------------------------+
|                 Plug                  |                   Slot                    |
+---------------------------------------+-------------------------------------------+
| hon-s70-hal-app:alsa                  | snapd:alsa                                |
| hon-s70-hal-app:block-devices         | snapd:block-devices                       |
| hon-s70-hal-app:camera                | snapd:camera                              |
| hon-s70-camera-app:systemboot-plug    | hon-s70-hal-app:systemboot-slot           |
| hon-s70-hal-app:extra-bin-partition   | hon-hbt-s70-gadget:shared-bin-producer    |
| hon-s70-camera-app:dbus-av-server     | hon-s70-hal-app:dbus-av-server            |
| hon-s70-camera-app:dbus-ioctrl-server | hon-s70-hal-app:dbus-ioctrl-server        |
| hon-s70-hal-app:dbus-camera-app       | hon-s70-camera-app:dbus-camera-app        |
| hon-s70-hal-app:dbus-rtsp-server      | hon-s70-camera-app:dbus-rtsp-server       |
| hon-s70-hal-app:dbus-signal           | hon-s70-camera-app:dbus-signal            |
| hon-s70-hal-app:dbus-system-server    | hon-s70-camera-app:dbus-system-server     |
| hon-s70-hal-app:dsp                   | hon-hbt-s70-gadget:dsp-ambarella          |
| hon-s70-hal-app:gpio                  | hon-hbt-s70-gadget:alarm-input            |
| hon-s70-hal-app:gpio                  | hon-hbt-s70-gadget:alarm-output           |
| hon-s70-hal-app:gpio                  | hon-hbt-s70-gadget:cover-detection-button |
| hon-s70-hal-app:gpio                  | hon-hbt-s70-gadget:green-led              |
| hon-s70-hal-app:gpio                  | hon-hbt-s70-gadget:hardware-reset-enable  |
| hon-s70-hal-app:gpio                  | hon-hbt-s70-gadget:ir-flip                |
| hon-s70-hal-app:gpio                  | hon-hbt-s70-gadget:iris-sel-1             |
| hon-s70-hal-app:gpio                  | hon-hbt-s70-gadget:iris-sel-2             |
| hon-s70-hal-app:gpio                  | hon-hbt-s70-gadget:red-led                |
| hon-s70-hal-app:gpio                  | hon-hbt-s70-gadget:reset-button           |
| hon-s70-hal-app:gpio                  | hon-hbt-s70-gadget:sd-pin-1               |
| hon-s70-hal-app:gpio                  | hon-hbt-s70-gadget:sd-pin-2               |
| hon-s70-hal-app:gpio-control          | snapd:gpio-control                        |
| hon-s70-hal-app:i2c                   | hon-hbt-s70-gadget:i2c-0                  |
| hon-s70-hal-app:i2c                   | hon-hbt-s70-gadget:i2c-3                  |
| hon-s70-hal-app:kernel-module-control | snapd:kernel-module-control               |
| hon-s70-hal-app:network-control       | snapd:network-control                     |
| hon-s70-hal-app:process-control       | snapd:process-control                     |
| hon-s70-hal-app:pwm                   | hon-hbt-s70-gadget:ir-led-1               |
| hon-s70-hal-app:pwm                   | hon-hbt-s70-gadget:ir-led-2               |
| hon-s70-hal-app:pwm                   | hon-hbt-s70-gadget:main-heater            |
| hon-s70-hal-app:pwm                   | hon-hbt-s70-gadget:power-board-heater     |
| hon-s70-hal-app:raw-volume            | hon-hbt-s70-gadget:ptb-partition          |
| hon-s70-hal-app:tpm                   | snapd:tpm                                 |
+---------------------------------------+-------------------------------------------+

Thank youPreformatted text

Thanks, whilst this could be done from a snap declaration, I believe it is possible to use the gadget snap to perform the autoconnections directly as per https://github.com/snapcore/snapd/pull/5317. Can you please try and investigate this instead as this is a more flexible solution and which you have more direct control over as the snap publisher.

@alexmurray as their snap won’t be preload with image, and what you suggested is only for first boot. I think using snap declaration is still the better option here.

@alexmurray In this case, pls continue to support this request :slightly_smiling_face:

This should now be live, let me know if you have any issues.

Note - I did not do anything for these two:

| hon-s70-camera-app:systemboot-plug    | hon-s70-hal-app:systemboot-slot           |
| hon-s70-hal-app:extra-bin-partition   | hon-hbt-s70-gadget:shared-bin-producer    |

As content interfaces between the same publisher should auto-connect already.

Hello Alex,

Could you also enable the following interfaces?:

+-----------------------------------------+---------------------------------+
|Plug                                     |Slot                             |
+-----------------------------------------+---------------------------------+
|hon-s70-camera-app:kernel-module-control |:kernel-module-control           |
+-----------------------------------------+---------------------------------+
|hon-s70-camera-app:raw-volume            |hon-hbt-s70-gadget:ptb-partition |
+-----------------------------------------+---------------------------------+
|hon-s70-camera-app:sys-access-read-write |:system-files                    |
+-----------------------------------------+---------------------------------+

Thanks in advace for your support.

@mhdzr This should be done now for these additional interfaces - please let me know if you have any issues.

1 Like