D-Link DAP-1530 no 5Ghz radio

Hello,

I finally made the move & installed OpenWrt! I'm so excited & really happy so far! I do have a WiFi extender that is D-Link DAP-1530; which is not supported by default, however after some research I found out that it's exactly the same hardware except for the 5G radio. I'm not able to get it to work. Cudy W1000 shares the same two WiFi chips (MT7628A & MT7612E) I have tried to install the kmod-MT76x2 but that doesn't seem to get it to work. Also, I would like to add this device to the supported devices so if anyone is trying to install OpenWrt wouldn't have to go through all the time & effort I had to spend.
Thanks & Regards.
Molafa

Share logread and dmesg output please so we can have a look at any actual errors.

Exactly the same hardware as ... ?

The clean way to do this is compile a dedicated image. Just sharing radios doesn't make a device equal to another. There's plenty of devices with the same radios but you cannot just flash any image onto them.

Which image did you flash? You might very well have overwritten some calibration data for your 5 GHz radio.

Here's dmesg:

root@OpenWrt:~# dmesg 
[    0.000000] Linux version 5.10.120 (builder@buildhost) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r19426-2b1941e47d) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Fri Jun 10 07:20:21 2022
[    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 MT7628AN ver:1 eco:2
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is D-Link DAP-1325 A1
[    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 bytes
[    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] On node 0 totalpages: 16384
[    0.000000]   Normal zone: 144 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16240
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Writing ErrCtl register=000415a0
[    0.000000] Readback ErrCtl register=000415a0
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 56416K/65536K available (5663K kernel code, 619K rwdata, 692K rodata, 1208K init, 211K bss, 9120K 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] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] timer_probe: no matching timers found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000011] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015487] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.087678] pid_max: default: 32768 minimum: 301
[    0.097000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.111342] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.129265] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.148810] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.168189] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.181701] pinctrl core: initialized pinctrl subsystem
[    0.197204] NET: Registered protocol family 16
[    0.206755] thermal_sys: Registered thermal governor 'step_wise'
[    0.271500] clocksource: Switched to clocksource MIPS
[    0.294715] NET: Registered protocol family 2
[    0.303613] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.318807] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.335316] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.350376] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.364298] TCP: Hash tables configured (established 1024 bind 1024)
[    0.377025] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.389884] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.403955] NET: Registered protocol family 1
[    0.412513] PCI: CLS 0 bytes, default 32
[    0.428322] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    0.446850] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.458309] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.479916] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.497176] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.508444] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.519697] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.530969] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.546444] printk: console [ttyS0] disabled
[    0.554926] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.572739] printk: console [ttyS0] enabled
[    0.589228] printk: bootconsole [early0] disabled
[    0.609364] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.640254] spi-nor spi0.0: s25fl064k (8192 Kbytes)
[    0.650053] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.662668] Creating 4 MTD partitions on "spi0.0":
[    0.672170] 0x000000000000-0x000000030000 : "u-boot"
[    0.684595] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.696503] 0x000000040000-0x000000050000 : "factory"
[    0.709778] 0x000000050000-0x000000800000 : "firmware"
[    0.721390] 2 uimage-fw partitions found on MTD device firmware
[    0.733208] Creating 2 MTD partitions on "firmware":
[    0.743053] 0x000000000000-0x000000217a1a : "kernel"
[    0.752887] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    0.772464] 0x000000217a1a-0x0000007b0000 : "rootfs"
[    0.782393] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[    0.803201] mtd: device 5 (rootfs) set to be root filesystem
[    0.814586] 1 squashfs-split partitions found on MTD device rootfs
[    0.826873] 0x000000590000-0x0000007b0000 : "rootfs_data"
[    0.889663] rt3050-esw 10110000.esw: mediatek esw at 0xb0110000, irq 25 initialized
[    0.905792] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.924098] NET: Registered protocol family 10
[    0.938541] Segment Routing with IPv6
[    0.946045] NET: Registered protocol family 17
[    0.954981] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.980663] 8021q: 802.1Q VLAN Support v1.8
[    0.996443] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    1.017318] Freeing unused kernel memory: 1208K
[    1.026320] This architecture does not have kernel memory protection.
[    1.039090] Run /sbin/init as init process
[    1.047199]   with arguments:
[    1.047206]     /sbin/init
[    1.047212]   with environment:
[    1.047218]     HOME=/
[    1.047223]     TERM=linux
[    1.782531] init: Console is alive
[    1.789879] init: - watchdog -
[    2.848196] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.973890] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.998923] init: - preinit -
[    4.368775] random: jshn: uninitialized urandom read (4 bytes read)
[    4.496972] random: jshn: uninitialized urandom read (4 bytes read)
[    4.615437] random: jshn: uninitialized urandom read (4 bytes read)
[    5.435790] urandom_read_iter: 2 callbacks suppressed
[    5.435800] random: procd: uninitialized urandom read (4 bytes read)
[    9.769729] jffs2: notice: (375) jffs2_build_xattr_subsystem: complete building xattr subsystem, 63 of xdatum (56 unchecked, 7 orphan) and 83 of xref (7 dead, 0 orphan) found.
[    9.804480] mount_root: switching to jffs2 overlay
[    9.832755] overlayfs: upper fs does not support tmpfile.
[    9.853250] urandom-seed: Seeding with /etc/urandom.seed
[   10.007865] procd: - early -
[   10.017926] procd: - watchdog -
[   10.784593] procd: - watchdog -
[   10.792725] procd: - ubus -
[   10.901260] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.919015] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.937877] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.959642] procd: - init -
[   12.240228] urandom_read_iter: 19 callbacks suppressed
[   12.240239] random: jshn: uninitialized urandom read (4 bytes read)
[   12.362119] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.402237] random: ubus: uninitialized urandom read (4 bytes read)
[   12.463580] kmodloader: loading kernel modules from /etc/modules.d/*
[   13.064163] Loading modules backported from Linux version v5.15.33-0-g06f50ca83ace
[   13.079261] Backport generated by backports.git v5.15.33-1-0-g183c4ab2
[   13.150497] urngd: v1.0.2 started.
[   13.275616] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[   13.495165] random: crng init done
[   13.501972] random: 1 urandom warning(s) missed due to ratelimiting
[   14.334221] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[   14.346026] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[   14.371517] mt76_wmac 10300000.wmac: firmware init done
[   14.546494] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   14.844834] PPP generic driver version 2.4.2
[   14.872846] NET: Registered protocol family 24
[   14.917679] kmodloader: done loading kernel modules from /etc/modules.d/*
[   34.796759] br-lan: port 1(eth0) entered blocking state
[   34.807216] br-lan: port 1(eth0) entered disabled state
[   34.817996] device eth0 entered promiscuous mode
[   39.783512] br-lan: port 2(wlan0-1) entered blocking state
[   39.794469] br-lan: port 2(wlan0-1) entered disabled state
[   39.805777] device wlan0-1 entered promiscuous mode
[   44.071792] wlan0: authenticate with 10:78:5b:d0:d6:e2
[   44.086109] wlan0: send auth to 10:78:5b:d0:d6:e2 (try 1/3)
[   44.098895] wlan0: authenticated
[   44.111586] wlan0: associate with 10:78:5b:d0:d6:e2 (try 1/3)
[   44.128879] wlan0: RX AssocResp from 10:78:5b:d0:d6:e2 (capab=0x1411 status=0 aid=1)
[   44.144544] wlan0: associated
[   44.178357] wlan0: Limiting TX power to 30 (30 - 0) dBm as advertised by 10:78:5b:d0:d6:e2
[   44.193514] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   44.444162] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
[   44.457426] br-lan: port 2(wlan0-1) entered blocking state
[   44.468357] br-lan: port 2(wlan0-1) entered forwarding state
[   44.583512] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 1393.600007] device wlan0-1 left promiscuous mode
[ 1393.609381] br-lan: port 2(wlan0-1) entered disabled state
[ 1394.073788] wlan0: deauthenticating from 10:78:5b:d0:d6:e2 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 1397.821898] br-lan: port 2(wlan0-1) entered blocking state
[ 1397.832867] br-lan: port 2(wlan0-1) entered disabled state
[ 1397.844173] device wlan0-1 entered promiscuous mode
[ 1400.009719] wlan0: authenticate with 10:78:5b:d0:d6:e2
[ 1400.024056] wlan0: send auth to 10:78:5b:d0:d6:e2 (try 1/3)
[ 1400.037348] wlan0: authenticated
[ 1400.047552] wlan0: associate with 10:78:5b:d0:d6:e2 (try 1/3)
[ 1400.063280] wlan0: RX AssocResp from 10:78:5b:d0:d6:e2 (capab=0x1411 status=0 aid=1)
[ 1400.078937] wlan0: associated
[ 1400.108572] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 1400.142424] wlan0: Limiting TX power to 30 (30 - 0) dBm as advertised by 10:78:5b:d0:d6:e2
[ 1400.230997] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
[ 1400.244377] br-lan: port 2(wlan0-1) entered blocking state
[ 1400.255313] br-lan: port 2(wlan0-1) entered forwarding state

& the logread (omitted some lines from here)

Fri Jun 24 00:49:32 2022 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Fri Jun 24 00:49:32 2022 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Fri Jun 24 00:49:33 2022 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150
Fri Jun 24 00:49:33 2022 daemon.info dnsmasq[1]: DNS service limited to local subnets
Fri Jun 24 00:49:33 2022 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Fri Jun 24 00:49:33 2022 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus
Fri Jun 24 00:49:33 2022 daemon.info dnsmasq[1]: using only locally-known addresses for test
Fri Jun 24 00:49:33 2022 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Fri Jun 24 00:49:33 2022 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Fri Jun 24 00:49:33 2022 daemon.info dnsmasq[1]: using only locally-known addresses for local
Fri Jun 24 00:49:33 2022 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Fri Jun 24 00:49:33 2022 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Fri Jun 24 00:49:33 2022 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Fri Jun 24 00:49:33 2022 daemon.warn dnsmasq[1]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Fri Jun 24 00:49:33 2022 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses
Fri Jun 24 00:49:33 2022 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Fri Jun 24 00:49:33 2022 authpriv.info dropbear[1010]: Not backgrounding
Fri Jun 24 00:49:37 2022 daemon.notice wpa_supplicant[1118]: Successfully initialized wpa_supplicant
Fri Jun 24 00:49:38 2022 user.notice : Added device handler type: bonding
Fri Jun 24 00:49:38 2022 user.notice : Added device handler type: 8021ad
Fri Jun 24 00:49:38 2022 user.notice : Added device handler type: 8021q
Fri Jun 24 00:49:38 2022 user.notice : Added device handler type: macvlan
Fri Jun 24 00:49:38 2022 user.notice : Added device handler type: veth
Fri Jun 24 00:49:38 2022 user.notice : Added device handler type: bridge
Fri Jun 24 00:49:38 2022 user.notice : Added device handler type: Network device
Fri Jun 24 00:49:38 2022 user.notice : Added device handler type: tunnel
Fri Jun 24 00:49:41 2022 user.notice ucitrack: Setting up /etc/config/network reload dependency on /etc/config/dhcp
Fri Jun 24 00:49:42 2022 user.notice ucitrack: Setting up /etc/config/wireless reload dependency on /etc/config/network
Fri Jun 24 00:49:42 2022 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/luci-splash
Fri Jun 24 00:49:42 2022 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/qos
Fri Jun 24 00:49:42 2022 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/miniupnpd
Fri Jun 24 00:49:43 2022 user.notice ucitrack: Setting up /etc/config/dhcp reload dependency on /etc/config/odhcpd
Fri Jun 24 00:49:43 2022 user.notice ucitrack: Setting up non-init /etc/config/fstab reload handler: /sbin/block mount
Fri Jun 24 00:49:44 2022 user.notice ucitrack: Setting up /etc/config/system reload trigger for non-procd /etc/init.d/led
Fri Jun 24 00:49:44 2022 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/luci_statistics
Fri Jun 24 00:49:44 2022 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/dhcp
Fri Jun 24 00:49:46 2022 daemon.notice procd: /etc/rc.d/S96led: setting up led red:wifi-verylow
Fri Jun 24 00:49:46 2022 daemon.notice procd: /etc/rc.d/S96led: setting up led green:wifi-low
Fri Jun 24 00:49:46 2022 daemon.notice procd: /etc/rc.d/S96led: setting up led green:wifi-mid
Fri Jun 24 00:49:46 2022 daemon.notice procd: /etc/rc.d/S96led: setting up led green:wifi-high
Fri Jun 24 00:49:46 2022 daemon.notice procd: /etc/rc.d/S96led: setting up led green:status
Fri Jun 24 00:49:46 2022 daemon.notice procd: /etc/rc.d/S96led: setting up led red:status
Fri Jun 24 00:49:47 2022 kern.info kernel: [   34.796759] br-lan: port 1(eth0) entered blocking state
Fri Jun 24 00:49:47 2022 kern.info kernel: [   34.807216] br-lan: port 1(eth0) entered disabled state
Fri Jun 24 00:49:47 2022 kern.info kernel: [   34.817996] device eth0 entered promiscuous mode
Fri Jun 24 00:49:47 2022 daemon.notice netifd: Interface 'lan' is enabled
Fri Jun 24 00:49:47 2022 daemon.notice netifd: Interface 'lan' is setting up now
Fri Jun 24 00:49:47 2022 daemon.notice netifd: Interface 'lan' is now up
Fri Jun 24 00:49:47 2022 daemon.notice netifd: Interface 'loopback' is enabled
Fri Jun 24 00:49:47 2022 daemon.notice netifd: Interface 'loopback' is setting up now
Fri Jun 24 00:49:47 2022 daemon.notice netifd: Interface 'loopback' is now up
Fri Jun 24 00:49:47 2022 daemon.notice netifd: Network device 'lo' link is up
Fri Jun 24 00:49:47 2022 daemon.notice netifd: Interface 'loopback' has link connectivity
Fri Jun 24 00:49:48 2022 daemon.err odhcpd[1239]: Failed to send to ff02::1%lan@br-lan (Address not available)
Fri Jun 24 00:49:49 2022 daemon.info procd: - init complete -
Fri Jun 24 00:49:50 2022 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Fri Jun 24 00:49:51 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0-1) --> new PHY
Fri Jun 24 00:49:52 2022 kern.info kernel: [   39.783512] br-lan: port 2(wlan0-1) entered blocking state
Fri Jun 24 00:49:52 2022 kern.info kernel: [   39.794469] br-lan: port 2(wlan0-1) entered disabled state
Fri Jun 24 00:49:52 2022 kern.info kernel: [   39.805777] device wlan0-1 entered promiscuous mode
Fri Jun 24 00:49:53 2022 daemon.notice hostapd: wlan0-1: interface state UNINITIALIZED->ENABLED
Fri Jun 24 00:49:53 2022 daemon.notice hostapd: wlan0-1: AP-ENABLED
Fri Jun 24 00:49:54 2022 daemon.notice netifd: radio0 (1718): sh: out of range
Fri Jun 24 00:49:55 2022 daemon.notice hostapd: handle_probe_req: send failed
Fri Jun 24 00:49:55 2022 daemon.notice netifd: Wireless device 'radio0' is now up
Fri Jun 24 00:49:55 2022 daemon.notice netifd: Interface 'wwan' is enabled
Fri Jun 24 00:49:56 2022 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM
Fri Jun 24 00:49:56 2022 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150
Fri Jun 24 00:49:56 2022 daemon.info dnsmasq[1]: DNS service limited to local subnets
Fri Jun 24 00:49:56 2022 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Fri Jun 24 00:49:56 2022 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus
Fri Jun 24 00:49:56 2022 daemon.info dnsmasq-dhcp[1]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Fri Jun 24 00:49:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for test
Fri Jun 24 00:49:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Fri Jun 24 00:49:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Fri Jun 24 00:49:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for local
Fri Jun 24 00:49:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Fri Jun 24 00:49:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Fri Jun 24 00:49:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Fri Jun 24 00:49:56 2022 daemon.warn dnsmasq[1]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Fri Jun 24 00:49:56 2022 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses
Fri Jun 24 00:49:56 2022 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Fri Jun 24 00:49:56 2022 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Fri Jun 24 00:49:56 2022 daemon.notice wpa_supplicant[1118]: wlan0: SME: Trying to authenticate with 10:78:5b:d0:d6:e2 (SSID='MostafaHome' freq=2462 MHz)
Fri Jun 24 00:49:56 2022 kern.info kernel: [   44.071792] wlan0: authenticate with 10:78:5b:d0:d6:e2
Fri Jun 24 00:49:56 2022 kern.info kernel: [   44.086109] wlan0: send auth to 10:78:5b:d0:d6:e2 (try 1/3)
Fri Jun 24 00:49:56 2022 kern.info kernel: [   44.098895] wlan0: authenticated
Fri Jun 24 00:49:56 2022 daemon.notice wpa_supplicant[1118]: wlan0: Trying to associate with 10:78:5b:d0:d6:e2 (SSID='MostafaHome' freq=2462 MHz)
Fri Jun 24 00:49:56 2022 kern.info kernel: [   44.111586] wlan0: associate with 10:78:5b:d0:d6:e2 (try 1/3)
Fri Jun 24 00:49:56 2022 kern.info kernel: [   44.128879] wlan0: RX AssocResp from 10:78:5b:d0:d6:e2 (capab=0x1411 status=0 aid=1)
Fri Jun 24 00:49:56 2022 kern.info kernel: [   44.144544] wlan0: associated
Fri Jun 24 00:49:56 2022 daemon.notice netifd: Network device 'wlan0' link is up
Fri Jun 24 00:49:56 2022 daemon.notice netifd: Interface 'wwan' has link connectivity
Fri Jun 24 00:49:56 2022 daemon.notice netifd: Interface 'wwan' is setting up now
Fri Jun 24 00:49:56 2022 daemon.notice wpa_supplicant[1118]: wlan0: Associated with 10:78:5b:d0:d6:e2
Fri Jun 24 00:49:56 2022 daemon.notice wpa_supplicant[1118]: wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Fri Jun 24 00:49:56 2022 daemon.notice wpa_supplicant[1118]: wlan0: Unknown event 37
Fri Jun 24 00:49:56 2022 kern.debug kernel: [   44.178357] wlan0: Limiting TX power to 30 (30 - 0) dBm as advertised by 10:78:5b:d0:d6:e2
Fri Jun 24 00:49:56 2022 daemon.notice wpa_supplicant[1118]: wlan0: WPA: Key negotiation completed with 10:78:5b:d0:d6:e2 [PTK=CCMP GTK=CCMP]
Fri Jun 24 00:49:56 2022 daemon.notice wpa_supplicant[1118]: wlan0: CTRL-EVENT-CONNECTED - Connection to 10:78:5b:d0:d6:e2 completed [id=0 id_str=]
Fri Jun 24 00:49:56 2022 kern.info kernel: [   44.193514] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Fri Jun 24 00:49:56 2022 daemon.notice netifd: wwan (2229): udhcpc: started, v1.35.0
Fri Jun 24 00:49:57 2022 kern.info kernel: [   44.444162] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
Fri Jun 24 00:49:57 2022 kern.info kernel: [   44.457426] br-lan: port 2(wlan0-1) entered blocking state
Fri Jun 24 00:49:57 2022 kern.info kernel: [   44.468357] br-lan: port 2(wlan0-1) entered forwarding state
Fri Jun 24 00:49:57 2022 daemon.notice netifd: Network device 'wlan0-1' link is up
Fri Jun 24 00:49:57 2022 daemon.notice wpa_supplicant[1118]: wlan0: Unknown event 37
Fri Jun 24 00:49:57 2022 daemon.notice netifd: bridge 'br-lan' link is up
Fri Jun 24 00:49:57 2022 daemon.notice netifd: Interface 'lan' has link connectivity
Fri Jun 24 00:49:57 2022 kern.info kernel: [   44.583512] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Fri Jun 24 00:49:57 2022 daemon.notice netifd: wwan (2229): udhcpc: broadcasting discover
Fri Jun 24 00:49:58 2022 daemon.err odhcpd[1239]: Failed to send to ff02::1%lan@br-lan (Address not available)
Fri Jun 24 00:49:59 2022 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses
Fri Jun 24 00:49:59 2022 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Fri Jun 24 00:49:59 2022 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Fri Jun 24 00:50:00 2022 daemon.notice netifd: wwan (2229): udhcpc: broadcasting discover
Fri Jun 24 00:50:03 2022 daemon.notice netifd: wwan (2229): udhcpc: broadcasting discover
Fri Jun 24 00:50:05 2022 daemon.notice netifd: wwan (2229): udhcpc: broadcasting select for 192.168.1.86, server 192.168.1.254
Fri Jun 24 00:50:05 2022 daemon.notice netifd: wwan (2229): udhcpc: lease of 192.168.1.86 obtained from 192.168.1.254, lease time 86400
Fri Jun 24 00:50:05 2022 daemon.notice netifd: Interface 'wwan' is now up
Fri Jun 24 00:50:05 2022 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto
Fri Jun 24 00:50:05 2022 daemon.info dnsmasq[1]: using nameserver 192.168.1.254#53
Fri Jun 24 00:50:05 2022 daemon.info dnsmasq[1]: using nameserver 75.153.176.9#53
Fri Jun 24 00:50:05 2022 daemon.info dnsmasq[1]: using only locally-known addresses for test
Fri Jun 24 00:50:05 2022 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Fri Jun 24 00:50:05 2022 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Fri Jun 24 00:50:05 2022 daemon.info dnsmasq[1]: using only locally-known addresses for local
Fri Jun 24 00:50:05 2022 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Fri Jun 24 00:50:05 2022 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Fri Jun 24 00:50:05 2022 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Fri Jun 24 00:50:06 2022 user.notice firewall: Reloading firewall due to ifup of wwan (wlan0)

Exactly the same as DAP-1325, only difference is it has 2.4GHz only.

I actually tried to compile one but it's always asking me to select a profile which is limited to the already existing supported devices. so I decided to go with the most similar hardware.

I wasn't aware that this is a possibility.. here's the image I used:
https://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/openwrt-ramips-mt76x8-dlink_dap-1325-a1-squashfs-sysupgrade.bin

It's a bit to early to conclude you wiped calibration data. You said the DAP-1325 only has a 2,4 GHz radio. If the other hardware is almost identical, then installing OpenWrt will not make the 5 GHz radio work since radio settings are hardcoded per-device. So first you need to find out the settings, then probably use an adapted image. Compare e.g. this MT7628 device which has a 5 GHz radio:

With the DAP-1325 image not having one and just the wmac (the radio hardware part of the MT7628 SoC):

What you should do at this point is flash back OEM, see if you can still get the 5 GHz radio working, and document the flash layout. If you can get a shell, you can store dmesg layout again, for the OEM image this time. You'll need that to adapt the DTS. If possible, dump the flash contents as well. You can save every mtdX device by cat'ing it to a file in /tmp, e.g. # cat /dev/mtd0 > /tmp/mtd0.bin.

What is especially important is the radio partition - it's reasonably safe to assume your DAP-1530 uses similar naming than the DAP-1325. That will contain calibration data and you'll need that to find out where OpenWrt needs to extract it.

Checking /proc/mtd contents will show the names D-Link uses for the partitions. That will help as well.

so I tried to put back the factory FW from OpenWrt & I think I bricked it! here's what's coming from serial:

[04020D08][04020D07]
DDR Calibration DQS reg = 00008889


U-Boot 1.1.3 (Jul 23 2018 - 09:15:07)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb0000
flash manufacture id: ef, device id 40 17
find flash: W25Q64BV
*** Warning - bad CRC, using default environment

============================================ 
Ralink UBoot Version: 4.3.0.0
-------------------------------------------- 
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jul 23 2018  Time:09:15:07
============================================ 
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
RESET MT7628 PHY!!!!!!
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. 
   k: Load system code then write to Flash via Web. 
 0 
   
3: System Boot system code via Flash.
## Booting image at bc050000 ...
Bad Magic Number,4441502D 

& it is stuck there.

Yes, well... That was not gonna work unfortunately. OpenWrt upgrading mechanisms are only meant for OpenWrt images. Not for OEM images. You should have gotten some kind of warning before you tried to flash it?

If you can interact with the bootloader, you can try to recover it, but you'fll need to find out what D-Link offers for recovery procedures. 'k' looks kind of interesting: you might be able to get a web recovery where you can load the OEM firmware.

yea, I got an image check failed message but didn't realize this won't work.. here's what I got when I "forced" it!

root@OpenWrt:~# sysupgrade -v -n /tmp/DAP-1530_FW105B01.bin 
Sat Jun 25 17:07:47 UTC 2022 upgrade: Image metadata not present
Sat Jun 25 17:07:47 UTC 2022 upgrade: Use sysupgrade -F to override this check when downgrading or flashing to vendor firmware
Image check failed.

I'm able to get to web recovery mode by holding the reset while it boots up:

[04020D08][04020D07]
DDR Calibration DQS reg = 00008889


U-Boot 1.1.3 (Jul 23 2018 - 09:15:07)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb0000
flash manufacture id: ef, device id 40 17
find flash: W25Q64BV
*** Warning - bad CRC, using default environment

============================================ 
Ralink UBoot Version: 4.3.0.0
-------------------------------------------- 
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jul 23 2018  Time:09:15:07
============================================ 
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
RESET MT7628 PHY!!!!!!reset button is pressed!
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. 
   k: Load system code then write to Flash via Web. 
 0 

 
Load system code then write to Flash via Web. 
Trying Eth0 (10/100-M)

 Waitting for RX_DMA_BUSY status Start... done


 ETH_STATE_ACTIVE!! 
Enter http firmware upgrading mode:

but the web is failing with nothing written to serial & it resets the device out of the recovery mode

the interesting part is I'm not able to choose any other option, it's always booting to default (option 3). you mentioned I should try to find a way of interacting with the bootloader; what are the options there?

& I really appreciate all your help, thanks. alot.

so here's how I got it out of this stuck state (I won't call it bricked!) I tried the web recovery method but this time using the mini-linux image, which worked fine, I guess I can now go back to OpenWrt; since this is how I initially installed it. but I'm more concerned about the calibration data & would like to go back to stock FW to read it, so do you have any suggestion how should I do that?

[04020D08][04020D07]
DDR Calibration DQS reg = 00008889


U-Boot 1.1.3 (Jul 23 2018 - 09:15:07)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb0000
flash manufacture id: ef, device id 40 17
find flash: W25Q64BV
*** Warning - bad CRC, using default environment

============================================ 
Ralink UBoot Version: 4.3.0.0
-------------------------------------------- 
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jul 23 2018  Time:09:15:07
============================================ 
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
RESET MT7628 PHY!!!!!!reset button is pressed!
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. 
   k: Load system code then write to Flash via Web. 
 0 

 
Load system code then write to Flash via Web. 
Trying Eth0 (10/100-M)

 Waitting for RX_DMA_BUSY status Start... done


 ETH_STATE_ACTIVE!! 
Enter http firmware upgrading mode:

 NetOurIP 
checksum bad
checksum bad

 NetOurIP 
checksum bad
checksum bad

 NetOurIP 

 NetOurIP 
checksum bad
checksum bad
checksum bad

 NetOurIP 
.....................................................................................
.....................................................................................
.
.
Done!

What's the mini-Linux image? Is it part of the D-Link recovery procedure?

Chances are you can follow the failsafe procedure as explained in the DAP-1325 A1 commit. But you're on your own here, since yours hasn't been ported. You just got very lucky when you flashed the DAP-1325 A1 image onto your DAP-1530.

I mean the Linux Kernel image; this one for the DAP-1325:
https://downloads.openwrt.org/releases/22.03.0-rc4/targets/ramips/mt76x8/openwrt-22.03.0-rc4-ramips-mt76x8-dlink_dap-1325-a1-initramfs-kernel.bin

So I managed to get it back to the factory firmware; here's a startup log:

[04020D09][04020D07]
DDR Calibration DQS reg = 00008889


U-Boot 1.1.3 (Jul 23 2018 - 09:15:07)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb0000
flash manufacture id: ef, device id 40 17
find flash: W25Q64BV
*** Warning - bad CRC, using default environment

============================================ 
Ralink UBoot Version: 4.3.0.0
-------------------------------------------- 
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jul 23 2018  Time:09:15:07
============================================ 
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
RESET MT7628 PHY!!!!!!
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. 
   k: Load system code then write to Flash via Web. 
 0 
   
3: System Boot system code via Flash.
## Booting image at bc050000 ...
   Image Name:   Linux Kernel Image
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    6347671 Bytes =  6.1 MB
   Load Address: 80000000
   Entry Point:  8000c150
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 8000c150) ...
## Giving linux memsize in MB, 64

Starting kernel ...


LINUX started...

 THIS IS ASIC
Linux version 2.6.36 (root@mtn) (gcc version 4.6.3 (Buildroot 2012.11.1) ) #13 Thu Jun 14 11:23:53 CST 2018

 The CPU feqenuce set to 575 MHz

 MIPS CPU sleep mode enabled.
CPU revision is: 00019655 (MIPS 24Kc)
Software DMA cache coherency
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
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/ram0 console=
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=000115af
Readback ErrCtl register=000115af
Memory: 55636k/65536k available (3346k kernel code, 9844k reserved, 782k data, 4920k init, 0k highmem)
NR_IRQS:128
console [ttyS1] enabled
Calibrating delay loop... 386.04 BogoMIPS (lpj=772096)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
RALINK_GPIOMODE = 54050444 
RALINK_GPIOMODE = 54040444 
***** Xtal 40MHz *****
start PCIe register access
RALINK_RSTCTRL = 2400000
RALINK_CLKCFG1 = fdbfffc0

*************** MT7628 PCIe RC mode *************
PCIE0 enabled
Port 0 N_FTS = 1b105000
init_rt2880pci done
bio: create slab <bio-0> at 0
vgaarb: loaded
pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000)
pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
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 64bit]
pci 0000:01:00.0: BAR 0: set to [mem 0x20000000-0x200fffff 64bit] (PCI address [0x20000000-0x200fffff]
pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
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-0x200fffff]
pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
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
Switching to clocksource Ralink Systick timer
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)
NET: Registered protocol family 1
Load Ralink Timer0 Module
Load Ralink Timer1 Module
Load Ralink Timer2 Module
msgmni has been set to 108
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered (default)
pcieport 0000:00:00.0: device [14c3:0801] has invalid IRQ; check vendor BIOS
pci-stub: invalid id string ""
Ralink gpio driver initialized
i2cdrv_major = 218
Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
serial8250: ttyS0 at MMIO 0x10000d00 (irq = 21) is a 16550A
serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
brd: module loaded
flash manufacture id: ef, device id 40 17
W25Q64BV(ef 40170000) (8192 Kbytes)
mtd .name = raspi, .size = 0x00800000 (8M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
Creating 5 MTD partitions on "raspi":
0x000000000000-0x000000800000 : "ALL"
0x000000000000-0x000000030000 : "Bootloader"
0x000000030000-0x000000040000 : "Config"
0x000000040000-0x000000050000 : "Factory"
0x000000050000-0x000001000000 : "Kernel"
mtd: partition "Kernel" extends beyond the end of device "raspi" -- size truncated to 0x7b0000
rdm_major = 253
GMAC1_MAC_ADRH -- : 0x00000cb6
GMAC1_MAC_ADRL -- : 0xd2b40c8e
Ralink APSoC Ethernet Driver Initilization. v3.1  256 rx/tx descriptors allocated, mtu = 1500!
GMAC1_MAC_ADRH -- : 0x00000cb6
GMAC1_MAC_ADRL -- : 0xd2b40c8e
PROC INIT OK!
PPP generic driver version 2.4.2
PPP MPPE Compression module registered
NET: Registered protocol family 24
PPTP driver version 0.8.5
IMQ driver loaded successfully.
        Hooking IMQ after NAT on PREROUTING.
        Hooking IMQ before NAT on POSTROUTING.


=== pAd = c014d000, size = 1411872 ===

<-- RTMPAllocTxRxRingMemory, Status=0, ErrorValue=0x
<-- RTMPAllocAdapterBlock, Status=0
RtmpChipOpsHook(492): Not support for HIF_MT yet!
mt7628_init()-->
mt7628_init(FW(8a00), HW(8a01), CHIPID(7628))
e2.bin mt7628_init(1135)::(2), pChipCap->fw_len(63888)
mt_bcn_buf_init(218): Not support for HIF_MT yet!
<--mt7628_init()
u32 classifier
    Performance counters on
nf_conntrack version 0.5.0 (869 buckets, 3476 max)
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=Restricted Cone
TCP cubic registered
NET: Registered protocol family 10
NET: Registered protocol family 17
Bridge firewalling 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>
Warning: unable to open an initial console.
status_socket_nl_create
kernel_init:Netlink socket create ok!
Freeing unused kernel memory: 4920k freed
Algorithmics/MIPS FPU Emulator v1.5
Welcome to
     __   ___  _____  _____   _  _______ ______  _____  _   ___
    |  \ /   ||  ___||  __ \ | ||  __  ||__  __||  ___|| | /  /
    |   ^    || |__  | |  \ \| || |  | |  | |   | |__  | |/  /
    |  | |   ||  ___|| |  | || || |__| |  | |   |  ___||    \
    |  | |   || |___ | |__/ /| ||  __  |  | |   | |___ | |\  \
    |__| |___||_____||_____/ |_||_|  |_|  |_|   |_____||_| \__\

                        = Everyday Genius =
                            
led=11, on=1, off=4000, blinks,=1, reset=1, time=4000
led=37, on=4000, off=1, blinks,=1, reset=1, time=4000
register rt2860


=== pAd = c0782000, size = 2147112 ===

<-- RTMPAllocTxRxRingMemory, Status=0
<-- RTMPAllocAdapterBlock, Status=0
pAd->CSRBaseAddress =0xc0680000, csr_addr=0xc0680000!
device_id =0x7662
==>rlt_wlan_chip_onoff(): OnOff:1, Reset= 1, pAd->WlanFunCtrl:0x0, Reg-WlanFunCtrl=0x20a
RtmpChipOpsEepromHook::e2p_type=0, inf_Type=5
RtmpEepromGetDefault::e2p_dafault=3
NVM is efuse and the information is too less to bring up the interface
Force to use Flash mode
NVM is FLASH mode (pAd->flash_offset = 0x48000)
get_dev_name_prefix(): dev_idx = 1, dev_name_prefix=rai
TX_BCN DESC a263a000 size = 320
RX[0] DESC a263d000 size = 1024
RX[1] DESC a263e000 size = 1024
E2pAccessMode=0
cfg_mode=9
cfg_mode=9
wmode_band_equal(): Band Equal!
AndesSendCmdMsg: Could not send in band command due to diable fRTMP_ADAPTER_MCU_SEND_IN_BAND_CMD
APSDCapable[0]=0
APSDCapable[1]=0
APSDCapable[2]=0
APSDCapable[3]=0
APSDCapable[4]=0
APSDCapable[5]=0
APSDCapable[6]=0
APSDCapable[7]=0
APSDCapable[8]=0
APSDCapable[9]=0
APSDCapable[10]=0
APSDCapable[11]=0
APSDCapable[12]=0
APSDCapable[13]=0
APSDCapable[14]=0
APSDCapable[15]=0
default ApCliAPSDCapable[0]=0
Key1Str is Invalid key length(0) or Type(0)
Key2Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
load fw image from fw_header_image
AndesMTLoadFwMethod1(2182)::pChipCap->fw_len(63888)
FW Version:20151201
FW Build Date:20151201183641
CmdAddressLenReq:(ret = 0)
CmdFwStartReq: override = 1, address = 1048576
CmdStartDLRsp: WiFI FW Download Success
MtAsicDMASchedulerInit(): DMA Scheduler Mode=0(LMAC)
efuse_probe: efuse = 10000002
RtmpChipOpsEepromHook::e2p_type=3, inf_Type=4
RtmpEepromGetDefault::e2p_dafault=2
RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 3, E2P default = 2
NVM is FLASH mode
1. Phy Mode = 14
Country Region from e2p = ff
tssi_1_target_pwr_g_band = 28
2. Phy Mode = 14
3. Phy Mode = 14
NICInitPwrPinCfg(11): Not support for HIF_MT yet!
NICInitializeAsic(651): Not support rtmp_mac_sys_reset () for HIF_MT yet!
mt_mac_init()-->
MtAsicInitMac()-->
mt7628_init_mac_cr()-->
MtAsicSetMacMaxLen(1276): Set the Max RxPktLen=1024!
<--mt_mac_init()
        WTBL Segment 1 info:
                MemBaseAddr/FID:0x28000/0
                EntrySize/Cnt:32/128
        WTBL Segment 2 info:
                MemBaseAddr/FID:0x40000/0
                EntrySize/Cnt:64/128
        WTBL Segment 3 info:
                MemBaseAddr/FID:0x42000/64
                EntrySize/Cnt:64/128
        WTBL Segment 4 info:
                MemBaseAddr/FID:0x44000/128
                EntrySize/Cnt:32/128
AntCfgInit(2946): Not support for HIF_MT yet!
MCS Set = ff ff 00 00 01
MtAsicSetChBusyStat(861): Not support for HIF_MT yet!
SYNC - BBP R4 to 20MHz.l
CmdSlotTimeSet:(ret = 0)
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
----------------------------send status 2.4g to monitor = 0
-----------------pid:0-------------
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
BndStrg_Init()
BndStrg_SetInfFlags(): BSS (0c:b6:d2:b4:0c:8f) set 2G Inf ready.
MtAsicSetRalinkBurstMode(3047): Not support for HIF_MT yet!
MtAsicSetPiggyBack(796): Not support for HIF_MT yet!
reload DPD from flash , 0x9F = [c600] doReload bit7[0]
CmdLoadDPDDataFromFlash: Channel = 6, DoReload = 0
MtAsicSetTxPreamble(3026): Not support for HIF_MT yet!
MtAsicAddSharedKeyEntry(1343): Not support for HIF_MT yet!
The 2-BSSID mode is enabled, the BSSID byte5 MUST be the multiple of 2
MtAsicSetPreTbtt(): bss_idx=0, PreTBTT timeout = 0xf0
Main bssid = 0c:b6:d2:b4:0c:8f
<==== rt28xx_init, Status=0
@@@ ed_monitor_exit : ===>
@@@ ed_monitor_exit : <===
mt7628_set_ed_cca: TURN OFF EDCCA  mac 0x10618 = 0xd7083f0f, EDCCA_Status=0
WiFi Startup Cost (ra0): 3.720s
------------------------------------------kernel monitor id=749
build time = 
20141115060606a
rom patch for E3 IC

platform = 
ALPS
hw/sw version = 

patch version = 

FW Version:0.0.00 Build:1
Build Time:201507311614____
fw for E3 IC
RX[0] DESC a20c2000 size = 4096
RX[1] DESC a20c3000 size = 4096
E2pAccessMode=0
cfg_mode=14
cfg_mode=14
wmode_band_equal(): Band Not Equal!
APSDCapable[0]=0
APSDCapable[1]=0
APSDCapable[2]=0
APSDCapable[3]=0
APSDCapable[4]=0
APSDCapable[5]=0
APSDCapable[6]=0
APSDCapable[7]=0
APSDCapable[8]=0
APSDCapable[9]=0
APSDCapable[10]=0
APSDCapable[11]=0
APSDCapable[12]=0
APSDCapable[13]=0
APSDCapable[14]=0
APSDCapable[15]=0
default ApCliAPSDCapable[0]=0
Key1Str is Invalid key length(0) or Type(0)
Key2Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
1. Phy Mode = 49
get_chl_grp:illegal channel (167)
get_chl_grp:illegal channel (167)
get_chl_grp:illegal channel (169)
get_chl_grp:illegal channel (169)
get_chl_grp:illegal channel (171)
get_chl_grp:illegal channel (171)
drivers/net/wireless/rlt_wifi_ap/../rlt_wifi/chips/mt76x2.c:2899 assert (ad->TxPower[choffset].Channel == 42)failed
Country Region from e2p = a
mt76x2_read_temp_info_from_eeprom:: is_temp_tx_alc=0, temp_tx_alc_enable=0
mt76x2_read_tx_alc_info_from_eeprom:: is_ePA_mode=0, ePA_type=3
mt76x2_read_tx_alc_info_from_eeprom:: [5G band] high_temp_slope=0, low_temp_slope=0
mt76x2_read_tx_alc_info_from_eeprom:: [2G band] high_temp_slope=0, low_temp_slope=0
mt76x2_read_tx_alc_info_from_eeprom:: [5G band] tc_lower_bound=0, tc_upper_bound=0
mt76x2_read_tx_alc_info_from_eeprom:: [2G band] tc_lower_bound=0, tc_upper_bound=0
mt76x2_get_external_lna_gain::LNA type=0x11, BLNAGain=0x0, ALNAGain0=0x0, ALNAGain1=0x0, ALNAGain2=0x0
2. Phy Mode = 49
3. Phy Mode = 49
andes_pci_fw_init
0x1300 = 00073200
AntCfgInit: primary/secondary ant 0/1
andes_load_cr:cr_type(2)
ChipStructAssign(): MT76x2 hook !
RTMPSetPhyMode: channel is out of range, use first channel=36 
MCS Set = ff ff 00 00 01
mt76x2_bbp_adjust():rf_bw=2, ext_ch=1, PrimCh=36, HT-CentCh=38, VHT-CentCh=42
TX0 power compensation = 0x38
TX1 power compensation = 0x38
APStartUp(): AP Set CentralFreq at 42(Prim=36, HT-CentCh=38, VHT-CentCh=42, BBP_BW=2)
mt76x2_calibration(channel = 42)
Main bssid = 0c:b6:d2:b4:0c:90
mt76x2_reinit_agc_gain:original agc_vga0 = 0x5c, agc_vga1 = 0x5c
mt76x2_reinit_agc_gain:updated agc_vga0 = 0x5c, agc_vga1 = 0x5c
mt76x2_reinit_hi_lna_gain:original hi_lna0 = 0x27, hi_lna1 = 0x27
mt76x2_reinit_hi_lna_gain:updated hi_lna0 = 0x27, hi_lna1 = 0x27
original vga value(chain0) = 5c
original vga value(chain1) = 5c
<==== rt28xx_init, Status=0
get_dev_name_prefix(): dev_idx = 1, dev_name_prefix=apclii
RTMPDrvOpen(1):Check if PDMA is idle!
RTMPDrvOpen(2):Check if PDMA is idle!
------------------------------------------kernel monitor id=761
Raeth v3.1 (Tasklet,SkbRecycle)

phy_tx_ring = 0x018c9000, tx_ring = 0xa18c9000

phy_rx_ring0 = 0x018ca000, rx_ring0 = 0xa18ca000
GMAC1_MAC_ADRH -- : 0x00000cb6
GMAC1_MAC_ADRL -- : 0xd2b40c8e
RT305x_ESW: Link Status Changed
device eth2 entered promiscuous mode
----------------------------send status to monitor 5g = 0
-----------------pid:761-------------
--------------------------Kenerl send--------------
nlmsg_len:24
===== status=10 =======
RT305x_ESW: Link Status Changed
port 4 up
kernel link up
nlmsg_len:24
--------------------------------------------------link up
dhcpdect================start
dhcpdect================end
--------------------------------------------------wait for bridge br0 up
device ra0 entered promiscuous mode
device rai0 entered promiscuous mode
AddTxSType: already registered TxSType (PID = 32, Format = 0
The 2-BSSID mode is enabled, the BSSID byte5 MUST be the multiple of 2
br0: port 3(rai0) entering learning state
br0: port 3(rai0) entering learning state
br0: port 2(eth2) entering learning state
br0: port 2(eth2) entering learning state
br0: port 1(ra0) entering learning state
br0: port 1(ra0) entering learning state
br0: port 3(rai0) entering forwarding state
br0: port 2(eth2) entering forwarding state
br0: port 1(ra0) entering forwarding state
RT305x_ESW: Link Status Changed
port 4 down
kernel link down
nlmsg_len:24
--------------------------------------------------link down
===== CheckStatus_5G=0 =======
restart mdns...
Ralink APSoC Hardware Watchdog Timer
Started WatchDog Timer.
RT305x_ESW: Link Status Changed
port 4 up
kernel link up
nlmsg_len:24
--------------------------------------------------link up
Jan  1 00:00:27 mDNSProxyResponderPosix: mDNSCoreReceiveResponse: Received from 192.168.0.50:5353   15 50.0.168.192.in-addr.arpa. PTR dlinkap.local.
Jan  1 00:00:27 mDNSProxyResponderPosix: mDNSCoreReceiveResponse: Unexpected conflict discarding   19 50.0.168.192.in-addr.arpa. PTR dlinkap0C8F.local.
Jan  1 00:00:27 mDNSProxyResponderPosix: mDNS_Deregister_internal: Record 7FBF3844 not found in list    4 dlinkap0C8F.local. Addr 192.168.0.50
Jan  1 00:00:27 mDNSProxyResponderPosix: mDNS_Deregister_internal: Record 7FBF3BB0 not found in led=13, on=4000, off=1, blinks,=1, reset=1, time=4000
list   19 50.0.168.192.in-addr.arpa. PTR dlinkap0C8F.local.
dhcpdect================start
autodetect uses obsolete (PF_INET,SOCK_PACKET)
reload DPD from flash , 0x9F = [c600] doReload bit7[0]
CmdLoadDPDDataFromFlash: Channel = 6, DoReload = 0
reload DPD from flash , 0x9F = [c600] doReload bit7[0]
CmdLoadDPDDataFromFlash: Channel = 6, DoReload = 0
Stopped WatchDog Timer.
Ralink APSoC Hardware Watchdog Timer
Started WatchDog Timer.
switch register base addr to system register 0xb0000000
write offset 0x60, value 0x55054450
write offset 0x654, value 0x6040
reload DPD from flash , 0x9F = [c600] doReload bit7[0]
CmdLoadDPDDataFromFlash: Channel = 6, DoReload = 0
reload DPD from flash , 0x9F = [c600] doReload bit7[0]
CmdLoadDPDDataFromFlash: Channel = 6, DoReload = 0
br0: port 3(rai0) entering forwarding state
br0: port 2(eth2) entering forwarding state
br0: port 1(ra0) entering forwarding state
dhcpdect================end
br0: port 3(rai0) entering learning state
br0: port 3(rai0) entering learning state
br0: port 2(eth2) entering learning state
br0: port 2(eth2) entering learning state
br0: port 1(ra0) entering learning state
br0: port 1(ra0) entering learning state
br0: port 3(rai0) entering forwarding state
br0: port 2(eth2) entering forwarding state
br0: port 1(ra0) entering forwarding state
RT305x_ESW: Link Status Changed
port 4 down
kernel link down
nlmsg_len:24
--------------------------------------------------link down
led=11, on=10, off=10, blinks,=4000, reset=1, time=4000
led=37, on=10, off=10, blinks,=4000, reset=1, time=4000
init: can't log to /dev/tty5
starting pid 9566, tty '/dev/ttyS1': '/bin/sh'


BusyBox v1.12.1 (2018-06-11 17:28:07 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

# restart mdns...
led=3, on=1, off=4000, blinks,=1, reset=1, time=4000
led=2, on=1, off=4000, blinks,=1, reset=1, time=4000
led=0, on=1, off=4000, blinks,=1, reset=1, time=4000
led=44, on=1, off=4000, blinks,=1, reset=1, time=4000
---------------------------change color to orainge a------------------------
--led=11, on=10, off=10, blinks,=4000, reset=1, time=4000
--------led set [reapeter_failedled=37, on=10, off=10, blinks,=4000, reset=1, time=4000
]------

---------------------------reapeter failed------------------------
RT305x_ESW: Link Status Changed
port 4 up
kernel link up
nlmsg_len:24
--------------------------------------------------link up
dhcpdect================start
dhcpdect================end
1 Like
cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00800000 00010000 "ALL"
mtd1: 00030000 00010000 "Bootloader"
mtd2: 00010000 00010000 "Config"
mtd3: 00010000 00010000 "Factory"
mtd4: 007b0000 00010000 "Kernel"
1 Like

I managed to cat /dev/mtdX to /tmp/mtdX.bin but I don't know how to transfer them to my computer; scp didn't work.

1 Like

scp -O root@192.168.1.1:/tmp/mtdX.bin ./

1 Like

I'm connected via serial, can't get SSH as this is a factory FW.

nc (netcat)? symlinking into the wwwroot?

not sure if I understood that correctly. What exactly should I do?

In that case since there's no usb port either, you'll have to create a server on the pc (share folder with appropriate permissions) and then transfer the files over to that folder using cmd.

@Molafa Neat. Can you run dmesg? That should contain more useful info on the exact flash layout.