Skip to content
Snippets Groups Projects
Select Git revision
  • d3cf63c0bc9616aac82d7e693859d96b9af7a38e
  • experimental default protected
  • v2023.2.5-ffs
  • nrb/ex400-remove-wps
  • nrb/airmax-test
  • v2023.2.4-ffs
  • nrb/ar9344-reset-sequence
  • autinerd/experimental-openwrt-24.10
  • v2023.2.3-ffs
  • v2023.2.2-ffs
  • v2023.2-ffs
  • v2023.1-ffs
  • v2022.1.4-ffs
  • feature/addMikrotikwAP
  • v2022.1.3-ffs
  • v2021.1.2-ffs
  • v2022.1.1-ffs
  • master protected
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • experimental-2025-07-04
  • experimental-2025-07-04-base
  • experimental-2025-07-01
  • experimental-2025-07-01-base
  • experimental-2025-06-25
  • experimental-2025-06-25-base
  • experimental-2025-06-24
  • experimental-2025-06-24-base
  • experimental-2025-06-22
  • experimental-2025-06-22-base
  • v2023.2.5-ffs0.1
  • experimental-2025-06-08
  • experimental-2025-06-08-base
  • experimental-2025-06-06
  • experimental-2025-06-06-base
  • experimental-2025-05-27
  • experimental-2025-05-27-base
  • experimental-2025-05-18
  • experimental-2025-05-18-base
  • experimental-2025-05-15
41 results

0016-ramips-add-support-for-Netgear-R6120.patch

Blame
  • 0016-ramips-add-support-for-Netgear-R6120.patch 6.91 KiB
    From: Ludwig Thomeczek <ledesrc@wxorx.net>
    Date: Tue, 12 Jun 2018 21:17:23 +0200
    Subject: ramips: add support for Netgear R6120
    
    This patch adds support for the Netgear R6120, aka Netgear AC1200.
    
    Specification:
    - SoC: MediaTek MT7628 (580 MHz)
    - Flash: 16 MiB
    - RAM: 64 MiB
    - Wireless: 2.4Ghz(builtin) and 5Ghz (MT7612E)
    - LAN speed: 10/100
    - LAN ports: 4
    - WAN speed: 10/100
    - WAN ports: 1
    - Serial baud rate of Bootloader and factory firmware: 57600
    
    To flash use nmrpflash with the provided factory.img.
    Flashing via webinterface will not work, for now.
    
    Signed-off-by: Ludwig Thomeczek <ledesrc@wxorx.net>
    
    diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
    index 19386b9e139a25fd1ac29cd9a66b738b5b092cdf..4203773b4fa3ec771f07b7a8c414a416a0da0f20 100755
    --- a/target/linux/ramips/base-files/etc/board.d/01_leds
    +++ b/target/linux/ramips/base-files/etc/board.d/01_leds
    @@ -301,6 +301,11 @@ mzk-ex750np)
     na930)
     	set_usb_led "$boardname:blue:status"
     	;;
    +netgear,r6120)
    +	ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f"
    +	ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
    +	ucidef_set_led_wlan "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "phy0tpt"
    +	;;
     newifi-d1)
     	set_usb_led "$boardname:red:status"
     	;;
    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 c8bb6622333afaaf5b70ca4afd2ada2055d0399e..92430fc525a0eb48decee907f614e3278aadfd8b 100755
    --- a/target/linux/ramips/base-files/etc/board.d/02_network
    +++ b/target/linux/ramips/base-files/etc/board.d/02_network
    @@ -304,6 +304,10 @@ ramips_setup_interfaces()
     			"0:lan" "1:lan" "2:lan" "3:lan" "6t@eth0"
     		ucidef_set_interface_wan "usb0"
     		;;
    +	netgear,r6120)
    +		ucidef_add_switch "switch0" \
    +			"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "6@eth0"
    +		;;
     	mzk-dp150n|\
     	vocore-8M|\
     	vocore-16M)
    diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
    index 6d021b6def2f1fe7b71a67f36749c440f3bad1d4..097cc6df569518f64dbfd641eeccc1a4b1b37a2b 100644
    --- a/target/linux/ramips/base-files/etc/diag.sh
    +++ b/target/linux/ramips/base-files/etc/diag.sh
    @@ -38,6 +38,7 @@ get_status_led() {
     	mzk-w300nh2|\
     	nbg-419n|\
     	nbg-419n2|\
    +	netgear,r6120|\
     	pwh2004|\
     	r6220|\
     	tplink,c20-v4|\
    diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
    index 8055853508fc850a1826166c7e0cbdf443df27cb..7213b22d0c2734488bd96bc34e921f08649b8c2f 100755
    --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
    +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
    @@ -129,6 +129,7 @@ platform_check_image() {