Skip to content

ramips: mt7620: add support for D-Link DAP-1620 A2 - #17027

Closed
sendurai wants to merge 1 commit into
openwrt:mainfrom
sendurai:dap1620a2
Closed

sendurai wants to merge 1 commit into
openwrt:mainfrom
sendurai:dap1620a2

Conversation

@sendurai

@sendurai sendurai commented Nov 21, 2024 •

Copy link
Copy Markdown

Add support for D-Link DAP-1620-A2 device.

A bit older device, but nevertheless has a decent hardware (64/8 and both 2.4 & 5). The firmware package needs to be pushed to device through U-Boot serial port and can't be done through Web UI, since the recovery occupies the second part of NAND. Can add the details to the wiki page once the code is merged and compiled.

Waiting for OpenWrt based compile of image. Anyways added the OpenWrt boot log to the wiki already. Available here:
https://openwrt.org/toh/d-link/d-link_dap-1620

Made few updates based on previous comment as noted below. Any further questions, please let me know.
#16911
#17002

Thanks

@github-actions github-actions Bot added the target/ramips pull request/issue for ramips target label Nov 21, 2024
@raenye

raenye commented Nov 21, 2024 •

Copy link
Copy Markdown
Contributor

(You should really learn how to reset your branch and then force-push it again, instead of creating a new pull every time.... in particular, read about git commit --amend)

@sendurai

Copy link
Copy Markdown
Author

Coming from a different source repo all together, I'm really fighting between GIT Interface and command line. GIT's own interface sends different "merge" commands and there is no clean way of rebase. One incorrect click and its SO much easier to delete and create a new branch. Ugh! Sorry!

Every single time I'm learning what to avoid rather learning what to do. Also my machine is based off of WSL. Hope will catch up soon. thank you for prompt comment!

@raenye

raenye commented Nov 21, 2024 •

Copy link
Copy Markdown
Contributor

You could have two branches: one where you do your work and all attempts, and one which is only used for the PR.
Once you're happy with the current state of the commit in the working branch, reset the PR branch to main, git cherry-pick the commit, and git push -f it.

I also use WSL. and use CLI exclusively.

Also, did you try uploading firmware from the webrecovery (not the regular D-Link UI, the one you get by powering on with the reset button pressed)?

@sendurai

Copy link
Copy Markdown
Author

This device has two images:
Primary image => This is the router firmware.
Secondary image => Web Recovery. (Though very close on partition sizes this image, both kernel and linux are smaller.

Uploading the firmware from the recovery might not be possible, since the size of the OpenWrt crosses the partition size limit, especially with the 6.x kernal the size is significantly larger. The nand is only 8M for this device,

The only way to upload the firmware is through the U-boot recovery menu. (Serial port access). Hope this itself is not a limitation for official support. If so, probably I will keep this image for myself and will work on the other device I have for my next project.

Thank you!

@raenye

raenye commented Nov 21, 2024 •

Copy link
Copy Markdown
Contributor

Maybe it's done differently in rev A, but in rev B (and also in dap 1720) the web recovery is part of uboot, rather than in a separate partition.

I reckon @s-2 knows better...

@sendurai

sendurai commented Nov 21, 2024 •

Copy link
Copy Markdown
Author

Will catch up on the forum thread sometime this week.

Also to answer your other question: I've already tried: git commit --amend, reset --merge, rebase etc. Nothing works properly once the Sync Fork button (or) Update Branch button the GIT web interface is used. Not sure if I'm doing something incorrect or missing something. (It does a merge instead of rebase). Also part of problem might be the GitHub desktop app.

@raenye

raenye commented Nov 21, 2024

Copy link
Copy Markdown
Contributor

Sync Fork button (or) Update Branch button the GIT web interface

Why sync? As long as there's no merge conflict, you don't have to rebase your branch onto main every time...

Comment thread target/linux/ramips/image/mt7620.mk Resolved
@sendurai
sendurai force-pushed the dap1620a2 branch 2 times, most recently from 8ea2651 to 337bd9d Compare November 26, 2024 00:22
@raenye

raenye commented Nov 26, 2024

Copy link
Copy Markdown
Contributor

The commit message* should be more informative, and include some basic information about the device.
See similar "add support for" PRs for inspiration :)

*the message inside the commit, not the github PR text above.

@sendurai

sendurai commented Nov 26, 2024 •

Copy link
Copy Markdown
Author

The commit message* should be more informative, and include some basic information about the device. See similar "add support for" PRs for inspiration :)

*the message inside the commit, not the github PR text above.

This is already in place:

image

@raenye

raenye commented Nov 28, 2024

Copy link
Copy Markdown
Contributor

Please have a look at other, accepted commits to see what is considered basic device information...

@sendurai

sendurai commented Dec 3, 2024

Copy link
Copy Markdown
Author

Please have a look at other, accepted commits to see what is considered basic device information...

Updated.

@musashino205

Copy link
Copy Markdown
Contributor

Please use your real email for the Signed-off-by: in the commit description and the author field (From: ) of the commit.

And, please fold the commit description within 74 characters.

https://openwrt.org/submitting-patches#submission_guidelines

@sendurai
sendurai force-pushed the dap1620a2 branch 4 times, most recently from 2caee8b to fc40d9e Compare December 3, 2024 23:02
@sendurai
sendurai force-pushed the dap1620a2 branch 3 times, most recently from 9f0390a to b9eb720 Compare August 29, 2026 20:35
@openwrt openwrt Bot removed the not following guidelines Pull request does not follow formatting guidelines label Aug 29, 2026

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit checks

  • 9c7d3af "ramips: mt7620: add support for D-Link DAP-1620 A2" — the body opens with "D-Link DAP-1620 A1/A2", but the diff adds only dlink,dap-1620-a2 (DTS compatible/model) and DEVICE_VARIANT := A2; either drop the A1 claim or add the A1 compatible / DEVICE_ALT0_*.
  • 9c7d3af — eight body lines now exceed 75 columns (longest 95); the previous revision of this message was wrapped correctly, please re-wrap.
  • 9c7d3af — two flash-instruction sentences are broken: "visible in both consolete with ######## characters" (typo, and "both" has no referent) and the fragment "Once the power goes back to solid-green again." — the previous revision ended that sentence with "press <enter> in the prompt to get into OpenWrt shell".

Generated by Claude Code

@Boilerplate4u

Boilerplate4u commented Aug 31, 2026 •

Copy link
Copy Markdown

Tested PR #17027 on a D-Link DAP-1620 A2 with OpenWrt 25.12.5 r33051-f5dae5ece4 / Linux 6.12.94.

Verified working:

  • initramfs boot via U-Boot/TFTP
  • sysupgrade -T validation succeeds
  • sysupgrade installation succeeds
  • successful boot from flash after sysupgrade
  • Ethernet
  • 2.4 GHz Wi-Fi
  • 5 GHz Wi-Fi using the MT7612E PCIe radio

The 5 GHz MT7612E PCIe radio is detected as:

pci 0000:01:00.0: [14c3:7662]
mt76x2e 0000:01:00.0: Firmware running!

U-Boot also validates the flashed image successfully before booting it:

Image1 Header Magic Number --> OK
Image1 Header Checksum --> OK
Image1 Data Checksum --> OK

From my testing, the device support in this PR is working as expected on the DAP-1620 A2.

Full test/boot logs and some additional discussion are available here:
https://forum.openwrt.org/t/d-link-dap-1620-a1-a2-pr-17027-troubleshooting-solved/252817/20

D-Link DAP-1620 A2 is a Wifi repeater based on MediaTek MT7620A SoC.

- **SoC**: MediaTek MT7620A (580 MHz 32-bit)
- **RAM**: 64MiB
- **Flash**: 8MiB
- **Ethernet**: 10/100/1000M (Realtek RTL8211E)
- **Wi-Fi**: MediaTek MT7612E (2.4GHz/5GHz, 802.11ac)
- **Buttons**: Reset, WPS
- **LEDs**:
  - Power (Red & Green)
  - Signal Strength (Red: Low) (Green: Low, Medium, High)
- **Antenna**: Rabbit Ears

The MAC addresses are derived from factory image/partition.
--------------------------------------------------------------------
| Port    | OpenWrt Interface | MAC Address                        |
|---------|-------------------|------------------------------------|
| LAN     | br-lan/eth0       | Primary from factory value         |
| 2.4GHz  | phy0-ap0          | Primary+1                          |
| 5GHz    | phy1-ap0          | Secondary from factory value       |
--------------------------------------------------------------------

- Baud: 57600, DataBits: 8, StopBits: 1, Parity/FlowControl: None
Connection & Serial Port pin details at:
- https://openwrt.org/toh/d-link/d-link_dap-1620

Setup TFTP server with IP address: 192.168.0.100. Device will get IP
192.168.0.1. While booting press numeric key 2. Press Y to confirm.
The data transfers from TFTP. Flash progress displays in the console.
Once flashing is completed image will be written to NAND and the system
will boot up.

For ramfs the numeric key is 4.

If the image is Luci enabled the device can be reached through browser
with 192.168.1.1. For configuring as repeater follow the OpenWrt
documentation:
https://openwrt.org/docs/guide-user/network/wifi/relay_configuration

Signed-off-by: Senthil Durairaj <[email protected]>
@namiltd

namiltd commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

PR #24493 has been merged. You can try adding this router with DSA instead of swconfig. For DSA, PPE hardware flow offload is currently being tested (#24515) so your router may gain performance.

@Boilerplate4u

Boilerplate4u commented Aug 31, 2026 •

Copy link
Copy Markdown

@namiltd - Does DSA bring any significant improvements even with just a single LAN interface, like on the DAP-1620, besides hardware offload for VLANs? PPPoE encapsulation probably isn't a very common use case for an AP, IDK.

But I'm happy to give it a try anyway, just for the sake of it. Is this mostly a DTS change, or do you need to switch the device drivers?

@namiltd

namiltd commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

DEVICE_PACKAGES := kmod-mt76x2 kmod-switch-mt7620 rssileds -swconfig

@raenye

raenye commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

(off topic) @namiltd is DSA relevant for MT76x8 too?

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit checks

  • 02f3827 "ramips: mt7620: add support for D-Link DAP-1620 A2" — the flash instructions say the image "will be written to NAND", but the only flash in the DTS is a jedec,spi-nor chip at line 91; say SPI NOR flash instead.
  • 02f3827 — the spec list credits the MT7612E with "2.4GHz/5GHz", but the DTS limits the PCIe card to 5 GHz (ieee80211-freq-limit at line 204) and serves 2.4 GHz from the SoC-internal &wmac at line 189; attribute 2.4 GHz to the MT7620A.

Generated by Claude Code

@namiltd

namiltd commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

(off topic) @namiltd is DSA relevant for MT76x8 too?

@raenye: #24493 only applies to mt7620.

@Boilerplate4u

Boilerplate4u commented Sep 2, 2026 •

Copy link
Copy Markdown

@sendurai, GitHub's build check "Determine changed packets" seems to be acting up. I got this from Copilot via the link on the failed job. You should probably bring this to the attention of the OpenWRT GitHub workflow/actions admins.

Get file shared-workflows/.github/scripts/get_changed_packages.pl
GitHub Copilot Chat Assistant — Summary and fix

Failure root cause:

The step runs the script with a very long expanded argument list and the shell returns: "Argument list too long" (exit code 126). The command is expanding all changed filenames onto the command line, exceeding OS limits.

Boilerplate4u pushed a commit to Boilerplate4u/openwrt that referenced this pull request Sep 4, 2026
D-Link DAP-1620 A2 is a dual-band Wi-Fi range extender based on the
MediaTek MT7620A SoC with 64 MiB RAM and 8 MiB SPI NOR flash.

Hardware:
- MediaTek MT7620A SoC
- 64 MiB RAM
- 8 MiB SPI NOR flash
- integrated MT7620 2.4 GHz Wi-Fi
- MediaTek MT7612E 5 GHz radio over PCIe
- Realtek RTL8211E Gigabit Ethernet PHY
- one Gigabit Ethernet port
- reset and WPS buttons
- power and signal-strength LEDs

The RTL8211E is connected through RGMII1 to MT7620 switch port 5.
Describe port 5 as the DSA LAN user port and port 6 as the fixed
1 Gbps CPU port.

Use rgmii-id so the RTL8211E provides both RGMII TX and RX delays while
the MT7620 MAC-side delays remain disabled.

Select kmod-dsa-mt7620 and kmod-phy-realtek and remove the legacy
swconfig dependency. Set the default LAN interface to the DSA lan port.

Initial installation is performed through the U-Boot serial console
using TFTP. Normal sysupgrade images can be used for subsequent
upgrades.

This device support is based on the original DAP-1620 A2 work from
OpenWrt PR openwrt#17027.

Signed-off-by: Senthil Durairaj <[email protected]>
Signed-off-by: Boyler Fourcade <[email protected]>
@namiltd

namiltd commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

You have both swconfig (this one) and DSA (#25022) versions at the same time. You should choose one, or ideally switch both to draft until testing is complete.

@namiltd

namiltd commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

@sendurai @Boilerplate4u You can try to use ramips: ethernet: ralink: add mediatek,no-swconfig property patch:

@@ -164,7 +164,8 @@
 	nvmem-cells = <&macaddr_factory_ffe8 0>;
 	nvmem-cell-names = "mac-address";
 
-	mediatek,portmap = "wllll";
+	/* Disable swconfig and MAC learning */
+	mediatek,no-swconfig;
 
 	port@5 {
 		status = "okay";
   IMAGE_SIZE := 7872k
   DEVICE_VARIANT := A2
   SOC := mt7620a
-  DEVICE_PACKAGES := kmod-mt76x2 kmod-phy-realtek rssileds
+  DEVICE_PACKAGES := kmod-mt76x2 kmod-phy-realtek rssileds -swconfig
 endef
 TARGET_DEVICES += dlink_dap-1620-a2
 	dlink,dap-1620-a2)
-		ucidef_add_switch "switch0" \
-			"5:lan" "6@eth0"
+		ucidef_set_interface_lan "eth0"
 		;;

It is possible that neither swconfig nor DSA is needed at all for this router.

@sendurai

sendurai commented Sep 6, 2026

Copy link
Copy Markdown
Author

@sendurai @Boilerplate4u You can try to use ramips: ethernet: ralink: add mediatek,no-swconfig property patch:

@@ -164,7 +164,8 @@
 	nvmem-cells = <&macaddr_factory_ffe8 0>;
 	nvmem-cell-names = "mac-address";
 
-	mediatek,portmap = "wllll";
+	/* Disable swconfig and MAC learning */
+	mediatek,no-swconfig;
 
 	port@5 {
 		status = "okay";
   IMAGE_SIZE := 7872k
   DEVICE_VARIANT := A2
   SOC := mt7620a
-  DEVICE_PACKAGES := kmod-mt76x2 kmod-phy-realtek rssileds
+  DEVICE_PACKAGES := kmod-mt76x2 kmod-phy-realtek rssileds -swconfig
 endef
 TARGET_DEVICES += dlink_dap-1620-a2
 	dlink,dap-1620-a2)
-		ucidef_add_switch "switch0" \
-			"5:lan" "6@eth0"
+		ucidef_set_interface_lan "eth0"
 		;;

It is possible that neither swconfig nor DSA is needed at all for this router.

Thank you!

The patch refers to a different commit. Anyways tried the suggested changes. Also remember trying something similar back when I was originally putting together the dts. Without the switch config, the device boots normally and even configures the IP. But unable to ping or reach the device. Setting to DHCP through serial console doesn't get an IP.

Also this was tested on Jan build 6.12.67. If I rebase to current main, I'm running into freeze as noted in above thread..

Going to let others try forward. I've abandoned the device, since it was having a poor performance with WireGuard. I've since switched to RPi-with a USB wireless. Works much better.

I will probably close this PR. Thank you, everyone for the help and support here!

@sendurai sendurai closed this Sep 6, 2026
@sendurai

sendurai commented Sep 6, 2026

Copy link
Copy Markdown
Author

The main branch is also failing a build today. Not related to any of the changes here. Not sure what the issue is:

Error when evaluating 'strategy' for job 'check-kernel-patches'. openwrt/actions-shared-workflows/.github/workflows/kernel.yml@main (Line: 191, Col: 10): matrix must define at least one vector Error when evaluating 'strategy' for job 'build'. openwrt/actions-shared-workflows/.github/workflows/kernel.yml@main (Line: 169, Col: 10): matrix must define at least one vector

https://github.com/sendurai/openwrt/actions/runs/34031563147

@namiltd

namiltd commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Version for testing: 17027.patch

Boilerplate4u pushed a commit to Boilerplate4u/openwrt that referenced this pull request Sep 8, 2026
The D-Link DAP-1620 A2 is a dual-band Wi-Fi range extender with one
Gigabit Ethernet port.

Hardware:
- MediaTek MT7620A, 580 MHz
- 64 MiB RAM
- 8 MiB SPI NOR flash
- Integrated MT7620 2.4 GHz Wi-Fi
- MediaTek MT7612E 5 GHz 802.11ac radio over PCIe
- Realtek RTL8211E Gigabit Ethernet PHY
- Reset and WPS buttons
- Red/green status LED and three signal-strength indicators

Connect the RTL8211E on MDIO address 1 to DSA user port 5 through
RGMII1. Use rgmii-id so the PHY supplies both internal clock delays
while the MT7620 MAC-side delays remain disabled. Describe port 6
as the fixed 1 Gbps full-duplex CPU connection.

Select kmod-mt76x2, kmod-phy-realtek, kmod-dsa-mt7620 and
dap1620-leds. Drop swconfig and rssileds, and configure the DSA lan
interface as the default LAN.

Flash layout, with exclusive end addresses:
- U-Boot:   0x000000-0x030000
- NVRAM:    0x030000-0x040000
- Factory:  0x040000-0x050000
- Firmware: 0x050000-0x800000

Calibration and MAC addresses:
- 2.4 GHz calibration: factory + 0x0000
- 5 GHz calibration:   factory + 0x8000
- Ethernet MAC:        factory + 0xffe8
- 2.4 GHz MAC:         Ethernet MAC incremented by 1
- 5 GHz MAC:           factory + 0xffd4

Preserve U-Boot, NVRAM and factory data as read-only partitions.
The MAC increment changes the address value, not the flash offset.

Flash constraints:

U-Boot, NVRAM and factory data occupy the first 320 KiB of the
8 MiB flash, leaving 7872 KiB for firmware. The image must fit
within this limit.

The tested development squashfs sysupgrade image, including
luci-light, dap1620-leds and the selected review changes, is
7,274,774 bytes, leaving approximately 768 KiB below the image
size limit.

Tested image:
  dap1620-20260908-090036-4c6a000-review1-sysupgrade.bin

SHA256:
  ce884451fc968af15d6eed9cecc02d5b0f0ad29f07b3a7865bec32c1f883ec98

These figures apply to this development image. Check the actual
size and presence of any newly built sysupgrade image before
flashing. The limited flash capacity constrains additional
packages. WPS functionality is not included.

LED behaviour:

Add the dap1620-leds service in place of rssileds. Show solid red
during Linux startup, blinking amber when the selected uplink is
unavailable, and solid green when it is connected.

In Ethernet mode, use physical carrier on lan as the uplink
condition and keep the signal indicators off. In repeater mode,
require an associated and authorized Wi-Fi station and follow
that station's signal strength. No DHCP, DNS or Internet
reachability checks are performed.

Use these configurable signal thresholds:
- Below -75 dBm: first indicator amber
- -75 to below -65 dBm: one green indicator
- -65 to below -55 dBm: two green indicators
- -55 dBm or stronger: three green indicators

These thresholds are policy defaults, not stock firmware values.
Keep the signal indicators off when disconnected or when RSSI
is unavailable. Require explicit station selection when multiple
STA configurations exist.

Installation:

Use the U-Boot serial console at 57600 baud, 8N1, without flow
control. Connect Ethernet to a TFTP server at 192.168.0.100.

Start from a cold power-on. Press 4 at the bootloader menu to
enter the command line. For RAM-only testing:

  setenv ipaddr 192.168.0.1
  setenv serverip 192.168.0.100
  tftpboot 0x81000000 openwrt-ramips-mt7620-dlink_dap-1620-a2-initramfs-kernel.bin
  bootm 0x81000000

This loads and runs OpenWrt without writing the firmware to flash.

For persistent installation, cold-start the device and select
U-Boot menu option 2, "Load system code then write to Flash via
TFTP". Confirm with Y and provide the device and server addresses
above and this filename:

  openwrt-ramips-mt7620-dlink_dap-1620-a2-squashfs-sysupgrade.bin

After flashing has completed, disconnect power, allow the device
to power down fully, and reconnect it. Verify that OpenWrt boots
from flash before considering installation complete.

Subsequent upgrades can use the normal OpenWrt sysupgrade procedure.

Testing:

Development testing on DAP-1620 A2 confirmed:
- DSA initialization and RTL8211E detection through MDIO
- Port 5 operating with rgmii-id
- 1 Gbps full-duplex Ethernet negotiation
- LAN traffic and link recovery
- Detection of both Wi-Fi radios
- Initramfs boot through U-Boot/TFTP
- Flashing and booting a squashfs sysupgrade image
- Cold power cycle after the initial flash
- Ethernet LED behaviour with carrier disconnected and connected
- Wi-Fi station association and authorized-state detection
- Three green signal indicators at an observed RSSI of -54 dBm

A 60-minute bidirectional TCP soak completed successfully at
approximately 250 Mbit/s DAP TX + 217 Mbit/s DAP RX. All iperf3
phases exited successfully. The sampled link status remained at
1 Gbps full duplex, with no observed link drops or increases in
the switch MIB bad-packet/error counters.

Additional 30-second TCP tests:
- DAP TX: 578 Mbit/s, 27 retransmissions
- DAP RX: 377 Mbit/s, 37 retransmissions
- Bidirectional: 254 + 221 Mbit/s, 0 + 231 retransmissions

CPU usage was close to saturation during the tests. The higher
retransmission count in the server-to-DAP direction during
bidirectional traffic could be related to CPU/softirq pressure,
but the cause has not been established. The generic rx_dropped
counter increased by 124 during the 60-minute soak.

These tests terminate TCP on the DUT itself and are not a
forwarding or hardware flow-offload benchmark. Hardware offload,
such as openwrt#24515, may help forwarding workloads, but is outside
the scope of this support. With only one external Ethernet port,
a conventional wired LAN-to-WAN forwarding test is not available.

The results support basic Ethernet/DSA stability under sustained
load. Speed negotiation at 100 Mbit/s and repeated link-cycle
testing remain separate tests. Weaker-RSSI LED threshold testing
also remains to be completed.

These results describe the tested development revision.

This support builds on Senthil Durairaj's original DAP-1620 A2
work in PR openwrt#17027 and the MT7620 DSA driver introduced in openwrt#24493.

Link: openwrt#17027
Link: openwrt#24493
Link: https://forum.openwrt.org/t/253264
Signed-off-by: Senthil Durairaj <[email protected]>
Signed-off-by: Boyler Fourcade <[email protected]>
Boilerplate4u pushed a commit to Boilerplate4u/openwrt that referenced this pull request Sep 8, 2026
The D-Link DAP-1620 A2 is a dual-band Wi-Fi range extender with one
Gigabit Ethernet port.

Hardware:
- MediaTek MT7620A, 580 MHz
- 64 MiB RAM
- 8 MiB SPI NOR flash
- Integrated MT7620 2.4 GHz Wi-Fi
- MediaTek MT7612E 5 GHz 802.11ac radio over PCIe
- Realtek RTL8211E Gigabit Ethernet PHY
- Reset and WPS buttons
- Red/green status LED and three signal-strength indicators

Connect the RTL8211E on MDIO address 1 to DSA user port 5 through
RGMII1. Use rgmii-id so the PHY supplies both internal clock delays
while the MT7620 MAC-side delays remain disabled. Describe port 6
as the fixed 1 Gbps full-duplex CPU connection.

Select kmod-mt76x2, kmod-phy-realtek, kmod-dsa-mt7620 and
dap1620-leds. Drop swconfig and rssileds, and configure the DSA lan
interface as the default LAN.

Flash layout, with exclusive end addresses:
- U-Boot:   0x000000-0x030000
- NVRAM:    0x030000-0x040000
- Factory:  0x040000-0x050000
- Firmware: 0x050000-0x800000

Calibration and MAC addresses:
- 2.4 GHz calibration: factory + 0x0000
- 5 GHz calibration:   factory + 0x8000
- Ethernet MAC:        factory + 0xffe8
- 2.4 GHz MAC:         Ethernet MAC incremented by 1
- 5 GHz MAC:           factory + 0xffd4

Preserve U-Boot, NVRAM and factory data as read-only partitions.
The MAC increment changes the address value, not the flash offset.

Flash constraints:

U-Boot, NVRAM and factory data occupy the first 320 KiB of the
8 MiB flash, leaving 7872 KiB for firmware. The image must fit
within this limit.

The tested development squashfs sysupgrade image, including
luci-light, dap1620-leds and the selected review changes, is
7,274,774 bytes, leaving approximately 768 KiB below the image
size limit.

Tested image:
  dap1620-20260908-090036-4c6a000-review1-sysupgrade.bin

SHA256:
  ce884451fc968af15d6eed9cecc02d5b0f0ad29f07b3a7865bec32c1f883ec98

These figures apply to this development image. Check the actual
size and presence of any newly built sysupgrade image before
flashing. The limited flash capacity constrains additional
packages. WPS functionality is not included.

LED behaviour:

Add the dap1620-leds service in place of rssileds. Show solid red
during Linux startup, blinking amber when the selected uplink is
unavailable, and solid green when it is connected.

In Ethernet mode, use physical carrier on lan as the uplink
condition and keep the signal indicators off. In repeater mode,
require an associated and authorized Wi-Fi station and follow
that station's signal strength. No DHCP, DNS or Internet
reachability checks are performed.

Use these configurable signal thresholds:
- Below -75 dBm: first indicator amber
- -75 to below -65 dBm: one green indicator
- -65 to below -55 dBm: two green indicators
- -55 dBm or stronger: three green indicators

These thresholds are policy defaults, not stock firmware values.
Keep the signal indicators off when disconnected or when RSSI
is unavailable. Require explicit station selection when multiple
STA configurations exist.

Installation:

Use the U-Boot serial console at 57600 baud, 8N1, without flow
control. Connect Ethernet to a TFTP server at 192.168.0.100.

Start from a cold power-on. Press 4 at the bootloader menu to
enter the command line. For RAM-only testing:

  setenv ipaddr 192.168.0.1
  setenv serverip 192.168.0.100
  tftpboot 0x81000000 openwrt-ramips-mt7620-dlink_dap-1620-a2-initramfs-kernel.bin
  bootm 0x81000000

This loads and runs OpenWrt without writing the firmware to flash.

For persistent installation, cold-start the device and select
U-Boot menu option 2, "Load system code then write to Flash via
TFTP". Confirm with Y and provide the device and server addresses
above and this filename:

  openwrt-ramips-mt7620-dlink_dap-1620-a2-squashfs-sysupgrade.bin

After flashing has completed, disconnect power, allow the device
to power down fully, and reconnect it. Verify that OpenWrt boots
from flash before considering installation complete.

Subsequent upgrades can use the normal OpenWrt sysupgrade procedure.

Testing:

Development testing on DAP-1620 A2 confirmed:
- DSA initialization and RTL8211E detection through MDIO
- Port 5 operating with rgmii-id
- 1 Gbps full-duplex Ethernet negotiation
- LAN traffic and link recovery
- Detection of both Wi-Fi radios
- Initramfs boot through U-Boot/TFTP
- Flashing and booting a squashfs sysupgrade image
- Cold power cycle after the initial flash
- Ethernet LED behaviour with carrier disconnected and connected
- Wi-Fi station association and authorized-state detection
- Three green signal indicators at an observed RSSI of -54 dBm

A 60-minute bidirectional TCP soak completed successfully at
approximately 250 Mbit/s DAP TX + 217 Mbit/s DAP RX. All iperf3
phases exited successfully. The sampled link status remained at
1 Gbps full duplex, with no observed link drops or increases in
the switch MIB bad-packet/error counters.

Additional 30-second TCP tests:
- DAP TX: 578 Mbit/s, 27 retransmissions
- DAP RX: 377 Mbit/s, 37 retransmissions
- Bidirectional: 254 + 221 Mbit/s, 0 + 231 retransmissions

CPU usage was close to saturation during the tests. The higher
retransmission count in the server-to-DAP direction during
bidirectional traffic could be related to CPU/softirq pressure,
but the cause has not been established. The generic rx_dropped
counter increased by 124 during the 60-minute soak.

These tests terminate TCP on the DUT itself and are not a
forwarding or hardware flow-offload benchmark. Hardware offload,
such as openwrt#24515, may help forwarding workloads, but is outside
the scope of this support. With only one external Ethernet port,
a conventional wired LAN-to-WAN forwarding test is not available.

The results support basic Ethernet/DSA stability under sustained
load. Speed negotiation at 100 Mbit/s and repeated link-cycle
testing remain separate tests. Weaker-RSSI LED threshold testing
also remains to be completed.

These results describe the tested development revision.

This support builds on Senthil Durairaj's original DAP-1620 A2
work in PR openwrt#17027 and the MT7620 DSA driver introduced in openwrt#24493.

Link: openwrt#17027
Link: openwrt#24493
Link: https://forum.openwrt.org/t/253264
Signed-off-by: Senthil Durairaj <[email protected]>
Signed-off-by: Boyler Fourcade <[email protected]>
Boilerplate4u pushed a commit to Boilerplate4u/openwrt that referenced this pull request Sep 10, 2026
The D-Link DAP-1620 A2 is a dual-band Wi-Fi range extender with one
Gigabit Ethernet port.

Hardware:
- MediaTek MT7620A, 580 MHz
- 64 MiB RAM
- 8 MiB SPI NOR flash
- Integrated MT7620 2.4 GHz Wi-Fi
- MediaTek MT7612E 5 GHz 802.11ac radio over PCIe
- Realtek RTL8211E Gigabit Ethernet PHY
- Reset and WPS buttons
- Red/green status LED and three signal-strength indicators

Connect the RTL8211E on MDIO address 1 to DSA user port 5 through
RGMII1. Use rgmii-id so the PHY supplies both internal clock delays
while the MT7620 MAC-side delays remain disabled. Describe port 6
as the fixed 1 Gbps full-duplex CPU connection.

Select kmod-mt76x2, kmod-phy-realtek, kmod-dsa-mt7620 and
dap1620-leds. Drop swconfig and rssileds, and configure the DSA lan
interface as the default LAN.

Flash layout, with exclusive end addresses:
- U-Boot:   0x000000-0x030000
- NVRAM:    0x030000-0x040000
- Factory:  0x040000-0x050000
- Firmware: 0x050000-0x800000

Calibration and MAC addresses:
- 2.4 GHz calibration: factory + 0x0000
- 5 GHz calibration:   factory + 0x8000
- Ethernet MAC:        factory + 0xffe8
- 2.4 GHz MAC:         Ethernet MAC incremented by 1
- 5 GHz MAC:           factory + 0xffd4

Preserve U-Boot, NVRAM and factory data as read-only partitions.
The MAC increment changes the address value, not the flash offset.

Flash constraints:

U-Boot, NVRAM and factory data occupy the first 320 KiB of the
8 MiB flash, leaving 7872 KiB for firmware. The image must fit
within this limit.

The separately built AP test profile excludes PPP/PPPoE packages
that are not needed for the AP-only test configuration. These
package exclusions are not part of the upstream device defaults.

The verified AP test sysupgrade image is 7,078,166 bytes, leaving
982,762 bytes below the firmware partition limit.

Tested AP images:
  dap1620-20260909-aa0bbbb2-ap-no-ppp-sysupgrade.bin
  dap1620-20260909-aa0bbbb2-ap-no-ppp-initramfs.bin

SHA256:
  e3b9a5861a8b458ce6ff540f052b089cb4d274be84d0d4f430dd9f7d84997be1
  71c9eb3dbac933db7ea3731de2b516301791455069fe49629fbfa0866985935e

The AP build record identifies source commit
60a9fbe. The aa0bbbb string
in the image filenames is a build label and is not sufficient by
itself to identify Git provenance.

LED behaviour:

Use the normal OpenWrt boot LED handling. The status LED is red by
default during startup through the DTS default state. Once
dap1620-leds starts, show solid green when the selected uplink is
connected and blinking amber when it is unavailable.

In Ethernet mode, use physical carrier on lan as the uplink
condition and keep the signal indicators off. In repeater mode,
require an associated and authorized Wi-Fi station and follow
that station's signal strength. No DHCP, DNS or Internet
reachability checks are performed.

Load the LED configuration once when the daemon starts rather than
re-reading UCI on every two-second sample. Restart the service on
the existing dap1620-leds and wireless reload triggers so changed
settings are read again.

Use these configurable signal thresholds:
- Below -75 dBm: first indicator amber
- -75 to below -65 dBm: one green indicator
- -65 to below -55 dBm: two green indicators
- -55 dBm or stronger: three green indicators

These thresholds are policy defaults, not stock firmware values.
Keep the signal indicators off when disconnected or when RSSI
is unavailable. Require explicit station selection when multiple
STA configurations exist.

Do not ship a duplicate GPLv2 COPYING file for the LED shell-script
package; keep GPL-2.0-only package metadata and SPDX headers.

Installation:

Use the U-Boot serial console at 57600 baud, 8N1, without flow
control. Connect Ethernet to a TFTP server at 192.168.0.100.

Start from a cold power-on. Press 4 at the bootloader menu to enter
the command line. For RAM-only testing:

  setenv ipaddr 192.168.0.1
  setenv serverip 192.168.0.100
  tftpboot 0x81000000 openwrt-ramips-mt7620-dlink_dap-1620-a2-initramfs-kernel.bin
  bootm 0x81000000

For persistent installation, cold-start the device and select
U-Boot menu option 2, "Load system code then write to Flash via
TFTP". Confirm with Y and use:

  openwrt-ramips-mt7620-dlink_dap-1620-a2-squashfs-sysupgrade.bin

After flashing completes, disconnect power, allow the device to
power down fully, and reconnect it. Subsequent upgrades can use
the normal OpenWrt sysupgrade procedure.

Development testing on DAP-1620 A2 confirmed:
- DSA initialization and RTL8211E detection through MDIO
- Port 5 operating with rgmii-id
- 1 Gbps full-duplex Ethernet negotiation
- LAN traffic and link recovery
- Detection of both Wi-Fi radios
- Initramfs boot through U-Boot/TFTP
- Flashing and booting a squashfs sysupgrade image
- Cold power cycle after the initial flash
- Ethernet LED behaviour with carrier disconnected and connected
- Wi-Fi station association and authorized-state detection
- Three green signal indicators at an observed RSSI of -54 dBm

A 60-minute bidirectional TCP soak completed successfully at
approximately 250 Mbit/s DAP TX + 217 Mbit/s DAP RX. The sampled
link status remained at 1 Gbps full duplex with no observed link
drops or increases in the observed switch MIB bad-packet/error
counters.

The DUT itself terminated the TCP traffic, so these tests are not
a forwarding or hardware flow-offload benchmark. PPE work such as
openwrt#24515 is outside the scope of this support.

This support builds on Senthil Durairaj's original DAP-1620 A2
work in PR openwrt#17027 and the MT7620 DSA driver introduced in openwrt#24493.

Link: openwrt#17027
Link: openwrt#24493
Link: https://forum.openwrt.org/t/253264

Signed-off-by: Senthil Durairaj <[email protected]>
Signed-off-by: Boyler Fourcade <[email protected]>
Boilerplate4u pushed a commit to Boilerplate4u/openwrt that referenced this pull request Sep 10, 2026
The D-Link DAP-1620 A2 is a dual-band Wi-Fi range extender with one
Gigabit Ethernet port.

Hardware:
- MediaTek MT7620A, 580 MHz
- 64 MiB RAM
- 8 MiB SPI NOR flash
- Integrated MT7620 2.4 GHz Wi-Fi
- MediaTek MT7612E 5 GHz 802.11ac radio over PCIe
- Realtek RTL8211E Gigabit Ethernet PHY
- Reset and WPS buttons
- Red/green status LED and three signal-strength indicators

Connect the RTL8211E on MDIO address 1 to DSA user port 5 through
RGMII1. Use rgmii-id so the PHY supplies both internal clock delays
while the MT7620 MAC-side delays remain disabled. Describe port 6
as the fixed 1 Gbps full-duplex CPU connection.

Select kmod-mt76x2, kmod-phy-realtek, kmod-dsa-mt7620 and
dap1620-leds. Drop swconfig and rssileds, and configure the DSA lan
interface as the default LAN.

Flash layout, with exclusive end addresses:
- U-Boot:   0x000000-0x030000
- NVRAM:    0x030000-0x040000
- Factory:  0x040000-0x050000
- Firmware: 0x050000-0x800000

Calibration and MAC addresses:
- 2.4 GHz calibration: factory + 0x0000
- 5 GHz calibration:   factory + 0x8000
- Ethernet MAC:        factory + 0xffe8
- 2.4 GHz MAC:         Ethernet MAC incremented by 1
- 5 GHz MAC:           factory + 0xffd4

Preserve U-Boot, NVRAM and factory data as read-only partitions.
The MAC increment changes the address value, not the flash offset.

Flash constraints:

U-Boot, NVRAM and factory data occupy the first 320 KiB of the
8 MiB flash, leaving 7872 KiB for firmware. The image must fit
within this limit.

The separately built AP test profile excludes PPP/PPPoE packages
that are not needed for the AP-only test configuration. These
package exclusions are not part of the upstream device defaults.

The verified AP test sysupgrade image is 7,078,166 bytes, leaving
982,762 bytes below the firmware partition limit.

Tested AP images:
  dap1620-20260909-aa0bbbb2-ap-no-ppp-sysupgrade.bin
  dap1620-20260909-aa0bbbb2-ap-no-ppp-initramfs.bin

SHA256:
  e3b9a5861a8b458ce6ff540f052b089cb4d274be84d0d4f430dd9f7d84997be1
  71c9eb3dbac933db7ea3731de2b516301791455069fe49629fbfa0866985935e

The AP build record identifies source commit
60a9fbe. The aa0bbbb string
in the image filenames is a build label and is not sufficient by
itself to identify Git provenance.

LED behaviour:

Use the normal OpenWrt boot LED handling. The status LED is red by
default during startup through the DTS default state. Once
dap1620-leds starts, show solid green when the selected uplink is
connected and blinking amber when it is unavailable.

In Ethernet mode, use physical carrier on lan as the uplink
condition and keep the signal indicators off. In repeater mode,
require an associated and authorized Wi-Fi station and follow
that station's signal strength. No DHCP, DNS or Internet
reachability checks are performed.

Load the LED configuration once when the daemon starts rather than
re-reading UCI on every two-second sample. Restart the service on
the existing dap1620-leds and wireless reload triggers so changed
settings are read again.

Use these configurable signal thresholds:
- Below -75 dBm: first indicator amber
- -75 to below -65 dBm: one green indicator
- -65 to below -55 dBm: two green indicators
- -55 dBm or stronger: three green indicators

These thresholds are policy defaults, not stock firmware values.
Keep the signal indicators off when disconnected or when RSSI
is unavailable. Require explicit station selection when multiple
STA configurations exist.

Do not ship a duplicate GPLv2 COPYING file for the LED shell-script
package; keep GPL-2.0-only package metadata and SPDX headers.

Installation:

Use the U-Boot serial console at 57600 baud, 8N1, without flow
control. Connect Ethernet to a TFTP server at 192.168.0.100.

Start from a cold power-on. Press 4 at the bootloader menu to enter
the command line. For RAM-only testing:

  setenv ipaddr 192.168.0.1
  setenv serverip 192.168.0.100
  tftpboot 0x81000000 openwrt-ramips-mt7620-dlink_dap-1620-a2-initramfs-kernel.bin
  bootm 0x81000000

For persistent installation, cold-start the device and select
U-Boot menu option 2, "Load system code then write to Flash via
TFTP". Confirm with Y and use:

  openwrt-ramips-mt7620-dlink_dap-1620-a2-squashfs-sysupgrade.bin

After flashing completes, disconnect power, allow the device to
power down fully, and reconnect it. Subsequent upgrades can use
the normal OpenWrt sysupgrade procedure.

Development testing on DAP-1620 A2 confirmed:
- DSA initialization and RTL8211E detection through MDIO
- Port 5 operating with rgmii-id
- 1 Gbps full-duplex Ethernet negotiation
- LAN traffic and link recovery
- Detection of both Wi-Fi radios
- Initramfs boot through U-Boot/TFTP
- Flashing and booting a squashfs sysupgrade image
- Cold power cycle after the initial flash
- Ethernet LED behaviour with carrier disconnected and connected
- Wi-Fi station association and authorized-state detection
- Three green signal indicators at an observed RSSI of -54 dBm

A 60-minute bidirectional TCP soak completed successfully at
approximately 250 Mbit/s DAP TX + 217 Mbit/s DAP RX. The sampled
link status remained at 1 Gbps full duplex with no observed link
drops or increases in the observed switch MIB bad-packet/error
counters.

The DUT itself terminated the TCP traffic, so these tests are not
a forwarding or hardware flow-offload benchmark. PPE work such as
openwrt#24515 is outside the scope of this support.

This support builds on Senthil Durairaj's original DAP-1620 A2
work in PR openwrt#17027 and the MT7620 DSA driver introduced in openwrt#24493.

Link: openwrt#17027
Link: openwrt#24493
Link: https://forum.openwrt.org/t/253264

Signed-off-by: Senthil Durairaj <[email protected]>
Signed-off-by: Boyler Fourcade <[email protected]>
Boilerplate4u pushed a commit to Boilerplate4u/openwrt that referenced this pull request Sep 10, 2026
The D-Link DAP-1620 A2 is a dual-band Wi-Fi range extender with one
Gigabit Ethernet port.

Hardware:
- MediaTek MT7620A, 580 MHz
- 64 MiB RAM
- 8 MiB SPI NOR flash
- Integrated MT7620 2.4 GHz Wi-Fi
- MediaTek MT7612E 5 GHz 802.11ac radio over PCIe
- Realtek RTL8211E Gigabit Ethernet PHY
- Reset and WPS buttons
- Red/green status LED and three signal-strength indicators

Connect the RTL8211E on MDIO address 1 to DSA user port 5 through
RGMII1. Use rgmii-id so the PHY supplies both internal clock delays
while the MT7620 MAC-side delays remain disabled. Describe port 6
as the fixed 1 Gbps full-duplex CPU connection.

Select kmod-mt76x2, kmod-phy-realtek, kmod-dsa-mt7620 and
dap1620-leds. Drop swconfig and rssileds, and configure the DSA lan
interface as the default LAN.

Flash layout, with exclusive end addresses:
- U-Boot:   0x000000-0x030000
- NVRAM:    0x030000-0x040000
- Factory:  0x040000-0x050000
- Firmware: 0x050000-0x800000

Calibration and MAC addresses:
- 2.4 GHz calibration: factory + 0x0000
- 5 GHz calibration:   factory + 0x8000
- Ethernet MAC:        factory + 0xffe8
- 2.4 GHz MAC:         Ethernet MAC incremented by 1
- 5 GHz MAC:           factory + 0xffd4

Preserve U-Boot, NVRAM and factory data as read-only partitions.
The MAC increment changes the address value, not the flash offset.

Flash constraints:

U-Boot, NVRAM and factory data occupy the first 320 KiB of the
8 MiB flash, leaving 7872 KiB for firmware. The image must fit
within this limit.

The separately built AP test profile excludes PPP/PPPoE packages
that are not needed for the AP-only test configuration. These
package exclusions are not part of the upstream device defaults.

The verified AP test sysupgrade image is 7,078,166 bytes, leaving
982,762 bytes below the firmware partition limit.

Tested AP images:
  dap1620-20260909-aa0bbbb2-ap-no-ppp-sysupgrade.bin
  dap1620-20260909-aa0bbbb2-ap-no-ppp-initramfs.bin

SHA256:
  e3b9a5861a8b458ce6ff540f052b089cb4d274be84d0d4f430dd9f7d84997be1
  71c9eb3dbac933db7ea3731de2b516301791455069fe49629fbfa0866985935e

The AP build record identifies source commit
60a9fbe. The aa0bbbb string
in the image filenames is a build label and is not sufficient by
itself to identify Git provenance.

LED behaviour:

Use the normal OpenWrt boot LED handling. The status LED is red by
default during startup through the DTS default state. Once
dap1620-leds starts, show solid green when the selected uplink is
connected and blinking amber when it is unavailable.

In Ethernet mode, use physical carrier on lan as the uplink
condition and keep the signal indicators off. In repeater mode,
require an associated and authorized Wi-Fi station and follow
that station's signal strength. No DHCP, DNS or Internet
reachability checks are performed.

Load the LED configuration once when the daemon starts rather than
re-reading UCI on every two-second sample. Restart the service on
the existing dap1620-leds and wireless reload triggers so changed
settings are read again.

Use these configurable signal thresholds:
- Below -75 dBm: first indicator amber
- -75 to below -65 dBm: one green indicator
- -65 to below -55 dBm: two green indicators
- -55 dBm or stronger: three green indicators

These thresholds are policy defaults, not stock firmware values.
Keep the signal indicators off when disconnected or when RSSI
is unavailable. Require explicit station selection when multiple
STA configurations exist.

Do not ship a duplicate GPLv2 COPYING file for the LED shell-script
package; keep GPL-2.0-only package metadata and SPDX headers.

Installation:

Use the U-Boot serial console at 57600 baud, 8N1, without flow
control. Connect Ethernet to a TFTP server at 192.168.0.100.

Start from a cold power-on. Press 4 at the bootloader menu to enter
the command line. For RAM-only testing:

  setenv ipaddr 192.168.0.1
  setenv serverip 192.168.0.100
  tftpboot 0x81000000 openwrt-ramips-mt7620-dlink_dap-1620-a2-initramfs-kernel.bin
  bootm 0x81000000

For persistent installation, cold-start the device and select
U-Boot menu option 2, "Load system code then write to Flash via
TFTP". Confirm with Y and use:

  openwrt-ramips-mt7620-dlink_dap-1620-a2-squashfs-sysupgrade.bin

After flashing completes, disconnect power, allow the device to
power down fully, and reconnect it. Subsequent upgrades can use
the normal OpenWrt sysupgrade procedure.

Development testing on DAP-1620 A2 confirmed:
- DSA initialization and RTL8211E detection through MDIO
- Port 5 operating with rgmii-id
- 1 Gbps full-duplex Ethernet negotiation
- LAN traffic and link recovery
- Detection of both Wi-Fi radios
- Initramfs boot through U-Boot/TFTP
- Flashing and booting a squashfs sysupgrade image
- Cold power cycle after the initial flash
- Ethernet LED behaviour with carrier disconnected and connected
- Wi-Fi station association and authorized-state detection
- Three green signal indicators at an observed RSSI of -54 dBm

A 60-minute bidirectional TCP soak completed successfully at
approximately 250 Mbit/s DAP TX + 217 Mbit/s DAP RX. The sampled
link status remained at 1 Gbps full duplex with no observed link
drops or increases in the observed switch MIB bad-packet/error
counters.

The DUT itself terminated the TCP traffic, so these tests are not
a forwarding or hardware flow-offload benchmark. PPE work such as
openwrt#24515 is outside the scope of this support.

This support builds on Senthil Durairaj's original DAP-1620 A2
work in PR openwrt#17027 and the MT7620 DSA driver introduced in openwrt#24493.

Link: openwrt#17027
Link: openwrt#24493
Link: https://forum.openwrt.org/t/253264

Signed-off-by: Senthil Durairaj <[email protected]>
Signed-off-by: Boyler Fourcade <[email protected]>
Boilerplate4u pushed a commit to Boilerplate4u/openwrt that referenced this pull request Sep 10, 2026
The D-Link DAP-1620 A2 is a dual-band Wi-Fi range extender with one
Gigabit Ethernet port.

Hardware:
- MediaTek MT7620A, 580 MHz
- 64 MiB RAM
- 8 MiB SPI NOR flash
- Integrated MT7620 2.4 GHz Wi-Fi
- MediaTek MT7612E 5 GHz 802.11ac radio over PCIe
- Realtek RTL8211E Gigabit Ethernet PHY
- Reset and WPS buttons
- Red/green status LED and three signal-strength indicators

Connect the RTL8211E on MDIO address 1 to DSA user port 5 through
RGMII1. Use rgmii-id so the PHY supplies both internal clock delays
while the MT7620 MAC-side delays remain disabled. Describe port 6
as the fixed 1 Gbps full-duplex CPU connection.

Select kmod-mt76x2, kmod-phy-realtek, kmod-dsa-mt7620 and
dap1620-leds. Drop swconfig and rssileds, and configure the DSA lan
interface as the default LAN.

Flash layout, with exclusive end addresses:
- U-Boot:   0x000000-0x030000
- NVRAM:    0x030000-0x040000
- Factory:  0x040000-0x050000
- Firmware: 0x050000-0x800000

Calibration and MAC addresses:
- 2.4 GHz calibration: factory + 0x0000
- 5 GHz calibration:   factory + 0x8000
- Ethernet MAC:        factory + 0xffe8
- 2.4 GHz MAC:         Ethernet MAC incremented by 1
- 5 GHz MAC:           factory + 0xffd4

Preserve U-Boot, NVRAM and factory data as read-only partitions.
The MAC increment changes the address value, not the flash offset.

Flash constraints:

U-Boot, NVRAM and factory data occupy the first 320 KiB of the
8 MiB flash, leaving 7872 KiB for firmware. The image must fit
within this limit.

LED behaviour:

Use the normal OpenWrt boot LED handling. The status LED is red by
default during startup through the DTS default state. Once
dap1620-leds starts, show solid green when the selected uplink is
connected and blinking amber when it is unavailable.

In Ethernet mode, use physical carrier on lan as the uplink
condition and keep the signal indicators off. In repeater mode,
require an associated and authorized Wi-Fi station and follow
that station's signal strength. No DHCP, DNS or Internet
reachability checks are performed.

Load the LED policy configuration when the daemon starts. In auto
and repeater modes, load the wireless configuration to select the
station; explicit Ethernet mode does not depend on it. Restart the
service on the existing dap1620-leds and wireless reload triggers
so changed settings are read again.

Use these configurable signal thresholds:
- Below -75 dBm: first indicator amber
- -75 to below -65 dBm: one green indicator
- -65 to below -55 dBm: two green indicators
- -55 dBm or stronger: three green indicators

These thresholds are policy defaults, not stock firmware values.
Keep the signal indicators off when disconnected or when RSSI
is unavailable. Require explicit station selection when multiple
STA configurations exist.

Use GPL-2.0-only package metadata and SPDX headers for the LED
shell-script package.

Installation:

Use the U-Boot serial console at 57600 baud, 8N1, without flow
control. Connect Ethernet to a TFTP server at 192.168.0.100.

Start from a cold power-on. Press 4 at the bootloader menu to enter
the command line. For RAM-only testing:

  setenv ipaddr 192.168.0.1
  setenv serverip 192.168.0.100
  tftpboot 0x81000000 openwrt-ramips-mt7620-dlink_dap-1620-a2-initramfs-kernel.bin
  bootm 0x81000000

For persistent installation, cold-start the device and select
U-Boot menu option 2, "Load system code then write to Flash via
TFTP". Confirm with Y and use:

  openwrt-ramips-mt7620-dlink_dap-1620-a2-squashfs-sysupgrade.bin

After flashing completes, disconnect power, allow the device to
power down fully, and reconnect it. Subsequent upgrades can use
the normal OpenWrt sysupgrade procedure.

Development testing on DAP-1620 A2 confirmed:
- DSA initialization and RTL8211E detection through MDIO
- Port 5 operating with rgmii-id
- 1 Gbps full-duplex Ethernet negotiation
- LAN traffic and link recovery
- Detection of both Wi-Fi radios
- Initramfs boot through U-Boot/TFTP
- Flashing and booting a squashfs sysupgrade image
- Cold power cycle after the initial flash
- Ethernet LED behaviour with carrier disconnected and connected
- Wi-Fi station association and authorized-state detection
- Three green signal indicators at an observed RSSI of -54 dBm

A 60-minute bidirectional TCP soak completed successfully at
approximately 250 Mbit/s DAP TX + 217 Mbit/s DAP RX. The sampled
link status remained at 1 Gbps full duplex with no observed link
drops or increases in the observed switch MIB bad-packet/error
counters.

The DUT itself terminated the TCP traffic, so these tests are not
a forwarding or hardware flow-offload benchmark. PPE work such as
openwrt#24515 is outside the scope of this support.

This support builds on Senthil Durairaj's original DAP-1620 A2
work in PR openwrt#17027 and the MT7620 DSA driver introduced in openwrt#24493.

Link: openwrt#17027
Link: openwrt#24493
Link: https://forum.openwrt.org/t/253264

Signed-off-by: Senthil Durairaj <[email protected]>
Signed-off-by: Boyler Fourcade <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

target/ramips pull request/issue for ramips target

Projects

None yet

Development

Successfully merging this pull request may close these issues.