2017-01-05 16:22:16 +00:00
|
|
|
REQUIRE_IMAGE_METADATA=1
|
2017-07-10 16:37:25 +00:00
|
|
|
RAMFS_COPY_BIN='nandwrite'
|
2017-01-05 16:22:16 +00:00
|
|
|
CI_KERNPART=none
|
|
|
|
|
|
|
|
platform_check_image() {
|
|
|
|
[ -e /dev/ubi0 ] || {
|
|
|
|
ubiattach -m 1
|
|
|
|
sleep 1
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
platform_pre_upgrade() {
|
|
|
|
nand_do_upgrade "$1"
|
|
|
|
}
|
|
|
|
|
|
|
|
platform_nand_pre_upgrade() {
|
|
|
|
mtd erase kernel
|
2017-07-09 11:00:36 +00:00
|
|
|
tar xf "$1" "sysupgrade-$(board_name)/kernel" -O | nandwrite -o /dev/mtd0 -
|
2017-01-05 16:22:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
platform_do_upgrade() {
|
|
|
|
default_do_upgrade "$ARGV"
|
|
|
|
}
|