add libusbgx, add miyooctl

This commit is contained in:
root
2023-03-22 07:31:48 +01:00
parent 5a0cc1df52
commit 8ee9df5b88
10 changed files with 170 additions and 21 deletions

View File

@@ -1,3 +1,2 @@
#!/bin/busybox sh
echo host > /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode
echo host > /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode

View File

@@ -1,16 +0,0 @@
#!/bin/busybox sh
LUN_DIR=/sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/gadget
if (grep -q mmcblk0p1 "${LUN_DIR}/lun0/file"); then
echo /dev/mmcblk0p4 > "${LUN_DIR}/lun0/file"
echo /dev/mmcblk0p1 > "${LUN_DIR}/lun1/file"
elif (grep -q mmcblk0p4 "${LUN_DIR}/lun0/file"); then
echo /dev/mmcblk0p1 > "${LUN_DIR}/lun0/file"
echo /dev/mmcblk0p4 > "${LUN_DIR}/lun1/file"
else
sleep 2
echo " "
echo "No FAT partition assigned to LUN!"
echo " "
fi

View File

@@ -1,3 +1,2 @@
#!/bin/busybox sh
echo peripheral > /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode
echo peripheral > /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode