Repository navigation
Conversation
|
(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 |
|
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! |
|
You could have two branches: one where you do your work and all attempts, and one which is only used for the PR. 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)? |
|
This device has two images: 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! |
|
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... |
|
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. |
Why sync? As long as there's no merge conflict, you don't have to rebase your branch onto |
8ea2651 to
337bd9d
Compare
|
The commit message* should be more informative, and include some basic information about the device. *the message inside the commit, not the github PR text above. |
|
Please have a look at other, accepted commits to see what is considered basic device information... |
Updated. |
|
Please use your real email for the And, please fold the commit description within 74 characters.
|
2caee8b to
fc40d9e
Compare
9f0390a to
b9eb720
Compare
openwrt-ai
left a comment
There was a problem hiding this comment.
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(DTScompatible/model) andDEVICE_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
|
Tested PR #17027 on a D-Link DAP-1620 A2 with OpenWrt 25.12.5 r33051-f5dae5ece4 / Linux 6.12.94. Verified working:
The 5 GHz MT7612E PCIe radio is detected as: U-Boot also validates the flashed image successfully before booting it: 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: |
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 - 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? |
|
|
|
(off topic) @namiltd is DSA relevant for MT76x8 too? |
openwrt-ai
left a comment
There was a problem hiding this comment.
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-norchip 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-limitat line 204) and serves 2.4 GHz from the SoC-internal&wmacat line 189; attribute 2.4 GHz to the MT7620A.
Generated by Claude Code
|
@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.
|
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]>
|
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. |
|
@sendurai @Boilerplate4u You can try to use @@ -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! |
|
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 |
|
Version for testing: 17027.patch |
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]>
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]>
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]>
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]>
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]>
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]>

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