Adding OpenWrt support for DIR-3060 - continued

@DarioX7 @Lucky1 -
i, too, have flashed this build (r18598) and i appreciate the work in creating it.
as you see - all 3 radios are set to CH36. in wireless survey, there are 4 radios, the first being a 2.4G radio. given the dual band/dual antenna system that htis router has, it might be tricky to get all radio sets working.
this is where we need some help.
i will conitnue to experiement with this.
thanks again

there is only 2x 7615 radios
the 1st x4 radio is divided into 2x 2.4G & 2x 5G
the 2nd 7615 is just a 4x 5G radio
so it should appear to have
a 2.4G 2x radio
a 5G 4x radio
a 5G 2x radio

I'm not sure the DBDC "Dual Band Dual Concurrent" on the 1st 7615 is working correctly yet

@Lucky1
What exactly do you need for me to check on my device? I am a more skittish hobbyist with some knowledge of it, so if I don't know what you ask about OpenWrt, I will try to find out and return what you ask for.

As for the DIR-3060, I would like to see official OpenWrt support, because the original firmware has not been updated for a long time and the device itself is EOL.

After reading the previous thread regarding the DIR-3060 Router, I would like to thank you for supporting the development of this RAMIPS platform.

Hi DarioX7
I myself don't have this device
but for those that do like your self who want this to have official support
it need someone with a device to summit a pull request to OpenWRT
I'm sure it needs some tweaks like mac addresses matching the oem firmware
& leds & buttons etc but all this takes time & you need the device to polish off this stuff
if this is ever going to get official support someone is going to have to do this
it could be you or another person reading this

Hello Lucky1, I own the router and I can help to improve the image. I can provide ssh access to the device.
I installed the image from luckys.onmypc.net and I can confirm that all 3 WIFi adapters are recognized as AC adapters. The MAC address of the Lan interface matches the MAC address on the sticker of the router.

Hi Iivailo
this need someone who has motivation & has a device
to submit a pull request to the openwrt repository
I don't have this device
The work that made that image is at https://github.com/Lucky1openwrt/openwrt/tree/DIR-3060-A1
that image is old now
I know the MT7615 driver is much improved & maybe the DBDC mode is as well
anyone is welcome to take what's there & polish it off & call it their own
This could be you

Hi,
I got your commit adding support for DIR-3060 and applied it to a 20.03 branch. The LEDs for the WIFI do not work, the others are fine. When I disable the wireless adapters the LEDs are on and when I enable them they are off (which is the opposite of the expected behavior). The reset button also works, but there is still an issue with the wifi. The first wireless adapter is recognized as AC, but it is actually the 2.4GHz adapter. The second adapter (Radio1) does not broadcast, the 3rd is fine. Later I will do more tests and try to get the 2nd WiFi working.

for changing the led change the "GPIO_ACTIVE_LOW" to "GPIO_ACTIVE_HIGH"
in the below DTS file

there are 2 radio IC's "MT7615" on this device
1st 4x4 radio is split into 2x 2.4G & 2x2 5G call DBDC "dual band dual concurrent"
2nd is just a pain 4x4 5G
there was no way to tell what each of the radios was what band way back then
maybe the has changed https://github.com/openwrt/mt76
1st radio's config was from the DIR-853-A3's

Hi, I solved the problems with the LEDs of the Wi-Fi and with the LED of the WAN interface. Everything seems to work. There are 2 minor issues with the Wi-Fi. The first problem is that the 2.4GHz adapter is not properly recognized as only 2.4GHz device and by default it is configured to use AC mode and channel 36(5GHz). After changing the settings, the device is properly working on 2.4GHz. How can I limit the modes on the compiled image by default? Setting the ieee80211-freq-limit parameter in the DTS file affects both bands of the MT7615DN chip. I archive my goal that way, but the second adapter (the 5GHz adapter of the MT7615DN chip) is not usable. I checked the DTS file of DIR-853 and other routers with MT7615DN and I didn't find anything which can solve the issue. Is this problem also available on DIR-853? The second Wi-Fi problem is that the DFS channels are not working on the device. There is an exception in the logs.

daemon.notice hostapd: Frequency 5320 (primary) not allowed for AP mode, flags: 0x416b NO-IR RADAR
daemon.err hostapd: Primary frequency not allowed
daemon.warn hostapd: wlan1: IEEE 802.11 Configured channel (64) or frequency (5320) (secondary_channel=-1) not found from the channel list of the current mode (2) IEEE 802.11a
daemon.warn hostapd: wlan1: IEEE 802.11 Hardware does not support configured channel
daemon.err hostapd: Could not select hw_mode and channel. (-3)
daemon.notice hostapd: wlan1: interface state UNINITIALIZED->DISABLED
daemon.notice hostapd: wlan1: AP-DISABLED

I'm getting the same exception also on a DIR-2660, so it looks like it is a mt76 problem.

sounds like you are getting somewhere :slight_smile:
the DBDC has always had these problems
I'm hoping some day someone with the skills with MT76
will sort is out one day but yes the DIR-853's had the same problems

the DBDC radio may be limited to non DFS channels
but the 4x radio should be fine like my 1960 & 878
as the 2660 is the same it;s fine for DFS as well
so i don't understand that

my only recommendation is to make you code available for other to better
and if motivated add it to openwrt via a pull request

Hi, today I made a PR and I hope it will get soon in the master branch. You can also see there my changes if you want. Here is the PR: https://github.com/openwrt/openwrt/pull/10697
On my DIR-3060 the DFS channels are not working on both 5GHz radios. Both DIR-3060 and DIR-2660 which I have are from the UK and in this country they are available, so my guess was that this is a driver issue. I can get a DIR-1960 to test this weekend.

1 Like

it's good to hear about the PR
the DIR-2660 & Dir-1960 are the same PCB
the only difference is the usb 2.0 port is not loaded in the DIR-1960
& it's marketed as a AC1900 but at lest mine loaded as a AC2600
I'm in Australia and the DFS works ok here now
I'm surprised it's not working for you
I can set mine to UK and test a channel if you want ?
just tested 52 and 132 and they seen fine set to GB

You gave me the idea to manually set the country for the adapters and now both adapters work on DFS channels. It looks like the country code is not read from the configuration partitions. Maybe this mean that the flash has a different structure than that described in the DTS file and openwrt can't read from them. How can I be sure that all partitions are mapped correctly?

you have to compare flash partitions against the OEM firmware

the country stuff for d-link is there but not used
I know that some radio's have the option for country setting
but i also know they never set them
I have had a few netgear usb ones that
won't connect to channel 13
with the default windows drivers
you have to install the netgear one's
it can be a real pain
but d-link with the same chip-set did work
due to them setting the correct country of sale

@iivailo @Lucky1 Is it possible to use the code in this PR for a DIR-3040 rev A1? It has the exact same FCC ID as the DIR-3060 rev A1.

it's got a different model number so I don't think so
if it uses the exact same dlink firmware file for both devices then maybe
but i would think it's different in some way

anyway you can for sure use the work going into the dir-3060-a1
but it all needs to be checked right down to the flash partition layout
and going on other devices it will at lest need the matching header saying 3040 not 3060
at the very least

Yes, that is what I'm attempting right now. I'm seeing if changing the names from dir-3060 to dir-3040, like how dir-2640 and dir-2660 are compared, works out. How would I check the flash partition layout? Similarly, how would I check the dlink firmware file and compare it to the dir-3060-a1 version? The deviwiki for the dir-2640 says the dir-2640 is exactly the same as the dir-2660 ("apart from the color of the LEDs and the presence of a dedicated push button for toggling the Wi-Fi networks"), so I'm hoping that dlink just did something similar.

1st thing you need a serial cable & capture the oem logs
this will have to flash layout
note the current mac address's on each interface

then you need to back the firmware that's there
I'd try to load the initramfs image for the 3060 into ram via uboot
then via the " Save mtdblock contents" option
backup all the partitions
while there have a play as what works or not

then look at the saved kernal MDT & see what header id is there
I'm gessing it's DIR-3040

that's round one anyway

Any Progress on this? I have a DIR-3040 HW A1 FW 1.20

hate the D-link software, let me know if there is anything I can do to help

Yes, I did have progress on DIR-3040-A1 hardware. Work and holidays had distracted me from this. I'll merge the latest openwrt master into my branch and retest my devices. If all goes well, I'll submit a PR and link the commit here.