mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
BOARD/PKG: better LOGS in on OS scripts & add umtpr-debug (#169)
* firsboot/main - better LOGs - refactor a bit gmenu2x loop - add good logs for umtpr * BOARD: options.cfg: add DEBUG options - use separate options for gmenu2x & umtpr debug - for default setup NO DEBUG * PACKAGE: umtprd: add debug build
This commit is contained in:
@@ -16,8 +16,8 @@ else
|
||||
# Wait a few seconds before actual screen record, the X264 encoder needs resources before it will stabilize video ouput
|
||||
st_exec_func "echo -e \"\n\n\n\n\n\n\t\t\tStarting VIDEO record...\n\t\t\tWait a few seconds to start.\"; read -t 10;\
|
||||
if pgrep ffmpeg >/dev/null; then\
|
||||
echo -e \"\n\n\t\t\tRecording VIDEO in background...\";\
|
||||
echo -e \"\n\n\t\t Recording VIDEO in background...\n\n WARNING: Disable output logging or this\n\t\t will not continue any further.\";\
|
||||
else\
|
||||
echo -e \"\n\n\t\t\tFailed to launch ffmpeg for record...\";\
|
||||
fi; read -t 2"
|
||||
fi
|
||||
fi
|
||||
@@ -6,7 +6,7 @@ st_exec_func(){
|
||||
st -k -e "/bin/sh" "-c" "${1}"
|
||||
}
|
||||
echo peripheral > /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode
|
||||
killall umtprd
|
||||
killall umtprd umtprd-debug
|
||||
/mnt/apps/usb-mtd/remove.sh g2
|
||||
modprobe -r g_serial
|
||||
mount none /sys/kernel/config -t configfs
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
echo peripheral > /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode
|
||||
modprobe -r g_serial
|
||||
killall umtprd
|
||||
killall umtprd umtprd-debug
|
||||
/mnt/apps/usb-mtd/remove.sh g2
|
||||
mount none /sys/kernel/config -t configfs
|
||||
mkdir /sys/kernel/config/usb_gadget/g2
|
||||
@@ -23,7 +23,11 @@ echo 120 > configs/c.1/MaxPower
|
||||
ln -s functions/ffs.mtp configs/c.1
|
||||
mkdir /dev/ffs-mtp
|
||||
mount -t functionfs mtp /dev/ffs-mtp
|
||||
if (grep -q DEBUG_UMTPR\=\1 "${HOME}/options.cfg"); then
|
||||
umtprd-debug &
|
||||
else
|
||||
umtprd &
|
||||
fi
|
||||
sleep 1
|
||||
ls /sys/class/udc/ > /sys/kernel/config/usb_gadget/g2/UDC
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ MAC_DEV="12:34:56:78:9a:bc"
|
||||
|
||||
echo peripheral > /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode
|
||||
modprobe -r g_serial
|
||||
killall umtprd
|
||||
killall umtprd umtprd-debug
|
||||
/mnt/apps/usb-mtd/remove.sh g2
|
||||
sleep 1
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/busybox sh
|
||||
echo peripheral > /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode
|
||||
killall umtprd
|
||||
killall umtprd umtprd-debug
|
||||
modprobe g_serial
|
||||
|
||||
Reference in New Issue
Block a user