Skip to content

Commit

Permalink
Add udev rule
Browse files Browse the repository at this point in the history
TODO:
* Integrate udev rule installation into autoconf

Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io>
  • Loading branch information
sylv-io committed Aug 28, 2023
1 parent aeed9b9 commit 4388e63
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
1 change: 1 addition & 0 deletions 37-ipu6-psys.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ACTION=="add", SUBSYSTEM=="intel-ipu6-psys", MODE="0660", GROUP="video"
27 changes: 22 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,40 @@ This repository supports MIPI cameras through the IPU6 on Intel Tigerlake platfo

```
export CHROME_SLIM_CAMHAL=ON
./autogen.sh
./autogen.sh
make
sudo make install
```


## UDEV rule configuration
To use the gstreamer plugin as user, you need RW access to `/dev/ipu-psys0`. This can be done
by changing its pemissions via udev rule. In addition, it is required to add your user to the
`video` group.

### UDEV Setup
```
sudo cp 37-ipu6-psys.rules /usr/lib/udev/rules.d/
sudo udevadm control --reload
```

### user Setup
```
sudo usermod -g -G video <username>
```
**NOTE:** If the user is currently logged in, they must log out and in again for the change to take effect.

## Pipeline examples
* Testpattern generator (no sensor)
```
sudo -E gst-launch-1.0 icamerasrc device-name=tpg_ipu6 ! video/x-raw,format=YUY2,width=1280,height=720 ! videoconvert ! xvimagesink
gst-launch-1.0 icamerasrc device-name=tpg_ipu6 ! video/x-raw,format=YUY2,width=1280,height=720 ! videoconvert ! xvimagesink
```

* Sensor ov01a1s
```
sudo -E gst-launch-1.0 icamerasrc device-name=ov01a1s-uf ! video/x-raw,format=YUY2,width=1280,height=720 ! videoconvert ! xvimagesink
gst-launch-1.0 icamerasrc device-name=ov01a1s-uf ! video/x-raw,format=YUY2,width=1280,height=720 ! videoconvert ! xvimagesink
```

* Sensor hm11b1
```
sudo -E gst-launch-1.0 icamerasrc device-name=hm11b1-uf ! video/x-raw,format=YUY2,width=1280,height=720 ! videoconvert ! xvimagesink
gst-launch-1.0 icamerasrc device-name=hm11b1-uf ! video/x-raw,format=YUY2,width=1280,height=720 ! videoconvert ! xvimagesink
```

0 comments on commit 4388e63

Please sign in to comment.