Skip to content

Commit

Permalink
Edge2: usb-gadget: add adb support
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Xie <[email protected]>
  • Loading branch information
numbqq committed Oct 16, 2024
1 parent 409a6c3 commit 013ceeb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions archives/filesystem/special/Edge2/usr/local/bin/usb-gadget
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,20 @@ echo "Done creating RNDIS USB Gadget...$(cat $F_RNDIS/ifname)"

# Setup adb

#export service_adb_tcp_port=5555
#echo "Configuring ADB USB gadget driver…"
#mkdir /dev/usb-ffs -m 0770
#mkdir /dev/usb-ffs/adb -m 0770
export service_adb_tcp_port=5555
echo "Configuring ADB USB gadget driver…"
mkdir /dev/usb-ffs -m 0770
mkdir /dev/usb-ffs/adb -m 0770

#mkdir $GADGET/functions/ffs.adb
mkdir $GADGET/functions/ffs.adb

#echo "adb" > $GADGET/configs/c.1/strings/0x409/configuration
#mount -t functionfs adb /dev/usb-ffs/adb
echo "adb" > $GADGET/configs/c.1/strings/0x409/configuration
mount -t functionfs adb /dev/usb-ffs/adb

#ln -s $GADGET/functions/ffs.adb $GADGET/configs/c.1/ffs.adb
ln -s $GADGET/functions/ffs.adb $GADGET/configs/c.1/ffs.adb

#adbd &
#sleep 1
adbd &
sleep 1

echo $UDC > $GADGET/UDC

Expand Down

0 comments on commit 013ceeb

Please sign in to comment.