aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2018-08-06 16:21:01 +0200
committerJohn Crispin <john@phrozen.org>2018-08-08 08:38:45 +0200
commit5107ba23744989fd9ed68f40ed7e0ded5966e3b7 (patch)
tree22ecb1bdf49b64b0beca58acc377372260767cbe
parentddf64edfe1c2f75fb6a73b51646773fed76079c4 (diff)
downloadupstream-5107ba23744989fd9ed68f40ed7e0ded5966e3b7.tar.gz
upstream-5107ba23744989fd9ed68f40ed7e0ded5966e3b7.tar.bz2
upstream-5107ba23744989fd9ed68f40ed7e0ded5966e3b7.zip
uboot-envtools: add ath79 target
This adds uci entries for all ath79 devices for which this already was the case on ar71xx. Additionally we add the OCEDO Koala as there was no support in OpenWRT yet. Signed-off-by: David Bauer <mail@david-bauer.net>
-rw-r--r--package/boot/uboot-envtools/files/ath7926
1 files changed, 26 insertions, 0 deletions
diff --git a/package/boot/uboot-envtools/files/ath79 b/package/boot/uboot-envtools/files/ath79
new file mode 100644
index 0000000000..4d9d2e8fe0
--- /dev/null
+++ b/package/boot/uboot-envtools/files/ath79
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# Copyright (C) 2011-2014 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
+glinet,ar300m|\
+ocedo,raccoon|\
+openmesh,om5p-ac-v2)
+ ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
+ ;;
+esac
+
+config_load ubootenv
+config_foreach ubootenv_add_app_config ubootenv
+
+exit 0