File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # 1. Enable camera and serial interfaces: sudo raspi-config
4
- # 2. Run this script: sudo ./setup.sh
5
-
6
3
set -e
7
4
8
5
echo " dtoverlay=dwc2,dr_mode=otg" | tee -a /boot/firmware/config.txt
@@ -12,12 +9,14 @@ sudo apt install -y git meson libcamera-dev libjpeg-dev
12
9
git clone https://gitlab.freedesktop.org/camera/uvc-gadget.git
13
10
14
11
cd /home/pi/uvc-gadget
15
-
16
12
make uvc-gadget
17
13
cd build
18
14
meson install
19
15
ldconfig
20
16
21
17
chmod +x /home/pi/pisight/rpi-uvc-gadget.sh
22
- cp /home/pi/pisight/rpi-uvc-gadget.sh /usr/local/bin/rpi-uvc-gadget.sh
23
- cp /home/pi/pisight/uvc-gadget.service /etc/systemd/system/uvc-gadget.service
18
+ sudo cp /home/pi/pisight/rpi-uvc-gadget.sh /usr/local/bin/rpi-uvc-gadget.sh
19
+ sudo cp /home/pi/pisight/uvc-gadget.service /etc/systemd/system/uvc-gadget.service
20
+ sudo systemctl daemon-reload
21
+ sudo systemctl enable uvc-gadget.service
22
+ sudo systemctl start uvc-gadget.service
You can’t perform that action at this time.
0 commit comments