You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
589 B
31 lines
589 B
PART_NAME=firmware
|
|
|
|
CI_BLKSZ=65536
|
|
|
|
platform_check_image() {
|
|
local magic="$(get_magic_long "$1")"
|
|
|
|
[ "$#" -gt 1 ] && return 1
|
|
|
|
[ "$magic" != "27051956" ] && {
|
|
echo "Invalid image type."
|
|
return 1
|
|
}
|
|
return 0
|
|
}
|
|
|
|
platform_do_upgrade() {
|
|
default_do_upgrade "$ARGV"
|
|
}
|
|
|
|
disable_watchdog() {
|
|
v "killing watchdog"
|
|
killall watchdog
|
|
( ps | grep -v 'grep' | grep '/dev/watchdog' ) && {
|
|
echo 'Could not disable watchdog'
|
|
return 1
|
|
}
|
|
}
|
|
|
|
# CONFIG_WATCHDOG_NOWAYOUT=y - can't kill watchdog unless kernel cmdline has a mpcore_wdt.nowayout=0
|
|
#append sysupgrade_pre_upgrade disable_watchdog
|
|
|