[OpenWrt-Devel] [PATCH] Zynq: Add Zedboard device support

Jason Wu jason.wu.misc at gmail.com
Wed Apr 20 23:36:16 EDT 2016


Tested-by: Joe Zhang <jz21082 at gmail.com>
Signed-off-by: Jason Wu <jason.wu.misc at gmail.com>

diff --git a/package/boot/uboot-zynq/Makefile b/package/boot/uboot-zynq/Makefile
index 3a17f7f..2053e8d 100644
--- a/package/boot/uboot-zynq/Makefile
+++ b/package/boot/uboot-zynq/Makefile
@@ -37,8 +37,13 @@ define uboot/zc706
 	TITLE:=U-Boot $(PKG_VERSION) for Xilinx ZC706 Dev Board
 endef
 
+define uboot/zed
+	TITLE:=U-Boot $(PKG_VERSION) for Avnet Digilent ZedBoard Dev Board
+endef
+
 UBOOTS := \
 	zc702 \
+	zed \
 
 define Package/uboot/template
 define Package/uboot-zynq-$(1)
diff --git a/target/linux/zynq/base-files/etc/board.d/02_network b/target/linux/zynq/base-files/etc/board.d/02_network
index 71d6fd8..35667c0 100755
--- a/target/linux/zynq/base-files/etc/board.d/02_network
+++ b/target/linux/zynq/base-files/etc/board.d/02_network
@@ -6,7 +6,7 @@
 board_config_update
 
 case "$(cat /tmp/sysinfo/board_name)" in
-	xlnx,zynq-zc702)
+	xlnx,zynq-zc702|xlnx,zynq-zed)
 		ucidef_set_interface_lan 'eth0'
 		;;
 esac
diff --git a/target/linux/zynq/image/Makefile b/target/linux/zynq/image/Makefile
index ee4ff61..eca9d86 100644
--- a/target/linux/zynq/image/Makefile
+++ b/target/linux/zynq/image/Makefile
@@ -71,6 +71,9 @@ define Device/ZC702
 	$(call Device/DefaultConfig,zc702)
 endef
 
+define Device/ZED
+	$(call Device/DefaultConfig,zed)
+endef
 
 define Image/BuildKernel
 	$(eval $(call Device/$(PROFILE)))
diff --git a/target/linux/zynq/profiles/zed.mk b/target/linux/zynq/profiles/zed.mk
new file mode 100644
index 0000000..d8ff08b
--- /dev/null
+++ b/target/linux/zynq/profiles/zed.mk
@@ -0,0 +1,16 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/ZED
+	NAME:=ZedBoard development baord
+endef
+
+define Profile/ZED/Description
+	Build firmware image for Avnet Digilent ZedBoard development board.
+endef
+
+$(eval $(call Profile,ZED))
-- 
1.9.1
_______________________________________________
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