HW limitations of the switch (see driver source target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c):

  • No large frame support (PKT_MAX_LEN at most 1536)
  • Can't have untagged vlan and tagged vlan on one port at the same time, though this might be possible using the undocumented PPE.

To build:

  • Read and follow the The build system documentation
  • Choose Ralink RT288x/RT305x as target and RT305x based boards as subtarget.
  • The generated firmware you want to use for this device is openwrt-ramips-rt305x-rt-n13u-squashfs-sysupgrade.bin


  • Set your computer to a static IP (Other IPs will NOT work).
  • Plug your computer into any LAN port
  • Turn the device off and wait a few seconds. Hold the Restore button in with a pen and insert power. Sometimes Restore button does not work, but WPS button does, use that.
  • Wait until the WPS light blinks slowly and then let go of the Reset button. Your router is now in recovery mode and has the IP Note it will not respond to pings.
  • Send a firmware image using command-line tftp; eg. from Linux:
$ tftp
tftp> binary
tftp> connect
tftp> put openwrt-ramips-rt305x-rt-n13u-squashfs-sysupgrade.bin
Sent 3407876 bytes in 1.2 seconds
tftp> quit

Default sent size was 2490464. Do not know why. May be image was changed or size from older release.

Сurrent image has size:3407876 and md5:734ebcd026c293a143786446bb918f11.

  • or using curl
$ curl -T openwrt-ramips-rt305x-rt-n13u-squashfs-sysupgrade.bin tftp://
  • Wait a minute or two as the device loads the new firmware. You can ping the device at to know when OpenWrt comes online. The WPS light will flash rapidly when OpenWRT begins to initialize, and stay solid when it has finished booting.

This procedure can be used to flash both OpenWRT images or the ASUS factory firmware on the website. If flushing from DD-WRT make sure restore nvram to defaults (otherwise erratic behavior may occur - huge packet loss)

Now follow Log into your Router Running OpenWrt to learn more about how to set up your device.

Serial port already has headers soldered. It's the 4-pin header in the middle of the board. 3.3V, 57600 8N1. Pin 1 is labeled on the board with a thicker white outline.

Pin 1 Pin 2 Pin 3 Pin 4
Connecting to serial

On Mac OS X: screen /dev/tty.SLAB_USBtoUART 57600

Asus RT-N13U Flash Layout

FIXME add layout

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2024/02/12 08:58
  • by