OpenWrt Forum Archive

Topic: Can't configure router, software horribly slow and hangs.

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

I'm new here. If this is the wrong place to post this, feel free to tell me where, or move the post as adequate.


I have an old adsl router which I intend to use as auxiliary wiffi access point. It is a Comtrend CT-5365. I saw that you have a firmware for it, here:

http://wiki.openwrt.org/toh/comtrend/ct5365

Two downloads are suggested:

    Attitude Adjustment (12.09) openwrt-96348A-122-generic-squashfs-cfe.bin
    Backfire backport (10.03.1) openwrt-96348GW-generic-squashfs-cfe_backfire_10.03.1.bin

(the second one is a dead link).

It is the first time I have flashed a router, but as this unit is "disposable", I took the chance to try. :-)

I flashed the device without problems and fast. I connected to it, and started configuring it. Nice web page. The problem is that it works horribly slow: some pages time out and I have to reload them. Some pages do not load at all after several retries. Some produce some CGI error. For instance:

XML Parsing Error: unclosed token Location: [url]http://192.168.1.201/cgi-bin/luci/;stok=51e3afef1729d1ed422de3ca0aa276af/admin/system/[/url] Line Number 301, Column 21026:
    <option id="cbi-system-cfg02e48a-zonename-UTC" value="UTC">UTC</option><option id="cbi-system-cfg02e48a-zonename-Africa/Abidjan" value="Africa/Abidjan">Africa/Abidjan</option><option id="cbi-system-cfg02e48a-zonename-Africa/Accra" value="Africa/Accra">Africa/Accra</option><option id="cbi-s
... 
(trimmed)
...

Via SSH, it is also slow. "top" shows a very busy process which I guess should not be there, not that busy:

Mem: 12376K used, 608K free, 0K shrd, 844K buff, 2408K cached
CPU:   1% usr  91% sys   0% nic   7% idle   0% io   0% irq   0% sirq
Load average: 5.70 4.74 2.45 2/38 1237
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
  661     2 root     SW       0   0%  83% [irq/32-b43]
  684     1 root     S     1440  11%   3% hostapd -P /var/run/wifi-phy0.pid -B
  114     2 root     SW       0   0%   2% [mtdblock2]
 1156   998 root     R     1508  12%   1% top
  992     1 root     S     1508  12%   1% /usr/sbin/ntpd -n -p 0.openwrt.pool.n

At present, I'm unable to reach the page to edit WiFi parameters. I managed to click on "enable", but after that, impossible to go further, even after several reboots. As I say, pages take for ever to load (minutes, time outs, cgi errors). I simply can not use this unit like this...

Did I use a beta firmware, perhaps?
Does that firmware work on my unit, or are there known problems?
Can I do something else, did I do something wrong?

If you need more info, just ask. I'm an old hand with Linux, just not with openwrt. The command line does not scare me easily. :-)

Thanks in advance

Carlos E.R.

Ok... what's a barrier breaker, the name of another release? I'm not familiar with the names here.

I will try it tomorrow, thanks. It is 6 AM here, I have been trying for hours...

The router works, I just connected my tablet to it via wifi. I more or less configured WiFi with "vi". The signal is stronger than my ISP router, so that's good :-)

Anyway, I downloaded the file. It is the same name as the firmware I already flashed, but bigger.

-rw-r--r-- 1 cer users 2883588 Apr  3  2013 openwrt-96348A-122-generic-squashfs-cfe.bin
-rw-r--r-- 1 cer users 3407876 Oct  2  2014 openwrt-96348A-122-generic-squashfs-cfe.bin.1

This naming is confusing...

Ok, I'll continue tomorrow. Thanks.

Ok, flashed with that barrier breaker.

The pages are beautiful, but *horribly* slow to load. I tried for an hour, and I only managed to change the IP via direct edit with "vi". It is impossible to display the network/interfaces/lan settings web page. I only get the header of the page (after one or two reloads):

OpenWrt

    Status    System    Network    Logout

Interfaces - LAN

On this page you can configure the network interfaces. You can bridge several interfaces by ticking the "bridge interfaces" field and enter the names of several network interfaces separated by spaces. You can also use VLAN notation INTERFACE.VLANNR (e.g.: eth0.1).
Common Configuration

    General Setup    Advanced Settings    Physical Settings    Firewall Settings

And nothing more, I can not configure anything. Clicking doesn't produce any response.
CPU usage (says "top") is 99%, distributed on several process, till it goes fully idle and the page doesn't display the rest of the text. Sorry, can't paste, because to connect to the router I don't have Internet connection (I connect one or the other router, physically) — at least till I can tell this thing where is the default gateway, and this I don't know what file configures it to do it via ssh.

I tried for an hour, most of the time just waiting for the page to load.

At least with the image I had flashed yesterday I got the router routing. With this new one I can do nothing.

This model only has 16 MB of RAM, and that is running out.   You should probably kill the web interface and configure via command line instead.  AA is the one to use; later versions require more RAM.

To set up a basic "dumb AP" by command line:

In /etc/config/dhcp, add 'option ignore 1' to the LAN section so the DHCP server does not run.
in /etc/config/network, lan section, set a static IP different from your main router and add 'option gateway' and 'option dns' in lan pointing to your main router.
in /etc/config/wireless, remove the 'disabled' line at the top and edit the AP section to have the SSID and security that you want.

(Last edited by mk24 on 6 Jul 2015, 14:49)

Well, what can I say... the original firmware web page worked fine.

What is "AA"?

If this is the case, please write that information on the http://wiki.openwrt.org/toh/comtrend/ct5365 page so that others don't start this road unawares. :-(

Yes, configuring via ssh and vi is what I'm doing, but I'm having difficulties finding documentation for each file in the config directory. What you say I already did. Missing is finding out what is the option keyword syntax for the wifi password.

I will revert to the firmware I had yesterday, that one at least works somewhat. It is smaller.

Ok, I figured out what 'AA' stands for: you name releases, instead of use version numbers. Current is "Barrier Breaker" and I will stick to it, as it is supported, using ssh only.

I found a configuration program called "uci", but I'm unsure it works (I don't see the changes written to the files). The configuration files options are documented in http://wiki.openwrt.org/doc/uci

What I need now is a way to stop the web interface from running at all, so that it doesn't use memory nor cycles. What's the best way to achieve this (via ssh, of course)?

yes the name releases in newer version are know as AA (Attitude Adjustment) BB (Barrier Breaker) and CC (Chaos Calmer, in Release Canditade not the final release yet, for testing only)
yes  UCI works for you read the wiki.
to stop the web interface use opkg.
http://wiki.openwrt.org/doc/techref/opkg
opkg remove luci

The router sometimes becomes unresponsive even over ssh, and i see a very busy kernel process,  irq/32-b43:

Mem: 11952K used, 768K free, 0K shrd, 452K buff, 1228K cached
CPU:   0% usr  99% sys   0% nic   0% idle   0% io   0% irq   0% sirq
Load average: 6.62 3.67 1.79 7/35 865
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
  781     2 root     SW       0   0%  90% [irq/32-b43]
   91     2 root     RW       0   0%   2% [kswapd0]

That doesn't look normal.
(there is about 10% free ram)

This thing is running so busy, that it doesn't even "route". A tablet connected to it stops working, can't get a connection, when it was working fine minutes earlier.

carlos.e.r wrote:

Ok, I figured out what 'AA' stands for: you name releases, instead of use version numbers. Current is "Barrier Breaker" and I will stick to it, as it is supported, using ssh only.

I found a configuration program called "uci", but I'm unsure it works (I don't see the changes written to the files). The configuration files options are documented in http://wiki.openwrt.org/doc/uci

What I need now is a way to stop the web interface from running at all, so that it doesn't use memory nor cycles. What's the best way to achieve this (via ssh, of course)?

"uci commit" command writes changes to config files.
yes, if you want to stop web interface you must do it from ssh console

The web server is uhttpd.

/etc/init.d/uhttpd disable

should prevent it from starting up on boot.

Burning all of your CPU in an ISR does look like a driver problem.  There are several choices of Broadcom wifi drivers.  Is this unit n capable or just b/g?

Well, none of the firmwares on openwrt or LEDE work ok, however, this one (fix the link yourself - remove the spaces, I cannot post links):
foro.seguridadwireless.net / openwrt /  … rend-5365/
(based on 10.03.1) seems to do the job.
I am using it to establish a PPPoE connection on eth1.0 (one of the LAN ports) and connect to the router over WiFi/the other 3 LAN ports as a bridge over eth1.1 and the wlan. The WiFi is working as fast as a 'g' network can go and LuCI is responsive.
Note: enabling the Switch Tab in Luci and correctly configuring the VLANs is only initially possible through SSH.

(Last edited by jimmytaker on 3 Aug 2017, 00:52)

The discussion might have continued from here.