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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user