[PATCH] ramips: add support for NETGEAR WAC124

mail at adrianschmutzler.de mail at adrianschmutzler.de
Fri Jun 26 10:33:29 EDT 2020


Hi,

> -----Original Message-----
> From: Jan Hoffmann [mailto:jan at 3e8.eu]
> Sent: Freitag, 26. Juni 2020 13:57
> To: openwrt-devel at lists.openwrt.org
> Cc: Jan Hoffmann <jan at 3e8.eu>
> Subject: [PATCH] ramips: add support for NETGEAR WAC124
> 
> The hardware appears to be identical to R6260/R6350/R6850.
> 
> The factory image has been confirmed to work with nmrpflash.

Looks good so far.

Please add specifications and flashing instructions to your commit message.

For the license, I think the proper string is GPL-2.0-only instead of GPL-2.0.

Best

Adrian

> 
> Signed-off-by: Jan Hoffmann <jan at 3e8.eu>
> ---
>  .../ramips/dts/mt7621_netgear_wac124.dts      | 25 +++++++++++++++++++
>  target/linux/ramips/image/mt7621.mk           | 12 +++++++++
>  .../mt7621/base-files/etc/board.d/01_leds     |  1 +
>  .../mt7621/base-files/lib/upgrade/platform.sh |  1 +
>  4 files changed, 39 insertions(+)
>  create mode 100644 target/linux/ramips/dts/mt7621_netgear_wac124.dts
> 
> diff --git a/target/linux/ramips/dts/mt7621_netgear_wac124.dts
> b/target/linux/ramips/dts/mt7621_netgear_wac124.dts
> new file mode 100644
> index 0000000000..b59fa1f539
> --- /dev/null
> +++ b/target/linux/ramips/dts/mt7621_netgear_wac124.dts
> @@ -0,0 +1,25 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/dts-v1/;
> +
> +#include "mt7621_netgear_sercomm_chj.dtsi"
> +
> +/ {
> +	compatible = "netgear,wac124", "mediatek,mt7621-soc";
> +	model = "Netgear WAC124";
> +};
> +
> +&led_power {
> +	label = "wac124:green:power";
> +};
> +
> +&led_usb {
> +	label = "wac124:green:usb";
> +};
> +
> +&led_internet {
> +	label = "wac124:green:wan";
> +};
> +
> +&led_wifi {
> +	label = "wac124:green:wifi";
> +};
> diff --git a/target/linux/ramips/image/mt7621.mk
> b/target/linux/ramips/image/mt7621.mk
> index d6423f81d9..de20934598 100644
> --- a/target/linux/ramips/image/mt7621.mk
> +++ b/target/linux/ramips/image/mt7621.mk
> @@ -702,6 +702,18 @@ define Device/netgear_wac104  endef
> TARGET_DEVICES += netgear_wac104
> 
> +define Device/netgear_wac124
> +  $(Device/netgear_sercomm_nand)
> +  DEVICE_MODEL := WAC124
> +  SERCOMM_HWNAME := WAC124
> +  SERCOMM_HWID := CTL
> +  SERCOMM_HWVER := A003
> +  SERCOMM_SWVER := 0x0402
> +  IMAGE_SIZE := 40960k
> +  DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware endef
> +TARGET_DEVICES += netgear_wac124
> +
>  define Device/netgear_wndr3700-v5
>    $(Device/uimage-lzma-loader)
>    BLOCKSIZE := 64k
> diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds
> b/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds
> index fdfd29d011..716bc6e462 100755
> --- a/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds
> +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds
> @@ -56,6 +56,7 @@ netgear,r6220|\
>  netgear,r6260|\
>  netgear,r6350|\
>  netgear,r6850|\
> +netgear,wac124|\
>  netgear,wndr3700-v5)
>  	ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan"
> "wan"
>  	;;
> diff --git a/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh
> b/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh
> index cb26b7745b..233ed80b4e 100755
> --- a/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh
> +++ b/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh
> @@ -53,6 +53,7 @@ platform_do_upgrade() {
>  	netgear,r6800|\
>  	netgear,r6850|\
>  	netgear,wac104|\
> +	netgear,wac124|\
>  	netis,wf2881|\
>  	xiaomi,mir3g|\
>  	xiaomi,mir3p|\
> --
> 2.27.0
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20200626/947fbfd9/attachment.sig>


More information about the openwrt-devel mailing list