Adding OpenWrt support for DIR-3060

I can't seem to be able to download those. would you mind sharing it somehow/somewhere?

Well done. Stupid question but do the radios show up at least? The default openwrt wifi config is all wireless to be turned off (but should be there to be turned on).

Also the DIR-3060 seems to have 3 radios while the others have either 1 or 2. Can you please provide the openwrt bootlog so others can have a look?

@kar200 -to be clear:
no radio interfaces showing up
they were not evident in the open bootlog - when i get home tonight i will upload the openwrt bootlog.
if you review the oem bootlog that i uploaded earlier - there are 4 cpus active, and 3 radios

1 Like

Thank you. My knowlegde has reached it's limit I beleive.

One thing that worked with my device from the console is to login with username "admin" and the password "WebPassword@twsz2018".
WebPassword being the password you setup for the device on the web interface.

If you have dumped the mtd partitions you can run the command "strings" and look for the "Password" line on the second mtd dump.

strings mtd2.bin | grep Password

For me it worked on the DIR-1360 stock firmware but I know that for @Lucky1 it did not.

Good luck

@lucky1 which files did you use to decipher the gpios?

could you tell me the GPIOs of the WPS and SES buttons on the 2640? i think they're the same as the 882, but just wanted to double check.

@sumo weird! i noticed that too now. i'll edit the post to fix.

I just looked it up in the schematic diagram
I can only get to the schematic of the DIR-3060
I believe the 882 & 2640 are the same pcb anyay

1 Like

i think the 2640 may be REV2 but the 882 is REV1

i know for sure the serial pinout is slightly different. that surprised me haha.

you can try the initramfs image here best to test in ram ATM
this is form the current master with the latest wifi driver

http://luckys.onmypc.net/openwrt/DIR-3060/2021.04.20/openwrt-ramips-mt7621-dlink_dir-3060-a1-initramfs-kernel.bin

@lucky -
thnka you for building this.
alas - no wifi.
in the gui, there are no wireless devices in the interfaces/devices tab
the openwrt initramfs bootlog is here:

with the oem boot:
yes gpio 15 is reset, gpio 6 is WPS

the oem log is here:

i'll scour the log for more specific info if you direct me.

thanks - sorry to need hand-holding!!

ok thanks for the logs it exactly what's needed to move forward
its late here I'll compare the logs with another device tomorrow
not an expert my self just trying to push it forward a bit
and leaning myself at the same time
kinda hoping others with the same device will chip in as well

ghoffman, can you confirm that the mt76 driver is present in the /lib/modules directory?

after boot finishes, give us the dmesg log.

then, after collecting that log, clear dmesg (dmesg --clear)

and then try to insert the mt7615e.ko module, and then type dmesg again to show us what it says.

recheck the schematic and there are MCU gpio's connected to the 7615 called "Radio_ONOFF"
so let set these to high maybe it will turn on the radios

http://luckys.onmypc.net/openwrt/DIR-3060/2021.04.21/

no sing of any MT7615 in the logs atm

@broly - i think you found a problem
no mt7615e.ko anwhere.

@lucky1 -
the /lib/modules folder has no files.
all the ko are in 5.4.113 subfolder
i'm not sure that matters but the initramfs is pretty small

i'm still apprehensive about flashing the rom. it lookks to me that the u-boot has to confirm checksum on the 2 kernels before doing anything, then it writes to mtd, then it will start the boot sequence and load the menu of options if a key is pressed.

watching the oem bootlog further, the radios dont load until another mtd partition is decrypted.

you guys probably know this!

anyway

  • i'd be keen to try an image with the mt7615e.ko module

thanks again

yes you have something there the initramfs has not got the wifi drivers there
I have been testing the factory image my self & it's just worked
it's 930PM
so I'll find out why the driver isn't in the initramfs another day
but yes they should be about the same size the factory & initramfs

I understand not flashing you are at risk bricking your device
but someone will have to try one day :slight_smile:

the boot loader checks the firmware images for a valid checksum
if they are both good & they are different it copy's firmware1 over to firmware2
and if firmware1 fails it copy's firmware 2 back to firmware1 to try to fix the device
but with openwrt it's really only copying the Kernel so wont really work

I have firmware files made on 2021-03-19 that the ram & factory images are bout the same size
but the one's compiled 2021-04-09 are like they are now 2/3 the size something changed

Do you know whether DIR-X1860 may be the same or at least similar? I will receive one of those shortly and plan to try that. At least the plastic case seems to be borrowed 1:1 just missing the USB receptacle :smirk:.

these are AC routers they use the MT7615
from the wiki it look's like the DIR-X1860 uses the 7915
the driver for the 7915 is in active development but I don't know any more
if it's made by the same company them it may be easy to port
look's like a DIR-831 / DIR 1360 with updated wifi

ok i just backdates the source
i have uploaded this initramfs into my DIR-1960
it has wifi in it & work for me

http://luckys.onmypc.net/openwrt/DIR-3060/2021.04.23/

i'll give it a try when i get home - about 10 more hours. thank you

we're eagerly watching ghoffman

the 4.23 builds do contain wireless drivers!!

all looks goood initiall except radio2 does not configure (no channel selection)

the bootlog is here:
dir-3060 initramfs 4.23 bootlog