AnsweredAssumed Answered

Systemd, udev, and kernel camera module

Question asked by Pierre-Olivier Huard on Jun 8, 2017
Latest reply on Jun 13, 2017 by Bio_TICFSL

I'm currently struggling with systemd. We made a custom driver for CSI interface on iMX6, and we decided to move on systemd.

 

The main goal is to be notified when the driver is running and start our video application after that. I tried to modify udev rules and add:

KERNEL=="video0", SYMLINK="video0", TAG+="systemd"

 

and create a service for the video

[Unit]
Description=Video application service
BindsTo=dev-video0.device
After=dev-video0.device

[Service]
Type=forking
ExecStart=/usr/bin/video-app

 

 

The service never start. I don't know if I'm doing it right, but I don't know how to proceed exactly.

 

If you can give me some hints,

Thank you,

Pierre-Olivier

Outcomes