BTRFS file system for MAIN and rootfs partition (#65)

* BTRFS file system for MAIN and rootfs partition
This commit is contained in:
tiopex
2023-12-13 07:14:00 +01:00
committed by GitHub
parent 2f89873479
commit 130d2be1f3
33 changed files with 165 additions and 162 deletions

0
board/miyoo/main/apps/arecord/audio_record.sh Normal file → Executable file
View File

0
board/miyoo/main/apps/ffmpeg/ffplay.man.txt Normal file → Executable file
View File

0
board/miyoo/main/apps/ffmpeg/ffplay_launch.sh Normal file → Executable file
View File

0
board/miyoo/main/apps/ffmpeg/video_record.sh Normal file → Executable file
View File

View File

@@ -1,33 +0,0 @@
#!/bin/sh
sync
echo " "
echo "Checking FAT filesystem..."
echo " "
sleep 2
if dmesg | grep "mmcblk0p1"; then
echo -e "\e[31mUnclean shutdown detected.\e[0m"
echo -e "\e[32mChecking FAT32 (BOOT) partition...\e[0m"
fsck.vfat -a /dev/mmcblk0p1
fi
if dmesg | grep "mmcblk0p4"; then
echo -e "\e[31mUnclean shutdown detected.\e[0m"
echo -e "\e[32mChecking FAT32 (MAIN) partition...\e[0m"
fsck.vfat -a /dev/mmcblk0p4
echo " "
echo "Rebooting device, please wait..."
echo " "
sleep 2
sync
reboot
fi
echo "Finished!"
echo " "
echo " "
sync
read -t 2
sleep 1

0
board/miyoo/main/apps/joymap/input_info.sh Normal file → Executable file
View File

0
board/miyoo/main/apps/joymap/joymap.sh Normal file → Executable file
View File

0
board/miyoo/main/apps/tvout/tvout.sh Normal file → Executable file
View File

0
board/miyoo/main/apps/usb-hid/usb-hid.man.txt Normal file → Executable file
View File

0
board/miyoo/main/apps/usb-hid/usb-hid.py Normal file → Executable file
View File

16
board/miyoo/main/apps/usb-hid/usb-hid.sh Normal file → Executable file
View File

@@ -5,20 +5,14 @@ st_error_func(){
st_exec_func(){
st -k -e "/bin/sh" "-c" "${1}"
}
MUSB_MODE=$(cat /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode)
if ! (test "${MUSB_MODE}" = "b_peripheral"); then
st_error_func "\n\n\n\n\n\n\n\n First connect handheld to device!"
exit
else
gadget-vid-pid-remove 0x1d6b:0x0104
echo peripheral > /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode
killall umtprd
modprobe -r g_serial
mount none /sys/kernel/config -t configfs
gadget-hid
st_exec_func "\
echo -e \"\e[32m\n\n\n\n\n\n Starting USB-HID mode\e[0m\n\n\n\"; \
sleep 1; \
python /mnt/apps/usb-hid/usb-hid.py"
gadget-vid-pid-remove 0x1d6b:0x0104
gadget-ms /dev/mmcblk0p1 /dev/mmcblk0p4
fi
gadget-vid-pid-remove 0x1d6b:0x0104

0
board/miyoo/main/apps/usb-host/usb-host.sh Normal file → Executable file
View File

View File

@@ -0,0 +1,6 @@
#!/bin/busybox sh
echo peripheral > /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode
modprobe -r g_serial
killall umtprd
umtprd &

View File

@@ -1,2 +1,4 @@
#!/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
killall umtprd
modprobe g_serial