Add support for D-Link DIR-806A rev. B1

Hi everyone! This thread for discussions and a information exchange about D-Link DIR-806A rev. B1 router to add official support OpenWRT.

DIR-806A rev. B1

General specification:
SoC Type: MediaTek MT7620A (580MHz)
ROM: 8 MB SPI-NOR (MX25L6406E)
RAM: 64 MB DDR (W9751G6KB-25)
Switch: MediaTek MT7530
Ethernet: 5 ports - 5×100MbE (WAN, LAN1-4)
Wireless: 2.4 GHz (MediaTek RT5390): b/g/n
Buttons: 2 button (POWER, WPS/RESET)
Bootloader: U-Boot 1.1.3
Power: 12 VDC, 0.5 A

1 Like

PCB photos

1 Like

Serial settings: 57600 8N1

1 Like
OEM bootlog

U-Boot 1.1.3 (Dec 28 2016 - 15:43:10)

Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29
spi device id: c2 20 17 c2 20 (2017c220)
find flash: MX25L6405D
raspi_read: from:30000 len:1000
*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 5.0.0.0

ASIC 7620_MP (Port5<->Phy)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Dec 28 2016 Time:15:43:10

icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

The CPU freq = 580 MHZ

estimate memory size =64 Mbytes
TODO: DIR-816A1E: #18026, make initial indication!
DRU DIR-816A1E

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.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.
default: 3 0

3: System Boot system code via Flash.

Booting image at bc050000 ...

raspi_read: from:50000 len:40
Image Name: DIR_806A_MT7620A
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1267831 Bytes = 1.2 MB
Load Address: 80000000
Entry Point: 802cc890
raspi_read: from:50040 len:135877
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd

Transferring control to Linux (at address 802cc890) ...

Giving linux memsize in MB, 64

Starting kernel ...

LINUX started...

THIS IS ASIC
Linux version 2.6.36+ (builder@rd) (gcc version 4.1.2) #1 Tue Oct 24 13:49:40 MSK 2017

The CPU feqenuce set to 580 MHz

MIPS CPU sleep mode enabled.
PCIE: bypass PCIe DLL.
PCIE: Elastic buffer control: Addr:0x68 -> 0xB4
disable all power about PCIe
CPU revision is: 00019650 (MIPS 24Kc)
Software DMA cache coherency
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Zone PFN ranges:
Normal 0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00004000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: console=ttyS1,57600n8 root=/dev/mtdblock5 console=ttyS0
HZ = 100
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Primary instruction cache 64kB, VIPT, , 4-waylinesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Writing ErrCtl register=0002fc0d
Readback ErrCtl register=0002fc0d
Memory: 61096k/65536k available (2922k kernel code, 4440k reserved, 658k data, 172k init, 0k highmem)
NR_IRQS:128
console [ttyS1] enabled
Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
RALINK_GPIOMODE = 1a301d
RALINK_GPIOMODE = 18301d
PPLL_CFG1=0xe78000
MT7620 PPLL lock
PPLL_DRV =0x80080504
start PCIe register access
RALINK_RSTCTRL = 2400000
RALINK_CLKCFG1 = 75afffc0

*************** MT7620 PCIe RC mode *************
PCIE0 enabled
init_rt2880pci done
DRU: PCI-E init w/a
bio: create slab at 0
vgaarb: loaded
SCSI subsystem initialized
pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000)
pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
pci 0000:00:00.0: BAR 1: set to [mem 0x20200000-0x2020ffff] (PCI address [0x20200000-0x2020ffff]
pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff]
pci 0000:01:00.0: BAR 0: set to [mem 0x20000000-0x200fffff] (PCI address [0x20000000-0x200fffff]
pci 0000:01:00.1: BAR 0: assigned [mem 0x20100000-0x201fffff]
pci 0000:01:00.1: BAR 0: set to [mem 0x20100000-0x201fffff] (PCI address [0x20100000-0x201fffff]
pci 0000:00:00.0: PCI bridge to [bus 01-01]
pci 0000:00:00.0: bridge window [io disabled]
pci 0000:00:00.0: bridge window [mem 0x20000000-0x201fffff]
pci 0000:00:00.0: bridge window [mem pref disabled]
BAR0 at slot 0 = 0
bus=0x0, slot = 0x0
res[0]->start = 0
res[0]->end = 0
res[1]->start = 20200000
res[1]->end = 2020ffff
res[2]->start = 0
res[2]->end = 0
res[3]->start = 0
res[3]->end = 0
res[4]->start = 0
res[4]->end = 0
res[5]->start = 0
res[5]->end = 0
bus=0x1, slot = 0x0
res[0]->start = 20000000
res[0]->end = 200fffff
res[1]->start = 0
res[1]->end = 0
res[2]->start = 0
res[2]->end = 0
res[3]->start = 0
res[3]->end = 0
res[4]->start = 0
res[4]->end = 0
res[5]->start = 0
res[5]->end = 0
bus=0x1, slot = 0x0
res[0]->start = 20100000
res[0]->end = 201fffff
res[1]->start = 0
res[1]->end = 0
res[2]->start = 0
res[2]->end = 0
res[3]->start = 0
res[3]->end = 0
res[4]->start = 0
res[4]->end = 0
res[5]->start = 0
res[5]->end = 0
dru mark: unknown type 772 for dev lo
Switching to clocksource Ralink Systick timer
Registered /proc/sys/dru
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
multicast routing: unresolved cache size is 200, expires at 1.0 sec (HZ = 100)
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
fuse init (API version 7.15)
msgmni has been set to 119
io scheduler noop registered (default)
pcieport 0000:00:00.0: device [1814:0801] has invalid IRQ; check vendor BIOS
Ralink gpio driver initialized
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x10000500 (irq = 37) is a 16550A
serial8250: ttyS1 at MMIO 0x10000c00 (irq = 12) is a 16550A
loop: module loaded
deice id : c2 20 17 c2 20 (2017c220)
MX25L6405D(c2 2017c220) (8192 Kbytes)
mtd .name = raspi, .size = 0x00800000 (0M) .erasesize = 0x00000008 (0K) .numeraseregions = 65536
off at block 0x120000
squashfsb.s_magic 0x1f5d33c5
off at block 0x130000
squashfsb.s_magic 0xec6bc96c
off at block 0x140000
squashfsb.s_magic 0xf6080ee5
off at block 0x150000
squashfsb.s_magic 0x4814470c
off at block 0x160000
squashfsb.s_magic 0x5b11b775
off at block 0x170000
squashfsb.s_magic 0x28b85085
off at block 0x180000
squashfsb.s_magic 0xfecf2b1b
off at block 0x190000
squashfsb.s_magic 0x73717368
squashfs filesystem found at block 0x190000
Creating 7 MTD partitions on "raspi":
0x000000000000-0x000000800000 : "ALL"
0x000000000000-0x000000030000 : "Bootloader"
0x000000030000-0x000000040000 : "Config"
0x000000040000-0x000000050000 : "Factory"
0x000000050000-0x000000190000 : "Kernel"
0x000000190000-0x000001000000 : "RootFS"
mtd: partition "RootFS" extends beyond the end of device "raspi" -- size truncated to 0x670000
0x000000050000-0x000001000000 : "Linux"
mtd: partition "Linux" extends beyond the end of device "raspi" -- size truncated to 0x7b0000
SMACCR1 -- : 0x000010be
SMACCR0 -- : 0xf56c894f
Ralink APSoC Ethernet Driver Initilization. v3.1 512 rx/tx descriptors allocated, mtu = 1500!
NAPI enable, Tx Ring = 512, Rx Ring = 512
SMACCR1 -- : 0x000010be
SMACCR0 -- : 0xf56c894f
PROC INIT OK!
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
PPTP driver version 0.8.5
ROAM: Module initialized.
Ralink APSoC Hardware Watchdog Timer
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (954 buckets, 3816 max)
ctnetlink v0.93: registering with nfnetlink.
IPVS: Registered protocols ()
IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
IPVS: ipvs loaded.
GRE over IPv4 demultiplexor driver
gre: can't add protocol
ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Linux
arp_tables: (C) 2002 David S. Miller
TCP cubic registered
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
ip6_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 17
Bridge firewalling registered
Ebtables v2.0 registered
L2TP core driver, V2.0
PPPoL2TP kernel driver, V2.0
802.1Q VLAN Support v1.8 Ben Greear greearb@candelatech.com
All bugs added by David S. Miller davem@redhat.com
nlmon: nlmon_init entry
VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
Freeing unused kernel memory: 172k freed
D-link init started
updateboot :: checking bootloader...
updateboot :: bootloader not need to update
gpiom: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
gpiom: module starting ...
gpiom: using profile DIR_806A_MT7620A.
gpiom: button support enabled.
gpiom: led support enabled.
cp: can't stat '/etc/e2p.bin': No such file or directory
load section
read_and_validate_conf - config: 0, res: 0
Lenght of avalible memory for title 142 bytes
resident starting...
Event pipe size is 4096 bytes
Initializing device...
Jan 1 00:00:02 autoupdate[703]: Config reset

Init netfilter
nf_conntrack_rtsp v0.6.21 loading
nf_nat_rtsp v0.6.21 loading
Check SSID
Jan 1 00:00:02 dms_check_config_by_default[703]: this config is NO default
Jan 1 00:00:02 dms_check_config_by_default[703]: this config is NO default
Jan 1 00:00:02 dms_check_config_by_default[703]: this config is NO default
Do preinit ifaces
SeRaeth v3.1 (t NAPI
ma,SkbRecyclec )
28:3b:82:
phy_tx_ring = 0x030ca000, tx_ring = 0xa30ca000
6d:99:c
phy_rx_ring0 = 0x030cc000, rx_ring0 = 0xa30cc000
f on ifaceSMACCR1 -- : 0x0000283b
eSMACCR0 -- : 0x826d99cf
thCDMA_CSG_CFG = 81000000
2 GDMA1_FWD_CFG = 20710000

  • OK
    mode_dev = 0
    device_mode: router
    Jan 1 00:00:03 libshared:start_wifi[703]: begin

Jan 1 00:00:03 pre_start_wifi[703]: start, _5G is 0
---libshared | write_config_file: begin
Jan 1 00:00:03 sched_set_task_activity[703]: Cannot open pipe
BssidNum=1
set_wlmode, wlmode_json: 9
WirelessMode=9
---libshared | write_config_file: end
set_group_vlan: group #0
----- start_wifi, starting 5GHz, bridge_iface is br0!
Jan 1 00:00:03 pre_start_wifi[717]: start, _5G is 1
---libshared | write_config_file: begin
Jan 1 00:00:03 sched_set_task_activity[717]: Cannot open pipe
BssidNum=1
set_wlmode, wlmode_json: 24
WirelessMode=24
---libshared | write_config_file: end

=== pAd = c0a82000, size = 1768392 ===

<-- RTMPAllocTxRxRingMemory, Status=0
<-- RTMPAllocAdapterBlock, Status=0
device_id =0x7650
==>MT76x0_WLAN_ChipOnOff(): OnOff:1, pAd->WlanFunCtrl:0x0, Reg-WlanFunCtrl=0xff000002
MACVersion = 0x76502000
Jan 1 00:00:07 pre_start_wifi[703]: end, _5G is 0
Jan 1 00:00:07 wifi_ifaces_up[703]: start, _5G is 0
Jan 1 00:00:08 pre_start_wifi[71ROAM: global init adapter c0713000
7]ROAM: init adapter c072465c
: eROAM UP
nd, _5G is 1
Jan 1 00:00:08 wifi_ifaces_up[717]: start, _5G is 1
load fw spent 10ms
RX DESC a254e000 size = 2048
RX1 DESC a254f000 size = 2048
cfg_mode=14
cfg_mode=14
wmode_band_equal(): Band Not Equal!

  1. Phy Mode = 49
  2. Phy Mode = 49
    drivers/net/wireless/MT7610_ap/./chips/mt76x0.c:2381 assert (pAd->TxPower[choffset].Channel == 149)failed
    drivers/net/wireless/MT7610_ap/./chips/mt76x0.c:2398 assert (pAd->TxPower[choffset].Channel == 42)failed
    ext_pa_current_setting = 1
  3. Phy Mode = 49
    AntCfgInit: primary/secondary ant 0/1
    ChipStructAssign(): RALINK6590 hook !
    bAutoTxAgcG = 0
    MCS Set = ff 00 00 00 01
    MT76x0_ChipBBPAdjust():rf_bw=2, ext_ch=1, PrimCh=36, HT-CentCh=38, VHT-CentCh=42
    APStartUp(): AP Set CentralFreq at 42(Prim=36, HT-CentCh=38, VHT-CentCh=42, BBP_BW=2)
    Main bssid = 28:3b:82:6d:99:d2
    <==== rt28xx_init, Status=0
    MT76x0_Calibration - Channel = 42, bPowerOn = 1, bSaveCal = 1
    FullCalibration(): docal = [0000] valid bit[0]
    FullCalibration - Channel = 42, param = 0x301, bSave = 1, CalibrationMode = 255
    FullCalibration(): docal = [0000] valid bit[0]
    FullCalibration - Channel = 136, param = 0x401, bSave = 1, CalibrationMode = 255
    FullCalibration(): docal = [0000] valid bit[0]
    FullCalibration - Channel = 155, param = 0x501, bSave = 1, CalibrationMode = 255
    FullCalibration(): docal = [0000] valid bit[0]
    FullCalibration - Channel = 42, param = 0x701, bSave = 0, CalibrationMode = 255
    0x1300 = 00064300
    RTMPDrvOpen(1):Check if PDMA is idle!
    RTMPDrvOpen(2):Check if PDMA is idle!
    ROAM: global init adapter c0a82000
    ROAM: init adapter c0a8be3c
    ROAM UP
    [ INFO ] [00:00:09.948]: start delayed autochannel, _5G is 0
    device ra0 entered promiscuous mode
    Jan 1 00:00:10 wifi_ifaces_up[703]: bridge_iface is br0, ifname is ra0

Jan 1 00:00:10 wifi_ifaces_up[703]: end, _5G is 0
Jan 1 00:00:10 post_start_wifi[703]: start, _5G is 0
Jan 1 00:00:10 post_start_wifi[703]: wlan_prefix is ra, ssid_num is 1, apcli_ifname is apcli0

Jan 1 00:00:10 start_wps[703]: Don`t wps daemon start
Jan 1 00:00:10 post_stdevice rai0 entered promiscuous mode
art_wifi[703]: end, _5G is 0
Jan 1 00:00:10 start_wifi[703]: waiting for wifi 5GHz (pid = 717) ...

[ INFO ] [00:00:10.292]: start delayed autochannel, _5G is 1
Jan 1 00:00:10 wifi_ifaces_up[717]: bridge_iface is br0, ifname is rai0

Jan 1 00:00:10 wifi_ifaces_up[717]: end, _5G is 1
Jan 1 00:00:10 post_start_wifi[703]: start, _5G is 1
Jan 1 00:00:10 post_start_wifi[703]: wlan_prefix is rai, ssid_num is 1, apcli_ifname is apclii0

Jan 1 00:00:10 start_wps[703]: Don`t wps daemon start
Jan 1 00:00:10 post_start_wifi[703]: end, _5G is 1
cannot get iface wan1
enum_acl_netdev: got 1 ifaces (1 LAN, 0 WAN)
enum_acl_netdev: need 3 patterns instead of 3
Jan 1 00:00:10 libshared:start_wifi[703]: end

MT76x0_ChipBBPAdjust():rf_bw=2, ext_ch=1, PrimCh=52, HT-CentCh=54, VHT-CentCh=58
APStartUp(): AP Set CentralFreq at 58(Prim=52, HT-CentCh=54, VHT-CentCh=58, BBP_BW=2)
MT76x0_Calibration - Channel = 58, bPowerOn = 0, bSaveCal = 0
FullCalibration(): docal = [0000] valid bit[0]
FullCalibration - Channel = 58, param = 0x701, bSave = 0, CalibrationMode = 255
Jan 1br0: port 2(rai0) entering learning state
0br0: port 2(rai0) entering learning state
0:br0: port 1(ra0) entering learning state
00br0: port 1(ra0) entering learning state
:12 get_target_iface_mac[703]: get mac 28:3b:82:6d:99:cf from config on iface br0
iface: ra0
iface: rai0
Set mac 28:3b:82:6d:99:cf on iface br0 - OK
NO USED
Jan 1 00:00:12 pre_start_wifi[703]: start, _5G is 0
---libshared | write_config_file: begin
Jan 1 00:00:12 sched_set_task_activity[703]: Cannot open pipe
BssidNum=1
set_wlmode, wlmode_json: 9
WirelessMode=9
---libshared | write_config_file: end
Jan 1 00:00:14 pre_start_wifi[703]: end, _5G is 0
Jan 1 00:00:14 pre_start_wifi[703]: start, _5G is 1
---libshared | write_config_file: begin
Jan 1 00:00:14 sched_set_task_activity[703]: Cannot open pipe
BssidNum=1
set_wlmode, wlmode_json: 24
WirelessMode=24
---libshared | write_config_file: end
Jan 1 00:00:16 pre_start_wifi[703]: end, _5G is 1
deletbr0: port 2(rai0) entering learning state
inbr0: port 1(ra0) entering learning state
g ifadevice rai0 left promiscuous mode
cebr0: port 2(rai0) entering disabled state
s.device ra0 left promiscuous mode
..br0: port 1(ra0) entering disabled state

-bridge - br0
deleting iface wds0
Error ioctl
deleting iface wds1
Error ioctl
deleting iface wds2
Error ioctl
deleting iface wds3
Error ioctl
deleting iface apcli0
Error ioctl
deleting iface apclii0
Error ioctldevice rai0 entered promiscuous mode

ddevice ra0 entered promiscuous mode
eletidevice eth2.1 entered promiscuous mode
ngdevice eth2 entered promiscuous mode
ifabr0: port 3(eth2.1) entering learning state
cebr0: port 3(eth2.1) entering learning state
abr0: port 2(ra0) entering learning state
pcbr0: port 2(ra0) entering learning state
libr0: port 1(rai0) entering learning state
i1br0: port 1(rai0) entering learning state

Error ioctl
br0: port 3(eth2.1) entering learning state
REbr0: port 2(ra0) entering learning state
G_br0: port 1(rai0) entering learning state
ESW_WTdevice eth2 left promiscuous mode
_MAC_Adevice eth2 entered promiscuous mode
TC is br0: port 3(eth2.1) entering learning state
0xbr0: port 3(eth2.1) entering learning state
7fbr0: port 2(ra0) entering learning state
f0br0: port 2(ra0) entering learning state
00br0: port 1(rai0) entering learning state
br0: port 1(rai0) entering learning state

set_group_vlan: start
set_group_vlan: group #0
set_group_vlan: group dest lan
brname: br0; iface_list: rai0 ra0 eth2.1
Jan 1 00:00:17 get_target_iface_mac[703]: get mac 28:3b:82:6d:99:cf from coenum_acl_netdev: got 2 ifaces (1 LAN, 1 WAN)
nfienum_acl_netdev: need 4 patterns instead of 6
g on iface br0
iface: rai0
iface: ra0
iface: eth2.1
Jan 1 00:00:17 vlans_ifaces_grouping[703]: set br hwaddrr 28:3b:82:6d:99:cf
iface: rai0
iface: ra0
iface: eth2.1
Set mac 28:3b:82:6d:99:cf on iface eth2.1 - OK
Set mac 28:3b:82:6d:99:cf on iface br0 - OK
set_group_vlan: group #1
set_group_vlan: group dest wan
Jan 1 00:00:17 get_target_wan_mac[703]: get mac 28:3b:82:6d:99:ce from config on iface wan1
Set mac 28:3b:82:6d:99:ce on iface eth2.2 - OK
Jan 1 00:00:17 if_rename[703]: Setting : Interface eth2.2' renamed to wan1'.

Jan 1 00:00:17 post_start_wifi[703]: start, _5G is 0
Jan 1 00:00:17 post_start_wifi[703]: wlan_prefix is ra, ssid_num is 1, apcli_ifname is apcli0

Jan 1 00:00:17 start_wps[703]: Don`t wps daemon start
Jan 1 00:00:17 post_start_wifi[703]: end, _5G is 0
Jan 1 00:00:17 post_start_wifi[703]: start, _5G is 1
Jan 1 00:00:17 post_start_wifi[703]: wlan_prefix is rai, ssid_num is 1, apcli_ifname is apclii0

Jan 1 00:00:17 start_wps[703]: Don`t wps daemon start
Jan 1 00:00:17 post_start_wifi[703]: end, 5G is 1
Do clear ifaces
Jan 1 00:00:17 init_lan[703]: start
Jan 1 00:00:17 init_lan[703]: no grouping style
Jan 1 00:00:17 init_lan[703]: iface br0
init_lan: iface = br0
Jan 1 00:00:17 config_bridge[703]: iface br0 ip 192.168.0.1 255.255.255.0
init ipfilter
d-link channel[1+2+3+4+5] = 3250
d-link channel[2+3+4+5+6] = 3520
d-link channel[3+4+5+6+7] = 3650
d-link channel[4+5+6+7+8] = 3670
d-link channel[5+6+7+8+9] = 3590
d-link channel[6+7+8+9+10] = 3430
d-link channel[7+8+9+10+11] = 3210
d-link channel[8+9+10+11+12] = 2870
d-link channel[9+10+11+12+13] = 2460
d-link select channel = 13 + 9
init vserver
start urlfilter
LocDNS started: NetBIOS - ok, LLMNR - ok
init wans
Intialize wan.....
Set mac 28:3b:82:6d:99:ce on iface wan1 - OK
Set mtu 1500 on iface wan1 - OK
enum_acl_netdev: got 2 ifaces (1 LAN, 1 WAN)
enum_acl_netdev: need 4 patterns instead of 6
udhcp client (v0.9.8) started (iface: wan1, connect: 3)
init macfilter
start services
start tr069...
LocDNS started: NetBIOS - ok, LLMNR - ok
link watcher started
Out init_device
init_device: exited,monitor task is initialized pid= 976
status=0
Done.
Welcome to
_______ ___ __ ____ _ _ ___
| ___ \ | | ||| \ | || | / /
| | | || ___ | |
__ | | || |/ /
| |
| || || | || || |\ ||
|
/ |||||| _||_|___\

                 = Building Networks for People =

D-link init done
MT76x0_ChipBBPAdjust():rf_bw=2, ext_ch=1, PrimCh=52, HT-CentCh=54, VHT-CentCh=58
APStartUp(): AP Set CentralFreq at 58(Prim=52, HT-CentCh=54, VHT-CentCh=58, BBP_BW=2)
MT76x0_Calibration - Channel = 58, bPowerOn = 0, bSaveCal = 0
FullCalibration(): docal = [0000] valid bit[0]
FullCalibration - Channel = 58, param = 0x701, bSave = 0, CalibrationMode = 255
br0: port 3(eth2.1) entering forwarding state
br0: port 2(ra0) entering forwarding state
br0: port 1(rai0) entering forwarding state

BusyBox v1.19.2 (2017-10-24 13:57:01 MSK) built-in shell (ash)
Enter 'help' for a list of built-in commands.

OpenWRT bootlog

U-Boot 1.1.3 (Dec 28 2016 - 15:43:10)

Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.


Software System Reset Occurred


spi_wait_nsec: 29
spi device id: c2 20 17 c2 20 (2017c220)
find flash: MX25L6405D
raspi_read: from:30000 len:1000
*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 5.0.0.0

ASIC 7620_MP (Port5<->Phy)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Dec 28 2016 Time:15:43:10

icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

The CPU freq = 580 MHZ

estimate memory size =64 Mbytes
TODO: DIR-816A1E: #18026, make initial indication!
DRU DIR-816A1E

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.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.
default: 3 0

3: System Boot system code via Flash.

Booting image at bc050000 ...

raspi_read: from:50000 len:40
Image Name: MIPS OpenWrt Linux-5.15.112
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 2281003 Bytes = 2.2 MB
Load Address: 80000000
Entry Point: 80000000
raspi_read: from:50040 len:22ce2b
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd

Transferring control to Linux (at address 80000000) ...

Giving linux memsize in MB, 64

Starting kernel ...

[ 0.000000] Linux version 5.15.112 (user@debian) (mipsel-openwrt-linux-musl-g cc (OpenWrt GCC 12.3.0 r23079+4-5636ffc22d) 12.3.0, GNU ld (GNU Binutils) 2.40.0 ) #0 Wed May 31 11:04:47 2023
[ 0.000000] Board has DDR2
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is D-Link DIR-806A (rev. B1)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt es
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs 2
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, lin ear)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, line ar)
[ 0.000000] Writing ErrCtl register=00027f40
[ 0.000000] Readback ErrCtl register=00027f40
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 56080K/65536K available (5516K kernel code, 601K rwdata, 1184K rodata, 1200K init, 215K bss, 9456K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 256
[ 0.000000] CPU Clock: 580MHz
[ 0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_n s: 583261500 ns
[ 0.000000] systick: enable autosleep mode
[ 0.000000] systick: running - mult: 214748, shift: 32
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_i dle_ns: 6590553264 ns
[ 0.000002] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 74051 15902ns
[ 0.015563] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.087806] pid_max: default: 32768 minimum: 301
[ 0.098157] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linea r)
[ 0.112588] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.138067] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma x_idle_ns: 19112604462750000 ns
[ 0.157542] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.171293] pinctrl core: initialized pinctrl subsystem
[ 0.183159] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.471871] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.482942] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.495788] rt2880_gpio 10000638.gpio: registering 16 gpios
[ 0.506836] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[ 0.519447] rt2880_gpio 10000688.gpio: registering 1 gpios
[ 0.530298] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[ 0.544108] PCI host bridge to bus 0000:00
[ 0.552119] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[ 0.565845] pci_bus 0000:00: root bus resource [io 0x10160000-0x1016ffff]
[ 0.579462] pci_bus 0000:00: No busn resource found for root bus, will use [b us 00-ff]
[ 0.595267] pci 0000:00:00.0: [1814:0801] type 01 class 0x060400
[ 0.607170] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 0.619621] pci 0000:00:00.0: reg 0x14: [mem 0x20200000-0x2020ffff]
[ 0.632163] pci 0000:00:00.0: supports D1
[ 0.640032] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.653876] pci 0000:01:00.0: [14c3:7650] type 00 class 0x028000
[ 0.665762] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 0.678315] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 0.690685] pci 0000:01:00.1: [14c3:8650] type 00 class 0x0d1100
[ 0.702561] pci 0000:01:00.1: reg 0x10: [mem 0x00000000-0x000fffff]
[ 0.715121] pci 0000:01:00.1: supports D1
[ 0.722932] pci 0000:01:00.1: PME# supported from D0 D1 D3hot D3cold
[ 0.737643] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 0.750714] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[ 0.763862] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 0.776984] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 0.790830] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[ 0.804330] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[ 0.817841] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff]
[ 0.831337] pci 0000:01:00.1: BAR 0: assigned [mem 0x20100000-0x201fffff]
[ 0.844837] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.854688] pci 0000:00:00.0: bridge window [mem 0x20000000-0x201fffff]
[ 0.868828] clocksource: Switched to clocksource systick
[ 0.881052] NET: Registered PF_INET protocol family
[ 0.890989] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear )
[ 0.906200] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.922790] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.938119] TCP established hash table entries: 1024 (order: 0, 4096 bytes, l inear)
[ 0.953357] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.967379] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.980201] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.993139] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 1.007415] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 1.018708] PCI: CLS 80 bytes, default 32
[ 1.026876] rt-timer 10000100.timer: maximum frequency is 1220Hz
[ 1.044031] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[ 1.064014] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.075547] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT Y) (c) 2001-2006 Red Hat, Inc.
[ 1.099058] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 1.112902] printk: console [ttyS0] disabled
[ 1.121436] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 1.141086] printk: console [ttyS0] enabled
[ 1.141086] printk: console [ttyS0] enabled
[ 1.157657] printk: bootconsole [early0] disabled
[ 1.157657] printk: bootconsole [early0] disabled
[ 1.191482] spi spi0.0: force spi mode3
[ 1.200546] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[ 1.210600] 5 fixed-partitions partitions found on MTD device spi0.0
[ 1.223330] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitio ns
[ 1.237968] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitio ns
[ 1.253425] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitio ns
[ 1.268101] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitio ns
[ 1.282932] Creating 5 MTD partitions on "spi0.0":
[ 1.292527] 0x000000000000-0x000000800000 : "ALL"
[ 1.306308] 0x000000000000-0x000000030000 : "u-boot"
[ 1.317602] 0x000000030000-0x000000040000 : "u-boot-env"
[ 1.331662] 0x000000040000-0x000000050000 : "Factory"
[ 1.343356] 0x000000050000-0x000000800000 : "firmware"
[ 1.357064] 2 uimage-fw partitions found on MTD device firmware
[ 1.368977] Creating 2 MTD partitions on "firmware":
[ 1.378887] 0x000000000000-0x00000022ce6b : "kernel"
[ 1.388777] mtd: partition "kernel" doesn't end on an erase/write block -- fo rce read-only
[ 1.407727] 0x00000022ce6b-0x0000007b0000 : "rootfs"
[ 1.417719] mtd: partition "rootfs" doesn't start on an erase/write block bou ndary -- force read-only
[ 1.437459] mtd: setting mtd6 (rootfs) as root device
[ 1.448866] 1 squashfs-split partitions found on MTD device rootfs
[ 1.461252] 0x000000590000-0x0000007b0000 : "rootfs_data"
[ 1.500328] gsw: setting port4 to ephy mode
[ 1.514504] mtk_soc_eth 10100000.ethernet: mdio-bus disabled
[ 1.526121] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[ 1.538892] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0 100000, irq 5
[ 1.556270] rt2880_wdt 10000120.watchdog: Initialized
[ 1.568409] NET: Registered PF_INET6 protocol family
[ 1.586173] Segment Routing with IPv6
[ 1.593671] In-situ OAM (IOAM) with IPv6
[ 1.601723] NET: Registered PF_PACKET protocol family
[ 1.611918] 8021q: 802.1Q VLAN Support v1.8
[ 1.634441] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[ 1.655212] Freeing unused kernel image (initmem) memory: 1200K
[ 1.667044] This architecture does not have kernel memory protection.
[ 1.679905] Run /sbin/init as init process
[ 2.576264] init: Console is alive
[ 2.583861] init: - watchdog -
[ 3.935413] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 4.031703] kmodloader: done loading kernel modules from /etc/modules-boot.d/ *
[ 4.050446] init: - preinit -
[ 4.220903] mtk_soc_eth 10100000.ethernet eth0: port 1 link up (100Mbps/Full duplex)
[ 5.597336] random: jshn: uninitialized urandom read (4 bytes read)
[ 5.799103] random: jshn: uninitialized urandom read (4 bytes read)
[ 5.997496] random: jshn: uninitialized urandom read (4 bytes read)
[ 6.859540] 8021q: adding VLAN 0 to HW filter on device eth0
[ 6.886260] random: procd: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 7.420293] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 7.439606] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 7.567425] procd: - early -
[ 7.573592] procd: - watchdog -
[ 7.907102] procd: - watchdog -
[ 7.914109] procd: - ubus -
[ 8.052384] random: ubusd: uninitialized urandom read (4 bytes read)
[ 8.068674] random: ubusd: uninitialized urandom read (4 bytes read)
[ 8.090379] random: ubusd: uninitialized urandom read (4 bytes read)
[ 8.109782] procd: - init -
Please press Enter to activate this console.
[ 9.306806] random: jshn: uninitialized urandom read (4 bytes read)
[ 9.384444] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.427219] random: ubus: uninitialized urandom read (4 bytes read)
[ 9.530052] kmodloader: loading kernel modules from /etc/modules.d/*
[ 10.149202] urngd: jent-rng init failed, err: 2
[ 10.178453] Loading modules backported from Linux version v6.1.24-0-g0102425a c76b
[ 10.193473] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36
[ 10.661038] PPP generic driver version 2.4.2
[ 10.674952] NET: Registered PF_PPPOX protocol family
[ 10.704570] mt76x0e 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[ 10.717337] mt76x0e 0000:01:00.0: ASIC revision: 76100002
[ 10.730637] mt76x0e 0000:01:00.0: Firmware Version: 0.1.00
[ 10.771984] mt76x0e 0000:01:00.0: EEPROM ver:01 fae:00
[ 10.903627] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "Factory "
[ 10.918134] ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 d etected
[ 10.951252] ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 7620 detected
[ 10.992170] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 27.391103] random: crng init done
[ 27.397907] random: 110 urandom warning(s) missed due to ratelimiting
[ 46.853854] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 46.891177] jffs2_build_filesystem(): unlocking the mtd device...
[ 46.891281] done.
[ 46.907460] jffs2_build_filesystem(): erasing all blocks after the end marker ...
[ 49.040919] 8021q: adding VLAN 0 to HW filter on device eth0
[ 49.151917] br-lan: port 1(eth0.1) entered blocking state
[ 49.162805] br-lan: port 1(eth0.1) entered disabled state
[ 49.173995] device eth0.1 entered promiscuous mode
[ 49.183770] device eth0 entered promiscuous mode
[ 49.340136] br-lan: port 1(eth0.1) entered blocking state
[ 49.350998] br-lan: port 1(eth0.1) entered forwarding state
[ 50.041586] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 63.459447] done.
[ 63.463349] jffs2: notice: (1885) jffs2_build_xattr_subsystem: complete build ing xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 63.721624] overlayfs: upper fs does not support tmpfile.

BusyBox v1.36.1 (2023-05-31 11:04:47 UTC) built-in shell (ash)


| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -| || | | || || |
|
_____|| |
||||___||| |____|
|
| W I R E L E S S F R E E D O M

OpenWrt SNAPSHOT, r23079+4-5636ffc22d

=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.

root@OpenWrt:/#

@alexey, txpower on 2.4G network doesn't seem to do much.
The difference between 0dB and 20dB setting is only about 5dB on my receiving devices. It's always very powerful even on the lowest settings.
Could it be this router has external amplifier which should be handled separately?