diff --git target/linux/ramips/image/mt76x8.mk target/linux/ramips/image/mt76x8.mk index e2890c98e6..03707d1db3 100644 --- target/linux/ramips/image/mt76x8.mk +++ target/linux/ramips/image/mt76x8.mk @@ -187,6 +187,25 @@ define Device/netgear_r6120 endef TARGET_DEVICES += netgear_r6120 +define Device/netgear_r6020 + BLOCKSIZE := 64k + IMAGE_SIZE := 7270k + DEVICE_TITLE := Netgear AC750 R6020 + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci + SERCOMM_KERNEL_OFFSET := 0x90000 + SERCOMM_HWID := CFR + SERCOMM_HWVER := A001 + SERCOMM_SWVER := 0x0040 + IMAGES += factory.img + IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE)| append-rootfs | pad-rootfs + IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE) + IMAGE/factory.img := pad-extra 576k | $$(IMAGE/default) | \ + pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | zip R6020.bin | \ + sercom-seal +endef +TARGET_DEVICES += netgear_r6020 + + define Device/onion_omega2 IMAGE_SIZE := 16064k DEVICE_VENDOR := Onion diff --git target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds index c66e13d3c5..8d8605e4ad 100755 --- target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds +++ target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds @@ -40,6 +40,11 @@ hiwifi,hc5761a) mediatek,linkit-smart-7688) ucidef_set_led_wlan "wifi" "wifi" "linkit-smart-7688:orange:wifi" "phy0tpt" ;; +netgear,r6020) + ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f" + ucidef_set_led_wlan "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "phy0tpt" + ucidef_set_led_wlan "wlan5g" "WiFi 5GHz" "$boardname:green:wlan5g" "phy1tpt" + ;; netgear,r6120) ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f" ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10" diff --git target/linux/ramips/mt76x8/base-files/etc/board.d/02_network target/linux/ramips/mt76x8/base-files/etc/board.d/02_network index 5230717506..0a79b4b382 100755 --- target/linux/ramips/mt76x8/base-files/etc/board.d/02_network +++ target/linux/ramips/mt76x8/base-files/etc/board.d/02_network @@ -91,6 +91,11 @@ ramips_setup_interfaces() ucidef_add_switch_attr "switch0" "enable" "false" ucidef_set_interface_lan "eth0" ;; + netgear,r6020) + ucidef_add_switch "switch0" \ + "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "6@eth0" + ;; + netgear,r6120) ucidef_add_switch "switch0" \ "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "6@eth0" @@ -148,6 +153,7 @@ ramips_setup_macs() label_mac=$(mtd_get_mac_binary factory 0x4) ;; duzun,dm06|\ + netgear,r6020|\ netgear,r6120|\ wrtnode,wrtnode2p|\ wrtnode,wrtnode2r|\