Message ID | 20180806142104.17392-1-mail@david-bauer.net |
---|---|
State | Accepted |
Delegated to: | John Crispin |
Headers | show |
Series | [OpenWrt-Devel,1/4] uboot-envtools: add ath79 target | expand |
On 2018-08-06 10:21 AM, David Bauer wrote: > 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. Can you rebase (and add boards added since the commit this is based on) against latest master? Quite a few ath79 boards have been added since then and I don't see them in this patch (and most of them are previously in ar71xx). Regards, Daniel > > Signed-off-by: David Bauer <mail@david-bauer.net> > --- > package/boot/uboot-envtools/files/ath79 | 26 +++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > create mode 100644 package/boot/uboot-envtools/files/ath79 > > 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 >
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
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> --- package/boot/uboot-envtools/files/ath79 | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/boot/uboot-envtools/files/ath79