Skip to content

Commit

Permalink
ipq807x: add Dynalink DL-WRX36
Browse files Browse the repository at this point in the history
Dynalink DL-WRX36 is a AX WIFI router with 4 1G and 1 2.5G ports.

Specifications:

    •     CPU: Qualcomm IPQ8072A Quad core Cortex-A53 2.2GHz
    •     RAM: 1024MB of DDR3
    •     Storage: 256MB Nand
    •     Ethernet: 4x 1G RJ45 ports (QCA8075) + 1 2.5G Port (QCA8081)
    •     WLAN:
          2.4GHz: Qualcomm QCN5024 2x2 802.11b/g/n/ax 1174 Mbps PHY rate
          5GHz: Qualcomm QCN5054 4x4 802.11a/b/g/n/ac/ax 2402 PHY rate
    •     1x USB 3.0

    •     1 gpio-controlled dual color led (blue/red)

            • Buttons: 1x soft reset / 1x WPS
            • Power: 12V DC jack

        A poulated serial header is onboard (J1004)
        the connector size is a 4-pin 2.0 mm JST PH.
        RX/TX is working, u-boot bootwait is active, secure boot is enabled.

        Note: serial is completely deactivated in the stock firmware image.

        Installation Instructions:

            • obtain serial access
            • stop auto boot
            • saveenv (write the default env to the flash)
            • check which mtd-part is rootfs by invoking "smeminfo"

		It's either:

		18: rootfs           0x0000ffff        0x7a00000        0x6100000

		or:

		18: rootfs         0x0000ffff        0x1000000        0x6100000

		Set mtdids:

		setenv mtdids nand0=nand0

		if rootfs is: 0x7a00000        0x6100000

		setenv mtdparts mtdparts=nand0:0x6100000@0x7a00000(fs)

		if rootfs is: 0x1000000        0x6100000

		setenv mtdparts mtdparts=nand0:0x6100000@0x1000000(fs)

		saveenv

            • tftpboot the initramfs image
              (openwrt-ipq807x-generic-dynalink_dl-wrx36-initramfs-fit-uImage.itb)

            • bootm

            • Check the rootfs partition number:
	      cat /proc/mtd
	      rootfs should be mtd18

            • SCP the factory image to the device and do a ubiformat
              to the right rootfs partition:

	      ubiformat /dev/mtd18 -y -f /path_to/factory_image

            • Due to secure boot is active, we need to change the bootcmd to:

	      fw_setenv bootcmd "setenv bootargs console=ttyMSM0,115200n8 ubi.mtd=rootfs
	      root=mtd:rootfs rootfstype=squashfs rootwait; ubi part fs;
	      ubi read 0x44000000 kernel; bootm 0x44000000#config@rt5010w-d350-rev0"

            • reboot

        Note: this PR adds only single partition support, that means sysupgrade is
              upgrading the current rootfs partition

Signed-off-by: Dirk Buchwalder <[email protected]>
  • Loading branch information
Dirk Buchwalder authored and robimarko committed Dec 26, 2022
1 parent 4adf1fe commit fcb3391
Show file tree
Hide file tree
Showing 8 changed files with 570 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package/boot/uboot-envtools/files/ipq807x
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ touch /etc/config/ubootenv
board=$(board_name)

case "$board" in
dynalink,dl-wrx36)
idx="$(find_mtd_index 0:appsblenv)"
[ -n "$idx" ] && \
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x20000" "2"
;;
edgecore,eap102)
idx="$(find_mtd_index 0:appsblenv)"
[ -n "$idx" ] && \
Expand Down
2 changes: 2 additions & 0 deletions package/firmware/ipq-wifi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ endef
ALLWIFIBOARDS:= \
aruba_ap-365 \
devolo_magic-2-wifi-next \
dynalink_dl-wrx36 \
edgecore_eap102 \
edgecore_ecw5410 \
edgecore_oap100 \
Expand Down Expand Up @@ -119,6 +120,7 @@ endef

$(eval $(call generate-ipq-wifi-package,aruba_ap-365,Aruba AP-365))
$(eval $(call generate-ipq-wifi-package,devolo_magic-2-wifi-next,devolo Magic 2 WiFi next))
$(eval $(call generate-ipq-wifi-package,dynalink_dl-wrx36,Dynalink DL-WRX36))
$(eval $(call generate-ipq-wifi-package,edgecore_eap102,Edgecore EAP102))
$(eval $(call generate-ipq-wifi-package,edgecore_ecw5410,Edgecore ECW5410))
$(eval $(call generate-ipq-wifi-package,edgecore_oap100,Edgecore OAP100))
Expand Down
Binary file not shown.
3 changes: 3 additions & 0 deletions target/linux/ipq807x/base-files/etc/board.d/02_network
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ ipq807x_setup_interfaces()
local board="$1"

case "$board" in
dynalink,dl-wrx36)
ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4" "eth0"
;;
edgecore,eap102)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ case "$FIRMWARE" in
case "$board" in
edgecore,eap102|\
edimax,cax1800|\
dynalink,dl-wrx36|\
qnap,301w|\
redmi,ax6|\
xiaomi,ax3600|\
Expand Down
3 changes: 3 additions & 0 deletions target/linux/ipq807x/base-files/lib/upgrade/platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ platform_check_image() {

platform_do_upgrade() {
case "$(board_name)" in
dynalink,dl-wrx36)
nand_do_upgrade "$1"
;;
edgecore,eap102)
active="$(fw_printenv -n active)"
if [ "$active" -eq "1" ]; then
Expand Down
Loading

0 comments on commit fcb3391

Please sign in to comment.