[OpenWrt-Devel] [PATCH 1/8] uboot-envtools: add support for Linksys EA8500

Adrian Panella ianchi74 at outlook.com
Thu Mar 31 20:57:32 EDT 2016


From: Adrian Panella <ianchi74 at outlook.com <mailto:ianchi74 at outlook.com> >

Date: Thu, 17 Mar 2016 22:00:03 -0600

Subject: [PATCH 1/8] uboot-envtools: add support for Linksys EA8500

 

 

---

package/boot/uboot-envtools/Makefile      |  4 ++++

package/boot/uboot-envtools/files/ipq806x | 37
+++++++++++++++++++++++++++++++

package/system/mtd/src/Makefile           |  1 +

3 files changed, 42 insertions(+)

create mode 100644 package/boot/uboot-envtools/files/ipq806x

 

diff --git a/package/boot/uboot-envtools/Makefile
b/package/boot/uboot-envtools/Makefile

index a5b0f92..d14cc40 100644

--- a/package/boot/uboot-envtools/Makefile

+++ b/package/boot/uboot-envtools/Makefile

@@ -109,6 +109,10 @@ ifneq ($(CONFIG_TARGET_ramips),)

      $(INSTALL_DIR) $(1)/etc/uci-defaults

      $(INSTALL_DATA) ./files/ramips $(1)/etc/uci-defaults/30_uboot-envtools

endif

+ifneq ($(CONFIG_TARGET_ipq806x),)

+      $(INSTALL_DIR) $(1)/etc/uci-defaults

+      $(INSTALL_DATA) ./files/ipq806x
$(1)/etc/uci-defaults/30_uboot-envtools

+endif

endef

 

 $(eval $(call BuildPackage,uboot-envtools))

diff --git a/package/boot/uboot-envtools/files/ipq806x
b/package/boot/uboot-envtools/files/ipq806x

new file mode 100644

index 0000000..a596abc

--- /dev/null

+++ b/package/boot/uboot-envtools/files/ipq806x

@@ -0,0 +1,26 @@

+#!/bin/sh

+#

+# Copyright (C) 2012-2014 OpenWrt.org

+#

+

+[ -e /etc/config/ubootenv ] && exit 0

+

+touch /etc/config/ubootenv

+

+. /lib/ipq806x.sh

+. /lib/uboot-envtools.sh

+. /lib/functions.sh

+

+board=$(ipq806x_board_name)

+

+

+case "$board" in

+"ea8500")

+      ubootenv_add_uci_config "/dev/mtd10" "0x0" "0x20000" "0x20000"

+      ;;

+esac

+

+config_load ubootenv

+config_foreach ubootenv_add_app_config ubootenv

+

+exit 0

 

    

diff --git a/package/system/mtd/src/Makefile
b/package/system/mtd/src/Makefile

index 94a2a1a..70c61e5 100644

--- a/package/system/mtd/src/Makefile

+++ b/package/system/mtd/src/Makefile

@@ -12,6 +12,7 @@ obj.brcm63xx = imagetag.o

obj.ramips = $(obj.seama)

obj.mvebu = linksys_bootcount.o

obj.kirkwood = linksys_bootcount.o

+obj.ipq806x = linksys_bootcount.o

 

 ifdef FIS_SUPPORT

   obj += fis.o

-- 

1.9.1

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20160331/45b879f5/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list