Skip to content

Commit

Permalink
adb.sh add a600000.usb ad UDC name.
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Feb 11, 2024
1 parent 840cb81 commit bbce086
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions adb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ ln -s /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/c.1/
#Start adbd application
mkdir -p /dev/usb-ffs/adb
mount -o uid=2000,gid=2000 -t functionfs adb /dev/usb-ffs/adb
adbd &

#Enable the Gadget
#Replace "ci_hdrc.0" with your platform UDC driver as found in /sys/class/udc/
echo 'ci_hdrc.0' > /config/usb_gadget/g1/UDC
#echo "ci_hdrc.0" > /config/usb_gadget/g1/UDC
#echo 'ci_hdrc.0' > /config/usb_gadget/g1/UDC

# qcom usually have usb at memaddr 0xa600000
echo 'a600000.usb' > /config/usb_gadget/g1/UDC

adbd --device_banner=device &

0 comments on commit bbce086

Please sign in to comment.