blob: 334d6e2ff6c885509cfe500cd0190f11ea06015d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
REQUIRE_IMAGE_METADATA=1
RAMFS_COPY_BIN='nandwrite'
CI_KERNPART=none
platform_check_image() {
[ -e /dev/ubi0 ] || {
ubiattach -m 1
sleep 1
}
return 0;
}
platform_do_upgrade() {
mtd erase kernel
tar xf "$1" "sysupgrade-$(board_name)/kernel" -O | nandwrite -o /dev/mtd0 -
nand_do_upgrade "$1"
}
|