The *gasket-driver* container installs the `gasket` and `apex` kernel modules, which provide the driver for the Google Coral EdgeTPU AI accellerator module. The container image must be built ahead of time, of course, and contains modules built for a specific Fedora kernel version. The udev rule has two purposes: to set the permissions on the device node so that any user on the system can access it, and to "tag" the device so that systemd will generate a `.device` unit for it. The latter allows other units (e.g. Frigate) to express a `Requires=` and `After=` dependency on the device unit, so that they do not start until the driver is loaded.
20 lines
340 B
YAML
20 lines
340 B
YAML
variant: fcos
|
|
version: 1.4.0
|
|
|
|
storage:
|
|
files:
|
|
- path: /etc/containers/systemd/gasket-driver.container
|
|
mode: 0644
|
|
contents:
|
|
local: gasket-driver.container
|
|
- path: /etc/udev/rules.d/65-apex.rules
|
|
mode: 0644
|
|
contents:
|
|
local: 65-apex.rules
|
|
|
|
systemd:
|
|
units:
|
|
- name: gasket-driver.service
|
|
enabled: true
|
|
|