if you have a serial cable load up an initramfs image into ram
from one of the other like boards the dir-1960-a1
you can backup you untouched partitions & see if any of the wifi setting are the
same as I think it will auto detect the type if at the same address
it will pay to double check the flash layout at a glace it looks the same
Got it to boot with dir-1960 specs, checking wifi now.
wifi also up, time for benchmarks
root@OpenWrt:~# iwinfo
wlan0 ESSID: "wrt-24"
Access Point: 34:0A:33:7F:44:A6
Mode: Master Channel: 11 (2.462 GHz)
Center Channel 1: 11 2: unknown
Tx-Power: 24 dBm Link Quality: 70/70
Signal: -34 dBm Noise: unknown
Bit Rate: 7.2 MBit/s
Encryption: WPA2 PSK (CCMP)
Type: nl80211 HW Mode(s): 802.11bgn
Hardware: 14C3:7603 14C3:7603 [MediaTek MT7603E]
TX power offset: none
Frequency offset: none
Supports VAPs: yes PHY name: phy0
wlan1 ESSID: "wrt-58"
Access Point: 34:0A:33:7F:44:A7
Mode: Master Channel: 36 (5.180 GHz)
Center Channel 1: 42 2: unknown
Tx-Power: 23 dBm Link Quality: 65/70
Signal: -45 dBm Noise: -83 dBm
Bit Rate: 866.7 MBit/s
Encryption: WPA2 PSK (CCMP)
Type: nl80211 HW Mode(s): 802.11nac
Hardware: 14C3:7615 7615:14C3 [MediaTek MT7615E]
TX power offset: none
Frequency offset: none
Supports VAPs: yes PHY name: phy1
sounds like it just need a dts file made
for button's & led gpio's to be confirmed & checked
I use the script "blink all" and the second "gpio in" from here
@alangregory : How did you boot with dir-1960 firmware? Did you flash via D-link recovery GUI? How did your tests go? I am interested buying this router as it is available locally , relatively cheap, has usb, but only if I can put Openwrt on it.
Hi @lafi, d'link sent me a unit from the dir 2150 model to test, but they're sending me some dir 1260, since the 2150 is imported and costs more than the 1260 and they are basically the same hardware. I stoped working on 2150 for now. Bellow are the image and dts snippets if you want to teste, only teste on recovery GUI.
image
define Device/dlink_dir-xx50-a1
$(Device/dsa-migration)
BLOCKSIZE := 64k
PAGESIZE := 2048
IMAGE_SIZE := 16064k
UBINIZE_OPTS := -E 5
DEVICE_VENDOR := D-Link
DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
KERNEL := $$(KERNEL) | uimage-padhdr 96
endef
define Device/dlink_dir-2150-a1
$(Device/dlink_dir-xx50-a1)
DEVICE_MODEL := DIR-2150
DEVICE_VARIANT := A1
endef
TARGET_DEVICES += dlink_dir-2150-a1
dts
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7621_dlink_dir-xx60-a1.dtsi"
/ {
compatible = "dlink,dir-2150-a1", "mediatek,mt7621-soc";
model = "D-Link DIR-2150 A1";
};
&wifi0 {
mtd-mac-address = <&factory 0xe000>;
mtd-mac-address-increment = <1>;
};
&wifi1 {
mtd-mac-address = <&factory 0xe000>;
mtd-mac-address-increment = <2>;
};
@alangregory How is the DIR-1260 supposed to be the same hardware as DIR-2150 when the latter has 4x4 MIMO on 5 GHz and the other one doesn't? I looked through the FCC documents and it seems to be mostly similiar, except for the 5 GHz chip (MT7613AEN for DIR-1260 vs MT7615N for DIR-2150).
Not exactly the same, but for development purpose they share the same sdk with minor changes.
2150-a1 https://dlink-gpl.s3.amazonaws.com/GPL2000220/DIR2150_A1_V1.01B04_GPLCode_20201211.tar.gz
1260-a1 https://dlink-gpl.s3.amazonaws.com/GPL2100008/DIR1260_A1_V1.01B01_GPLCode_20201222.tar.gz
@alangregory: Thank you for posting that information.
Unfortunately it turned out that the dir-2150 sold here does not have an USB port, which is consistent with your photos, and the FCC photos. The EU website shows a picture of a DIR-2150 that has the USB port: https://eu.dlink.com/hu/hu/products/dir-2150-ac2100-mu-mimo-wi-fi-router. Unfortunately there is no specification on that page. I think I will rather buy another model.
I've been thinking about building an image for the router and I've stumbled upon this page: https://openwrt.org/docs/guide-user/installation/recovery_methods/d-link_recovery_gui
Checked some of the routers from this list (like the 878) and it seems you need to flash a "factory" image, not a sysupgrade one.
I'm not really sure what are the correct "IMAGE/factory.bin :=" parameters for the generating the factory image (and for the sysupgrade one if needed), maybe you've figured them out already?
if you are going to test a version of the DIR-878 or other firmware
on a different device don't just flash it you may end up with a brick
1st thing you want to do is setup a serial interface
2nd find it's partition map & with this memory type
if it's nor flash & the same as DIR-867-878-882
or if it's NAND & the same layout then DIR-1960-2640-2660-3060
but the file you want to load will be the initramfs-kernel.bin into ram only NOT flash
via the uboot serial commands
if it even boots you then want to backup your current flash layout
& then see what work's or not & go from there
its whatever the OEM upgrade accepts, sometimes a unique header
usually a good place to start is analyzing an image from OEM
Recovery ip is 192.168.0.1. No need for custom header , it accepts the sysupgrade image, using the image config i posted above.
Yea, I've tried the sysupgrade image earlier today. It works well, but after a reboot all the settings are gone lol.
for the recovery interface you are to use the factory image
how ever on the nor flash versions he only difference between the factory & sysupgrade
is the "append-metadata" added to the end
this is not the same for the nand versions
if you wish to make an encrypted version for the web interface
look at the following pull requests
Got some 1260-a1 to test, same sdk as the 2150. Biggest difference is that the 5.8 is mt7663.
Got wireless to work, Uci isn't saving config after reboot, any tips where to start looking at ?
wlan0 ESSID: "dir-24"
Access Point: A8:63:7D:9B:67:E2
Mode: Master Channel: 11 (2.462 GHz)
Center Channel 1: 11 2: unknown
Tx-Power: 24 dBm Link Quality: unknown/70
Signal: unknown Noise: unknown
Bit Rate: unknown
Encryption: WPA2 PSK (CCMP)
Type: nl80211 HW Mode(s): 802.11bgn
Hardware: 14C3:7603 14C3:7603 [MediaTek MT7603E]
TX power offset: none
Frequency offset: none
Supports VAPs: yes PHY name: phy0
wlan1 ESSID: "dir-58"
Access Point: A8:63:7D:9B:67:E3
Mode: Master Channel: 36 (5.180 GHz)
Center Channel 1: 42 2: unknown
Tx-Power: 23 dBm Link Quality: unknown/70
Signal: unknown Noise: -91 dBm
Bit Rate: unknown
Encryption: WPA2 PSK (CCMP)
Type: nl80211 HW Mode(s): 802.11nac
Hardware: 14C3:7663 14C3:7663 [MediaTek MT7613BE]
TX power offset: none
Frequency offset: none
Supports VAPs: yes PHY name: phy1
Hey! I'm looking forward for this router too. I got mine recently and I've already installed an UART header so I can connect through serial every time I want.
Does anyone got any news about getting OpenWRT on this router?
Also, Alan, did you manage to enter to the Root account through serial using the retail/stock firmware? Which credentials did you use?, I tried with root:[blank], root:root, root:[web pass], admin:[blank], admin:admin, admin:[web pass], without success.
About the root password, i rebuilt the open source sdk with disabled console password and custom root password https://dlink-gpl.s3.amazonaws.com/GPL2000220/DIR2150_A1_V1.01B04_GPLCode_20201211.tar.gz