forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ramips: Add support for D-Link DIR-3040 A1
This adds support for the A1 hardware revision of the DIR-3040. It is an exact copy of the DIR-3060 save for some cosmetic changes to the housing. Even going so far as having the same FCC ID. Hardware specification: SoC: MediaTek MT7621AT Flash: Winbond W29N01HVSINA 128MB RAM: Micron MT41K128M16JT-125 256MB Ethernet: 5x 10/100/1000 Mbps WiFi1: MT7615DN 2.4GHz N 2x2:2 WiFi2: MT7615DN 5GHz AC 2x2:2 WiFi3: MT7615N 5GHz AC 4x4:4 Button: WPS, Reset Flash instructions: OpenWrt can be installed via D-Link Recovery GUI: NOTE: Seems to only work in Firefox on Windows. Tried with Chrome on Windows, Firefox in Linux, and Chromium in Linux. None of these other browsers worked. 1. Push and hold reset button (on the bottom of the device) until power led starts flashing (about 10 secs or so) while plugging in the power cable. 2. Give it ~30 seconds, to boot the recovery mode GUI 3. Connect your client computer to LAN1 of the device 4. Set your client IP address manually to 192.168.0.2 / 255.255.255.0. 5. Call the recovery page for the device at http://192.168.0.1/ 6. Use the provided emergency web GUI to upload and flash a new firmware to the device Thanks to @Lucky1openwrt and @iivailo for creating the DIR-3060 DTS file and related changes, so it was possible for me to adapt them to the DIR-3040, build images, test and fix minor issues. MAC Addresses: | use | address | example | | --- | --- | --- | | LAN | label | f4:*:61 | | WAN | label + 4 | f4:*:65 | | WI1/2g | label + 2 | f4:*:63 | | WI1/5g | label + 1 | f4:*:62 | | WI2/5g | label + 3 | f4:*:64 | The label MAC address was found in Factory, 0xe000 Checklist: ✓ nand ✓ ethernet ✓ button ✓ wifi2g ✓ wifi5g ✓ wifi5g ✓ mac ✓ led Signed-off-by: Vince McKinsey <[email protected]>
- Loading branch information
Showing
6 changed files
with
85 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
|
||
#include "mt7621_dlink_dir-xx60-a1.dtsi" | ||
|
||
/ { | ||
compatible = "dlink,dir-3040-a1", "mediatek,mt7621-soc"; | ||
model = "D-Link DIR-3040 A1"; | ||
}; | ||
|
||
&wps { | ||
gpios = <&gpio 6 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
&leds { | ||
usb2_white { | ||
function = LED_FUNCTION_USB; | ||
color = <LED_COLOR_ID_WHITE>; | ||
function-enumerator = <0>; | ||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>; | ||
trigger-sources = <&ehci_port2>; | ||
linux,default-trigger = "usbport"; | ||
}; | ||
|
||
usb3_white { | ||
function = LED_FUNCTION_USB; | ||
color = <LED_COLOR_ID_WHITE>; | ||
function-enumerator = <1>; | ||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; | ||
trigger-sources = <&xhci_ehci_port1>; | ||
linux,default-trigger = "usbport"; | ||
}; | ||
|
||
wlan2g { | ||
function = LED_FUNCTION_WLAN_2GHZ; | ||
color = <LED_COLOR_ID_WHITE>; | ||
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; | ||
linux,default-trigger = "phy0radio"; | ||
}; | ||
|
||
wlan5glb { | ||
function = LED_FUNCTION_WLAN_5GHZ; | ||
color = <LED_COLOR_ID_WHITE>; | ||
function-enumerator = <0>; | ||
gpios = <&gpio 9 GPIO_ACTIVE_HIGH>; | ||
linux,default-trigger = "phy1radio"; | ||
}; | ||
|
||
wlan5ghb { | ||
function = LED_FUNCTION_WLAN_5GHZ; | ||
color = <LED_COLOR_ID_WHITE>; | ||
function-enumerator = <1>; | ||
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; | ||
linux,default-trigger = "phy2radio"; | ||
}; | ||
}; | ||
|
||
&wifi0 { | ||
nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000 1>; | ||
nvmem-cell-names = "eeprom", "mac-address"; | ||
ieee80211-freq-limit; | ||
/delete-property/ ieee80211-freq-limit; | ||
}; | ||
|
||
&wifi1 { | ||
nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000 3>; | ||
nvmem-cell-names = "eeprom", "mac-address"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters