OpenWrt Forum Archive

Topic: Asus RT-N13U build (AA).

The content of this topic has been archived between 12 Sep 2015 and 15 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all,

Here is the latest sysupgrade image built from the stable Attitude Adjustment (12.09.1) branch from svn.

UPDATE: updated to latest revision (svn38971)

Attitude Adjustment (12.09.1) : openwrt-ramips-rt305x-rt-n13u-squashfs-sysupgrade.bin
Image Builder (12.09.1) : OpenWrt-ImageBuilder-ramips_rt305x-for-unknown-x86_64.tar.bz2
Patch: rt-n13u-AA.patch

Use tftp or Asus firmware restoration utility to flash the firmware.

The sysupgrade image includes following packages:

  • kmod-leds-gpio

  • kmod-rt2800-pci

  • kmod-usb-rt305x-dwc_otg

  • kmod-fs-ext4

  • kmod-fs-vfat

  • kmod-usb-storage

  • kmod-usb-acm

  • kmod-usb-serial-option

  • kmod-usb-printer

  • wpad-mini

  • wireless-tools

  • luci

  • luci-app-ddns

  • luci-app-qos

  • luci-proto-3g

  • luci-theme-bootstrap

You can install additional packages with opkg or using luci web interface. Go through the OpenWRT wiki for installation/configuration help.

http://wiki.openwrt.org/doc/howto/firstlogin
http://wiki.openwrt.org/doc/uci/wireless

Build Instructions:

If you want to build the image yourself, follow the instructions bellow:

  • install build dependencies (see wiki)

  • get the .config from the image builder

Then build like this:

> svn co svn://svn.openwrt.org/openwrt/branches/attitude_adjustment
> cd attitude_adjustment
> patch -p0 < ../rt-n13u-AA.patch
> cp ../dot-config-from-imagebuilder
> make menuconfig
> ionice -c 3 nice -n19 make -j4 V=s

Adjust -j4 option to match with your CPU (mine is quadcore i7, so using 4 cores). After the build is complete you should see an image builder archive in a bin/rampis directory. Extract the image builder and issue following command:

make image \
    PROFILE="RT-N13U" \
    PACKAGES="kmod-leds-gpio kmod-rt2800-pci wpad-mini kmod-usb-rt305x-dwc_otg \
    kmod-fs-ext4 \
    kmod-fs-vfat \
    kmod-usb-storage \
    kmod-usb-acm \
    kmod-usb-serial-option \
    kmod-usb-printer \
    wireless-tools \
    luci \
    luci-app-ddns \
    luci-app-qos \
    luci-proto-3g \
    luci-theme-bootstrap \

A final openwrt-ramips-rt305x-rt-n13u-squashfs-sysupgrade.bin image is generated in current directory. You can add/remove packages as you wish.

Enjoy!

(Last edited by amitg0123 on 30 Nov 2013, 23:54)

Yes. I myself testing on B1 revision only. BTW, the work has been accepted and applied to the trunk. You can now build it yourself from the trunk sources.

They are same but as I built the kernel with some different configuration the opkg complains about version mismatch. You can safely install them with --force-depends option.

The snapshot build now have n13u support smile

Enjoy!

No luck with the sysupgrade snapshot image. The device hangs after the upgrade.

zhadoom wrote:

No luck with the sysupgrade snapshot image. The device hangs after the upgrade.

Continue with my Attitude Adjustment build for stable experience. My router is running flawlessly.

amitg0123 wrote:
zhadoom wrote:

No luck with the sysupgrade snapshot image. The device hangs after the upgrade.

Continue with my Attitude Adjustment build for stable experience. My router is running flawlessly.

Ok. I'm installing the packages with the force-depends option. The router looks working ok until now.

@amitg0123 Amit bhayya, I had this same router (Asus RT-N13u B1) running dd-wrt. After seeing this article (http://klseet.com/index.php/rt-n13u-b1), I got interest on Openwrt. So I flashed my router with your FW build (openwrt-ramips-rt305x-rt-n13u-squashfs-sysupgrade.bin)  using Asus FW restoration utility. Everything went well. I could SSH into router!!

But my WAN port doesn't work as it should. I'hv gone through Openwrt wiki to change ip address,gateway etc. I even tried changing parameters like VLAN, Interfaces in  '/etc/config/network' many times.  Nothing worked. Please help me....

Here is my network config file  (/etc/config/network) after adding WAN ip address details.

***************'WAN' NOT WORKING****************
config interface 'loopback'
    option ifname 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

config interface 'lan'
    option ifname 'eth0.1'
    option type 'bridge'
    option proto 'static'
    option ipaddr '192.168.1.1'
    option netmask '255.255.255.0'
    option macaddr '00:0c:43:41:46:32'

config interface 'wan'
    option ifname 'eth0.2'
    option macaddr '00:0c:43:41:46:33'
    option proto 'static'
    option ipaddr '192.168.10.66'
    option netmask '255.255.255.0'
    option gateway '192.168.10.1'
    option dns '8.8.8.8 8.8.4.4'

config switch
    option name 'rt305x'
    option reset '1'
    option enable_vlan '1'

config switch_vlan
    option device 'rt305x'
    option vlan '1'
    option ports '0 1 2 3 5  6t'

config switch_vlan
    option device 'rt305x'
    option vlan '2'
    option ports '4  6t'

amitg0123 wrote:

Attitude Adjustment (rc1) : https://www.dropbox.com/s/sd9yduibpg7h5 … pgrade.bin

could you please provide config for this build? thanks.

cvkjay wrote:

But my WAN port doesn't work as it should. I'hv gone through Openwrt wiki to change ip address,gateway etc. I even tried changing parameters like VLAN, Interfaces in  '/etc/config/network' many times.  Nothing worked. Please help me....

have the same problem. but my wan is pppoe. tcpdump didn't see any PADO packets on my eth0.2 interface from provider ;(

Finally, I made it. OpenWRT on ASUS RT-N13u B1 working fine. Only thing is, after flashing, login(telnet) to router though LAN at first time, assign ip addresses to required interfaces. Activate WIFI by changing '/etc/config/wireless'. Then login to ISP web based interface via WIFI  and make sure you can ping google.com (for example).

At first, I couldn't get to ISP login form through my system connected to LAN port & even ping to my ISP gateway failed. So  I thought that WAN port was not working. Actually it works!!! Also no need to configure VLAN, they are working fine, by default.


Proceed according to the guide www.klseet.com/index.php/rt-n13u-b1 It is awesome smile Now you can install LUCI web interface and all other goodies you want.

Enjoy smile

my network config file ( /etc/config/network)
***************** Everything works fine!!! ASUS RT-N13u B1 \m/**************
config 'interface' 'loopback'
    option 'ifname' 'lo'
    option 'proto' 'static'
    option 'ipaddr' '127.0.0.1'
    option 'netmask' '255.0.0.0'

config 'interface' 'lan'
    option 'type' 'bridge'
    option 'proto' 'static'
    option 'ipaddr' '192.168.1.1'
    option 'netmask' '255.255.255.0'
    option 'ifname' 'eth0.1'

config 'interface' 'wan'
    option 'ifname' 'eth0.2'
    option '_orig_ifname' 'eth0.2'
    option '_orig_bridge' 'false'
    option 'proto' 'static'
    option 'ipaddr' '192.168.10.66'
    option 'netmask' '255.255.255.0'
    option 'gateway' '192.168.10.1'
    list 'dns' '8.8.8.8'
    list 'dns' '8.8.4.4'


config switch
    option name 'rt305x'
    option reset '1'
    option enable_vlan '1'

config switch_vlan
    option device 'rt305x'
    option vlan '1'
    option ports '0 1 2 3 5  6t'

config switch_vlan
    option device 'rt305x'
    option vlan '2'
    option ports '4  6t'

cvkjay, thanks for advise, but I already installed and configured couple of OpenWrt devices. problem only with RT-N13U.

my configuration more complex than yours. wink
ISP provide VLANs for services, VID 1616 for IPTV, VID 2626 for SIP, and Untagged for PPPoE (Internet).

I have configured forwarding vlan 1616 from tagged WAN interface to untagged port3 - STB works fine.
But PPPoE didn't work neither on eth0 nor on eth0.1 sad

@mmalchuk I just posted the image builder for AA rc1. You can find the config (.config) inside the tarball.

I used https://www.dropbox.com/s/sd9yduibpg7h5 … pgrade.bin
Downloaded the bin file. And Flashed it successfully using Asus restoration tool. I had ddwrt installed prior.
I could telnet and then SSH fine. Everything was working as it should. WAN + LAN. Didnt check WiFi. But the moment I tried to install Luci. I had a lot of collected errors. I believe they were due to the kernel mismatch. So I used the --force-depends option. But once installation was complete... it still had the same Collected errors. And my Router boots up, but I can no longer connect to it via telnet / SSH and it just hangs. This only happens after I try and install Luci. This is my first time venturing into Open Wrt any help is much appreciated!

Hi amitg0123.

I am using ASUS RTN-13U B1 Router. Can you give me full procedure to install your community release of Openwrt FW.

okigan wrote:

@amitg0123 or to the forum: the above location does not have any rt305x images, which one can be installed then?

I have updated the first post. The official snapshot build doesn't work yet.

Cannot figure out how and what to do after flashing. WAN is not working. Also I am not able to understand what cvkjay said above. Please help me someone. sad

(Last edited by gaurav.das on 6 Mar 2013, 19:28)

is Download the above AA rc1 build still the lastest supportet firmware for
ASUS RT-N13U-B1 or is there a newer one out there?

Got wan working after a reboot. Moving on too LuCi gui install.


I use the UT_RT_N13UB1_4139
flashed the ASUS RT-N13U-B1 with "openwrt-ramips-rt305x-rt-n13u-squashfs-sysupgrade.bin"

now the power led is on and lan 1 where im connected
how do i continue?

Before all this I restored the device following this guide.
http://www.klseet.com/index.php/asus/as … ation-win7

now im stuck??

http://klseet.com/index.php/rt-n13u-b1

Download the above AA rc1 build - done used above bin file
Use the stock ASUS Firmware Restoration to flash the image (Refer HERE for some idea) - done

how to i get further?

Follow steps from HERE to install LuCI WebGui 
Refer HERE for UniFi setup
Follow steps from HERE to setup ExtRoot & Swap on external USB HDD
Follow steps from HERE to install & setup Transmission

(Last edited by Always on 28 Mar 2013, 10:05)