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

View File

@@ -34,7 +34,10 @@ else
fi
# load kernel modules
modprobe "g_acm_ms" file=/dev/mmcblk0p4,/dev/mmcblk0p1,/dev/mmcblk0p2 removable=1,1 ro=0,0 >> "${LOGS}" 2>&1
# load usb gadget
mount -t configfs none /sys/kernel/config >> "${LOGS}" 2>&1
gadget-ms /dev/mmcblk0p1 /dev/mmcblk0p4 >> "${LOGS}" 2>&1
# just load the expected ones (screen driver) from here