mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-07 01:53:34 +08:00
uboot-envtools: add support for 360T7
mediatek: add uboot-envtools to default packages
This commit is contained in:
parent
b47a1bc350
commit
9e16c8d8bc
24
package/boot/uboot-envtools/files/mediatek
Normal file
24
package/boot/uboot-envtools/files/mediatek
Normal file
@ -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
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user