[OpenWrt-Devel] [PATCH] This patch adds support for Tenda A6 device.

John Crispin blogic at openwrt.org
Tue Oct 14 09:00:11 EDT 2014


> ---
>  target/linux/ramips/base-files/etc/board.d/02_network  |    6 ++++++
>  target/linux/ramips/base-files/lib/ramips.sh           |    3 +++
>  target/linux/ramips/base-files/lib/upgrade/platform.sh |    1 +
>  target/linux/ramips/image/Makefile                     |    3 +++
>  target/linux/ramips/rt305x/profiles/tenda.mk           |   12 ++++++++++++
>  5 files changed, 25 insertions(+)



Hi,

the dts file is missing

    John




> diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
> index e027b3b..3cca281 100755
> --- a/target/linux/ramips/base-files/etc/board.d/02_network
> +++ b/target/linux/ramips/base-files/etc/board.d/02_network
> @@ -128,6 +128,12 @@ ramips_setup_interfaces()
>  		ucidef_add_switch_vlan "switch0" "2" "0 6t"
>  		;;
>  
> +	a6)
> +		ucidef_set_interface_lan "eth0.1"
> +		ucidef_add_switch "switch0" "1" "1"
> +		ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4 6t"
> +		;;
> +
>  	ur-336un)
>  		ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
>  		;;
> diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
> index bb42ace..77926e3 100755
> --- a/target/linux/ramips/base-files/lib/ramips.sh
> +++ b/target/linux/ramips/base-files/lib/ramips.sh
> @@ -277,6 +277,9 @@ ramips_board_detect() {
>  	*"Tenda W150M")
>  		name="w150m"
>  		;;
> +	*"Tenda A6")
> +		name="a6"
> +		;;
>  	*"TEW-691GR")
>  		name="tew-691gr"
>  		;;
> diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
> index 407c218..323d7d7 100755
> --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
> +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
> @@ -18,6 +18,7 @@ platform_check_image() {
>  	3g-6200nl | \
>  	3g300m | \
>  	w150m | \
> +	a6 | \
>  	air3gii | \
>  	all0239-3g | \
>  	all0256n | \
> diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile
> index 35057e4..be65028 100644
> --- a/target/linux/ramips/image/Makefile
> +++ b/target/linux/ramips/image/Makefile
> @@ -560,8 +560,11 @@ Image/Build/Profile/X8=$(call BuildFirmware/Poray8M/$(1),$(1),x8,X8)
>  
>  Image/Build/Profile/XDXRN502J=$(call BuildFirmware/Default4M/$(1),$(1),xdxrn502j,XDXRN502J)
>  
> +Image/Build/Profile/A6=$(call BuildFirmware/Default4M/$(1),$(1),a6,A6)
> +
>  ifeq ($(SUBTARGET),rt305x)
>  define Image/Build/Profile/Default
> +	$(call Image/Build/Profile/A6,$(1))
>  	$(call Image/Build/Profile/3G6200N,$(1))
>  	$(call Image/Build/Profile/3G6200NL,$(1))
>  	$(call Image/Build/Profile/3G300M,$(1))
> diff --git a/target/linux/ramips/rt305x/profiles/tenda.mk b/target/linux/ramips/rt305x/profiles/tenda.mk
> index d9d94cf..d0ee8e4 100644
> --- a/target/linux/ramips/rt305x/profiles/tenda.mk
> +++ b/target/linux/ramips/rt305x/profiles/tenda.mk
> @@ -28,3 +28,15 @@ define Profile/W306R_V20/Description
>  endef
>  
>  $(eval $(call Profile,W306R_V20))
> +
> +define Profile/A6
> +	NAME:=Tenda A6
> +	PACKAGES:=kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev \
> +		kmod-i2c-core kmod-i2c-gpio
> +endef
> +
> +define Profile/A6/Description
> +	Package set for Tenda A6
> +endef
> +
> +$(eval $(call Profile,A6))
> \ No newline at end of file
_______________________________________________
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