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.

gaurav.das wrote:

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

in the terminal type "reboot"

after it reboot you should get wan working

test by ping a website.

how do you build the "Image Builder (AA rc1)" ???

Will try this today! Subscribed to the topic, will look for future builds smile

Have you guys tried to build on trunk (barrier breaker)? B1 has 8MB Flash right? I'm producing file is too big on compiling it.

Help please!  No internet connection.

I recently changed ISPs from cable internet to DSL.  In my cable internet setup, the network was doubled natted because the cable modem was password protected by the ISP so I could not change it to bridge mode.  Now that I'm using DSL from a different ISP, I was able to change the DSL modem to bridge mode and connect the ASUS RTN13UB1 using its WAN port.  But I can't seem to make it work!

Here's a little more info:
My router can obtain an IP address on the WAN interface eth0.2 via DHCP.  I can ping this IP address (self) but I cannot ping the gateway!  Here are some of the other things I've tried so far:

1. Connect the cable from the DSL modem directly to my PC.  Internet works fine!  My PC also successfully obtained a public IP address.

2. Transferred cable back to the router.  Once again it gets an IP address successfully but I cannot ping the gateway.

3. Stopped and disabled the firewall service on the router but still cannot ping the gateway

4. Restored router to default (wiped out all config) and still cannot ping the gateway

Here are other info:

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 proto 'dhcp'
        option macaddr '00:0c:43:41:46:33'

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'

Interface info:

br-lan    Link encap:Ethernet  HWaddr 00:0C:43:41:46:32
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:976 errors:0 dropped:0 overruns:0 frame:0
          TX packets:576 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:67472 (65.8 KiB)  TX bytes:112874 (110.2 KiB)

eth0      Link encap:Ethernet  HWaddr 00:0C:43:41:46:32
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2418 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1618 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:561362 (548.2 KiB)  TX bytes:188024 (183.6 KiB)
          Interrupt:5

eth0.1    Link encap:Ethernet  HWaddr 00:0C:43:41:46:32
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1021 errors:0 dropped:4 overruns:0 frame:0
          TX packets:591 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:76495 (74.7 KiB)  TX bytes:113564 (110.9 KiB)

eth0.2    Link encap:Ethernet  HWaddr 00:0C:43:41:46:33
          inet addr:112.206.60.221  Bcast:112.206.63.255  Mask:255.255.224.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1385 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1027 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:439489 (429.1 KiB)  TX bytes:52994 (51.7 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1317 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1317 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:113948 (111.2 KiB)  TX bytes:113948 (111.2 KiB)

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         112.206.32.1    0.0.0.0              UG    0      0        0     eth0.2
112.206.32.0    0.0.0.0         255.255.224.0   U     0      0        0     eth0.2
192.168.1.0     0.0.0.0         255.255.255.0    U     0      0        0     br-lan

Any help is highly appreciated!

amitg0123 wrote:

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.

Theres a option in kernel for that.
I cant remenber right now exactly where it is, but when compiling in a PC linux distro, that option description says something like "Let using modules not compiled with this kernel, does not match checksum"

gendouhydeist wrote:

Have you guys tried to build on trunk (barrier breaker)? B1 has 8MB Flash right? I'm producing file is too big on compiling it.

The last barrier breaker (put in snapshot trunk yesterday) does not boot up.
Something wrong in compilinkg I guess. (the previeous one whas ok, but after repository update, all modules that I was not installed before, wasn't in there anymore.)

Router Asus RT-N13U B1

OpenWrt Attitude Adjustment 12.09-rc1 / LuCI 0.11 Branch (0.11+svn9425)


I have a 4-port usb hub connected. A printer, and a 150GB HDD in an external bay that is self powered (external bay plugs into AC outlet for power), and samba configuration in openwrt. The printer works fine for printing over my network. Whenever I try to transfer a large file over WIFI (say 500MB) the transfer copies about 85-90% of the file over about 4 minutes, and then the transfer connectivity is lost, and the full transfer never completes. WIFI connectivity on the laptop or smartphone doesn't drop when the file transfer drops.  Has anyone else had this issue? If so, is there a way to resolve this issue?

(Last edited by kgoerbig on 30 Apr 2013, 18:07)

Your AA RC1 image is great. I tried to build myself a AA release image with config file ramips defaults in Mac OS X, but ended with compilation errors. Do you mind building a final AA image and release it?
Thanks in advanced.

P.S.: I found sl-r7205 is identical hardware with ASUS RT-N13U B1 (http://wiki.openwrt.org/toh/asus/rt-n13u). But when I tried to flash r7205's image (http://downloads.openwrt.org/attitude_a … pgrade.bin) to my router, it bricked. Can I ask why this is happened?

P.S.: Can't find any related trunk image from http://downloads.openwrt.org/snapshots/trunk/ramips/ ... :-(

(Last edited by jilingshu on 15 Jul 2013, 16:20)

@jilingshu yes, I just noticed the snapshot builds are not available.

I am unable to find much spare time because of too much work now a days. I will give it a try by next weekends.

Hi all,

I have just uploaded new Attitude Adjustment (12.09.1) sysupgrade image. See the first post for links and details.

Enjoy!

I used --force-depends to install kmod-usb-net, kmod-usb-net-rndis, kmod-usb-net-cdc even with the kernel magic mismatch. Looks like the modules are still not loading correctly, though:


[   12.980000] hub 1-0:1.0: USB hub found
[   12.990000] hub 1-0:1.0: 1 port detected
[   13.100000] usbcore: registered new interface driver cdc_acm
[   13.110000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   13.150000] usbnet: Unknown symbol mii_ethtool_sset (err 0)
[   13.170000] usbnet: Unknown symbol mii_link_ok (err 0)
[   13.180000] usbnet: Unknown symbol mii_nway_restart (err 0)
[   13.190000] usbnet: Unknown symbol mii_ethtool_gset (err 0)
[   13.220000] usbcore: registered new interface driver usblp
[   13.250000] usbcore: registered new interface driver usbserial
[   13.260000] USB Serial support registered for generic
[   13.270000] usbcore: registered new interface driver usbserial_generic
[   13.290000] usbserial: USB Serial Driver core
[   13.430000] Initializing USB Mass Storage driver...
[   13.440000] usbcore: registered new interface driver usb-storage
[   13.450000] USB Mass Storage support registered.
[   13.480000] cdc_ether: Unknown symbol usbnet_get_ethernet_addr (err 0)
[   13.490000] cdc_ether: Unknown symbol usbnet_suspend (err 0)
[   13.500000] cdc_ether: Unknown symbol usbnet_get_endpoints (err 0)
[   13.520000] cdc_ether: Unknown symbol usbnet_disconnect (err 0)
[   13.530000] cdc_ether: Unknown symbol usbnet_probe (err 0)
[   13.540000] cdc_ether: Unknown symbol usbnet_resume (err 0)
[   13.710000] rndis_host: Unknown symbol usbnet_open (err 0)
[   13.730000] rndis_host: Unknown symbol usbnet_skb_return (err 0)
[   13.740000] rndis_host: Unknown symbol usbnet_tx_timeout (err 0)
[   13.750000] rndis_host: Unknown symbol usbnet_suspend (err 0)
[   13.760000] rndis_host: Unknown symbol usbnet_start_xmit (err 0)
[   13.780000] rndis_host: Unknown symbol usbnet_stop (err 0)
[   13.790000] rndis_host: Unknown symbol usbnet_generic_cdc_bind (err 0)
[   13.800000] rndis_host: Unknown symbol usbnet_disconnect (err 0)
[   13.810000] rndis_host: Unknown symbol usbnet_cdc_unbind (err 0)
[   13.820000] rndis_host: Unknown symbol usbnet_probe (err 0)
[   13.840000] rndis_host: Unknown symbol usbnet_resume (err 0)

Any ideas on why this kernel isn't playing well with the modules for cdc ethernet and rndis?

Thanks!

@brilliantdonkey

Not sure. It may be because of different configuration while comping the kernel. Generally, kernel modules should be compatible if they are from same version.

I have attached the patch to the first post. You can try compiling the openwrt yourself. Go through the wiki for details on how to build openwrt from sources. Get the .config file from the image builder to get started with. It's configured to build minimum modules I found useful for my own use.

@amitg0123 I built my own trunk build. During this process, I found several problems existed in current trunk. I also submitted a bug report but seems no one read it yet :-(

BTW: I'm building a complete version(all feeds) of OpenWRT for ramips 305x devices on my server. When it complete, I may post a link of it if it is allowed.

(Last edited by jilingshu on 30 Jul 2013, 06:12)

@jilingshu yes, there are some big changes going on in trunk and seems unstable. I don't have much time to see what's going on.

The AA build I posted here is working perfectly for my needs and may be good enough for most of the users. I recommend you build AA instead as it's stable and could benefit others who can't compile themselves.

When make the image with the patch, could not get the correspondent openwrt image for Asus RT-N13U, so I revise the patch, it works.

how?
replace all the RT-N13U with RTN13U, rt-n13u with rtn13u in the patch file on the 1st floor. and re-patch the files.

amitg0123 wrote:

@brilliantdonkey

Not sure. It may be because of different configuration while comping the kernel. Generally, kernel modules should be compatible if they are from same version.

I have attached the patch to the first post. You can try compiling the openwrt yourself. Go through the wiki for details on how to build openwrt from sources. Get the .config file from the image builder to get started with. It's configured to build minimum modules I found useful for my own use.

Thanks for the pointers amitg! I tried doing what you said (downloaded the openwrt source, and applied your patch), but it still wouldn't show the RT-N13U as a target in menuconfig. Is there any trick to getting it to show up in there? Or is there any chance you could build in (kmod-usb-net, kmod-usb-net-rndis, kmod-usb-net-cdc) in your next version? smile

@guge0007 thanks for reporting, I never tried though. See the rest of the reply for how I built the image.

@brilliantdonkey follow the build instructions give in first post

(Last edited by amitg0123 on 15 Oct 2013, 14:21)

Thanks, I was able to build an image with the modules I needed and it works great!

Hello, I'm having Asus RT-N13U rev B1 with external disks connected (Flash for ExtRoot with ext4 and HDD with ntfs-3g as storage)  . My problem is, when running process with high ntfs disk usage, my router is hanging out wifi connection. My guess is, that its caused because of high CPU load. My notebook shows, that router is still transmitting wifi signal, but it is not making any response. I have tried to change niceness of participating processes, but with no luck. Next symptom is, that watchdog when enabled reboots router after while of high ntfs disk usage (even if wifi connection is still not dropped off!). When disabling watchdog, router can work longer with ntfs disk, but still there is problem with loosing wifi connection.

Before OpenWRT I was using amitg's DD-WRT mod and these troubles didn't appeared.

Thank you very much for any advice.

(Last edited by m9racent on 22 Aug 2013, 13:29)

amitg0123 wrote:

Hi all,

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


from what this is saying extroot is broken ? patch URL is failsause file it wont load or else I could give it a try and compile/build myself....

https://forum.openwrt.org/viewtopic.php?pid=214714#p214714

(Last edited by operat0r on 14 Oct 2013, 15:52)

@m9racent I never used ntfs myself so can't comment. I have used ext4 disk for a while without any issue.

@operat0r I am not sure. That's about trunk version which is quite different then the AA branch. If you think this is the case with this build also, try building with the latest svn sources of AA branch as described at the first post or report to operwrt dev team.

This patch is hardly doing anything major then adding support for a new device. So the source base is almost same as other officially supported builds. You should try reporting to openwrt dev team. They can have better idea on the issues.

amitg0123 wrote:

@m9racent I never used ntfs myself so can't comment. I have used ext4 disk for a while without any issue.

@operat0r I am not sure. That's about trunk version which is quite different then the AA branch. If you think this is the case with this build also, try building with the latest svn sources of AA branch as described at the first post or report to operwrt dev team.
.

Meh I tried .. guess im not building it right... pushed the openwrt-ramips-rt305x-uImage.bin via Asus restore utill no ping to 192.168.1.1 hmm

included: http://downloads.openwrt.org/attitude_adjustment/12.09/ramips/rt305x/config.ramips_rt305x ( this looks nothing like the profile examples ... not sure what this files is )

root@ubuntu:~/OW/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-i486# make image PROFILE='config.ramips_rt305x' 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'

(Last edited by operat0r on 14 Oct 2013, 21:58)

@operat0r follow the build instructions given in first post

amitg0123 wrote:

@operat0r follow the build instructions given in first post

* im not trying to build that rel of AA trying to build something else newer that has extroot working on it ( why would I build  image you already provided  )
* the patch file does not even open so even if I wanted to I could not

The current image builders don't have anything on the RT-N13U so not sure what 'profile' to use.. but I guess it does not matter as you compile with this but it did not work?

Other then packages what else do I need to change from the profile to make it build for RT-N13U B ? and what base profile do I use there like 100 of them for rt305x.

root@ubuntu:~/OW/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-i486# make image PROFILE='config.ramips_rt305x' 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'

BTW the whole can't build as root thing is @#$^ing annoying ...as much as I love to hack up make files

The discussion might have continued from here.