Dynalink DL-WRX36

From DD-WRT Wiki

Revision as of 19:06, 19 June 2024 by Kernel-panic69 (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Contents


[edit] Hardware Specifications

FCC ID H8NRT5010W-D350
CPU Qualcomm IPQ8072A @2200 MHz
RAM 1024
Flash 256 MB
Switch Atheros QCA8081
2.4GHz Radio Qualcomm QCN5024
5GHz Radio Qualcomm QCN5054

[edit] Installation

 **WARNING**:  DO NOT PERFORM A 30/30/30 VIA RESET BUTTON
 **NOTE**:  SEE Where do I download firmware? for information on where to download firmware files.

[edit] Prerequisites

 **NOTE**: Supported since build 56820

  1. Download the factory-to-ddwrt.ubi file from the dynalink-dl-wrx36 folder.
  2. Download the openwrt-23.05.3-ipq807x-generic-dynalink_dl-wrx36-initramfs-uImage.itb file from OpenWRT.
  3. Obtain a FAT32-formatted USB drive. It will only need ~12MB of total space, so any flash drive should do.
  4. Copy the initramfs image to the FAT32-formatted flash drive.
  5. Disconnect the USB flash drive from your computer and plug it into the USB port on the back of the router.

[edit] Procedure

 **CAUTION**:  After you start this flash procedure, do not try to go online, turn off the router, or do anything else to the router until you are finished.
 **NOTE**: This procedure covers how to flash via SSH. For serial flash, refer to the OpenWRT Wiki.

  1. Connect your PC via Ethernet cable to one of the LAN (labeled ETH1-ETH4) ports on the back of your router.
  2. Open a browser and go to http://login.dynalink or http://192.168.216.1.
    • Enter the credentials found on the bottom of the router.
  3. Enable SSH on the router using one of the following options:
    • A premade backup config file which enables SSH can be found on the OpenWRT forum. Download it to your computer then upload it to the router by going to System Settings > Configuration and Reset tab, wait for the reboot, then logon using SSH as: admin / askey1234. Note this is the Askey OEM login which will change to root login once OpenWRT is flashed.
    • Manually enable SSH access as described in this OpenWRT forum post.
  4. Connect to the router at 192.168.216.1 via SSH; Change the boot command so it loads the initramfs image on next boot (fallback to OEM firmware is provided):
    # fw_setenv bootcmd 'usb start && fatload usb 0:1 0x44000000 openwrt-23.05.3-ipq807x-generic-dynalink_dl-wrx36-initramfs-uImage.itb && bootm 0x44000000; bootipq'
  5.  **NOTE**:  You may optionally use step 14 as a failsafe in case something goes wrong.

  6. Reboot the device to boot the initramfs:
    # reboot
  7. Upon reboot, connect to the router via WinSCP or other scp method
    • The default LAN IP of the booted initramfs is 192.168.1.1. If you're unable to connect to 192.168.1.1, the initramfs boot failed, and the router is still running the Dynalink firmware.
    • WinSCP & scp now default to the SFTP protocol, make sure to tell your application to use the scp protocol.
  8. Copy the DD-WRT factory image to the router and store it in /tmp:
    $ scp factory-to-ddwrt.ubi root@192.168.1.1:/tmp/factory_image.ubi
  9. Connect to the device over SSH (on a LAN port)
  10. Check the MTD partition table. rootfs and rootfs_1 should be mtd18 and mtd20 depending on the current OEM slot.
    # cat /proc/mtd
  11. Format both rootfs partitions:
    # ubiformat /dev/mtd18 -y -f /tmp/factory_image.ubi
    # ubiformat /dev/mtd20 -y -f /tmp/factory_image.ubi
  12. Set the mapping for the U-Boot device id:
    # fw_setenv mtdids 'nand0=nand0'
  13. Get the offset of mtd18 to determine the current OEM slot:
    # cat /sys/class/mtd/mtd18/offset
    • If the current offset is 16777216 (0x1000000), the current OEM slot is 1.
    • If the current offset is 127926272 (0x7a00000), the current OEM slot is 2.
  14. Define the flash partitions:
    • If the current OEM slot is 1, run:
      # fw_setenv mtdparts 'mtdparts=nand0:0x6100000@0x1000000(fs),0x6100000@0x7a00000(fs_1)'
    • If the current OEM slot is 2, run:
      # fw_setenv mtdparts 'mtdparts=nand0:0x6100000@0x7a00000(fs),0x6100000@0x1000000(fs_1)'
  15. Set the boot command to use the USB as a fail-safe in case something goes wrong. Make sure that you set the filename below to match the actual image you placed on the USB (e.g. snapshots use qualcommax), as this example uses the 23.05.3 name. More details about this fail-safe method can be found in this forum comment.
    # fw_setenv bootcmd 'run openwrtusb; run openwrtboot'
    # fw_setenv openwrtboot 'setenv bootargs console=ttyMSM0,115200n8 ubi.mtd=rootfs rootfstype=squashfs rootwait; ubi part fs; ubi read 0x44000000 kernel; bootm 0x44000000#config@rt5010w-d350-rev0'
    # fw_setenv openwrtusb 'usb start && fatload usb 0:1 0x44000000 openwrt-23.05.3-ipq807x-generic-dynalink_dl-wrx36-initramfs-uImage.itb && bootm 0x44000000'
  16.  **NOTE**:  Power down the router and remove the USB drive and power up the router insead of rebooting, or make the following changes to the boot command above and proceed to the next step:
    # fw_setenv bootcmd 'run openwrtboot; run openwrtusb'
  17. Reboot the device:
    # reboot
  18. If your device successfully boots into DD-WRT, you can set the boot command to no longer use the USB as a fail-safe or leave the boot command as-is (preferred for recovery).
    # fw_setenv bootcmd 'setenv bootargs console=ttyMSM0,115200n8 ubi.mtd=rootfs rootfstype=squashfs rootwait; ubi part fs; ubi read 0x44000000 kernel; bootm 0x44000000#config@rt5010w-d350-rev0'
  19. In your browser, go to http://192.168.1.1
    • You should be greeted by the password change page of the DD-WRT webUI.
  20. Set username (optional, default username is root) and password (enter password twice, these *must* match and are case-sensitive).
    • You should be greeted by the System Info page of the DD-WRT webUI
  21. Click on Setup to begin configuration to your needs.
    • You will be required to enter username and password previously set.
  22. Click Save on each page (unless otherwise noted in a specific tutorial).
  23. When finished, Click on Services or Administration tab and click Reboot.

[edit] Upgrading (or Downgrading) DD-WRT

 **NOTE**:  SEE Where do I download firmware? for information on where to download firmware files.
 **WARNING**:  Do not use this file to go from Stock to DD-WRT.
 **NOTE**:  Reset to defaults is recommended if you are upgrading from a very old build (> 6 months).
 **NOTE**:  Do not restore a backup from one version to another version of DD-WRT, as nvram variable names may have changed.

[edit] Prerequisites

  1. Download the dd-wrt-webflash.bin from the dynalink-dl-wrx36 folder.

[edit] Procedure

  1. Connect your computer to your router with an Ethernet cable.
  2. Enter http://192.168.1.1 (or whatever you set your router IP to) into a web browser.
  3. Enter username and password as required.
  4. Go to Administration -> Firmware Upgrade
    • Leave Do Not Reset selected for After Flashing
  5. Click on Browse and select the appropriate previously downloaded tl-wdr3600-webflash.bin file specific to your router.
  6. Click Open
  7. Click Upgrade
    • The firmware update starts and the router restarts. The firmware update process takes about five minutes.

     **CAUTION**:  After you start the firmware update, do not try to go online, turn off the router, or do anything else to the router until it finishes restarting.

  8. If the webUI does not automatically go back to the Setup -> Basic Setup page, or does not stop at the progress bar page to allow you to click Continue after waiting at least five minutes (i.e. if you get a "Connection Reset" or other error page in your browser), enter http://192.168.1.1 (or whatever your router IP address is) manually or click and hold the "Back" button and select the appropriate history entry.

[edit] Revert To Stock Firmware

WIP

[edit] Recovery

WIP

[edit] Notes, Links, Further Reading