Skip to content

Commit

Permalink
Update gadget-setup.sh - bind mount operation
Browse files Browse the repository at this point in the history
  • Loading branch information
unique-EJ authored Oct 12, 2024
1 parent 6648ef6 commit 5627033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gadget-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ UDC=ci_hdrc.0 # name of the
# gadget configuration
modprobe libcomposite # load configfs
mount -t configfs none /config || { \ # mount configfs as type configfs to /config or from /sys/kernel/config (bind operation)
mkdir /config && mount --rbind -t configfs /sys/kernel/config /config
mkdir /config && mount --rbind -t configfs /sys/kernel/config /config; }
mkdir /config/usb_gadget/keyboardgadget # make a new gadget skeleton
cd /config/usb_gadget/keyboardgadget # cd to gadget dir
mkdir configs/c.1 # make the skeleton for a config for this gadget
Expand Down

0 comments on commit 5627033

Please sign in to comment.