diff --git a/package/boot/uboot-envtools/files/mediatek b/package/boot/uboot-envtools/files/mediatek new file mode 100644 index 0000000000..1ff593ef9e --- /dev/null +++ b/package/boot/uboot-envtools/files/mediatek @@ -0,0 +1,24 @@ +#!/bin/sh +# +# Copyright (C) 2011-2012 OpenWrt.org +# + +[ -e /etc/config/ubootenv ] && exit 0 + +touch /etc/config/ubootenv + +. /lib/uboot-envtools.sh +. /lib/functions.sh + +board=$(board_name) + +case "$board" in +*360,t7*) + ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x20000" "0x20000" "1" + ;; +esac + +config_load ubootenv +config_foreach ubootenv_add_app_config ubootenv + +exit 0 diff --git a/target/linux/mediatek/Makefile b/target/linux/mediatek/Makefile index e44bcdf927..cca83155fb 100644 --- a/target/linux/mediatek/Makefile +++ b/target/linux/mediatek/Makefile @@ -14,6 +14,6 @@ KERNEL_TESTING_PATCHVER:=5.4 include $(INCLUDE_DIR)/target.mk DEFAULT_PACKAGES += \ kmod-leds-gpio kmod-gpio-button-hotplug \ - autocore-arm luci-app-cpufreq + autocore-arm luci-app-cpufreq uboot-envtools $(eval $(call BuildTarget))