Merge tag 'JH7110_515_SDK_v4.0.0-rc1' into jh7110-mm-devel

version JH7110_515_SDK_v4.0.0-rc1 for JH7110 EVB board
1. #2828 support linux perf tool
2. #3049 merge hibernation branch to SDK
3. #2708 uboot support vout clk driver
4. #3006 uboot handle OTP return value
5. #2969, #3039 venc jpu fix futex issue
This commit is contained in:
Andy Hu
2023-01-06 19:21:39 +08:00
2 changed files with 23 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
#
# hibernation This shell script to turn on swap partition and
# set the image_size as big as ram size.
case "$1" in
start)
# Set the hibernation image_size as large as the ram size.
total_mem=$(cat /proc/meminfo | sed -n '1p')
echo $((${total_mem: 10: 15}*1024)) > /sys/power/image_size
swapon PARTLABEL="hibernation"
;;
stop)
swapoff PARTLABEL="hibernation"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
+1
View File
@@ -7,6 +7,7 @@ PM_LICENSE = GPL-2.0+
define PM_INSTALL_TARGET_CMDS
install -m 0755 -D package/starfive/pm/S90cpufreq $(TARGET_DIR)/etc/init.d/
install -m 0755 -D package/starfive/pm/S00hibernation $(TARGET_DIR)/etc/init.d/
endef
$(eval $(generic-package))