[OpenWrt-Devel] [PATCH 3/3] ramips: Add build files for HiWiFi HC5x61 models

Comman Kang kangxn at 163.com
Mon Sep 28 06:46:20 EDT 2015


HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com <http://www.hiwifi.com/>. These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them.

The original author is Justin Liu (rssnsj at gmail.com). I ported the patch to trunk and submitted it here with his approval.

Signed-off-by: Xiaoning Kang <kangxn at 163.com>



diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile
index c24d220..bc8d015 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -872,6 +872,9 @@ na930_mtd_size=20971520
 Image/Build/Profile/NA930=$(call BuildFirmware/CustomFlash/$(1),$(1),na930,NA930,$(na930_mtd_size))
 Image/Build/Profile/DB-WRT01=$(call BuildFirmware/Default8M/$(1),$(1),db-wrt01,DB-WRT01)
 Image/Build/Profile/MZK-750DHP=$(call BuildFirmware/Default8M/$(1),$(1),mzk-750dhp,MZK-750DHP)
+Image/Build/Profile/HiWiFi-HC5661=$(call BuildFirmware/Default16M/$(1),$(1),hiwifi-hc5661,HiWiFi-HC5661)
+Image/Build/Profile/HiWiFi-HC5761=$(call BuildFirmware/Default16M/$(1),$(1),hiwifi-hc5761,HiWiFi-HC5761)
+Image/Build/Profile/HiWiFi-HC5861=$(call BuildFirmware/Default16M/$(1),$(1),hiwifi-hc5861,HiWiFi-HC5861)
 Image/Build/Profile/OY-0001=$(call BuildFirmware/Default16M/$(1),$(1),oy-0001,OY-0001)
 Image/Build/Profile/Y1=$(call BuildFirmware/Default16M/$(1),$(1),y1,Y1)
 Image/Build/Profile/Y1S=$(call BuildFirmware/Default16M/$(1),$(1),y1s,Y1S)
@@ -907,6 +910,9 @@ define Image/Build/Profile/Default
 	$(call Image/Build/Profile/DB-WRT01,$(1))
 	$(call Image/Build/Profile/MZK-750DHP,$(1))
 	$(call Image/Build/Profile/NA930,$(1))
+	$(call Image/Build/Profile/HiWiFi-HC5661,$(1))
+	$(call Image/Build/Profile/HiWiFi-HC5761,$(1))
+	$(call Image/Build/Profile/HiWiFi-HC5861,$(1))
 	$(call Image/Build/Profile/OY-0001,$(1))
 	$(call Image/Build/Profile/Y1,$(1))
 	$(call Image/Build/Profile/Y1S,$(1))
diff --git a/target/linux/ramips/mt7620/profiles/HiWiFi-HC5661.mk b/target/linux/ramips/mt7620/profiles/HiWiFi-HC5661.mk
new file mode 100644
index 0000000..d3339a6
--- /dev/null
+++ b/target/linux/ramips/mt7620/profiles/HiWiFi-HC5661.mk
@@ -0,0 +1,20 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/HiWiFi-HC5661
+ NAME:=HiWiFi HC5661
+ PACKAGES:=\
+   kmod-mmc-spi kmod-sdhci kmod-sdhci-mt7620 \
+   block-mount mountd kmod-fs-ext4 ppp-mod-pppoe e2fsprogs \
+   fdisk
+endef
+
+define Profile/HiWiFi-HC5661/Description
+ Default on SD cards support.
+endef
+$(eval $(call Profile,HiWiFi-HC5661))
+
diff --git a/target/linux/ramips/mt7620/profiles/HiWiFi-HC5761.mk b/target/linux/ramips/mt7620/profiles/HiWiFi-HC5761.mk
new file mode 100644
index 0000000..481c3e8
--- /dev/null
+++ b/target/linux/ramips/mt7620/profiles/HiWiFi-HC5761.mk
@@ -0,0 +1,21 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/HiWiFi-HC5761
+ NAME:=HiWiFi HC5761
+ PACKAGES:=\
+   kmod-usb-core kmod-usb-dwc2 kmod-usb2 kmod-usb-storage  \
+   kmod-mmc-spi kmod-sdhci kmod-sdhci-mt7620 \
+   block-mount mountd kmod-fs-ext4 ppp-mod-pppoe e2fsprogs \
+   kmod-ledtrig-usbdev fdisk
+endef
+
+define Profile/HiWiFi-HC5761/Description
+ Default on SD cards and USB storage support.
+endef
+$(eval $(call Profile,HiWiFi-HC5761))
+
diff --git a/target/linux/ramips/mt7620/profiles/HiWiFi-HC5861.mk b/target/linux/ramips/mt7620/profiles/HiWiFi-HC5861.mk
new file mode 100644
index 0000000..07a0443
--- /dev/null
+++ b/target/linux/ramips/mt7620/profiles/HiWiFi-HC5861.mk
@@ -0,0 +1,21 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/HiWiFi-HC5861
+ NAME:=HiWiFi HC5861
+ PACKAGES:=\
+   kmod-usb-core kmod-usb-dwc2 kmod-usb2 kmod-usb-storage  \
+   kmod-mmc-spi kmod-sdhci kmod-sdhci-mt7620 \
+   block-mount mountd kmod-fs-ext4 ppp-mod-pppoe e2fsprogs \
+   kmod-ledtrig-usbdev fdisk
+endef
+
+define Profile/HiWiFi-HC5861/Description
+ Default on SD cards and USB storage support.
+endef
+$(eval $(call Profile,HiWiFi-HC5861))
+
_______________________________________________
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