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
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
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)