uboot-envtools: add ath79 target
authorDavid Bauer <mail@david-bauer.net>
Mon, 6 Aug 2018 14:21:01 +0000 (16:21 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:47:45 +0000 (17:47 +0100)
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>
(backported from 5107ba23744989fd9ed68f40ed7e0ded5966e3b7)

package/boot/uboot-envtools/files/ath79 [new file with mode: 0644]

diff --git a/package/boot/uboot-envtools/files/ath79 b/package/boot/uboot-envtools/files/ath79
new file mode 100644 (file)
index 0000000..4d9d2e8
--- /dev/null
@@ -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