增加ota文件系统编译方法;(注意每次swupdate_make_recovery_img需要删除根目录和./lichee/linux下的.config和.config.old)

This commit is contained in:
lijunliang
2024-06-05 16:39:59 +08:00
parent 36028ad52e
commit 6d51adb4db
75 changed files with 11872 additions and 73 deletions

View File

@@ -0,0 +1,3 @@
KERNEL=="mmcblk[0-9]p[0-9]", RUN+="/etc/udev/hotplug-tf.sh %k $env{ACTION}"
ACTION=="add", KERNEL=="mmc0:*", RUN+="/etc/udev/hotplug-tf.sh %k $env{ACTION}"
ACTION=="remove", KERNEL=="mmc0:*", RUN+="/etc/udev/hotplug-tf.sh %k $env{ACTION}"

View File

@@ -0,0 +1,3 @@
KERNEL=="sda[0-9]", SUBSYSTEM=="block", SUBSYSTEM=="usb", RUN+="/etc/udev/usb_handle %k $env{ACTION}"
ACTION=="add|change", KERNEL=="sd*", RUN+="/etc/udev/usb_handle %k $env{ACTION}"
ACTION=="remove", KERNEL=="sd*", RUN+="/etc/udev/usb_handle %k $env{ACTION}"

View File

@@ -0,0 +1,18 @@
#!/bin/sh
echo "hotplug usb $(date)"#>>/run/udev.log
echo "[$#] $0, $1, $2"#>>/run/udev.log
if [ "$#" != "2" ];then
echo " !! param err." #>> /run/udev.log
exit 1
fi
if [ "$2" == "remove" ];then
echo " <==umount"#>> /run/udev.log
umount /mnt/exUDISK
fi
if [ "$2" == "add" ];then
echo " <==mount"#>> /run/udev.log
mount -t vfat /dev/sda1 /mnt/exUDISK
fi