# Adding OpenWrt support for DIR-3060

**URL:** <https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335>\
**Category:** For Developers\
**Created:** [April 18, 2021, 5:42pm UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335 "2021-04-18T17:42:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghoffman](https://forum.openwrt.org/user_avatar/forum.openwrt.org/ghoffman/32/5525_2.png) [@ghoffman](https://forum.openwrt.org/u/ghoffman)\
**Post date:** [April 18, 2021, 5:42pm UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/1 "2021-04-18T17:42:02Z")

</div>

I have a DIR-3060. i had it running as an access point in my home network top-level managed by openwrt. the DIR-3060 wifi performance was very fast and very strong. of course i want it to run openwrt also....

I just opened up the case on the DIR-3060 .  
so far -  
serial access is at 57600/N/8/1, not 115200 baud.

no pings are recevied from 192.168.0.1 or 192.168.1.1 during the boot process until the decrypted full image has substantially loaded. this wil be difficult to figure out i'm afraid.

The router U-boot cannot be interrupted from the serial console as far as I can tell.  
one image decrypts, another image loads, and then there is this menu:

```
Please choose the operation: 
   1: Load system code to SDRAM via TFTP. 
   2: Load system code then write to Flash via TFTP. 
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   6: System Enter UBoot to Update Img or Bin. 
   7: Load Boot Loader code then write to Flash via Serial. 
   9: Load Boot Loader code then write to Flash via TFTP. 
default: 3

```

the full boot log is posted below.  
[dir3060 bootlog](https://pastebin.com/RfGY2Ad1)

the system boot can be interrupted to get a 'failsafe' openwrt prompt by pressing f - enter- later on in the boot.  
i have the failsafe log posted below also.  
[dir3060 fialsafe boot log](https://pastebin.com/AXzmM26q)

in failsafe mode, no lan ports are active and the busybox verion of ifconfig seems hobbled enough to prevent lan port configuration.

the mtd map is shown

```
Creating 10 MTD partitions on "MT7621-NAND":
0x000000000000-0x000007f80000 : "ALL"
0x000000000000-0x000000080000 : "Bootloader"
0x000000080000-0x000000100000 : "Config"
0x000000100000-0x000000140000 : "Factory"
0x000000140000-0x000000180000 : "Config2"
0x000000180000-0x000002980000 : "Kernel"
0x000002980000-0x000004980000 : "Private"
0x000004980000-0x000007180000 : "Kernel2"
0x000007180000-0x000007780000 : "mydlink"
0x000007780000-0x000008080000 : "Reserved"
mtd: partition "Reserved" extends beyond the end of device "MT7621-NAND" -- size truncated to 0x800000
[mtk_nand] probe successfully!

```

finally, the u-boot console commands and default enviroment are shown below.

```
4: System Enter Boot Command Line Interface.

U-Boot 1.1.3 (Apr 25 2019 - 14:47:34)
MT7621 #
MT7621 # ifconfig
Unknown command 'ifconfig' - try 'help'
MT7621 # help
? - alias for 'help'
bootm - boot application image from memory
go - start application at address 'addr'
help - print online help
loadb - load binary file over serial line (kermit mode)
md - memory display
mdio - Ralink PHY register R/W command !!
mm - memory modify (auto-incrementing)
nand - nand command
nm - memory modify (constant address)
printenv- print environment variables
reset - Perform RESET of the CPU
saveenv - save environment variables to persistent storage
setenv - set environment variables
tftpboot- boot image via network using TFTP protocol
version - print monitor version
MT7621 # printenv
bootcmd=tftp
bootdelay=1
baudrate=57600
ethaddr="00:AA:BB:CC:DD:10"
ipaddr=192.168.0.1
serverip=192.168.0.101
stdin=serial
stdout=serial
stderr=serial
Image1Stable=1
BootType=3

```

from the stock FW GUI, one can save a log file which looks like a dmesg log without the initial lines, but with the results of -ps- appended. this is also posted below.

```
             total used free shared buffers
Mem: 250524 123884 126640 0 0
-/+ buffers: 123884 126640
Swap: 0 0 0
  PID USER VSZ STAT COMMAND
    1 admin 1684 S /sbin/procd
    2 admin 0 SW [kthreadd]
    3 admin 0 SW [ksoftirqd/0]
    4 admin 0 SW [kworker/0:0]
    5 admin 0 SW< [kworker/0:0H]
    6 admin 0 SW [kworker/u8:0]
    7 admin 0 SW [migration/0]
    8 admin 0 SW [rcu_bh]
    9 admin 0 SW [rcu_sched]
   10 admin 0 SW [migration/1]
   11 admin 0 SW [ksoftirqd/1]
   12 admin 0 SW [kworker/1:0]
   13 admin 0 SW< [kworker/1:0H]
   14 admin 0 SW [migration/2]
   15 admin 0 SW [ksoftirqd/2]
   16 admin 0 SW [kworker/2:0]
   17 admin 0 SW< [kworker/2:0H]
   18 admin 0 SW [migration/3]
   19 admin 0 SW [ksoftirqd/3]
   21 admin 0 SW< [kworker/3:0H]
   22 admin 0 SW< [khelper]
   23 admin 0 SW [kdevtmpfs]
   24 admin 0 SW< [netns]
   25 admin 0 SW< [writeback]
   26 admin 0 SW< [bioset]
   27 admin 0 SW< [kblockd]
   28 admin 0 SW [khubd]
   29 admin 0 SW [kworker/3:1]
   30 admin 0 SW [kworker/2:1]
   31 admin 0 SW [kworker/1:1]
   32 admin 0 SW [kworker/0:1]
   33 admin 0 SW [kswapd0]
   34 admin 0 SWN [ksmd]
   35 admin 0 SW [fsnotify_mark]
   36 admin 0 SW< [crypto]
   43 admin 0 SW< [deferwq]
   44 admin 0 SW [kworker/u8:1]
  138 admin 928 S /sbin/askfirst ttyS1 /bin/login
  256 admin 1052 S /sbin/ubusd
  280 admin 1296 S /usr/bin/if_monitor
  291 admin 5156 S /sbin/preinit
  304 admin 0 SWN [jffs2_gcd_mtd6]
  320 admin 1236 S /sbin/tw_hotplug
  336 admin 5692 S /bin/nvram_daemon
  366 admin 0 SWN [jffs2_gcd_mtd8]
  746 admin 4060 S /sbin/stad 1
  747 admin 4060 S /sbin/stad 2
  903 admin 940 S nl_server -i br0 -s dlinkrouter -s dlinkrouter3301 -
  904 admin 940 S nl_server -i br0 -s dlinkrouter -s dlinkrouter3301 -
  907 admin 1320 S mDNSResponder -b -i br0 -f /tmp/mdns_resp.conf -e dl
  931 admin 1436 S /bin/dnsmasq -C /tmp/dnsmasq.conf -6 /tmp/dnsmasq_dh
  933 admin 1424 S /bin/dnsmasq -C /tmp/dnsmasq.conf -6 /tmp/dnsmasq_dh
  970 admin 4888 S /bin/lighttpd -f /etc_ro/lighttpd/lighttpd.conf -m /
  981 admin 7932 S /etc_ro/lighttpd/www/web/HNAP1/prog.fcgi
  986 admin 4236 R /usr/sbin/timer
  991 admin 1960 S syslogd -L
  998 admin 984 S omcproxy -e1
 1000 admin 8048 S /etc_ro/lighttpd/www/web/HNAP1/prog.fcgi
 1023 admin 4536 S /sbin/myinfo.cgi
 1035 admin 1984 S {mydlink_watchdo} /bin/sh /mydlink/mydlink_watchdog.
 1052 admin 1912 S /usr/sbin/dhcp6s -c /tmp/dhcp6s.conf -k /tmp/dhcp6sc
 1070 admin 1040 S /usr/sbin/radvd -m none -C /tmp/radvd.conf -d 5
 1091 admin 5724 S /mydlink/da_adaptor -s LD_LIBRARY_PATH=/mydlink/lib 
 1097 admin 5724 S /mydlink/da_adaptor -s LD_LIBRARY_PATH=/mydlink/lib 
 1098 admin 5724 S /mydlink/da_adaptor -s LD_LIBRARY_PATH=/mydlink/lib 
 1253 admin 5724 S /mydlink/da_adaptor -s LD_LIBRARY_PATH=/mydlink/lib 
 1254 admin 5724 S /mydlink/da_adaptor -s LD_LIBRARY_PATH=/mydlink/lib 
 1255 admin 5724 S /mydlink/da_adaptor -s LD_LIBRARY_PATH=/mydlink/lib 
 1264 admin 5724 S /mydlink/da_adaptor -s LD_LIBRARY_PATH=/mydlink/lib 
 1265 admin 5724 S /mydlink/da_adaptor -s LD_LIBRARY_PATH=/mydlink/lib 
 1323 admin 0 SW [RtmpCmdQTask]
 1324 admin 0 SW [RtmpWscTask]
 1325 admin 0 SW [HwCtrlTask]
 1326 admin 0 SW [ser_task]
 1333 admin 0 SW [RtmpMlmeTask]
 1342 admin 0 SW [RtmpCmdQTask]
 1343 admin 0 SW [RtmpWscTask]
 1344 admin 0 SW [HwCtrlTask]
 1345 admin 0 SW [ser_task]
 1402 admin 0 SW [RtmpMlmeTask]
 1473 admin 1472 S bndstrg2 -i ra0 -i rai0 -i rax0
 1538 admin 4004 S mosquitto -c /etc/mosquitto/mosquitto.conf -d
 1545 admin 5604 S sbd
 1555 admin 7020 S apsond
 1559 admin 7020 S apsond
 1560 admin 7020 S apsond
 1561 admin 7020 S apsond
 1562 admin 7020 S apsond
 1563 admin 7020 S apsond
 1564 admin 7020 S apsond
 1566 admin 4504 S meshd
 1591 admin 0 SW [kworker/3:2]
17148 admin 1956 S sleep 5
17153 admin 1972 S sh -c ps >> /etc_ro/lighttpd/www/web/messages
17154 admin 1964 R ps
br0 Link encap:Ethernet HWaddr 60:63:4C:7C:33:01  
          inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
          inet6 addr: fe80::6263:4cff:fe7c:3301/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:3625 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1995 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:746164 (728.6 KiB) TX bytes:4583372 (4.3 MiB)

br1 Link encap:Ethernet HWaddr 60:63:4C:7C:33:06  
          inet6 addr: fe80::a0b6:5dff:fe32:9f51/64 Scope:Link
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B) TX bytes:188 (188.0 B)

br2 Link encap:Ethernet HWaddr 60:63:4C:7C:33:07  
          inet6 addr: fe80::eca8:81ff:fe6c:d539/64 Scope:Link
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B) TX bytes:188 (188.0 B)

br3 Link encap:Ethernet HWaddr 60:63:4C:7C:33:08  
          inet6 addr: fe80::64c4:36ff:fe6e:b688/64 Scope:Link
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B) TX bytes:110 (110.0 B)

eth2 Link encap:Ethernet HWaddr 60:63:4C:7C:33:01  
          inet6 addr: fe80::6263:4cff:fe7c:3301/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:4301 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7291 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1111803 (1.0 MiB) TX bytes:5431047 (5.1 MiB)
          Interrupt:3 

eth2.1 Link encap:Ethernet HWaddr 60:63:4C:7C:33:01  
          inet6 addr: fe80::6263:4cff:fe7c:3301/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1761 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B) TX bytes:272392 (266.0 KiB)

eth2.2 Link encap:Ethernet HWaddr 60:63:4C:7C:33:01  
          inet6 addr: fe80::6263:4cff:fe7c:3301/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1760 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B) TX bytes:272322 (265.9 KiB)

eth2.3 Link encap:Ethernet HWaddr 60:63:4C:7C:33:01  
          inet6 addr: fe80::6263:4cff:fe7c:3301/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:4301 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2002 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1034385 (1010.1 KiB) TX bytes:4584071 (4.3 MiB)

eth2.4 Link encap:Ethernet HWaddr 60:63:4C:7C:33:01  
          inet6 addr: fe80::6263:4cff:fe7c:3301/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1760 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B) TX bytes:272322 (265.9 KiB)

eth3 Link encap:Ethernet HWaddr 60:63:4C:7C:33:05  
          inet6 addr: fe80::6263:4cff:fe7c:3305/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B) TX bytes:518 (518.0 B)

lo Link encap:Local Loopback  
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:65536 Metric:1
          RX packets:17945 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17945 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1539950 (1.4 MiB) TX bytes:1539950 (1.4 MiB)

ra0 Link encap:Ethernet HWaddr 60:63:4C:7C:33:03  
          inet6 addr: fe80::6263:4cff:fe7c:3303/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3000 
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
          Interrupt:4 

rai0 Link encap:Ethernet HWaddr 60:63:4C:7C:33:04  
          inet6 addr: fe80::6263:4cff:fe7c:3304/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3000 
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
          Interrupt:24 

rax0 Link encap:Ethernet HWaddr 60:63:4C:7C:33:02  
          inet6 addr: fe80::6263:4cff:fe7c:3302/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3000 
          RX bytes:519 (519.0 B) TX bytes:537 (537.0 B)

```

---

<div class="post-metadata">

**Author:** ![Lucky1](https://forum.openwrt.org/letter_avatar/lucky1/32/6_449c533f586939b6e5f246632a46421f.png) [@Lucky1](https://forum.openwrt.org/u/Lucky1)\
**Post date:** [April 18, 2021, 10:38pm UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/2 "2021-04-18T22:38:18Z")

</div>

looks like another version the the DIR-1760,1960,2640,2660  
you should be able to load the initramfs image into RAM  
for one of the others by using 1 in the menu  
the memory map look's the same so you can backup the flash  
a keeps it's setting & original firmware so save all it's MTD's  
you can test the radio 1 of the the 5G it's looks the same  
but the other radio is using DBDC not sure how much is working

> <https://github.com/openwrt/mt76/issues/483>
>
> Hello,
> 
> I'm investigating an issue after wifi interfaces restart, where client…s can not connect to APs.
> 
> CPU board: UniElec 7621-06
> WiFi: BPI-7615 (running in DBDC mode)
> OpenWRT: cfbda6627956af0cab380d03fd9275574e67921e (1.12.2020)
> MT76 driver: 066cc441eb8fcec7a3aeb6a320f5f9e6c21790f1 (21.11.2020)
> 
> Configuration is very simple: 1 AP on each radio, unique BSSID, unique SSID, without encryption, fixed channels (if any help I can attach configuration)
> After reboot both APs are working (2.4GHz and 5GHz) just fine: beacons are visible in the air (using external sniffer), clients can connect to both APs, ....
> 
> Now, the fun begins. After running script \`/sbin/wifi\` strange things starts.
> 
> In some rare cases (1 of 5) everything is working just fine. But in other cases WiFi clients can not connect to any AP. In logs I can see this:
> \`Wed Dec 2 13:07:08 2020 daemon.info hostapd: wlan1: STA 60:8b:0e:08:a9:99 IEEE 802.11: authenticated\`
> \`Wed Dec 2 13:07:08 2020 daemon.info hostapd: wlan1: STA 60:8b:0e:08:a9:99 IEEE 802.11: associated (aid 1)\`
> \`Wed Dec 2 13:07:08 2020 daemon.notice hostapd: wlan1: AP-STA-CONNECTED 60:8b:0e:08:a9:99\`
> \`Wed Dec 2 13:07:08 2020 daemon.info hostapd: wlan1: STA 60:8b:0e:08:a9:99 RADIUS: starting accounting session 7BB47469AFF75D02\`
> \`Wed Dec 2 13:07:10 2020 daemon.notice hostapd: wlan1: AP-STA-DISCONNECTED 60:8b:0e:08:a9:99\`
> \`Wed Dec 2 13:07:10 2020 daemon.info hostapd: wlan1: STA 60:8b:0e:08:a9:99 IEEE 802.11: disassociated\`
> \`Wed Dec 2 13:07:11 2020 daemon.info hostapd: wlan1: STA 60:8b:0e:08:a9:99 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)\`
> 
> Enabling hostapd debug logs (-d):
> \`Wed Dec 2 13:14:39 2020 daemon.debug hostapd: wlan1: Event RX\_MGMT (18) received\`
> \`Wed Dec 2 13:14:39 2020 daemon.debug hostapd: mgmt::disassoc\`
> \`Wed Dec 2 13:14:39 2020 daemon.debug hostapd: disassocation: STA=60:8b:0e:08:a9:99 reason\_code=8\`
> \`Wed Dec 2 13:14:39 2020 daemon.notice hostapd: wlan1: AP-STA-DISCONNECTED 60:8b:0e:08:a9:99\`
> 
> It is the client who is sending disconnect frame to APs. But why?
> 
> Investigating it further, it turned out, that there are no beacon frames in the air from my APs (in 100ms interval) when issue arise. But both APs do respond to Probe Request frames.
> 
> By my understanding MT7615 sends out beacon frames without CPU intervention. CPU has to prepare beacon frame content and give it to MCU for periodic transmit. If this is correct, my additional debugs could help to solve this.
> I have added debugs to \`mt7615\_mcu\_add\_beacon\_offload\` function.
> After reboot I see this values (every 6 seconds):
> \`req: omac\_idx: 0x00, enable: 0x1, wlan\_idx: 0x0, band\_idx: 0x1\`
> \`req: omac\_idx: 0x11, enable: 0x1, wlan\_idx: 0x0, band\_idx: 0x0\`
> If system is working fine, I get same output. If not, I get this:
> \`req: omac\_idx: 0x00, enable: 0x1, wlan\_idx: 0x0, band\_idx: 0x0\`
> \`req: omac\_idx: 0x11, enable: 0x1, wlan\_idx: 0x0, band\_idx: 0x1\`
> Can someone help me understand what happens in non working case. Is there interface bring up order issue?
> 
> Other things I have tried already:
> - using mt7615 in non DBDC mode - can not reproduce issue
> - same setup with two ath9k devices with MT7621 board - can not reproduce issue
> 
> I'm not even sure it is mt76 issue.
> 
> Any suggestions, ideas, directions, debugging ideas are welcome.

[https://fcc.report/FCC-ID/KA2IR3060A1](https://fcc.report/FCC-ID/KA2IR3060A1)

---

<div class="post-metadata">

**Author:** ![broly](https://forum.openwrt.org/user_avatar/forum.openwrt.org/broly/32/34127_2.png) [@broly](https://forum.openwrt.org/u/broly)\
**Post date:** [April 18, 2021, 11:09pm UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/3 "2021-04-18T23:09:53Z")

</div>

they're different boards, @lucky1

my boys say this board has the "AP-MSMQ01-0010" as opposed to the canonical "AP-MTKH7-002 REV1.0"

further, i'm surprised the OP can do anything in stock firmware's serial. i just would be very, very, very careful with flashing a 2640/2660/1760/1960 build for this router. the PCB differences (memory and NAND being the same) seems to suggest there are other differences in the circuitry for one of the radios to accommodate the additional bandwidth.

---

<div class="post-metadata">

**Author:** ![Lucky1](https://forum.openwrt.org/letter_avatar/lucky1/32/6_449c533f586939b6e5f246632a46421f.png) [@Lucky1](https://forum.openwrt.org/u/Lucky1)\
**Post date:** [April 18, 2021, 11:14pm UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/4 "2021-04-18T23:14:46Z")

</div>

yes it's all true  
but I didn't say anything about flashing the board  
I'm saying load the initramfs image into RAM (NOT FLASH)  
if it crashes well that's it don't do it again  
if it run's you can backup you untouched flash  
& test out what works without having to risk anything  
I'm sure this is from the same source code  
as the memory map is the same

---

<div class="post-metadata">

**Author:** ![broly](https://forum.openwrt.org/user_avatar/forum.openwrt.org/broly/32/34127_2.png) [@broly](https://forum.openwrt.org/u/broly)\
**Post date:** [April 18, 2021, 11:17pm UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/5 "2021-04-18T23:17:02Z")

</div>

yeah the memory map for sure looks the same (it is the same)

and chances are there is a lot of overlap.

he should try the initramfs but i don't doubt it will be successful.

i hate DBDC mode so much. i could do it for the existing routers but it is such a nuisance because you have to create additional input fields for new configuration files that are merged.

maybe with the mt76 driver it's easier. but the stock driver is so fast.

---

<div class="post-metadata">

**Author:** ![Lucky1](https://forum.openwrt.org/letter_avatar/lucky1/32/6_449c533f586939b6e5f246632a46421f.png) [@Lucky1](https://forum.openwrt.org/u/Lucky1)\
**Post date:** [April 18, 2021, 11:21pm UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/6 "2021-04-18T23:21:31Z")

</div>

from what I understand  
most of the radios configuration is inside the art partition  
so if the driver is all working "don't think it is yet"  
it get's all it's info form there about the radios setup  
this board is just the same as the others having 2x 7615N's  
but one is split into 2x 2x2 like the DIR-853 & DIR-1360 is with 1 radio

as the schematics are there in the FCC info this board should be easy 🙂

---

<div class="post-metadata">

**Author:** ![broly](https://forum.openwrt.org/user_avatar/forum.openwrt.org/broly/32/34127_2.png) [@broly](https://forum.openwrt.org/u/broly)\
**Post date:** [April 18, 2021, 11:25pm UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/7 "2021-04-18T23:25:06Z")

</div>

i found the schematics for the 2660/3060 and they're definitely surprisingly different:L  
[https://fcc.io/KA2/IR3060A1](https://fcc.io/KA2/IR3060A1) click Detail -\> Internal Photos (3060)  
[https://fcc.io/KA2/IR2660A1](https://fcc.io/KA2/IR2660A1) click Detail -\> Internal Photos (2660)

i didn't know that 853/1360 are single radio but split into 2 2x2, are you sure they're not just 2 2x2 mt7615?

oh yeah you're right, the 853 is a single radio split into two streams. interesting.

---

<div class="post-metadata">

**Author:** ![Lucky1](https://forum.openwrt.org/letter_avatar/lucky1/32/6_449c533f586939b6e5f246632a46421f.png) [@Lucky1](https://forum.openwrt.org/u/Lucky1)\
**Post date:** [April 18, 2021, 11:29pm UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/8 "2021-04-18T23:29:01Z")

</div>

definitions are a tricky thing is the mt7615 a radio or is it 4  
but really I'm not 100% sure of anything in life  
everything is always up for review  
but this is what I think atm but no not 100%

---

<div class="post-metadata">

**Author:** ![broly](https://forum.openwrt.org/user_avatar/forum.openwrt.org/broly/32/34127_2.png) [@broly](https://forum.openwrt.org/u/broly)\
**Post date:** [April 18, 2021, 11:40pm UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/9 "2021-04-18T23:40:11Z")

</div>

all i know is the MT7615 definitely has a CPU of its own. maybe it has one for each stream. i really don't know. but the proprietary driver code suggests the whole driver is essentially a wrapper around an embedded (eCos?) operating system.

it is super cool if you ask me. very very cool. sometimes if you change the ram code or firmware, the radios need time to 'adjust'. it's almost like they're living and breathing haha.

---

<div class="post-metadata">

**Author:** ![ghoffman](https://forum.openwrt.org/user_avatar/forum.openwrt.org/ghoffman/32/5525_2.png) [@ghoffman](https://forum.openwrt.org/u/ghoffman)\
**Post date:** [April 19, 2021, 12:04am UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/10 "2021-04-19T00:04:13Z")

</div>

@Lucky1 -  
i've tried adding bootdelay to the u-boot environment but the u-boot seems locked hard unless someone knows a secret key sequence.  
the openwrt console also seems locked - at least root and admin don't work, and the password i set from the gui doesnt work.

so - i'm not sure how to save the mtd contents  
which initramfs image do you suggest?

---

<div class="post-metadata">

**Author:** ![ghoffman](https://forum.openwrt.org/user_avatar/forum.openwrt.org/ghoffman/32/5525_2.png) [@ghoffman](https://forum.openwrt.org/u/ghoffman)\
**Post date:** [April 19, 2021, 12:11am UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/11 "2021-04-19T00:11:06Z")

</div>

@broly -  
yes, pcb is AP-MSM001-0010, rev 1.0

---

<div class="post-metadata">

**Author:** ![kar200](https://forum.openwrt.org/letter_avatar/kar200/32/6_449c533f586939b6e5f246632a46421f.png) [@kar200](https://forum.openwrt.org/u/kar200)\
**Post date:** [April 19, 2021, 12:12am UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/12 "2021-04-19T00:12:44Z")

</div>

If you build the initramfs image with Luci included you can actually access the web interface and from luci there is an easy way (system - backup/flash firmware - save mtd content).

---

<div class="post-metadata">

**Author:** ![Lucky1](https://forum.openwrt.org/letter_avatar/lucky1/32/6_449c533f586939b6e5f246632a46421f.png) [@Lucky1](https://forum.openwrt.org/u/Lucky1)\
**Post date:** [April 19, 2021, 12:17am UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/13 "2021-04-19T00:17:18Z")

</div>

ok the others you can just send it a 1 and it will select 1 out of the menu  
then you have to load the initramfs image into RAM  
this should do  
[http://luckys.onmypc.net/openwrt/DIR-1960/2021.02.15/openwrt-snapshot-r15789-d79eeba688-ramips-mt7621-dlink\_dir-1960-a1-initramfs-kernel.bin](http://luckys.onmypc.net/openwrt/DIR-1960/2021.02.15/openwrt-snapshot-r15789-d79eeba688-ramips-mt7621-dlink_dir-1960-a1-initramfs-kernel.bin)

---

<div class="post-metadata">

**Author:** ![Lucky1](https://forum.openwrt.org/letter_avatar/lucky1/32/6_449c533f586939b6e5f246632a46421f.png) [@Lucky1](https://forum.openwrt.org/u/Lucky1)\
**Post date:** [April 19, 2021, 12:25am UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/14 "2021-04-19T00:25:46Z")

</div>

[https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/ramips/mt7621/](https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/ramips/mt7621/)

---

<div class="post-metadata">

**Author:** ![broly](https://forum.openwrt.org/user_avatar/forum.openwrt.org/broly/32/34127_2.png) [@broly](https://forum.openwrt.org/u/broly)\
**Post date:** [April 19, 2021, 12:46am UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/15 "2021-04-19T00:46:55Z")

</div>

sort of surprised they spun an entirely new PCB (i mean it has some similarities), but i guess the DBDC radio probably needed more circuitry or something

---

<div class="post-metadata">

**Author:** ![Lucky1](https://forum.openwrt.org/letter_avatar/lucky1/32/6_449c533f586939b6e5f246632a46421f.png) [@Lucky1](https://forum.openwrt.org/u/Lucky1)\
**Post date:** [April 19, 2021, 1:17am UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/16 "2021-04-19T01:17:29Z")

</div>

I just confirmed how my DIR-1960-A1 works  
there is no delay for that menu you just send a few 1's to is before it gets to it  
it will then prompt

```
Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   6: System Enter UBoot to Update Img or Bin.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.
default: 3

You choosed 1
                                                                              0

1: System Load Linux to SDRAM via TFTP.
 Please Input new ones /or Ctrl-C to discard
        Input device IP (192.168.0.1) ==:192.168.0.1

```

---

<div class="post-metadata">

**Author:** ![broly](https://forum.openwrt.org/user_avatar/forum.openwrt.org/broly/32/34127_2.png) [@broly](https://forum.openwrt.org/u/broly)\
**Post date:** [April 19, 2021, 1:49am UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/17 "2021-04-19T01:49:45Z")

</div>

yea you just press one a few times before the prompt and it should enter automatically unless you hit an overriding key after

---

<div class="post-metadata">

**Author:** ![ghoffman](https://forum.openwrt.org/user_avatar/forum.openwrt.org/ghoffman/32/5525_2.png) [@ghoffman](https://forum.openwrt.org/u/ghoffman)\
**Post date:** [April 19, 2021, 11:02am UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/18 "2021-04-19T11:02:32Z")

</div>

@broly, @lucky1 -  
the tftp loader is a little differnt, seems to require a tftp server on my host, but tht's no biggy. by default, it looks for 'test.bin' and loads it.

i used the dir-1960-a1 and dir-2660 initramfs.bin files, renamed as test.bin, and - success getting wired interfaces up,launcing gui, and saving mtd partitions.

there are no radios active att his stage with either image.

what do you suggest for next steps?  
thanks!

---

<div class="post-metadata">

**Author:** ![Lucky1](https://forum.openwrt.org/letter_avatar/lucky1/32/6_449c533f586939b6e5f246632a46421f.png) [@Lucky1](https://forum.openwrt.org/u/Lucky1)\
**Post date:** [April 19, 2021, 11:21am UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/19 "2021-04-19T11:21:12Z")

</div>

it's good news well you know where to start & you should have a backups  
of the oem firmware and art partitions & all other if need be  
you can start with the same dts files as others

things i think you will need are  
WiFi interface difference with the others  
switch input's  
led outputs

capture a log of the oem firmware booting these come in handy  
& after booting the oem firmware looking at the serial data try pressing it's buttons & see if it tells you there input numbers for wifi wps & reset you need to check these  
and at some point test the led in openwrt

have you ever built an openwrt image ?

---

<div class="post-metadata">

**Author:** ![Lucky1](https://forum.openwrt.org/letter_avatar/lucky1/32/6_449c533f586939b6e5f246632a46421f.png) [@Lucky1](https://forum.openwrt.org/u/Lucky1)\
**Post date:** [April 19, 2021, 12:14pm UTC](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335/20 "2021-04-19T12:14:31Z")

</div>

buttons & led from Schematic  
wps button H5,CTS3\_N, GPIO 6  
reset button G18,JTMS, GPIO 15

power white F16,JTCLK, GPIO 16  
power ogange H3,RXD3, GPIO 8  
internet white P14,I2C\_SD, GPIO 3  
internet orange P13,I2C\_SCLK, GPIO 4  
wifi 2.4G H2,TXD2, GPIO 11  
wifi 5G LB J3,RTS2\_N, GPIO 9  
wifi 5G HB J4,RTS3\_N, GPIO 5  
USB 3.0 G16,JTDI, GPIO 14  
USB 2.0 G17,JTDO, GPIO 13

[Next page](https://forum.openwrt.org/t/adding-openwrt-support-for-dir-3060/94335.md?page=2)
