Skip to content

Commit 8d7436b

Browse files
authored
Change configfs directory name from c.2 to c.1
This change fixes the issue with Mac OS 12.0.1 Monterey failing to detect the camera.
1 parent 02a0e76 commit 8d7436b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

multi-gadget.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ mkdir $GADGET_PATH/strings/0x409
1717
echo 100000000d2386db > $GADGET_PATH/strings/0x409/serialnumber
1818
echo "Samsung" > $GADGET_PATH/strings/0x409/manufacturer
1919
echo "PI4 USB Device" > $GADGET_PATH/strings/0x409/product
20-
mkdir $GADGET_PATH/configs/c.2
21-
mkdir $GADGET_PATH/configs/c.2/strings/0x409
22-
echo 500 > $GADGET_PATH/configs/c.2/MaxPower
23-
echo "UVC" > $GADGET_PATH/configs/c.2/strings/0x409/configuration
20+
mkdir $GADGET_PATH/configs/c.1
21+
mkdir $GADGET_PATH/configs/c.1/strings/0x409
22+
echo 500 > $GADGET_PATH/configs/c.1/MaxPower
23+
echo "UVC" > $GADGET_PATH/configs/c.1/strings/0x409/configuration
2424

2525
mkdir $GADGET_PATH/functions/uvc.usb0
2626
mkdir $GADGET_PATH/functions/acm.usb0
@@ -82,8 +82,8 @@ cd ../../class/hs
8282
ln -s ../../header/h
8383
cd ../../../../..
8484

85-
ln -s $GADGET_PATH/functions/uvc.usb0 $GADGET_PATH/configs/c.2/uvc.usb0
86-
ln -s $GADGET_PATH/functions/acm.usb0 $GADGET_PATH/configs/c.2/acm.usb0
85+
ln -s $GADGET_PATH/functions/uvc.usb0 $GADGET_PATH/configs/c.1/uvc.usb0
86+
ln -s $GADGET_PATH/functions/acm.usb0 $GADGET_PATH/configs/c.1/acm.usb0
8787
udevadm settle -t 5 || :
8888
ls /sys/class/udc > $GADGET_PATH/UDC
8989

0 commit comments

Comments
 (0)