Systemd, udev, and kernel camera module

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Systemd, udev, and kernel camera module

ソリューションへジャンプ
1,738件の閲覧回数
pierre-olivierh
Contributor III

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

ラベル(5)
タグ(4)
1 解決策
1,416件の閲覧回数
pierre-olivierh
Contributor III

I found a way to do that,

I added a rule for udev:

SUBSYSTEM=="video4linux", ATTR{fsl_csi_property}=="ipu1_csi1", SYMLINK+="video0", TAG+="systemd" ENV{SYSTEMD_WANTS}="video.service"

The service is started at the end of the probe.

元の投稿で解決策を見る

2 返答(返信)
1,417件の閲覧回数
pierre-olivierh
Contributor III

I found a way to do that,

I added a rule for udev:

SUBSYSTEM=="video4linux", ATTR{fsl_csi_property}=="ipu1_csi1", SYMLINK+="video0", TAG+="systemd" ENV{SYSTEMD_WANTS}="video.service"

The service is started at the end of the probe.

1,416件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi pierre-olivierhuard

 Thanks for sharing.

0 件の賞賛
返信