Skip to content

Commit

Permalink
Revert "Suppress eol in functionfs setup scripts (openembedded#147)"
Browse files Browse the repository at this point in the history
This reverts commit db5f487.

Increase sleep to 10 seconds otherwise interface is not ready on rpi0w.

Signed-off-by: Devendra Tewari <[email protected]>
  • Loading branch information
tewarid committed Aug 21, 2022
1 parent 04b4309 commit d7ce8e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cd /sys/kernel/config/usb_gadget

cd adb

echo -n "" > UDC || true
echo "" > UDC || true

killall adbd || true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ mkdir configs/c.1
mkdir functions/ffs.usb0
mkdir strings/0x409
mkdir configs/c.1/strings/0x409
echo -n 0x18d1 > idVendor
echo -n 0xd002 > idProduct
echo 0x18d1 > idVendor
echo 0xd002 > idProduct
echo "$serial" > strings/0x409/serialnumber
echo "$manufacturer" > strings/0x409/manufacturer
echo "$model" > strings/0x409/product
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

set -e

sleep 3
sleep 10

ls /sys/class/udc/ | xargs echo > /sys/kernel/config/usb_gadget/adb/UDC
ls /sys/class/udc/ > /sys/kernel/config/usb_gadget/adb/UDC

0 comments on commit d7ce8e6

Please sign in to comment.