2be25f4a9c9d5a03f1a99d7a461a0a674eab4aea
[openwrt/openwrt.git] / target / linux / ipq806x / base-files / lib / upgrade / platform.sh
1 PART_NAME=firmware
2 REQUIRE_IMAGE_METADATA=1
3
4 RAMFS_COPY_BIN='fw_printenv fw_setenv'
5 RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
6
7 platform_check_image() {
8 return 0;
9 }
10
11 platform_do_upgrade() {
12 case "$(board_name)" in
13 buffalo,wxr-2533dhp)
14 buffalo_upgrade_prepare_ubi
15 CI_ROOTPART="ubi_rootfs"
16 nand_do_upgrade "$1"
17 ;;
18 compex,wpq864|\
19 netgear,d7800 |\
20 netgear,r7500 |\
21 netgear,r7500v2 |\
22 netgear,r7800 |\
23 qcom,ipq8064-ap148 |\
24 qcom,ipq8064-ap161)
25 nand_do_upgrade "$1"
26 ;;
27 zyxel,nbg6817)
28 zyxel_do_upgrade "$1"
29 ;;
30 linksys,ea8500)
31 platform_do_upgrade_linksys "$1"
32 ;;
33 tplink,c2600)
34 PART_NAME="os-image:rootfs"
35 MTD_CONFIG_ARGS="-s 0x200000"
36 default_do_upgrade "$1"
37 ;;
38 tplink,vr2600v)
39 PART_NAME="kernel:rootfs"
40 MTD_CONFIG_ARGS="-s 0x200000"
41 default_do_upgrade "$1"
42 ;;
43 *)
44 default_do_upgrade "$1"
45 ;;
46 esac
47 }