PDA

Bekijk de volledige versie : alpha rt-n firmware releases



Pages : [1] 2

wpte
21-02-2010, 21:13
I already had a post with firmware releases from http://code.google.com/p/wl500g/
but I tought that a new thread would be easier to find:)
You can look through the changes in svn via this link: http://code.google.com/p/wl500g/source/list?path=/branches/rt-n

Also there is a download source from the Russian forum: ftp://core.dumped.ru/rt-n/
it contains both firmware (RT-N16 and RT-N12) and additional modules

so the list (which is updating):
From now on I can host the firmware on my website again.
All the RT-N models: http://wpte.kicks-ass.net/downloads/Oleg%20Firmware/Nightlys/1.9.2.7-rtn/ also the wl models are available here with kernel 2.6
The old kernel 2.4 wl models: http://wpte.kicks-ass.net/downloads/Oleg%20Firmware/Nightlys/1.9.2.7-d/


[B]I don't build as regular as the nightly builds on ftp://core.dumped.ru/rt-n/ so keep in mind that you could download from there as well (with probably newer versions)
or try my test nightly builds: http://wpte.kicks-ass.net/downloads/Oleg%20Firmware/Nightlys/ (I'm not promising I can build every night tho)






basic things you need to know about this firmware:

This firmware is still in alpha state, so it's experimental
it's pretty stable so far for me:p
wireless works in r1200 and higher for non-encrypted, WEP and WPA-AES encryption. WPA2 works since r1484
Back up your flasfs image before flashing the firmware. This will be ereased while flashing (in newer versions not likely, but still, it's always good to have a backup). After the flashing is complete you may restore the saved flashfs and everything should work again.
setting files from other router models can not be uploaded directly to the rt-n16, it's better to manually set up the webconfig
harddisks are not listed as /dev/discs/disc0... instead they are listed with character in alphabetic order: /dev/discs/disca. so mind that when setting up fstab;)
webcams don't work yet
printers should work from r1393


problems you've found can be posted in the general firmware thread: http://wl500g.info/showthread.php?t=18004
please post only real problems like "my router restarts every 5 minutes" or something like that
Ofcourse mind the simple rules of describing a problem like that, to make it easier for the developers to fix it:)

Describe the problem clearly
Tell how you could possibly reproduce the same problems again.
If you've found a way to fix the problem, please write how


general problems like "hey my harddrive doesn't mount" or "hey what settings should I use?" can be posted here:D

that was all I guess:D

bef
23-02-2010, 20:09
Would you recommend using a swap-partition? I think the 128 megs of ram should be enough or is there any advantage of having additional space for swapping?

wpte
23-02-2010, 21:23
Would you recommend using a swap-partition? I think the 128 megs of ram should be enough or is there any advantage of having additional space for swapping?

Yes, swap is advised, since during something like file transfers the cache can become quite big. And with a little swap extra you'll be sure everything stays stable;)
I haven't seen it go higher than 2MB tho, but I had some crashes without swap on dd-wrt, so that's why I use swap now;)

bef
23-02-2010, 21:37
In this case, i'll use the swap. Thanks

wpte
26-02-2010, 01:31
firmware list updated with r1256
in the rt-n merge, I think "accidently" (not sure:p might be testing/fixing) the printing spooling service was included.

I excluded LPRNG in this build since it would give compiler errors

maurer
26-02-2010, 10:42
what are the speeds on wireless N ( with wpa-aes) ?
what about samba / ftp -> up/ down speeds ?
wired speeds ?

wpte
26-02-2010, 12:35
what are the speeds on wireless N ( with wpa-aes) ?
what about samba / ftp -> up/ down speeds ?
wired speeds ?

samba:
up 8.45MB/s
down 6.65MB/s

with ftp it's always a bit slow somehow, but I guess that's not because the router can't handle it.
hggomes has some different results:

FTP: D: 6.2MB/s U:8.2MB/s | D(SSL): 2.8MB/s U(SSL): 3.6MB/s
SAMBA: D: 6.6MB/s D: 6.4MB/s

With wifi, I'm not sure I can give you a real answer since my all the wlan cards I have are not that good:p
I don't have any trouble reaching something like 10MB/s tho:)

maurer
26-02-2010, 14:48
10x man - that's great!
I'm really thinking now on upgrading from TB's tomato.
what HDD are you using ?

wpte
26-02-2010, 15:59
10x man - that's great!
I'm really thinking now on upgrading from TB's tomato.
what HDD are you using ?

western digital elements 500GB and a western digital mybook 1TB:)

hggomes
27-02-2010, 04:17
>r1200 @532MHZ

FTP: D: 7.2MB/s U:8.9MB/s | D(SSL): 3.2MB/s U(SSL): 3.9MB/s
SAMBA: D: 6.8MB/s U: 8.6MB/s

Foxem
28-02-2010, 10:07
western digital elements 500GB and a western digital mybook 1TB:)

I have an HDD My Book World 2 Western Digital 2TB with 10/100/1000 ethernet interface.
I tried to mount this hdd but is seams that the RT-N16 kernel does not have support for ethernet mount.

I would appreciate it if someone could help me add in kernel 2.6 the smbfs module.

wpte
28-02-2010, 13:15
I have an HDD My Book World 2 Western Digital 2TB with 10/100/1000 ethernet interface.
I tried to mount this hdd but is seams that the RT-N16 kernel does not have support for ethernet mount.

I would appreciate it if someone could help me add in kernel 2.6 the smbfs module.

My hdd don't have any LAN connections, they are just ordinary USB drives:p

I can try to compile the CIFS kernel modules in the firmware next time?
it should support samba as well;)

Foxem
28-02-2010, 15:20
My hdd don't have any LAN connections, they are just ordinary USB drives:p

I can try to compile the CIFS kernel modules in the firmware next time?
it should support samba as well;)

Many thanks,

I will wait the next version of firmware.
You have any idea how long I have to wait?

wpte
28-02-2010, 16:12
Many thanks,

I will wait the next version of firmware.
You have any idea how long I have to wait?

I have them ready now
I've build the modules straight into the kernel itself, so they're loaded up automatically I think:p
haven't try them out yet

wpte
28-02-2010, 16:21
I have them ready now
I've build the modules straight into the kernel itself, so they're loaded up automatically I think:p
haven't try them out yet

seems to work but the web interface is gone:o

Foxem
28-02-2010, 16:29
I have them ready now
I've build the modules straight into the kernel itself, so they're loaded up automatically I think:p
haven't try them out yet

thanks it works

wpte
28-02-2010, 16:42
thanks it works

your web interface is still working?:confused:

Foxem
28-02-2010, 17:03
your web interface is still working?:confused:

The web interface for samba configuration is working.
Currently I don't have anything else installed.

wpte
28-02-2010, 17:05
The web interface for samba configuration is working.

uuhh, it only shows a white page here:D
or do you mean the samba config is the ONLY one working?:p

Foxem
28-02-2010, 17:26
uuhh, it only shows a white page here:D
or do you mean the samba config is the ONLY one working?:p

I tried to set lighttpd with fastcgi and php and the web is not working

wpte
28-02-2010, 17:46
I tried to set lighttpd with fastcgi and php and the web is not working

nah, you should flash back to r1262 for now
I'll compile the modules seperately and put them up for download:)

Foxem
28-02-2010, 17:57
nah, you should flash back to r1262 for now
I'll compile the modules seperately and put them up for download:)

how i can change the firmware if the web interface is not working?

theMIROn
28-02-2010, 18:00
how i can change the firmware if the web interface is not working?

via tftp for example.

Foxem
28-02-2010, 18:08
via tftp for example.

If I use tftp method will all my current installations still be available?

wpte
28-02-2010, 18:21
If I use tftp method will all my current installations still be available?

usually your settings are, but the flashfs is not saved.
/opt is ofcourse still save;)

you can also use the firmware recovery utility from asus if you want
tftp is standard not activated in modern windows os...
http://www.asus.com/product.aspx?P_ID=WAa6AQFncrceRBEo&content=download
you can download it under utilities... doesn't work on linux btw.

Foxem
28-02-2010, 18:31
usually your settings are, but the flashfs is not saved.
/opt is ofcourse still save;)

you can also use the firmware recovery utility from asus if you want
tftp is standard not activated in modern windows os...
http://www.asus.com/product.aspx?P_ID=WAa6AQFncrceRBEo&content=download
you can download it under utilities... doesn't work on linux btw.

thanks
should I wait today the cifs module for the lan mounting?

wpte
28-02-2010, 18:33
thanks
should I wait today the cifs module for the lan mounting?

I just updated everything!
r1274 is a working version now without the modules
but I also uploaded the modules for download:)

Foxem
28-02-2010, 21:21
I just updated everything!
r1274 is a working version now without the modules
but I also uploaded the modules for download:)

is not working with this new firmware
and I tried to add modules with this command and is not working
insmod /opt/modules/smbfs.ko
insmod /opt/modules/cifs.ko

wpte
28-02-2010, 21:51
is not working with this new firmware
and I tried to add modules with this command and is not working
insmod /opt/modules/smbfs.ko
insmod /opt/modules/cifs.ko

Did you chmod them?

chmod +x /opt/modules/smbfs.ko
chmod +x /opt/modules/cifs.ko

they load up fine here.

I'm able to mount something with smbmount
dunno if you use that?:)

Foxem
28-02-2010, 21:56
Did you chmod them?


they load up fine here.

I'm able to mount something with smbmount
dunno if you use that?:)

thx
it's working with smbmount
with the last firmware I used mount.cifs
and I didn't know about chmod

Foxem
01-03-2010, 08:14
Still I do not understand why when I use
mount tab
smb tab
in the commands list doesn't apear mount.cifs and smbfs

Foxem
01-03-2010, 18:49
I modified the file "/usr/local/sbin/post-mount" but the automount is not working.

#! /bin/sh
/opt/etc/init.d/rc.unslung start
insmod /opt/modules/smbfs.ko
sleep 6
smbmount //192.168.109.130/torrent /opt/torrent/ -o username=Foxem,password=XXXX

Then I created in /opt/etc/init.d/S10smbfs

insmod /opt/modules/smbfs.ko
sleep 6
smbmount //192.168.109.130/torrent /opt/torrent/ -o username=Foxem,password=XXXX

could you please tell me what I am doing wrong?

wpte
01-03-2010, 23:32
could you please tell me what I am doing wrong?

Sorry, I'm not well known with network share mounting

perhaps you could do the module loading before rc.unslung start?:confused:

Foxem
02-03-2010, 20:33
Sorry, I'm not well known with network share mounting

perhaps you could do the module loading before rc.unslung start?:confused:

I found this working solution

insmod /opt/modules/smbfs.ko
sleep 10
/opt/bin/smbmount //192.168.109.130/torrent /opt/torrent/ -o username=user,password=XXXXX

wpte
02-03-2010, 22:12
I found this working solution

insmod /opt/modules/smbfs.ko
sleep 10
/opt/bin/smbmount //192.168.109.130/torrent /opt/torrent/ -o username=user,password=XXXXX

ah yes ofcourse!:D (silly me)
that's because it's not located in the firmware

bef
04-03-2010, 11:08
Did the firewall-rules move somewhere else? I tried to open a port for ssh, but no matter what i write into the post-firewall, i can't get a connection to the router from the internet. A portforwarding to my laptop i set up in the web-if for another service does work, but doesn't show up in the post-firewall like it used to on the wl500w.

kind regards

Benj

hggomes
04-03-2010, 18:32
Did the firewall-rules move somewhere else? I tried to open a port for ssh, but no matter what i write into the post-firewall, i can't get a connection to the router from the internet. A portforwarding to my laptop i set up in the web-if for another service does work, but doesn't show up in the post-firewall like it used to on the wl500w.

kind regards

Benj

iptables -I INPUT -p tcp --dport 22 -j ACCEPT (22 default port, change it if you use other)

iptables -L -n to see the applied rules INPUT chain. (1st chain)

bef
04-03-2010, 19:00
iptables -I INPUT -p tcp --dport 22 -j ACCEPT (22 default port, change it if you use other)

iptables -L -n to see the applied rules INPUT chain. (1st chain)

Ok, perhaps i shouldn't mess with the firewall at 2 o'clock in the morning and not look at it again. -.-

A small typo later and it works, thank you

ofverstedt
09-03-2010, 08:45
Have anyone noticed a high load avaragae but no cpu activity?
I get this from top:



top - 08:21:10 up 8:45, 0 users, load average: 2.00, 2.02, 2.10
Tasks: 44 total, 1 running, 43 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.7%us, 0.7%sy, 0.0%ni, 98.4%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st
Mem: 126204k total, 124124k used, 2080k free, 1448k buffers
Swap: 501912k total, 140k used, 501772k free, 103908k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1258 admin 15 0 1640 636 492 R 1.6 0.5 0:12.71 top
1254 admin 15 0 1232 556 424 S 0.3 0.4 0:01.06 dropbear
2 admin 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthreadd
4 admin 10 -5 0 0 0 S 0.0 0.0 0:00.01 events/0
5 admin 10 -5 0 0 0 S 0.0 0.0 0:00.06 khelper
24 admin 10 -5 0 0 0 S 0.0 0.0 0:01.16 kblockd/0
50 admin 25 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
51 admin 15 0 0 0 0 S 0.0 0.0 0:00.01 pdflush
52 admin 10 -5 0 0 0 S 0.0 0.0 0:00.77 kswapd0
53 admin 20 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
588 admin 20 -5 0 0 0 D 0.0 0.0 0:00.00 pptp-rx-0
589 admin 20 -5 0 0 0 D 0.0 0.0 0:00.00 pptp-tx-0
590 admin 10 -5 0 0 0 S 0.0 0.0 0:01.12 mtdblockd
669 admin 15 0 1616 296 240 S 0.0 0.2 0:00.01 klogd
672 admin 15 0 1008 208 148 S 0.0 0.2 0:00.01 eapd
675 admin 15 0 1192 376 240 S 0.0 0.3 0:00.29 nas
680 admin 15 0 1208 508 384 S 0.0 0.4 0:02.13 httpd
689 admin 10 -5 0 0 0 S 0.0 0.0 0:00.01 khubd
696 nobody 15 0 960 476 336 S 0.0 0.4 0:00.51 dnsmasq
731 admin 25 0 1400 352 280 S 0.0 0.3 0:00.00 rcamdmain
766 admin 11 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
767 admin 10 -5 0 0 0 S 0.0 0.0 0:00.19 usb-storage
780 admin 11 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
781 admin 10 -5 0 0 0 S 0.0 0.0 0:05.11 usb-storage
797 admin 15 0 1416 468 372 S 0.0 0.4 0:00.08 watchdog
809 admin 15 0 1176 324 252 S 0.0 0.3 0:00.14 dropbear
816 admin 15 0 1628 356 280 S 0.0 0.3 0:00.02 udhcpc
850 admin 10 -5 0 0 0 S 0.0 0.0 0:00.07 kjournald
851 admin 10 -5 0 0 0 S 0.0 0.0 0:00.02 kjournald
852 admin 11 -5 0 0 0 S 0.0 0.0 0:00.00 kjournald
868 admin 16 0 1616 312 256 S 0.0 0.2 0:00.15 syslogd
876 admin 15 0 11024 2340 1712 S 0.0 1.9 0:00.06 smbd
878 admin 15 0 6548 1632 1060 S 0.0 1.3 0:00.14 nmbd
882 admin 18 0 1052 344 284 S 0.0 0.3 0:00.00 cron
887 admin 21 0 1444 500 416 S 0.0 0.4 0:00.00 xinetd
889 admin 18 0 11024 996 368 S 0.0 0.8 0:00.00 smbd
899 admin 25 10 11124 6632 3512 S 0.0 5.3 0:00.05 transmission-da
900 admin 25 10 11124 6632 3512 S 0.0 5.3 0:00.00 transmission-da
901 admin 25 10 11124 6632 3512 S 0.0 5.3 1:14.09 transmission-da
1253 admin 18 0 11100 3176 2460 S 0.0 2.5 2:21.25 smbd
1 admin 18 0 1400 548 468 S 0.0 0.4 0:00.66 init
1255 admin 15 0 1624 480 412 S 0.0 0.4 0:00.01 sh
3 admin 34 19 0 0 0 S 0.0 0.0 0:00.18 ksoftirqd/0
1266 admin 15 0 1184 340 252 S 0.0 0.3 0:00.02 httpd


Is this normal? I had dd-wrt before oleg and it was a similar problem there. I think it was the upnp who did't work as it should there.

I've got som dead pptp processes what is that?

lly
09-03-2010, 09:40
Have anyone noticed a high load avaragae but no cpu activity?
It is a ugly feature of obsolete kernel+Broadcom SDK. Unfortunately, Broadcom ignore anybody who wasn't buy their SDK.
Moreover, even DD-WRT team has some kind of full access this SDK, they can't (or don't want) to fix it.

I've got som dead pptp processes what is that?
It is accel-pptp daemon kernel threads, probably "top" shows incorrect status.

wpte
10-03-2010, 01:12
Hey can I compile the upnp deamon in this firmware as well?
or does it need some configuration?

I kinda like my upnp portforwarding back:D

s1za
10-03-2010, 01:17
Hi,

I've been using a self-compiled version of Oleg 1.9.2.7-10 (2008-03-30) on a 500GP with RAID1 (based on this tread http://wl500g.info/showthread.php?t=15550 comments and modules md.o and raid1.o) with two 1Tb Iomega disks on RAID1.

I've just bought a RT-N16 and I want to re-build the system. This new router uses kernel 2.6. Can someone help me getting the right modules and tell me how to compile everything.

For what I notice the wiki on http://code.google.com/p/wl500g/wiki/CompilingCustomFirmware is only for Kernel 2.4

Thank's in advance

wpte
10-03-2010, 01:34
it's pretty much the same as for kernel 2.4
setting everything up for the wl500 series as in the how-to is pretty much the same, you just need these extra things:

you need kernel 2.6.22.19
just link it to "linux-2.6" in the /broadcom/src/linux dir.
then just checkout the svn rt-n branch into the dir... lets say /broadcom/src/rt-n

do "make kernel" and "make" in the rt-n dir
then cd into /broadcom/src/gateway dir and do "make" and "make install"

after that you can just grab the .trx from /broadcom/src/gateway/mipsel-uclibc

I hope that's a bit clear:)


ofcourse you can download my builds as well, then you just need to compile the kernel modules I guess

lly
10-03-2010, 09:03
Hey can I compile the upnp deamon in this firmware as well?
or does it need some configuration?

I kinda like my upnp portforwarding back:D
You tried to ask "how to get upnp works"? ;)

Sorry, didn't test it yet due to other high-priority tasks (stability, WPA2, etc.). I apologize problem occurs because many kernel calls changed in 2.6. So, some code modifications required.

s1za
10-03-2010, 11:58
@wpte

Thanks a lot for your reply.

I have a few questions regarding which option should I follow:

1. compile the firmware
In here should I use the GPL_1927.zip sources (as stated in http://code.google.com/p/wl500g/wiki/CompilingCustomFirmware)?

2. compile only the kernel modules (I think this one is preferable because is easier since I only need to update the firmware with your builds ;))
How can I compile only the required kernel modules?

Regards,

lly
10-03-2010, 12:51
1. compile the firmware
In here should I use the GPL_1927.zip sources (as stated in http://code.google.com/p/wl500g/wiki/CompilingCustomFirmware)?
Current revision no more requires GPL_1927.zip, wiki will be updated soon.

2. compile only the kernel modules (I think this one is preferable because is easier since I only need to update the firmware with your builds ;))
How can you compile only the required kernel modules?

Like in any ordinary Linux kernel - see Documentation/kbuild subdirectory.

wpte
10-03-2010, 13:27
You tried to ask "how to get upnp works"? ;)

Sorry, didn't test it yet due to other high-priority tasks (stability, WPA2, etc.). I apologize problem occurs because many kernel calls changed in 2.6. So, some code modifications required.

hehe:p
I understand, upnp is not really the biggest issue in the rt-n development now:)

It doesn't seem to respond to any packets I'm sending with my own build api:p
I'm creating the api since microsoft decided to kinda exclude upnp api's in win7:p
It does seem to work with my wl-500w so far:)

s1za
13-03-2010, 00:12
I'm upgrading everything to RT-N16. Installed everything on the r1322 apart from the kernel modules:

I've compiled the md.ko and raid1.ko kernel modules but I cannot load them with insmod. I get this message:

insmod: can't insert '/opt/modules/raid1.ko': invalid module format

and when I trie to insert cifs.ko or smbfs.ko (which I download from 1st page) I get this message:

insmod: can't insert '/opt/modules/cifs.ko': unknown symbol in module, or unknown parameter

wpte
13-03-2010, 00:24
I'm upgrading everything to RT-N16. Installed everything on the r1322 apart from the kernel modules:

I've compiled the md.ko and raid1.ko kernel modules but I cannot load them with insmod. I get this message:

insmod: can't insert '/opt/modules/raid1.ko': invalid module format

and when I trie to insert cifs.ko or smbfs.ko (which I download from 1st page) I get this message:

insmod: can't insert '/opt/modules/cifs.ko': unknown symbol in module, or unknown parameter

maybe I need to rebuild them:p
are you using kernel 2.6.22.19 to compile them (with the crosscompiler ofcourse) ?

s1za
13-03-2010, 00:39
maybe I need to rebuild them:p
are you using kernel 2.6.22.19 to compile them (with the crosscompiler ofcourse) ?

I've made a VM with Virtualbox with fresh install of Ubuntu basic server and the essential packages.

Used the following steps:

//cd to src
cd /usr/src

//get the kernel
sudo wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.19.tar.bz2

//unpack
sudo tar xjf linux-2.6.22.19.tar.bz2

//create the symlink
sudo ln -s linux-2.6.22.19 linux

//cd to dir
cd /usr/src/linux

sudo make config
//and activate 'external kernel modules', pick automatic kernel loading, put options in M for modules (on md section)

//compile /scripts/genksyms (to avoid a file missing error)

//compile the md module
sudo make M=drivers/md

without any errors...

al37919
13-03-2010, 07:13
you compiled module for the ubuntu, not for router

s1za
13-03-2010, 17:10
you compiled module for the ubuntu, not for router

That was also my suspicion...
Should I beg for more clues on how to setup for a correct RT-N16 compilation?

I've read allot of pages with compile info but no specific how-to's
I really appreciate the help.

Regards,

al37919
13-03-2010, 17:20
at the moment AFAIK there is no special howto for building rt-n-alpha branch. However, you can use as a base the following instruction: http://code.google.com/p/wl500g/wiki/CompilingCustomFirmware However, it is only a way..., but not a strict guideline.

IMHO, you have to first learn how to compile the firmware using a dedicated toolchan. The next step is to enable some extra options in the kernel config and recompile it again to produce custom module. I don't see a way to avoid these steps.

Foxem
14-03-2010, 01:16
today I installed the firmware 1322
cifs.ko and smbfs.ko are not working anymore


[root@RT-N16 modules]$ insmod smbfs.ko
insmod: can't insert 'smbfs.ko': unknown symbol in module, or unknown parameter
[root@RT-N16 modules]$ insmod cifs.ko
insmod: can't insert 'cifs.ko': unknown symbol in module, or unknown parameter

Can someone rebuild them and post them for download?

Many thanks

wpte
14-03-2010, 15:24
today I installed the firmware 1322
cifs.ko and smbfs.ko are not working anymore


[root@RT-N16 modules]$ insmod smbfs.ko
insmod: can't insert 'smbfs.ko': unknown symbol in module, or unknown parameter
[root@RT-N16 modules]$ insmod cifs.ko
insmod: can't insert 'cifs.ko': unknown symbol in module, or unknown parameter

Can someone rebuild them and post them for download?

Many thanks

they are build in (and working) now: http://rapidshare.com/files/363235380/RT-N16-1.9.2.7-rtn-r1327.trx

Foxem
15-03-2010, 16:12
they are build in (and working) now: http://rapidshare.com/files/363235380/RT-N16-1.9.2.7-rtn-r1327.trx
Thanks is working.
I need some help one other issue. My router keeps on stopping to the point that nothing is working anymore; I am not even able to connect to it through the web interface when this happens, nor through ssh. I noticed that it stops when I let something for download, a while after I close ntorrent.
I would like to know where to look, because in the log for rtorrent and in lighttpd I didn't see anything.

wpte
15-03-2010, 16:16
Thanks is working.
I need some help one other issue. My router keeps on stopping to the point that nothing is working anymore; I am not even able to connect to it through the web interface when this happens, nor through ssh. I noticed that it stops when I let something for download, a while after I close ntorrent.
I would like to know where to look, because in the log for rtorrent and in lighttpd I didn't see anything.

I haven't installed rtorrent yet. You control it trough ssh I guess?
maybe worth testing:)

Foxem
16-03-2010, 07:49
I use ntorrent trough ssh and rutorrent trough webinterface
Last night my router stoped working again. I was connected to router all the time trough webinterface(meantime I was playing dota trough internet)).

wpte
16-03-2010, 11:53
I use ntorrent trough ssh and rutorrent trough webinterface
Last night my router stoped working again. I was connected to router all the time trough webinterface(meantime I was playing dota trough internet)).

do you have some swap activated then?

Foxem
16-03-2010, 12:02
do you have some swap activated then?


[root@RT-N16 root]$ free
total used free shared buffers cached
Mem: 126212 124052 2160 0 4084 90292
-/+ buffers/cache: 29676 96536
Swap: 1020088 9912 1010176


Right now I can connect on router through ssh but the lan share is not mounted anymore.
And reboot, mc commands are not working.
Router lost connection with lan hdd.

wpte
16-03-2010, 20:25
Well unfortunately I keep getting "connection reset" when trying an ssh tunnel:(
I'm not sure what the problem is, but this way I can't test it as well...

But let me ask about your setup...
you use a NAS to store files on and a smaller drive with swap and /opt on the router?

Foxem
17-03-2010, 08:54
Well unfortunately I keep getting "connection reset" when trying an ssh tunnel:(
I'm not sure what the problem is, but this way I can't test it as well...

But let me ask about your setup...
you use a NAS to store files on and a smaller drive with swap and /opt on the router?
yes
but I belive the rtorrent can't handle huge files
Last night I installed transmission on my external hdd

wpte
17-03-2010, 11:43
yes
but I belive the rtorrent can't handle huge files
Last night I installed transmission on my external hdd

hmm, I never had many problems, only connection problems with ntorrent.
transmission runs pretty well on the rt-n, especially due to the bigger ram and faster cpu:)
no problems downloading at 1,4MB/s here with only... 60% cpu
my wl500w could only do a 500KB/s or something:p

s1za
19-03-2010, 13:01
at the moment AFAIK there is no special howto for building rt-n-alpha branch. However, you can use as a base the following instruction: http://code.google.com/p/wl500g/wiki/CompilingCustomFirmware However, it is only a way..., but not a strict guideline.

IMHO, you have to first learn how to compile the firmware using a dedicated toolchan. The next step is to enable some extra options in the kernel config and recompile it again to produce custom module. I don't see a way to avoid these steps.

Thanks.

My main doubt was 'how' different was to compile the firmware (specialy after some misguiding posts)

But after your post I've compiled the firmware and everything is up and running now.

Pedro83
20-03-2010, 22:13
Hello... many thanks for the FW for RT-N16, I kinda wasn't feeling comfortable with DD-WRT...

Everything, I needed so far, is working. But now it comes to what I want :))

Sound card, I wish it could work (the same sound card as in this post http://wl500g.info/showthread.php?t=20623 i.e. it was recognized on 2.4)
My problem is that I don't know how to make it work. In log I can see "USB audio: attached" but not showing up dmesg and the reason as I understand, that no modules are loaded or included. Any idea what to do? I want to use madplay to play mp3 files on router.

Bluetooth, the second thing I have problem with but to be honest I haven't spent that much time with that as with sound card, but so far it seems to be the same problem (I don't have proper modules for 2.6).

Anyone with working configuration having USB soundcard or bluetooth? Could you please give me some hint?

Thanks

wpte
20-03-2010, 23:07
Yes, I was thinking of compiling the other modules into the firmware as well, the modules usually provided in an extra tar...
I mean the memory in the RT-N16 is more than enough to include the modules, but I have to take a look at what is activated in the kernel config:)

I don't know if people wouldn't like it, to have a big bulky firmware (around 8MB I guess)
of course the modules can be loaded up at any time, so it won't take more RAM

Pedro83
20-03-2010, 23:20
Could you please give me a hint where to look for them and how to load them? I think it is better as it is, to keep firmware small and less bulky... Thanks

wpte
21-03-2010, 01:51
Could you please give me a hint where to look for them and how to load them? I think it is better as it is, to keep firmware small and less bulky... Thanks

At the moment I'm the only one building rt-n16 FW for the public as far as I know.
The modules that are usually included by the stable FW for the wl series are a bit difficult to include every time there is a svn change, so that's why I build them straight into the FW instead of making a giant messy list of all the modules for every update. also it's more work:o

So either way, I can build the soundcore and audio modules straight into the firmware, or you have to build them yourself separately.

in the end, you have 32MB flash, why trying to keep it at 4MB, the extra modules will fit easily:D

lly
21-03-2010, 08:43
At the moment I'm the only one building rt-n16 FW for the public as far as I know.
Unlimited from Russian forum make night builds of rt-n16 FW ftp://core.dumped.ru/rt-n/

About extra modules - we will include it later, after main functionality will be almost equal to an old stable branch.

Audio modules simply wasn't tested by us.

Pedro83
21-03-2010, 10:09
... so that's why I build them straight into the FW instead of making a giant messy list of all the modules for every update. also it's more work:o

So either way, I can build the soundcore and audio modules straight into the firmware, or you have to build them yourself separately.
...
Thanks guys, I believe I can wait :D Maybe I can try to build them by my own but my understanding of whole 'doing-so' is fairly limited...

Unlimited from Russian forum make night builds of rt-n16 FW ftp://core.dumped.ru/rt-n/
I think I will start to follow Russian forum too :)


About extra modules - we will include it later, after main functionality will be almost equal to an old stable branch.

If I may ask, what is current status of main functionality? Roughly...

Audio modules simply wasn't tested by us.
I will be here to hear about it or maybe I can help myself somehow...

lly
21-03-2010, 10:40
If I may ask, what is current status of main functionality? Roughly...
FW core is works, but there were some critical bugs in our obsolete 2.6.22 kernel (they are also present in official ASUS FW). We have to find & backport fixes from kernel.org+linux-mips.org upstreams. Most of such bugs appear under heavy load only.

Some netfilter/iptables modules are not backported yet, USB stack is older than in 1.9.2.7-d (EHCI backport from 2.6.27), and many other fixes/backports collected by Oleg & us for several years.

There are several issues with automounting USB HDD, webcam/audio/bluetooth support we even don't start to test.

wpte
21-03-2010, 11:39
Unlimited from Russian forum make night builds of rt-n16 FW ftp://core.dumped.ru/rt-n/

I'm not suprised, the Russian forum has everything the English forum doesn't have and more:p


About extra modules - we will include it later, after main functionality will be almost equal to an old stable branch.

Audio modules simply wasn't tested by us.
that site also contains modules though?

Pedro83
21-03-2010, 11:48
that site also contains modules though?
yes, I found there soundcore.ko (I am using r1337) but I'm not sure whether I will also need audio.ko which I didn't find there
I am going to try it :) Let's see...
EDIT: so NO :)

ofverstedt
22-03-2010, 18:12
First of all i need to thanks for a great work with the FW almost every of my needs are fulfilled with this FW. But I have a question:
Does the printer work for anyone?
My doesnt work, but i dont know if it is because of the printer itself or the FW.

Tanks for a fantastic work!

wpte
22-03-2010, 18:17
First of all i need to thanks for a great work with the FW almost every of my needs are fulfilled with this FW. But I have a question:
Does the printer work for anyone?
My doesnt work, but i dont know if it is because of the printer itself or the FW.

Tanks for a fantastic work!

I just compile them, so you should thanks the developers;)

this svn change: http://code.google.com/p/wl500g/source/detail?r=1339
sort of says that the printer should be working or close to working.
Have you tried with other asus routers? or is the rt-n16 your first one?:)

for the WL series the printer functionality works, not for all printers though.
What printer do you have?

ofverstedt
22-03-2010, 18:34
I just compile them, so you should thanks the developers;)

this svn change: http://code.google.com/p/wl500g/source/detail?r=1339
sort of says that the printer should be working or close to working.
Have you tried with other asus routers? or is the rt-n16 your first one?:)

for the WL series the printer functionality works, not for all printers though.
What printer do you have?


It's my first ASUS! :)
I think it could be the printer, it is a budget printer, OKI B2200. It does almost its job and it was cheap! :p Maybe I have to live with the printer attached to one of the computers instead. :)

I think lly read this thread sometimes so it was a thanks to him aswell.

I think it could be the printer, it is a budget printer, OKI B2200. It does amost its job and it was cheap! ;) Maybe I have to live with the printer attched to one of the computer insted. :)

s1za
24-03-2010, 00:40
After my last post saying that everything was up and running an error just came out :(

after using the raid (2 1Tb usb disks on a USB Hub that worked flawlessly on the 500gp for 2 years) on the RT-N16 for a while (noticed some delays in saving files first but assumed that was from wifi) and the raid was broken and one disk was removed :confused:

1. tried to mount the raid and it began resync. Every time a issued 'cat /proc/mdstat' the speed of resyng dropped until 20Kb/s and finally stopped resync (exited from mdadm);

2. recompiled several firmwares again with some combinations options
Always with this options:
* Multi-device support (RAID and LVM)
*
Multiple devices driver support (RAID and LVM) (MD) [Y/n/?]
RAID support (BLK_DEV_MD) [Y/n/m/?]
RAID-1 (mirroring) mode (MD_RAID1) [Y/n/m/?]


With and without this options:
* SCSI device support
*
SCSI device support (SCSI) [Y/m/n/?]
SCSI target support (SCSI_TGT) [Y/m/n/?]
*
* SCSI support type (disk, tape, CD-ROM)
*
SCSI disk support (BLK_DEV_SD) [Y/m/n/?]

with the same results;

3. Tried to compile new version of mdadm (3.1.2 with no success). Managed to run 2.6.7-1 (compiled with build-root on a ubuntu vm) instead of 2.6.1 that is on the ipkg and with the same result;

4. Simulated everything on 2 1GB USB sticks with the same results (it stop resync). Manage to resync everything on ubuntu (with mdadm 2.6.7) re-tested on the router and after copy some files the same disk errors and disk removal from raid (please see attached syslog.log file);

5. For me hardware is excluded (everything works connected to a ubuntu machine). I think mdadm is excluded as well. So I'm stuck with some options in the firmware that I missed or some bug? on the scsi drivers?

I appreciate any help. Thank's in advance...

al37919
24-03-2010, 06:04
Does the printer work for anyone?
My doesnt work, but i dont know if it is because of the printer itself or the FW.
are you familiar with this tutorial: http://oleg.wl500g.info/printing/

lly
24-03-2010, 08:39
1. tried to mount the raid and it began resync. Every time a issued 'cat /proc/mdstat' the speed of resyng dropped until 20Kb/s and finally stopped resync (exited from mdadm);
...
5. For me hardware is excluded (everything works connected to a ubuntu machine). I think mdadm is excluded as well. So I'm stuck with some options in the firmware that I missed or some bug? on the scsi drivers?

Are you ubuntu runs on 2.6.22 kernel? ;)
I apologize that problem caused by obsolete md/scsi drivers. Solution is not simple - backport from newer kernels of some parts md/scsi needed.

s1za
24-03-2010, 11:34
Are you ubuntu runs on 2.6.22 kernel? ;)
I apologize that problem caused by obsolete md/scsi drivers. Solution is not simple - backport from newer kernels of some parts md/scsi needed.

Ubuntu 9.10 runs on the latest kernel (for this version) 2.6.30 if I'm not mistaken (I'm away from the laptop)

I've just used the laptop to check the hardware (disks and hub). Also installed mdadm on the ubuntu (which is the same version that on the router 2.6.7) so excluded problems from ipkg package and new kernel. Mdadm on the ubuntu recognized the raid and was able to do the recync with no problem.

Please tell if you need extra info.

lly
24-03-2010, 11:44
Please tell if you need extra info.
Sorry, I can't promise you anything since I haven't enough time to drill down this problem at this time. Moreover, it is very hard to solve such problems remotely, since we are not a kernel maintainers.

Best of all will be if you can seek kernel mailing list for patches or similar problem reports yourself.

ofverstedt
24-03-2010, 23:21
are you familiar with this tutorial: http://oleg.wl500g.info/printing/

Yes, i have tested that one. I get this in the syslog when i try to print:


Mar 22 17:03:45 p9100d[331]: Connection from 192.168.1.11 port 59297 accepted
Mar 22 17:03:45 kernel: drivers/usb/class/usblp.c: usblp0 Device ID string [101/max 1552]='MANUFACTURER:OKI DATA CORP;CO'
Mar 22 17:03:45 kernel: drivers/usb/class/usblp.c: Parsing USBLPID...

And this when i turn off the printer:

Mar 22 17:30:54 p9100d[331]: Finished job: 0 bytes received
Mar 22 17:30:57 kernel: usb 2-2.1: USB disconnect, address 4

al37919
25-03-2010, 06:54
your output show that there is no problem with usb connection. However, according to this: http://www.openprinting.org/printers/manufacturer/Oki your printer will probably not work with linux. I have to admit that this database is not exactly our case, however, such status may mean that some firmware should be loaded into the printer before printing which is not publicly available.

wpte
02-04-2010, 23:41
Hey,

I've found out that my brute-force prevention isn't working anymore

it sort of blocks now and then when I try portscanning with an online port scanner (http://www.t1shopper.com/tools/port-scan/)

but after 2 blocks or so the ssh becomes visible again.


Apr 2 23:25:39 kernel: SSH ACCEPT IN=vlan2 OUT= MAC=00:26:18:a1:3c:fb:00:60:4c:e3:66:3c:08:00:45:0 0:00:3c SRC=208.64.252.230 DST=192.168.1.11 LEN=60 TOS=0x00 PREC=0x00 TTL=46 ID=65460 DF PROTO=TCP SPT=45575 DPT=22 SEQ=3832370418 ACK=0 WINDOW=5840 RES=0x00 SYN URGP=0 OPT (020405B40402080ABCE9AB460000000001030307)
Apr 2 23:25:39 /opt/sbin/sshd[819]: Did not receive identification string from 208.64.252.230
Apr 2 23:25:55 kernel: SSH ACCEPT IN=vlan2 OUT= MAC=00:26:18:a1:3c:fb:00:60:4c:e3:66:3c:08:00:45:0 0:00:3c SRC=208.64.252.230 DST=192.168.1.11 LEN=60 TOS=0x00 PREC=0x00 TTL=46 ID=25408 DF PROTO=TCP SPT=45624 DPT=22 SEQ=3845884720 ACK=0 WINDOW=5840 RES=0x00 SYN URGP=0 OPT (020405B40402080ABCE9E8700000000001030307)
Apr 2 23:25:55 /opt/sbin/sshd[820]: Did not receive identification string from 208.64.252.230
Apr 2 23:26:25 kernel: SSH ACCEPT IN=vlan2 OUT= MAC=00:26:18:a1:3c:fb:00:60:4c:e3:66:3c:08:00:45:0 0:00:3c SRC=208.64.252.230 DST=192.168.1.11 LEN=60 TOS=0x00 PREC=0x00 TTL=46 ID=46836 DF PROTO=TCP SPT=45729 DPT=22 SEQ=3882735177 ACK=0 WINDOW=5840 RES=0x00 SYN URGP=0 OPT (020405B40402080ABCEA60BD0000000001030307)
Apr 2 23:26:26 /opt/sbin/sshd[824]: Did not receive identification string from 208.64.252.230
Apr 2 23:26:35 kernel: SSH ACCEPT IN=vlan2 OUT= MAC=00:26:18:a1:3c:fb:00:60:4c:e3:66:3c:08:00:45:0 0:00:3c SRC=208.64.252.230 DST=192.168.1.11 LEN=60 TOS=0x00 PREC=0x00 TTL=46 ID=18665 DF PROTO=TCP SPT=45765 DPT=22 SEQ=3886140901 ACK=0 WINDOW=5840 RES=0x00 SYN URGP=0 OPT (020405B40402080ABCEA850C0000000001030307)
Apr 2 23:26:35 /opt/sbin/sshd[825]: Did not receive identification string from 208.64.252.230

also the ip get listed in the /proc/net/ipt_recent/BRUTE file

src=208.64.252.230 ttl: 46 last_seen: 4294823209 oldest_pkt: 4 4294799437, 4294818572, 4294821275, 4294823209

dunno if it's meant to work like this, since I remembered it to work with older versions:D

lly
03-04-2010, 08:02
I've found out that my brute-force prevention isn't working anymore

dunno if it's meant to work like this, since I remembered it to work with older versions:D
Which older version exactly? Can you provide your rule, just for information?

P.S. ipt_recent was modified in r1393

s1za
03-04-2010, 16:41
Hi,

Things got worst :(

Now with only one drive connected directly to the usb (no raid) I've got the writing errors to the drive (read seems ok since it was mounted for 2 days and I've got no error).

Drive was mounted as ext3.
Firmware 1.9.2.7-rtn-r1395

Bug on the scsi drivers?

wpte
03-04-2010, 23:51
Which older version exactly? Can you provide your rule, just for information?

P.S. ipt_recent was modified in r1393

I haven't tested out which revision worked yet

I did test some different setups with iptables now though, but all with the same result.
Also... portforwarding to eth1 or vlan2 doesn't seem to matter:confused:
I should start working on that a little earlier than 23:30 tomorrow :D

anyway, I've also found out that 3 wlan devices that did not work with the RT-N16 did work as soon as I turned off Regulatory Mode. and that while they worked with the same settings on my wl-500w with 802.11d enabled:confused: Including an old 802.11g card which usually had 14Mb/s now reaching 54Mb/s.

Also enabling WMM can double the max speed on some cards, while they don't have negative effects on the other cards.
I have 9 different cards of different brands so it's a pretty solid result I'd say:p

seems like some settigs are made for these wlan drivers, or is this just coincidence?

wpte
03-04-2010, 23:54
Hi,

Things got worst :(

Now with only one drive connected directly to the usb (no raid) I've got the writing errors to the drive (read seems ok since it was mounted for 2 days and I've got no error).

Drive was mounted as ext3.
Firmware 1.9.2.7-rtn-r1395

Bug on the scsi drivers?

What brand and type drives do you have?
do you connect them via usb hub?

in cases like that I usually reset the settings after making a backup, to make sure no left-over settings are stored.:)

s1za
04-04-2010, 04:17
What brand and type drives do you have?
do you connect them via usb hub?

in cases like that I usually reset the settings after making a backup, to make sure no left-over settings are stored.:)

Now the drive (Iomega 1Tb) is connected directly to the usb port, since I got a similar problem using both drives (I've got two) in raid1 (post #77).

Trouble started with RT-N16. I had this system (2 Iomega 1Tb connected to a hub in raid1) working for 2 years on a 500gp without any problem. Now I'm afraid of losing data...

You mean doing a reset to the memory of the router?

wpte
04-04-2010, 13:07
Now the drive (Iomega 1Tb) is connected directly to the usb port, since I got a similar problem using both drives (I've got two) in raid1 (post #77).

Trouble started with RT-N16. I had this system (2 Iomega 1Tb connected to a hub in raid1) working for 2 years on a 500gp without any problem. Now I'm afraid of losing data...

You mean doing a reset to the memory of the router?

the drives should be alright according to the iomega website: http://www.iomega.com/europe/support/english/documents/10657e.html

Yes, the memory of the router.
Just back up the settings when it doesn't change anything of course:)

wpte
04-04-2010, 20:34
Which older version exactly? Can you provide your rule, just for information?

P.S. ipt_recent was modified in r1393

it never worked as far as I can see:o

When I turned on the protection in the web-gui it doesn't open the port.
Then when I make a rule for accepting port 22, the port is unprotected.

Then I tried my old iptables, which portforwards and use tarpit and ipt_recent

#!/bin/sh
WANIF=vlan2
LANIP=`nvram get wan_ipaddr_t`

# deleting last firewal rules (policy)
iptables -D INPUT -j DROP

# Drop previous offenders - you dont want them in your net at all!
iptables -N BANDITDROP
iptables -A INPUT -m recent --rcheck --name BRUTE -j BANDITDROP
iptables -A FORWARD -m recent --rcheck --name BRUTE -j BANDITDROP
iptables -A BANDITDROP -m recent --update --seconds 3600 --rttl --name BRUTE -j LOG --log-prefix "Bandit DROP " --log-tcp-sequence --log-tcp-options --log-ip-options
iptables -A BANDITDROP -j REJECT --reject-with icmp-net-unreachable

# Detect port scan
iptables -N PORTSCANDROP
iptables -A INPUT -i ${WANIF} -m psd -j PORTSCANDROP
iptables -A PORTSCANDROP -m recent --set --name BRUTE
iptables -A PORTSCANDROP -m recent --update --seconds 3600 --rttl --name BRUTE -j LOG --log-prefix "Port_Scan DROP " --log-tcp-sequence --log-tcp-options --log-ip-options
iptables -A PORTSCANDROP -j REJECT --reject-with icmp-net-unreachable

# FTP server with brute force prevention
iptables -N FTPFORCEDROP
iptables -N FTPACCEPT
iptables -A INPUT -m tcp -p tcp --dport 21 -m state --state NEW -m limit --limit 3/min --limit-burst 2 -j FTPACCEPT
iptables -A INPUT -m tcp -p tcp --dport 21 -j FTPFORCEDROP
iptables -A FTPFORCEDROP -m recent --set --name BRUTE
iptables -A FTPFORCEDROP -m recent --update --seconds 3600 --rttl --name BRUTE -j LOG --log-prefix "FTP_Brute_Force DROP " --log-tcp-sequence --log-tcp-options --log-ip-options
iptables -A FTPFORCEDROP -p tcp -j TARPIT
iptables -A FTPFORCEDROP -j REJECT --reject-with icmp-proto-unreachable
iptables -A FTPACCEPT -j LOG --log-prefix "FTP ACCEPT " --log-tcp-sequence --log-tcp-options --log-ip-options
iptables -A FTPACCEPT -j ACCEPT
iptables -t nat -A PREROUTING -i ${WANIF} -p tcp --dport 21 -j DNAT --to-destination ${LANIP}:21

# SSH server with brute force prevention
iptables -N SSHFORCEDROP
iptables -N SSHACCEPT
iptables -A INPUT -m tcp -p tcp --dport 22 -m state --state NEW -m limit --limit 3/min --limit-burst 2 -j SSHACCEPT
iptables -A INPUT -m tcp -p tcp --dport 22 -j SSHFORCEDROP
iptables -A SSHFORCEDROP -m recent --set --name BRUTE
iptables -A SSHFORCEDROP -m recent --update --seconds 3600 --rttl --name BRUTE -j LOG --log-prefix "SSH_Brute_Force DROP " --log-tcp-sequence --log-tcp-options --log-ip-options
iptables -A SSHFORCEDROP -p tcp -j TARPIT
iptables -A SSHFORCEDROP -j REJECT --reject-with icmp-proto-unreachable
iptables -A SSHACCEPT -j LOG --log-prefix "SSH ACCEPT " --log-tcp-sequence --log-tcp-options --log-ip-options
iptables -A SSHACCEPT -j ACCEPT
iptables -t nat -A PREROUTING -i ${WANIF} -p tcp --dport 22 -j DNAT --to-destination ${LANIP}:22

# Restablishing INPUT chain policy
iptables -A INPUT -j DROP

the ones that sort of work like I described before.
I'm not sure who gave them to me... I believe it was tamadite, and they worked well on the wl-500w


happy easter btw (for the people who celebrate it :p)

s1za
26-04-2010, 00:43
the drives should be alright according to the iomega website: http://www.iomega.com/europe/support/english/documents/10657e.html

Yes, the memory of the router.
Just back up the settings when it doesn't change anything of course:)

So, after testing everything (installed everything from scratch FW R1456, tested step by step and using different disks) I noted this facts :confused:

-Tested with 3 different types of usb pens: no brand each with 1Gb)
and 2 types of usb hdd: one generic enclose with a Fujitsu MHV2100AT 2.5 100Gb and the Iomega enclosure with Seagate ST31000333AS 3.5 1Tb powered independently;

-Every drive works normally if attached alone, i.e. without other drives attached in any combination;

-Only the combination pen (partitions with swap and /opt) and 2.5 hdd worked without problems;

-Other combinations pen + pen, pen + 3.5 hdd, etc. result in errors similar to this:
kernel: usb 2-2: reset high speed USB device using ehci_hcd and address 5
kernel: usb 2-2: device descriptor read/64, error -32
kernel: sd 1:0:0:0: scsi: Device offlined - not ready after error recovery
kernel: sd 1:0:0:0: [sdb] Result: hostbyte=0x05 driverbyte=0x00
kernel: end_request: I/O error, dev sdb, sector 484411207

-Every drive (disk, cables, etc.) worked flawlessly on a Ubuntu 9.10 (2.6.31.20) notebook;

-This leaves RAID out of the equation;

lly
26-04-2010, 07:40
-Other combinations pen + pen, pen + 3.5 hdd, etc. result in errors similar to this:
First of all, you forget to tell us your router model (rtn branch supports several devices).

Currently, we have EHCI driver in rtn branch older than in 1.9.2.7-d since backport from 2.6.29 to 2.6.22 not ready yet.

-Every drive (disk, cables, etc.) worked flawlessly on a Ubuntu 9.10 (2.6.31.20) notebook;
Once again - we have to use obsolete kernel 2.6.22 due to binary Broadcom WiFi drivers :(

You can do experiments with log2_irq_thresh parameter ehci_hcd module parameter, i.e. something like

rmmod ehci_hcd
insmod ehci_hcd log2_irq_thresh=4

s1za
26-04-2010, 09:41
First of all, you forget to tell us your router model (rtn branch supports several devices).

Currently, we have EHCI driver in rtn branch older than in 1.9.2.7-d since backport from 2.6.29 to 2.6.22 not ready yet.

Once again - we have to use obsolete kernel 2.6.22 due to binary Broadcom WiFi drivers :(

You can do experiments with log2_irq_thresh parameter ehci_hcd module parameter, i.e. something like

rmmod ehci_hcd
insmod ehci_hcd log2_irq_thresh=4

Asus RT-N16. (Sorry, was on previous posts)

I also tried:

echo 120 > /sys/block/sda/queue/max_sectors_kb
as on https://help.ubuntu.com/community/Mount/USB

with 120, 128 and 64 with no luck.

I'll try your suggestion. Thanks.

s1za
28-04-2010, 00:37
First of all, you forget to tell us your router model (rtn branch supports several devices).

Currently, we have EHCI driver in rtn branch older than in 1.9.2.7-d since backport from 2.6.29 to 2.6.22 not ready yet.

Once again - we have to use obsolete kernel 2.6.22 due to binary Broadcom WiFi drivers :(

You can do experiments with log2_irq_thresh parameter ehci_hcd module parameter, i.e. something like

rmmod ehci_hcd
insmod ehci_hcd log2_irq_thresh=4

Tried


rmmod ehci_hcd
insmod ehci-hcd log2_irq_thresh=4 (from 6 to 1)

with no luck on both RT-N16 R1456 and the latest R1478 :(

removing the ehci_hcd and mounting the drives on ohci_hcd worked with no errors but (of course) with the limited speed of 420 KB/s :(

lly
28-04-2010, 07:22
with no luck on both RT-N16 R1456 and the latest R1478 :(

removing the ehci_hcd and mounting the drives on ohci_hcd worked with no errors but (of course) with the limited speed of 420 KB/s :(
Well, backport of EHCI (second try - first was to 2.4.37 ;)) already was in my TODO, but I can't promise you exact date when it will happens.

s1za
29-04-2010, 10:13
Well, backport of EHCI (second try - first was to 2.4.37 ;)) already was in my TODO, but I can't promise you exact date when it will happens.

1st test with R1481 was:
:) OK. Managed to copy a 2Gb file without any errors...

I'll continue the tests (hub, RAID, etc.)

Nevertheless I'd like to thank Ily (and also all the others) for the effort putted on this project.

s1za
30-04-2010, 00:40
1st test with R1481 was:
:) OK. Managed to copy a 2Gb file without any errors...

I'll continue the tests (hub, RAID, etc.)

Nevertheless I'd like to thank Ily (and also all the others) for the effort putted on this project.

2nd test

with 2 hdd discs on a hub connected to the 2nd usb port (1st with a pen /opt) (still on R1478 I'll continue testing on new releases)

mount the RAID /dev/md0 ok, start to sync at about 1000KB/s and the speed of sync drop to 100KB/s (was 8000KB/s on the 500gp). After a while the second disk is disconnected with the same 'reset error' as before.

Also the maximum speed in samba, file transfer from disk (no RAID) to notebook, is 2.5MB/s. I think I saw a post with higher speeds (about 8MB/s) is this alright?

wpte
30-04-2010, 01:03
Also the maximum speed in samba, file transfer from disk (no RAID) to notebook, is 2.5MB/s. I think I saw a post with higher speeds (about 8MB/s) is this alright?

From router to pc it should be around 6-7MB/s
dunno if you did that wirelessly since some laptops don't really seem to lift off those speeds:p
Via a wire you should be able to get the proper speeds:)

oh.. and the ipv6 nic doesn't show up yet:)
going to compile those new wifi settings 2morrow and give it a try:D

ecaddict
02-05-2010, 09:04
Does iPv6 work with the rtn versions?
Using r1484 (with RT-N16) I've tried enabling it in the IP config (Native IPv6).
First strange thing was that setting LAN IP (in LAN IPv6 Setting) I could not find it in the output of

ip addr show

nevertheless I could add it with:

ip addr add fec0::92e6:baff:fe2c:xxxx/64 dev vlan1

However

ip neigh show
does not outputs my PCs IPv6 address (similar fec0 site local, statically assigned).
Ping does not work in either direction (ping6 from router to PC, or ping6 from PC to router, not even with link local fe80:: address).

Also running ip neigh show in my PC the link local IP of the router as FAILED.

Using d-r1445 (on WL-500gP) all of these works, also tried ssh, telnet even vsftpd (it was a bit faster than using IPv4 probably as there is no header checksum in IPv6).

lly
02-05-2010, 09:52
Does iPv6 work with the rtn versions?

Didn't check it yet. Thanks for report - will look at problem.

wpte
02-05-2010, 20:30
Didn't check it yet. Thanks for report - will look at problem.

yes the sixtun interface doesn't show up...

Anyway... those changes of asus from r1484 seem to improve the actual troughput of wireless I noticed.
Now I can get similair troughput as with a cable on my slow netbook;)

theMIROn
03-05-2010, 20:37
yes the sixtun interface doesn't show up...

Anyway... those changes of asus from r1484 seem to improve the actual troughput of wireless I noticed.
Now I can get similair troughput as with a cable on my slow netbook;)

just checked, sixtun interface does show up, but autoconfig was broken due icmpv6 neighbor discovery packets are treating as invalid.
anyway, here's workaround from r1520 for 2.6 build

please check and feedback here

ecaddict
07-05-2010, 12:45
If someone is interested I've created a script to build the firmware for RT-N16. It requires a Linux PC and sudoers right to install the needed tools.

First step is to install necessary tools (here it's assumed that Asus directory is used under home):


mkdir ~/Asus ; cd ~/Asus
wget http://wl500g.googlecode.com/files/hndtools-mipsel-uclibc-4.2.4-2.tar.bz2
sudo mkdir -p /opt/brcm
sudo tar -C /opt/brcm -jxvf hndtools-mipsel-uclibc-4.2.4-2.tar.bz2
sudo ln -sf /opt/brcm/hndtools-mipsel-uclibc-4.2.4 /opt/brcm/hndtools-mipsel-uclibc

Then save to build_N16.sh the following lines (+don't forget to chmod +x it after):


#!/bin/sh

KVER=2.6.22.19
BDIR=cfm_n16
RVER=1536

BDIR="`pwd`/${BDIR}"
mkdir ${BDIR}
mkdir -p ${BDIR}/broadcom/src/linux
! [ -f "${PWD}/linux-${KVER}.tar.bz2" ] && wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-${KVER}.tar.bz2
tar -C ${BDIR}/broadcom/src/linux -jxvf linux-${KVER}.tar.bz2
ln -sf ${BDIR}/broadcom/src/linux/linux-${KVER} ${BDIR}/broadcom/src/linux/linux-2.6

[ -n "$RVER" ] && BVER="-r$RVER"
[ -z "`echo $PATH | grep hndtools-mipsel-uclibc`" ] && export PATH=$PATH:/opt/brcm/hndtools-mipsel-uclibc/bin
svn checkout "$BVER" http://wl500g.googlecode.com/svn/branches/rt-n/ ${BDIR}/broadcom/src/wl500g-1.9.2.7-rtn
cd ${BDIR}/broadcom/src/wl500g-1.9.2.7-rtn
make kernel
make
cd ${BDIR}/broadcom/src/gateway
make
make install

RVER has to be set to the version you'd like to build.
Build is with ./build_N16.sh in Asus directory.

Firmware (trx file) and modules are in ~/Asus/cfm_n16/broadcom/src/gateway/mipsel-uclibc

After this, build can be done selectively only what is changed.

Wiki in google code could be updated for rtn branch as currently lacking this kind of information...

lly
07-05-2010, 13:51
Wiki in google code could be updated for rtn branch as currently lacking this kind of information...
Tell us your opinion - is separate wiki page should be created or information about both branches should reside on single page?

ecaddict
07-05-2010, 15:26
Single page is probably enough. The most important is that information is collected somewhere.

Btw, couple of days ago (after IPv6 was fixed) I've made a quick try with the firmware vsftpd&IPv6. It was listening and my PC tried to connect but after TCP SYN/SYN ACK round disconnect was received.
Is it working/have you checked it?

Don't waste too much time on it if it seems OK, I'll give a second try to it.

lly
07-05-2010, 15:39
Btw, couple of days ago (after IPv6 was fixed) I've made a quick try with the firmware vsftpd&IPv6. It was listening and my PC tried to connect but after TCP SYN/SYN ACK round disconnect was received.
Is it working/have you checked it?
Updated 2010-05-08: vsftpd & IPv6 works for me in r1538

ecaddict
10-05-2010, 20:33
Updated 2010-05-08: vsftpd & IPv6 works for me in r1538

Can you please send your (a working) vsftpd.conf?

It seems to run, however when I try to connect a FIN comes nearly immediatelly (after SYN, SYN, ACK):


netstat -a | grep ftp
tcp 0 0 :::ftp :::* LISTEN


lsof | grep vsftpd
...
vsftpd 653 admin 3u IPv6 4396 0t0 TCP *:ftp (LISTEN)

wpte
10-05-2010, 22:27
Can you please send your (a working) vsftpd.conf?

works for me as well...


anonymous_enable=no
dirmessage_enable=yes
download_enable=no
dirlist_enable=no
hide_ids=yes
syslog_enable=yes
local_enable=yes
local_umask=022
chmod_enable=no
chroot_local_user=yes
check_shell=no
isolate=no
user_config_dir=/etc/vsftpd.users
passwd_file=/etc/vsftpd.passwd
listen_ipv6=yes
listen_port=21
background=yes
max_clients=0
idle_session_timeout=0
utf8=yes
use_sendfile=no
anon_max_rate=0
local_max_rate=0

wpte
11-05-2010, 16:15
Wow, really nice system utilization monitor:D

ecaddict
11-05-2010, 19:57
works for me as well...


Thanks, it works for me as well now. It was not the listen_ipv6 (as it was listening on IPv6) but some other parameter.

ecaddict
11-05-2010, 21:08
I've checked NFS block size again. It seems to be 16K instead of 32K. Probably since modules are included in the firmware...

lly
12-05-2010, 07:03
I've checked NFS block size again. It seems to be 16K instead of 32K. Probably since modules are included in the firmware...
Can you explain how did you do measures exactly?

ecaddict
12-05-2010, 08:00
Can you explain how did you do measures exactly?

Made the mount as usual:

mkdir /tmp/RT-N16
sudo mount -t nfs -o rsize=32768,wsize=32768,timeo=14,intr,proto=udp 192.168.1.1:/mnt /tmp/RT-N16

started a file copy and monitored the traffic with Wireshark.
I know that in the code it's 32K (maybe in /linux/linux-2.6/include/nfsd/const.h, I cannot check it right now) but in the monitoring I could see only 16K blocks.

wpte
12-05-2010, 12:11
I've checked NFS block size again. It seems to be 16K instead of 32K. Probably since modules are included in the firmware...

the modules should be exactly the same as from the separate modules: ftp://core.dumped.ru/rt-n/1547/
They come from exactly the same patched kernel and I didn't change any settings of those modules;)

ecaddict
13-05-2010, 21:11
I thought that modules are taken from flash. I don't know what's wrong:

6401

Update: Probably I've got one step further of this long pending issue.

After checking the mount procedure, I was sure that 16K limit comes from server side.
6439

Google search pointed to one direction, that could help
http://www.spinics.net/lists/linux-nfs/msg07247.html
but unfortunately /proc/fs/nfsd/max_block_size does not exist in the router...


.../broadcom/src/linux/linux-2.6/fs/nfsd/nfs3proc.c
nfsd3_proc_fsinfo...
u32 max_blocksize = svc_max_payload(rqstp);
...
resp->f_rtmax = max_blocksize;
resp->f_rtpref = max_blocksize;
resp->f_rtmult = PAGE_SIZE;
resp->f_wtmax = max_blocksize;
resp->f_wtpref = max_blocksize;
resp->f_wtmult = PAGE_SIZE;
resp->f_dtpref = PAGE_SIZE;
resp->f_maxfilesize = ~(u32) 0;
resp->f_properties = NFS3_FSF_DEFAULT;



.../broadcom/src/linux/linux-2.6/net/sunrpc/svc.c
u32 svc_max_payload(const struct svc_rqst *rqstp)
{
int max = RPCSVC_MAXPAYLOAD_TCP;

if (rqstp->rq_sock->sk_sock->type == SOCK_DGRAM)
max = RPCSVC_MAXPAYLOAD_UDP;
if (rqstp->rq_server->sv_max_payload < max)
max = rqstp->rq_server->sv_max_payload;
return max;
}


Thus it's either RPCSVC_MAXPAYLOAD_UDP or rqstp->rq_server->sv_max_payload.

and header files contain 32K:


.../broadcom/src/linux/linux-2.6/include/linux/sunrpc/svc.h
#define RPCSVC_MAXPAYLOAD (1*1024*1024u)
#define RPCSVC_MAXPAYLOAD_TCP RPCSVC_MAXPAYLOAD
#define RPCSVC_MAXPAYLOAD_UDP (32*1024u)


So it must be sv_max_payload. The origin of it is touched in different places, e.g.

.../broadcom/src/linux/linux-2.6/fs/nfsd/nfssvc.c
int nfsd_create_serv(void)
{
int err = 0;
lock_kernel();
if (nfsd_serv) {
svc_get(nfsd_serv);
unlock_kernel();
return 0;
}
if (nfsd_max_blksize == 0) {
/* choose a suitable default */
struct sysinfo i;
si_meminfo(&i);
/* Aim for 1/4096 of memory per thread
* This gives 1MB on 4Gig machines
* But only uses 32K on 128M machines.
* Bottom out at 8K on 32M and smaller.
* Of course, this is only a default.
*/
nfsd_max_blksize = NFSSVC_MAXBLKSIZE;
i.totalram <<= PAGE_SHIFT - 12;
while (nfsd_max_blksize > i.totalram &&
nfsd_max_blksize >= 8*1024*2)
nfsd_max_blksize /= 2;
}


I don't know if this function is used or not, but one thing is sure: This algorithm does not make sense for routers where 128 MB RAM is quite a lot.

.../broadcom/src/linux/linux-2.6/include/linux/nfsd/const.h
#define NFSSVC_MAXBLKSIZE RPCSVC_MAXPAYLOAD

Also this thould not give 16K block size so I don't get it...
Does si_meminfo report the correct memory amount? E.g. reporting one page less, could lead exactly to the 16K NFS block size...

Anyhow what's so bad about this algorithm that it sets the 16K (32K) limit even for TCP, where it should be at least 64K (but more like 256K)...
In PC with lots of processes it may make sense, but not with the router.

The simplest to fix this would be probably to change
int nfsd_max_blksize; -> int nfsd_max_blksize=65536;
in nfsctl.c (the uniniatilised global looks ugly to me anyhow...)

Related is the write_maxblksize and NFSD_MaxBlkSize but as I could not find the file, probably it does not play any role.

bef
16-05-2010, 21:13
Hello

In the german forum a problem arised about "non-interactive" ssh-sessions such as subversion over ssh. While a manual login to the router (in my case) using putty as client and dropbear as server the paths set in /opt/etc/profile are applied and i can execute svnserve or any other command. As soon as the ssh-connection is called from a programm (tortoisesvn using the putty plink.exe) or i call the plink manualy with this comand (in win7):


plink.exe @svn svnserve //svn is a putty-session with username and key set.

The answer is always:


sh: svnserve: not found


Has anyone an idea on how to set the paths for autonomious logins?

regards
Benj

wpte
17-05-2010, 09:52
Hello

In the german forum a problem arised about "non-interactive" ssh-sessions such as subversion over ssh. While a manual login to the router (in my case) using putty as client and dropbear as server the paths set in /opt/etc/profile are applied and i can execute svnserve or any other command. As soon as the ssh-connection is called from a programm (tortoisesvn using the putty plink.exe) or i call the plink manualy with this comand (in win7):


plink.exe @svn svnserve //svn is a putty-session with username and key set.

The answer is always:


sh: svnserve: not found


Has anyone an idea on how to set the paths for autonomious logins?

regards
Benj

No idea... tho I have a similar problem with openssh and sftp.
As soon as you try to connect with sftp, the special sftp server from openssh can't be found:confused: (while it does exist on disk)

bef
20-05-2010, 09:17
I think i have found the source for these errors, though i have no idea on how to fix it. If i do the following (from cmd in win7):


plink.exe @svn echo $PATH //svn is a putty-session with username and key set.


the result is


/usr/bin:/bin


Therefore i think these are the default paths offered from dropbear. I didn't found a way to start dropbear with a path argument. And i can't add a link from any of these directories to the svn commands (read-only :/ )

other approach: set a PATH variable in putty
though this yields


server refused to set environment variable

is it possible to allow the setting of such env variables in dropbear?

regards Benj

ecaddict
31-05-2010, 14:22
I've checked this NFS max block size issue a bit more and maybe I've found the cause of why 16K block size is used.
Link (http://wl500g.info/showpost.php?p=197273&postcount=116)to original post.
I've updated the original post to contain all information now.

Please check and fix it if that's indeed the root cause.
My guess is that initialising nfsd_max_blksize will fix this issue.

lly
31-05-2010, 14:50
I've checked this NFS max block size issue a bit more and maybe I've found the cause of why 16K block size is used.

Yes, you found right place, thank you for investigations!
Tell me your opinion - 32K will be enough?

ecaddict
31-05-2010, 20:40
Tell me your opinion - 32K will be enough?

Yes, for UDP 32K is OK, but for (because of) TCP 64K is preferred.

lly
01-06-2010, 07:16
Yes, for UDP 32K is OK, but for (because of) TCP 64K is preferred.
Well, I will do like:
128M RAM - 64K
32M RAM - 32K (like in 2.4 based FW)

ecaddict
01-06-2010, 07:47
Well, I will do like:
128M RAM - 64K
32M RAM - 32K (like in 2.4 based FW)

OK, thanks.

lly
01-06-2010, 18:57
OK, thanks.
Please try r1633

ecaddict
01-06-2010, 19:52
Please try r1633

It works, thank you for the good correction.

ecaddict
01-06-2010, 21:36
I've measured NFS copy speed with 32K block size (USB HDD using ext3 filesystem).
This is at 480 MHz.
6526

More than 13.5 MB/s, slightly more than I've expected...

When clock is changed to 533, it has gone a bit above 14 MB/s.

If TCP speed could be fixed somehow...

wpte
02-06-2010, 19:28
If TCP speed could be fixed somehow...

I have the E3000 GPL sources, so maybe we have better drivers now:D

update: they are most certainly differen tho!
I did some md5sums on sources and wlan drivers, and a lot of files are not the same :D

now lets hope these drivers work for our router as well... even when the E3000 has a 5GHz radio as well

ecaddict
05-06-2010, 18:05
I've made a new test with TCP (actually FTP). Normally for every second packet there is an acknowledgement (this is what I felt excessive). This can be however changed in Windows XP quite easily.

So I've booted Windows XP and connected to the router (at 480MHz). PC was not a very powerful, however with gigabit ethernet. Result of 640 MByte file transfer:
6568

Too bad, especially compared with NFS.

Then I've changed TCP ACK frequency based on MS description:
http://support.microsoft.com/kb/328890

The most important point:
Subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters\Interfaces\<Interface GUID>
Entry: TcpAckFrequency
Value Type: REG_DWORD, number
Valid Range: 0-255
Default: 2

I've set it to 18 (hex 12). XP rebooted, otherwise nothing changed.
Repeated test (I've monitored the traffic during the transfer as usual):
6569

Close to 50% increase! This indicates that the per-packet overhead of bulk transfer is quite significant. This fits to the general trend that using modern processors the per-packet overhead is more significant than the per-byte.

A very good paper on this:
http://infoscience.epfl.ch/record/118461/files/paper.pdf

This brings the question, if there is some enhancement related to this issue in recent kernels?
Due to sub millisecond difference between the packets, aggregation could gain a lot and bring TCP performance closer to UDP.

wpte
05-06-2010, 22:14
This brings the question, if there is some enhancement related to this issue in recent kernels?
Due to sub millisecond difference between the packets, aggregation could gain a lot and bring TCP performance closer to UDP.

TcpAckFrequency is something the linux kernels automatically calculates... as in: the kernel detects whether or not the frequency should be changed. (as far as I know)
Windows on the other hand does not include this functionality and requires a manual change in the registry (as you've done).

it is said that the linux implementation is better. Also you can't directly manually change the tcpackfrequency as far as I know.

the odd thing is, that this setting did not had a positive effect for me (on samba), that's why I didn't mentioned it earlier since I'm known with this windows feature.
you have some good results tho:)
For FTP it works great, 11MB/s with ease.
btw, try winscp for FTP client instead of the windows one, sometimes it's just a little faster.

ecaddict
06-06-2010, 16:14
TcpAckFrequency is something the linux kernels automatically calculates... as in: the kernel detects whether or not the frequency should be changed. (as far as I know)


Unfortunately not my Linux version that I regularly use (I've posted captures already that show that every second packet is acknowledged).
uname -r gives
2.6.32.12-115.fc12.i686.PAE

OK, not the latest Linux kernel but still not that old.

Because this "ACK for every second segment" comes from RFC1122, do you have some link where this is discussed in the context of Linux?

Btw, in some environments this ACK for every second segment does not make sense and indeed something more flexible would be needed. I just did not follow this kind of development (if any) so if someone has some concrete information that could help.



For FTP it works great, 11MB/s with ease.


What OS/SW do you use? Was it with a big file (like in my case it was 640MB).

wpte
06-06-2010, 19:46
Unfortunately not my Linux version that I regularly use (I've posted captures already that show that every second packet is acknowledged).
uname -r gives
2.6.32.12-115.fc12.i686.PAE

OK, not the latest Linux kernel but still not that old.

Because this "ACK for every second segment" comes from RFC1122, do you have some link where this is discussed in the context of Linux?

Well it should have that...

linky linky: http://wiki.hsc.com/wiki/Main/InsideLinuxTCPDelayedAck
http://www.cs.helsinki.fi/research/iwtcp/papers/linuxtcp.pdf

what about that? :)
Also I believe that linux has a static or dynamic setting, which can be changed in the sources... the static is standard 10ms I believe.


What OS/SW do you use? Was it with a big file (like in my case it was 640MB).
Windows 7 ultimate 64bit and winscp as FTP client as I said.
I used to use filezilla, but it's always slow on my pc... just 2,5MB/s even on proper FTP servers with powerfull cpu's:p
Furthermore I have an nvidia gigabit ethernet card (which is quite high performance:))

ecaddict
06-06-2010, 21:19
Well it should have that...

linky linky: http://wiki.hsc.com/wiki/Main/InsideLinuxTCPDelayedAck
http://www.cs.helsinki.fi/research/iwtcp/papers/linuxtcp.pdf


Not sending ACK for every segment is already called delayed ACK. However what I've done for the sake of the test was forcing that ACK was sent even less frequent.

The trouble with searching a solution in non-router side is that:

1. Requires capable TCP stacks/OSs and e.g. the Linux version that I'm using does not work out of the box in that way and there is no information how to achieve that (the links don't have that)
Other boxes like media players are even less likely to support that kind of improvements.

2. For some protocols specialized programs (like winscp) may provide a bit of improvement, however that's not an option for Samba and for the rest of the protocols that use TCP (maybe in another Linux box).
Also my Linux PC (with a decent CPU/HDD) when doing a similar FTP copy test was only a bit faster, not reaching the 9 MB/s. So it's not just XP and the FTP that comes with it, but also other OSs have performance issue with TCP.

wpte
06-06-2010, 22:24
The trouble with searching a solution in non-router side is that:

1. Requires capable TCP stacks/OSs and e.g. the Linux version that I'm using does not work out of the box in that way and there is no information how to achieve that (the links don't have that)
Other boxes like media players are even less likely to support that kind of improvements.

So you want to make the router to force the ACK to be send less frequent?



2. For some protocols specialized programs (like winscp) may provide a bit of improvement, however that's not an option for Samba and for the rest of the protocols that use TCP (maybe in another Linux box).
Also my Linux PC (with a decent CPU/HDD) when doing a similar FTP copy test was only a bit faster, not reaching the 9 MB/s. So it's not just XP and the FTP that comes with it, but also other OSs have performance issue with TCP.
Samba performs really bad with the delayed Ack... under 100KB/s.
When I used ubuntu on 2 machines I was capable of reaching over 110MB/s with FTP and samba. I made 2 RAM disks (which is fairly easy in linux) on each pc to make sure that no read/write file delay was bottlenecking the benchmark.
Are you sure both systems had 1GB connections?:confused:

ecaddict
07-06-2010, 07:54
So you want to make the router to force the ACK to be send less frequent?


No, the router has to live with what the remote end supports (and that's typically sending ACK for every second segment that is basic delayed ACK).

Where the router could be improved is reducing the per-packet overhead. It's bad that a few more ACKs (nothing but TCP header) can so badly ruin the TCP performance.
This would be quite big work if there is no kernel support already for it. However as this is the general trend because of CPU architectural changes how memory is accessed (like described in the paper I've linked earlier), there maybe such support or that kind of support can be expected sometime.
Something like LRO (http://lwn.net/Articles/243949/), but generalized to include also the ACK (LRO seems to be part of the 2.6.24 kernel, however due to binary Broadcom drivers that is missed with 2.6.22 kernel...:().

Btw I'm sure that gigabit was used. NFS could not reach close to ~14MB/s otherwise.

wpte
09-06-2010, 15:52
Anyone ever had the problem that the wifi goes down?

It happened to me twice now.
once it kept broadcasting but didn't respond to any connection requests.
the second time right now it didn't broadcasted at all, while according to the router, the network was up.

I did wl down and wl up, after that it worked again:confused:

necrolatry
09-06-2010, 22:40
What is your firmware version?

wpte
09-06-2010, 23:26
What is your firmware version?

1.9.2.7-rtn-r1633

my friend has similair problems since R1484
http://code.google.com/p/wl500g/source/detail?r=1484
it's not that frequent, but now and then, it just stops working:confused:

lly
10-06-2010, 11:26
I don't observe such behavior on my RT-N16, probably I never load WiFi as much as you. Anyway, WiFi driver itself wasn't modified, only many patches against kernel.

It will be best, if you can trace starting on which revision problem appears.

wpte
10-06-2010, 14:39
I don't observe such behavior on my RT-N16, probably I never load WiFi as much as you. Anyway, WiFi driver itself wasn't modified, only many patches against kernel.

It will be best, if you can trace starting on which revision problem appears.

I know only the settings changed, and it does deliver a slightly better performance, at least better compatibility with older wifi products:p

I do have a wireless ethernet bridge (my old wl500w) which does try to keep the link alive, but it's nothing like a high load.

As I said, its since that revision I had those problems, just like a friend of mine:confused:

I'm not sure... can you advice me some commands I should run when it happens? to check the status etc? "wl status" probably, but maybe some advanced things I'm not aware of:p

lly
10-06-2010, 17:16
In other words, you want to say me that r1478 is OK, and r1484 has problems?

wpte
10-06-2010, 18:31
In other words, you want to say me that r1478 is OK, and r1484 has problems?

sorry to disappoint you, but yes, I guess so:o
I Hate to bring things up like that:p

I mean, I don't think I configured it wrong: just everything on auto basicly, 40mhz, wpa-personal aes and wmm enabled.

I enabled wmm since it tripled the max speed on my wireless ethernet bridge:)

Maybe it's better to analyze it before jumping into actions? lly, what would you like to know when wifi stops working?:p

lly
11-06-2010, 19:29
Maybe it's better to analyze it before jumping into actions? lly, what would you like to know when wifi stops working?:p
I will agree with you, in case of I have some debugging instruments.
Unfortunately, we can use only ioctl calls (wl binary).

First of all, check that are nas + eapd processes are in memory. Second, issue "wl status" - maybe is shows something. Also try to set wl0_obss_coex=0 - it is major change in r1484 commit

wpte
12-06-2010, 10:18
I will agree with you, in case of I have some debugging instruments.
Unfortunately, we can use only ioctl calls (wl binary).

First of all, check that are nas + eapd processes are in memory. Second, issue "wl status" - maybe is shows something. Also try to set wl0_obss_coex=0 - it is major change in r1484 commit

it just happened again this morning.
wl status:

SSID: "*******"
Mode: Managed RSSI: 0 dBm noise: -76 dBm Channel: 4
BSSID: *************** Capability: ESS ShortSlot
Supported Rates: [ 1(b) 2(b) 5.5(b) 6 9 11(b) 12 18 24 36 48 54 ]
802.11N Capable:
Chanspec: 2.4GHz channel 4 40MHz (0x2e04)
Control channel: 6
802.11N Capabilities:
Supported MCS : [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 32 ]


eapd and nas are running.
wlan led is on, but doesn't blink when I try to connect.

seems to be happening overnight all the time:confused:

lly
12-06-2010, 15:55
it just happened again this morning.
Unfortunately wl diagnostic is very poor, I apologize that "wl isup" also will return 1. In case of we suspect r1484 commit, can you revert it on your side for tests?

wpte
12-06-2010, 19:25
Unfortunately wl diagnostic is very poor, I apologize that "wl isup" also will return 1. In case of we suspect r1484 commit, can you revert it on your side for tests?

I haven't tried "wl0_obss_coex=0" yet, but that's pretty much the same as R1448 I guess.
Anyway, my router was running for over 9 days, so maybe I need to wait that long again before it happens:p

I have an active laptop cooler under my router, so everything of this shouldn't happen because of the overheating in the summer

ecaddict
15-06-2010, 16:18
I wanted to try out of switching on GSO has some good impact to TCP performance but noticed that ethtool does not exist for the router. Is it really so?

So my plan was something like:


ethtool -K eth0 gso on

I've checked in include/linux/netdevice.h that GSO flag exists (NETIF_F_GSO):


/* Net device features */
unsigned long features;
#define NETIF_F_SG 1 /* Scatter/gather IO. */
#define NETIF_F_IP_CSUM 2 /* Can checksum only TCP/UDP over IPv4. */
#define NETIF_F_NO_CSUM 4 /* Does not require checksum. F.e. loopack. */
#define NETIF_F_HW_CSUM 8 /* Can checksum all the packets. */
#define NETIF_F_HIGHDMA 32 /* Can DMA to high memory. */
#define NETIF_F_FRAGLIST 64 /* Scatter/gather IO. */
#define NETIF_F_HW_VLAN_TX 128 /* Transmit VLAN hw acceleration */
#define NETIF_F_HW_VLAN_RX 256 /* Receive VLAN hw acceleration */
#define NETIF_F_HW_VLAN_FILTER 512 /* Receive filtering on VLAN */
#define NETIF_F_VLAN_CHALLENGED 1024 /* Device cannot handle VLAN packets */
#define NETIF_F_GSO 2048 /* Enable software GSO. */
#define NETIF_F_LLTX 4096 /* LockLess TX */


and this should work without ethernet driver/HW support.

Also ethtool_set_gso function exists in net/core/ethtool.c

Is there any way to switch it on without writing code for ioctl call?

lly
15-06-2010, 17:39
I wanted to try out of switching on GSO has some good impact to TCP performance but noticed that ethtool does not exist for the router. Is it really so?

It (ethtool) simply don't included into bundle yet. You can compile it yourself at this time, with toolchain published. Or wait some time, we will include it in future.

theMIROn
15-06-2010, 18:08
It (ethtool) simply don't included into bundle yet. You can compile it yourself at this time, with toolchain published. Or wait some time, we will include it in future.
Seems like ethtool 2.6.34 doesn't work on rt-n16


[admin@router-n /tmp]$ ./ethtool -K eth0 gso on
Cannot set device generic segmentation offload settings: Invalid argument

[admin@router-n /tmp]$ ./ethtool -K vlan2 gso on
Cannot set device generic segmentation offload settings: Invalid argument

[admin@router-n /tmp]$ ./ethtool -k vlan2
Offload parameters for vlan2:
Cannot get device rx csum settings: Invalid argument
Cannot get device tx csum settings: Invalid argument
Cannot get device scatter-gather settings: Invalid argument
Cannot get device tcp segmentation offload settings: Invalid argument
Cannot get device udp large send offload settings: Invalid argument
Cannot get device generic segmentation offload settings: Invalid argument
Cannot get device flags: Invalid argument
Cannot get device GRO settings: Invalid argument
no offload info available


it works only for br0


[admin@router-n /tmp]$ ./ethtool -K br0 gso on
[admin@router-n /tmp]$ ./ethtool -k br0
Offload parameters for br0:
Cannot get device rx csum settings: Operation not supported
Cannot get device udp large send offload settings: Operation not supported
Cannot get device flags: Operation not supported
Cannot get device GRO settings: Operation not supported
rx-checksumming: off
tx-checksumming: off
scatter-gather: off
tcp-segmentation-offload: off
udp-fragmentation-offload: off
generic-segmentation-offload: on
generic-receive-offload: off
large-receive-offload: off
ntuple-filters: off
receive-hashing: off


so, ethtool doesn't support broadcom eth devices

lly
15-06-2010, 18:16
Seems like ethtool 2.6.34 doesn't work on rt-n16

Seems to be, et driver missing most modern ethtool ioctl's :(

theMIROn
15-06-2010, 18:25
Seems to be, et driver missing most modern ethtool ioctl's :(

Well, I'll try to add support for et driver/

UPD: et driver exports tcp segmentation, udp large send and scatter-gather offloads...
maybe too modern ethtool I've used

lly
15-06-2010, 18:40
Well, I'll try to add support for et driver
Currently, et driver supports only commands below:

ETHTOOL_GSET
ETHTOOL_SSET
ETHTOOL_GDRVINFO
Moreover, it uses an old 2.4 syntax rather than SET_ETHTOOL_OPS() macros, even turned off by default in Broadcom SDK.

P.S. If you done it, you can sell code back to Broadcom :D

theMIROn
15-06-2010, 18:56
P.S. If you done it, you can sell code back to Broadcom :DYep, funny.
So, there're no ways to manipulate offload for now.

ecaddict
15-06-2010, 21:08
Yep, funny.
So, there're no ways to manipulate offload for now.

As far as I know GSO should not depend on the ethernet driver. The basic idea is that protocol layers don't handle segments (and memory buffers) separately (it's just SW side improvement). When 10K segments needs to be handled per second (due to 1500 bytes MTU) even that matters a lot (if it can be reduced a bit). I don't know if Broadcom managed to break that.

The most important question related to the ethernet driver if it has so poor support for various offload features because of the old kernel version or because of the HW's inability. Too bad that there is no documentation for this...

It's a bit weird that Broadcom produced a driver for a kernel version that pre-dates the announcement of the chip-set by one year and has not released anything new since that. Is it really so?

lly
16-06-2010, 08:30
As far as I know GSO should not depend on the ethernet driver.
Sorry, I have to read documentation much deeper to agree or disagree with you.

It's a bit weird that Broadcom produced a driver for a kernel version that pre-dates the announcement of the chip-set by one year and has not released anything new since that. Is it really so?
Unfortunately, Broadcom tries to support single SDK for both 2.4.20 & 2.6.22 kernel versions. Due to very limited features of both obsolete kernels and since Broadcom don't want (as I can understand) to migrate to newer kernels :mad:, they simply don't implement future features.

P.S. I suspect, that due to "crisis" in top managers brains, SDK development was moved to cheaper place with cheaper programmers. As result, quality of code ...

ecaddict
16-06-2010, 21:12
It seems that /net/core/dev.c has code for this in dev_hard_start_xmit()/dev_queue_xmit(). Having driver support would/could though probably save some copying.



P.S. I suspect, that due to "crisis" in top managers brains, SDK development was moved to cheaper place with cheaper programmers. As result, quality of code ...

I wonder if it can be cheaper than Linux community maintaining the drivers' code for free. Of course it would need a bit broader opening towards Linux than just releasing the code/doc. of a few selected drivers.

wpte
16-06-2010, 21:50
I wonder if it can be cheaper than Linux community maintaining the drivers' code for free. Of course it would need a bit broader opening towards Linux than just releasing the code/doc. of a few selected drivers.

that is probably the best investment a company can ever do...
the only problem is: other people will get to know how a specific technology works, and protecting those technologies... well, they've probably spend a lot of money on that already:rolleyes:

In the end, it's pretty much the same as the movie "the italian job", the mini's (the car) where not sponsored by BMC (the manufacturer), since they didn't understand what a great marketing it would be.
nowadays a lot of cars get sponsored by the companies that produce them, like in the movie "I robot" with the audi.
I hope a similar shift will happen in computer land soon, and that other companies will open up their code a bit.
it's inevitable that linux will grow bigger:)

petu
22-06-2010, 01:52
Hey everyone.

I'm linux noobie and need some help. :)
Is it possible to mount a NTFS partition with write support? If it's possible, how? System log tells me that NTFS partition is mounted read-only.

My harddisk has 4 different partitions: optware (ext3), swap, data (ext3) and data (ntfs).

The second question is that how can I enable swap? or is it even needed (will the router benefit from it)?

If anyone is kind enough to help me, I really need clear instructions what to do.

RdBw
30-06-2010, 18:13
Thank's for great FW. I think it's a best of all. Before I was using Tomato from Teddy bear, but p2p download was allways too slow. Now, with this FW, DL is allways at full speed. Thank's again and keep on good work.

RdBw
02-07-2010, 12:30
Can anyone confirmed, that WPA2 does not working yet. Because I think it is working for me correctly or it is some mistake.

wpte
08-07-2010, 17:19
To come back on the WiFi problem I had...
it seems that with a few new versions flashed the wifi didn't go down.
Perhaps it was just a bad flash:confused:
Moreover, I don't want to go back to the old wifi settings since some (embedded) devices won't work with that:p

but maybe a bit vivid imaginative explanation: after flashing new firmware the router stops responding a lot of the times and the wifi led starts blinking. this puts the wifi card in a sort of state causing it to crash after a specific time:p
I just find it weird that it happens now and then after a flash.

Anyway, does someone know how to make the harddrives to spin down? hdparm doesn't seem to work and my old scsi script doesn't work for the RT-N (hence it doesn't have any) :(

wpte
08-07-2010, 17:20
Can anyone confirmed, that WPA2 does not working yet. Because I think it is working for me correctly or it is some mistake.

Are you sure?
with inssider you can find out if it really broadcasts at WPA2
http://www.metageek.net/products/inssider

lly
08-07-2010, 17:57
To come back on the WiFi problem I had...
WiFi driver wasn't changed at all, only parameters in r1480...

Anyway, does someone know how to make the harddrives to spin down? hdparm doesn't seem to work and my old scsi script doesn't work for the RT-N (hence it doesn't have any) :(
Have you try scsi start/stop utilities from project downloads page?

wpte
08-07-2010, 18:59
WiFi driver wasn't changed at all, only parameters in r1480...
I know, I'm not saying the driver changed;)


Have you try scsi start/stop utilities from project downloads page?
I used those utilities on my WL-500W yes, but on my RT-N16 my drives don't show up as scsi drives.

normally I'd use the utilities in that famous spindown bash script that can be found on the forums, by using this entry /dev/scsi/host0/bus0/target0/lun0/disc
but I don't even have the directory /dev/scsi

or should I just use /dev/discs/disca/disc or something?:confused:

theMIROn
09-07-2010, 07:19
entry /dev/scsi/host0/bus0/target0/lun0/disc
but I don't even have the directory /dev/scsi

or should I just use /dev/discs/disca/disc or something?:confused:

2.6 kernel uses /dev/sd[a-z] entry for drives and /dev/sd[a-z][0-9][0-9] dor patritions, and /dev/discs/disca/disc is just a symlink to /dev/sda for now

Bohlendach
09-07-2010, 08:33
Anyway, does someone know how to make the harddrives to spin down? hdparm doesn't seem to work and my old scsi script doesn't work for the RT-N (hence it doesn't have any) :(

I would like to know too :)


Have you try scsi start/stop utilities from project downloads page?

How do I install the scsi start/stop utilities when


on my RT-N16 my drives don't show up as scsi drives.

and


2.6 kernel uses /dev/sd[a-z] entry for drives and /dev/sd[a-z][0-9][0-9] dor patritions, and /dev/discs/disca/disc is just a symlink to /dev/sda for now

Thanking you in advance.

By the way I am a Linux noob

wpte
09-07-2010, 15:14
2.6 kernel uses /dev/sd[a-z] entry for drives and /dev/sd[a-z][0-9][0-9] dor patritions, and /dev/discs/disca/disc is just a symlink to /dev/sda for now

suspected something like that.
and the scsi tools work fine on /dev/sda:)

Bohlendach
09-07-2010, 15:26
suspected something like that.
and the scsi tools work fine on /dev/sda:)

Sounds great! Can you provide me with instructions on how to use/install the tools. Thx :)

wpte
09-07-2010, 17:09
Sounds great! Can you provide me with instructions on how to use/install the tools. Thx :)

I'm just using the script from: http://wl500g.info/showpost.php?p=47135&postcount=10

I modified it a bit tho, since the start stop utilities are pre-installed with the new firmware:)
look at: http://wl500g.info/showpost.php?p=203696&postcount=173

necrolatry
10-07-2010, 21:33
Hello everyone,

Will there be a support for unicode characters in file names? Here: http://vip.asus.com/forum/view.aspx?id=20100315041641218&board_id=11&model=RT-N16&SLanguage=en-us&page=2 is written that the Chinease characters in file names are NOT supported.

wpte
10-07-2010, 23:05
I'm just using the script from: http://wl500g.info/showpost.php?p=47135&postcount=10

I found out that the script doesnt do that much...
because in /proc/stat there is no value called "disc_io"

I was looking for a replacement... but haven't found any yet:(

is there a way to add that value?

lly
11-07-2010, 06:09
Will there be a support for unicode characters in file names? Here: http://vip.asus.com/forum/view.aspx?id=20100315041641218&board_id=11&model=RT-N16&SLanguage=en-us&page=2 is written that the Chinease characters in file names are NOT supported.
Unfortunately, nobody of us know Chinese. Which NLS codepage you are using? Probably, appropriated charset simply turned off in kernel.

updated: We have cp950 turned on, should we change it to cp936? or?


I found out that the script doesnt do that much...
because in /proc/stat there is no value called "disc_io"

I was looking for a replacement... but haven't found any yet:(

is there a way to add that value?
You have to use /proc/diskstats in 2.6 kernel.

wpte
11-07-2010, 12:30
You have to use /proc/diskstats in 2.6 kernel.
even easier:)

new script:

#!/bin/sh
if /usr/bin/[ $# -ne 1 ]; then
/bin/echo 1>&2 "Usage: $0 <device>"
/bin/echo 1>&2 "example: $0 sda"
exit 1
fi

#Check every 30 seconds for disk io changes
PERIOD=30
#if no changes are found during 5 minutes -> disk spindown
BOUNDARY=300
SCSISTOP=/usr/sbin/scsi-stop
LOGFILE=/tmp/scsi-$1.log

str=`/bin/grep $1 /proc/diskstats`
cooltime=0
stopped=0

while /bin/true; do
/bin/sleep $PERIOD
newstr=`/bin/grep $1 /proc/diskstats`
if /usr/bin/[ "$newstr" = "$str" ]; then
cooltime=$(($cooltime + $PERIOD))
if /usr/bin/[ $cooltime -ge $BOUNDARY -a $stopped -eq 0 ]; then
$SCSISTOP /dev/$1
time=`/bin/date '+%b %e %H:%M:%S'`
/bin/echo "$time: Cooled down..." >> $LOGFILE
stopped=1
fi
else
if /usr/bin/[ $cooltime -ne 0 ]; then
time=`/bin/date '+%b %e %H:%M:%S'`
/bin/echo "$time: Disk first used after $cooltime seconds" >> $LOGFILE
fi
cooltime=0
str=$newstr
stopped=0
fi
done

it should be used like

/usr/local/sbin/scsi-stop.sh sda &
/usr/local/sbin/scsi-stop.sh sdb &
for each device a new log file will be created.

RdBw
12-07-2010, 15:36
Are you sure?
with inssider you can find out if it really broadcasts at WPA2
http://www.metageek.net/products/inssider


Inssider shows under Security RSNA-CCMP for my connection. I also tried Xirrus Wi-Fi Inspector and it shows WPA2/PSK under Default Auth. So it looks like WPA2 is really working with latest builds.
Just for info ...

wpte
13-07-2010, 16:50
Inssider shows under Security RSNA-CCMP for my connection. I also tried Xirrus Wi-Fi Inspector and it shows WPA2/PSK under Default Auth. So it looks like WPA2 is really working with latest builds.
Just for info ...

Yes RSNA-CCMP is WPA2-AES.
I've tried to turn it on today, but it didn't work out that well.
I put my router back to defaults, and after that I got WPA2 working, but as soon as you changed to a different encryption method WPA is used, even when you put it back on WPA2:confused:

I tried to reset my router again, but I haven't managed to put WPA2 on again, maybe some sort of bug:confused:

lly
13-07-2010, 17:16
I put my router back to defaults, and after that I got WPA2 working, but as soon as you changed to a different encryption method WPA is used, even when you put it back on WPA2:confused:

I tried to reset my router again, but I haven't managed to put WPA2 on again, maybe some sort of bug:confused:
If you can localize the problem, please save nvram variables before and after, for analysis.

RdBw
13-07-2010, 21:32
WPA is working fine for me for all of the latest builds, but I've another question: When used Bandwidth 20Mhz, then 802.11n SubChannel should be marked as None. But even when saved as None, it shows like Upper or Lower and Upper or Lower should be used only for 40 Mhz. Is that correct?

wpte
13-07-2010, 23:00
WPA is working fine for me for all of the latest builds, but I've another question: When used Bandwidth 20Mhz, then 802.11n SubChannel should be marked as None. But even when saved as None, it shows like Upper or Lower and Upper or Lower should be used only for 40 Mhz. Is that correct?
that's correct

see chapter bandwidth and subchannel: http://code.google.com/p/wl500g/wiki/GUIWirelessInterface

s1za
17-07-2010, 23:28
Hi,

Following this posts http://wl500g.info/showpost.php?p=193019&postcount=86

today I've re-formated everything (pen with /opt and the 1 Tb hard disk), installed from scratch with r1807 (no usb hubs, no raid partitions) and still no harddisk stability. It stops after couple of reads and writes.

I'm really at a dead end (no backups, no streaming). I'm open for suggestions...

wpte
18-07-2010, 14:12
Hi,

Following this posts http://wl500g.info/showpost.php?p=193019&postcount=86

today I've re-formated everything (pen with /opt and the 1 Tb hard disk), installed from scratch with r1807 (no usb hubs, no raid partitions) and still no harddisk stability. It stops after couple of reads and writes.

I'm really at a dead end (no backups, no streaming). I'm open for suggestions...

and does it work with the harddisk only?
you know... swap, optware and general space on the hdd...

s1za
18-07-2010, 16:09
Sda = 1Gb Flash Pen (Swap at sda1 and /opt at sda2)
Sdb = Sdb1 ext3 formated Iomega 1Tb disk

The sdb stops working after some reads and writes (see syslog.log file attached on previous post)

And as you can read on previous posts from March I've tried everything except install other firmwares.

lly
18-07-2010, 16:15
today I've re-formated everything (pen with /opt and the 1 Tb hard disk), installed from scratch with r1807 (no usb hubs, no raid partitions) and still no harddisk stability. It stops after couple of reads and writes.

Such errors (-71), if not observed before, usually means bad usb cable or insufficient power for HDD.

s1za
18-07-2010, 16:23
Such errors (-71), if not observed before, usually means bad usb cable or insufficient power for HDD.

1. The Iomega 1Tb are external 3.5 disks and have a external power suply;
2. Everything worked for 2 years on a asus 500gp without any problems;
3. The drives work perfectly (same power suply and same usb cables) attached to laptop (either windows or ubuntu)
4. the problems started when I switch the 500gp for the RT-N16 with this firmwares (I didn't tried with the original asus firmware)

lly
18-07-2010, 16:36
1. The Iomega 1Tb are external 3.5 disks and have a external power suply;
2. Everything worked for 2 years on a asus 500gp without any problems;
I don't want to say that your HDD is bad, it has some kind of "specific"...

3. The drives work perfectly (same power suply and same usb cables) attached to laptop (either windows or ubuntu)
Does your ubuntu use obsolete 2.6.22 (or older) kernel? ;)

4. the problems started when I switch the 500gp for the RT-N16 with this firmwares (I didn't tried with the original asus firmware)
Well, but we neither can't switch to newer kernel, nor completed usb backport yet :(

P.S. Mine hitachi usb hdd works well with RT-N16...

s1za
18-07-2010, 17:14
I don't want to say that your HDD is bad, it has some kind of "specific"...

Does your ubuntu use obsolete 2.6.22 (or older) kernel? ;)

Well, but we neither can't switch to newer kernel, nor completed usb backport yet :(

P.S. Mine hitachi usb hdd works well with RT-N16...

I'm trying to find a solution by excluding all the variables and it's not from disks itself but maybe from the combination of this disks with this firmware (even though I had similar results with 2.5 hdd).

Kernel is used on ubuntu 10.04 is 2.6.32

Thank's for your reply's

lly
18-07-2010, 17:20
I'm trying to find a solution by excluding all the variables and it's not from disks itself but maybe from the combination of this disks with this firmware (even though I had similar results with 2.5 hdd).
You can try teddy_bear Tomato K26 mod (http://tomatousb.org/), he done some more usb backports. If it is helps, I can do fast migration of his backports.

s1za
18-07-2010, 20:26
You can try teddy_bear Tomato K26 mod (http://tomatousb.org/), he done some more usb backports. If it is helps, I can do fast migration of his backports.

tried tomato with same result :(
nevertheless found this page in Portuguese/Brazilian :D
http://www.anselmolsm.org/blog/coolermaster-x-craft-linux/

translated by google to english
http://translate.google.com/translate?js=y&prev=_t&hl=en&ie=UTF-8&layout=1&eotf=1&u=http://www.anselmolsm.org/blog/coolermaster-x-craft-linux/&sl=pt&tl=en

(you can ask me if have any doubt with the translation ;) ) that as a link to a patch to a very similar problem. Do you think it my help?
http://www.anselmolsm.org/blog/files/patch-2.6.27-rc8.patch

explained here
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fd7c519dd40a0d561280bb797386143 fb2026949

wpte
18-07-2010, 21:23
I managed to turn on WPA2.
it took me some time since it only worked after I pressed the reset button on the back of the router:p
I've completely worked my way trough the web-admin again to reconfigure everything, and now it's working stable.

furthermore, I can switch between encryption modes now:)

Also the ethernet bridge between my wl-500w and my rt-n16 is better now with wpa2, I can get a troughput of ~6MB/s sometimes:)
but usually around 2MB/s

RdBw
19-07-2010, 00:20
I managed to turn on WPA2.
it took me some time since it only worked after I pressed the reset button on the back of the router:p
I've completely worked my way trough the web-admin again to reconfigure everything, and now it's working stable.

furthermore, I can switch between encryption modes now:)

Also the ethernet bridge between my wl-500w and my rt-n16 is better now with wpa2, I can get a troughput of ~6MB/s sometimes:)
but usually around 2MB/s
Nice to find out a way for WPA2. So the first post sholud be correted, when say: WPA 2 does not work yet.

lly
19-07-2010, 07:31
nevertheless found this page in Portuguese/Brazilian :D
http://www.anselmolsm.org/blog/coolermaster-x-craft-linux/

As I can see, problem in this article slightly differ than yours.
It describes problem with initial hdd recognition and you observe problem after successful hdd initialization, right?

Anyway, I can include patch above for tests. Can you compile FW yourself?

s1za
19-07-2010, 10:54
As I can see, problem in this article slightly differ than yours.
It describes problem with initial hdd recognition and you observe problem after successful hdd initialization, right?

Anyway, I can include patch above for tests. Can you compile FW yourself?

You are right. I can compile the FW for testing.

Also find this:
http://www.howtofixcomputers.com/forums/storage/usb-1-2-device-descriptor-read-64-error-71-a-20161.html

with this bug
https://bugzilla.kernel.org/show_bug.cgi?id=7932

cannot find the patch link. Continue to search as everything points to a Kernel bug.

http://www.linuxquestions.org/questions/linux-hardware-18/usb-error-usb-2-4-device-descriptor-read-64-error-71-a-643022/#post3269374

On this one I could not find the /sys/module/usbcore/parameters/autosuspend parameter...

Thank's

lly
19-07-2010, 11:23
On this one I could not find the /sys/module/usbcore/parameters/autosuspend parameter...
Power management (CONFIG_PM & CONFIG_USB_SUSPEND) disabled in both original ASUS & our FW.

crbrss
26-07-2010, 19:37
Power management (CONFIG_PM & CONFIG_USB_SUSPEND) disabled in both original ASUS & our FW.

hi lly.
No more FW night builds of RT-N16 ftp://core.dumped.ru/rt-n/ ?
Thanks.

C.

RdBw
28-07-2010, 20:52
hi lly.
No more FW night builds of RT-N16 ftp://core.dumped.ru/rt-n/ ?
Thanks.C.

Yes, they are. Link works again ...

qingz
31-07-2010, 06:15
Does this firmware supports USB Webcam? I tried it with my Logitech Quickcam Pro 4000 on my RT-N16, does not work. The same camera works with WL-500G.

lly
31-07-2010, 06:47
Does this firmware supports USB Webcam?
At this moment, you have to compile webcam driver yourself.

P.S. If someone help us with this task (tests and maybe additional patches), it will be much faster...

wpte
01-08-2010, 19:48
At this moment, you have to compile webcam driver yourself.

P.S. If someone help us with this task (tests and maybe additional patches), it will be much faster...

I'm always up for beta testing:)

btw, what drivers would you propose?
still stick to the good old pwc and OV511 drivers?
http://www.saillard.org/linux/pwc/
http://ovcam.org/ov511/

I mean there are some other drivers out that support more and are designed for kernel 2.6

lly
02-08-2010, 06:49
btw, what drivers would you propose?
still stick to the good old pwc and OV511 drivers?
http://www.saillard.org/linux/pwc/
http://ovcam.org/ov511/
I'm not use usb webcam, so I don't know ;)


I mean there are some other drivers out that support more and are designed for kernel 2.6
Of course, we should use recent drivers for 2.6 & V4L2 (video for linux v2).

wpte
02-08-2010, 19:39
Of course, we should use recent drivers for 2.6 & V4L2 (video for linux v2).

V4L2 kernel module is included in the extra modules already (v4l2-common.ko) as far as I can see, so that's the first step:p

Now the webcam drivers are all a bit old, latest updates from 2006 or so...
but our kernel is a bit old as well :p

Modern distro's usually use the UVC driver (http://www.ideasonboard.org/uvc/)
but it seems that it's unusable because it doesn't support still imaging on which the current webcam setup is based if I'm correct:p
yet, it supports an impressive list of devices

so... I'm unsure: change the webcam page with the UVC driver or use the good ol' drivers :p

ov511 drivers need some extra twi/i2c kernel modules for 2.6 apparently

Magna-Flash
03-08-2010, 10:20
I have noticed a problem with the strength/range of the wireless signal.
As soon as I install Oleg Firmware the wireless range become very limited!!!

With Oleg Firmware (RT-N16-1.9.2.7-rtn-r1639) the wireless signal is only good in the same room - but with Asus Firmware (1.0.1.2) I have strong signal everywhere in my house.
Just to confirm the settings:

This is with Asus firmware 1.0.1.2:
# nvram show | grep power
size: 18028 bytes (14740 left)
wl0_radio_power_x=17
wl_radio_power_x=17

And this Oleg:
nvram show | grep power
size: 14159 bytes (18609 left)
wl0_radio_power_x=19
wl_radio_power_x=19

Everything is default values (factory default after installed).
I have tried other values (30, 50 and even 84) but no big difference!

Is there something wrong with how Oleg handles the three antennas on the N16 - since stock Asus 1.0.1.2 has strong signal and Oleg VERY weak?
Iīve also tried Asus 1.0.1.6 (found on their FTP) and this was ALSO weak signal!
Can somebody check and confirm this?

theMIROn
03-08-2010, 10:33
check signal and other ssids with this
http://www.metageek.net/products/inssider
feel free to post screenshoots here then

Magna-Flash
03-08-2010, 23:12
check signal and other ssids with this
http://www.metageek.net/products/inssider
feel free to post screenshoots here then

Below are the screenshots. Notice that Asus signal strength is better (-70dBm). Oleg is almost unusable (-85dBm) - even though "radio power" is 19 in oleg but only 17 in asus! Why:confused:

Hereīs asus 1.0.1.2 (Iīm "WATERGATE"):
Signal strength ~ -70dBm
http://lh3.ggpht.com/_3jWLaYnz7tw/TFiQK1XnHAI/AAAAAAAACY8/v5uypV98xh4/s1152/asus1012.jpg

And hereīs RT-N16-1.9.2.7-rtn-r1867:
Signal strength ~-85dBm!!!:confused:
http://lh6.ggpht.com/_3jWLaYnz7tw/TFiQLCGd8zI/AAAAAAAACZA/rEtUPwPyjks/s1152/oleg-RT-N16-1.9.2.7-rtn-r1867.jpg

Bohlendach
04-08-2010, 08:45
Here come some poor observations and surggestions from a noob. :)

I see that asus 1.0.1.2 has a speed of 65 and the RT-N16-1.9.2.7-rtn-r1867 a speed of 54.

Is this due to the difference in signal strength?

Have you tried to measure the strength with another computer/network card?

Magna-Flash
04-08-2010, 14:45
Here come some poor observations and surggestions from a noob. :)

I see that asus 1.0.1.2 has a speed of 65 and the RT-N16-1.9.2.7-rtn-r1867 a speed of 54.

1.Is this due to the difference in signal strength?

2.Have you tried to measure the strength with another computer/network card?

1. Donīt think so - Oleg was configured G only. Maybe thatīs it - cause I tested again with asus 1.0.1.2 also G only and then it measured 54. Still stronger signal though!
2. Yes - tested with another laptop (different brand) AND my PS3. Same result...

Best would be if someone could install 1.0.1.2 and confirm if they also get stronger signal....

wpte
04-08-2010, 19:05
I see that asus 1.0.1.2 has a speed of 65 and the RT-N16-1.9.2.7-rtn-r1867 a speed of 54.
speed is the (maximum) basic rate measured if I'm correct...

I'm wondering though... why G only?
if you set wireless mode to auto everything is supported :rolleyes:

Here I can still use internet at 50m distance trough trees and walls.
moreover, turning the wifi power up doesn't necessarily increase the network strength

Magna-Flash
04-08-2010, 20:16
I'm wondering though... why G only?
if you set wireless mode to auto everything is supported :rolleyes:


Well - I just tested all possibilities to see if anything would increase signal - and it didnīt, so I just happened to make the screenshot at the "wrong time":o
Nevertheless - I still have lower signal with Oleg than with Asus firmware. Same settings...

Magna-Flash
08-08-2010, 21:57
I have noticed a problem with the strength/range of the wireless signal.
As soon as I install Oleg Firmware the wireless range become very limited!!!

With Oleg Firmware (RT-N16-1.9.2.7-rtn-r1639) the wireless signal is only good in the same room - but with Asus Firmware (1.0.1.2) I have strong signal everywhere in my house.
Just to confirm the settings:

This is with Asus firmware 1.0.1.2:
# nvram show | grep power
size: 18028 bytes (14740 left)
wl0_radio_power_x=17
wl_radio_power_x=17

And this Oleg:
nvram show | grep power
size: 14159 bytes (18609 left)
wl0_radio_power_x=19
wl_radio_power_x=19

Everything is default values (factory default after installed).
I have tried other values (30, 50 and even 84) but no big difference!

Is there something wrong with how Oleg handles the three antennas on the N16 - since stock Asus 1.0.1.2 has strong signal and Oleg VERY weak?
Iīve also tried Asus 1.0.1.6 (found on their FTP) and this was ALSO weak signal!
Can somebody check and confirm this?

Quoting myself just to show what Iīm referring to
Iīm a total noob at this - so I do not know how to check - BUT can there be something with MIMO settings for the antenna?

wpte
08-08-2010, 23:50
Quoting myself just to show what Iīm referring to
Iīm a total noob at this - so I do not know how to check - BUT can there be something with MIMO settings for the antenna?

in the nvram you can change:

wl_mimo_preamble=mm
wl0_mimo_preamble=mm
(standard)

moreover you can do some advanced settings with the wl command. (see attachment)

I don't know much about this, so you can break it, or you can make it:o

Magna-Flash
09-08-2010, 07:31
The last command in the "wl help" looks very interesting:


mimo_ss_stf
g/set SS STF mode.
Usage: wl mimo_ss_stf <value> <-b a | b>
value: 0 - SISO; 1 - CDD
-b(band): a - 5G; b - 2.4G
If that value is set to 0 (SISO=single input/single output) then RT-n16 would use only one antenna, right?
Am I the only one with weak wireless signal (with Oleg firmware - Asus stock is normal)???

Kornel
13-08-2010, 03:50
The last command in the "wl help" looks very interesting:

If that value is set to 0 (SISO=single input/single output) then RT-n16 would use only one antenna, right?
Am I the only one with weak wireless signal (with Oleg firmware - Asus stock is normal)???

I have this same problem

Magna-Flash
13-08-2010, 09:16
I have this same problem

Ahhh! Nice to hear that Iīm not alone :)
Hopefully someone will fix this...:rolleyes: cause itīs definitively somthing wrong - as soon as I install Oleg my wifi signal drops - when I go back to Asus itīs "strong and long"...

RdBw
13-08-2010, 10:03
Ahhh! Nice to hear that Iīm not alone :)
Hopefully someone will fix this...:rolleyes: cause itīs definitively somthing wrong - as soon as I install Oleg my wifi signal drops - when I go back to Asus itīs "strong and long"...
From your inSSider screenshot I can see that you use different security settings for Asus and for Oleg FW. Try to set up Oleg FW with WPA-TKIP, like it is set in Asus FW.
Just suggestion ...

Magna-Flash
13-08-2010, 10:56
From your inSSider screenshot I can see that you use different security settings for Asus and for Oleg FW. Try to set up Oleg FW with WPA-TKIP, like it is set in Asus FW.
Just suggestion ...

Been there, done that! I have tested all settings - Asus outnumbers Oleg in signal strength...

RdBw
16-08-2010, 13:11
Is there any possibility to ad IPTV settings in Oleg's Firmware for Asus RT-N16. Because original Asus FW already has that support, but original Asus FW sucks.

theMIROn
19-08-2010, 16:53
Below are the screenshots. Notice that Asus signal strength is better (-70dBm). Oleg is almost unusable (-85dBm) - even though "radio power" is 19 in oleg but only 17 in asus! Why:confused:

Hereīs asus 1.0.1.2 (Iīm "WATERGATE"):
Signal strength ~ -70dBm

And hereīs RT-N16-1.9.2.7-rtn-r1867:
Signal strength ~-85dBm!!!:confused:


The legacy firmware code sets tx power in mw units, but asus doesn't set tx power at all.
moreower, radio power in ranged in 1 - 1496 mw, not in 1 - 84.
so, check tx power on asus firmware with


wl txpwr1

and set the value on 1.9.2.7-rtn with


wl txpwr1 -q qdbm_value -o

keep in mind, qdbm_value is ranged from 1 to 127.

my current values:


[admin@rt-n16 root]$ wl txpwr1
TxPower is 127 qdbm, 31.75 dbm, 1496 mW Override is Off

wpte
20-08-2010, 20:50
moreower, radio power in ranged in 1 - 1496 mw, not in 1 - 84.
I think they're thinking about the web-admin page wireless-advanced

The Radio Power should be between 1 to 84. But default value is recommended.

so when I do

wl txpwr1 -q 127 -o
it should apply directly?
I haven't seen any difference:confused:

Magna-Flash
22-08-2010, 13:14
Ok - made some tests...

Asus 1.0.1.2:
TxPower is 127 qdbm, 31.75 dbm, 1496 mW Override is Off

Oleg:
TxPower is 51 qdbm, 12.75 dbm, 19 mW Override is Off :eek:

The GUI setting of Radio Power only allows a value of 1-84. 84 entered in GUI gives:
TxPower is 77 qdbm, 19.25 dbm, 84 mW Override is Off

So - the GUI value configs the mWīs... But if Asus 1.0.1.2 defaults to 1496 mW - why canīt you go more than 84mW with Oleg.

PS. Tried the wl txpwr1 -q qdbm_value -o but nothing ever happened. After reboot it was back to 19mW:confused:

wpte
22-08-2010, 13:42
Oleg:
TxPower is 51 qdbm, 12.75 dbm, 19 mW Override is Off :eek:

The GUI setting of Radio Power only allows a value of 1-84. 84 entered in GUI gives:
TxPower is 77 qdbm, 19.25 dbm, 84 mW Override is Off

So - the GUI value configs the mWīs... But if Asus 1.0.1.2 defaults to 1496 mW - why canīt you go more than 84mW with Oleg.

time for some more #ifdef then I guess:)
this is a minor bug because of the new wl and how it works, should be an easy fix:D
Probably the best way is to set the bdm value in the web-config instead of the milliwatts, to make it look more obvious compared to the WL models.

Arcao
22-08-2010, 14:18
Hi,

what is maximum LAN to WAN and WAN to LAN throughput on latest Oleg's firmware for N16?

I'm thinking about replacing my WL-500G Deluxe because of low WAN-LAN throughput (25Mbit/s only - 100% CPU usage). My candidates are N16 or Netgear WNDR3700. N16 has about 140 Mbit/s throughput in both directions with stock firware, but WNDR3700 has about 400Mbit/s!!!

theMIROn
22-08-2010, 15:17
time for some more #ifdef then I guess:)
this is a minor bug because of the new wl and how it works, should be an easy fix:D
Probably the best way is to set the bdm value in the web-config instead of the milliwatts, to make it look more obvious compared to the WL models, moreover: the qbdm value is not linear.

qdbm = dbm*4, not more not less, used for fine tuning without fractional part.
according wiki page http://en.wikipedia.org/wiki/DBm, we have


26 dBm 400 mW
Access point for Wireless networking
20 dBm 100 mW
Bluetooth Class 1 radio, 100 m range
Typical wireless router transmission power.
Maximum output power from unlicensed AM transmitter per U.S. Federal Communications Commission (FCC) rules 15.219.


wl driver has limitations 0-1496 mW, or 0-31.75 dBm, so switching to dbm would be wrong, 29 dBm is 794 mW, but 31 is already 1259 mW.
so, i would allow mW range up to 400 mW (26 bBm) with 50 by default (17 dBm).
current hardware wl adapter defaults will be used, if power value is 0.

any suggestions?

wpte
22-08-2010, 16:39
qdbm = dbm*4, not more not less, used for fine tuning without fractional part.
according wiki page http://en.wikipedia.org/wiki/DBm, we have


26 dBm 400 mW
Access point for Wireless networking
20 dBm 100 mW
Bluetooth Class 1 radio, 100 m range
Typical wireless router transmission power.
Maximum output power from unlicensed AM transmitter per U.S. Federal Communications Commission (FCC) rules 15.219.


wl driver has limitations 0-1496 mW, or 0-31.75 dBm, so switching to dbm would be wrong, 29 dBm is 794 mW, but 31 is already 1259 mW.
so, i would allow mW range up to 400 mW (26 bBm) with 50 by default (17 dBm).
current hardware wl adapter defaults will be used, if power value is 0.

any suggestions?

Yes, dBm and qdBm might be confusing both hence they are both based on a logarithmic scale, I was caught up with something when writing that:o
So it might be a good idea to stick with milliwatts, if it's mentioned on the web-config
If I recall correctly FCC allows a maximum of 1000mW when using 6dB antennas, so I guess it's a good idea to stay under that value by default:)

And the hardware default is the maximum possible value?

theMIROn
22-08-2010, 17:11
Yes, dBm and qdBm might be confusing both hence they are both based on a logarithmic scale, I was caught up with something when writing that:o
So it might be a good idea to stick with milliwatts, if it's mentioned on the web-config.
If I recall correctly FCC allows a maximum of 1000mW when using 6dB antennas, so I guess it's a good idea to stay under that value by default:)

I'v changed my mind, dBm is here, and restricted with 1-31 range, 17 dBm (50 mW) as default with proper dBm units hint.


And the hardware default is the maximum possible value?Looks like, last wl driver for 2.4 kernel does the same, and asus fw doesn't change it ever.

Magna-Flash
22-08-2010, 17:39
wl driver has limitations 0-1496 mW, or 0-31.75 dBm, so switching to dbm would be wrong, 29 dBm is 794 mW, but 31 is already 1259 mW.
so, i would allow mW range up to 400 mW (26 bBm) with 50 by default (17 dBm).
current hardware wl adapter defaults will be used, if power value is 0.

any suggestions?

Great!
So - to get 1496mW (like Asus stock FW) I just enter 0 as value (in GUI)?

EDIT: Saw your post about going for dBm instead! Even better!! :)
Cause I want to transmit strong ;)

theMIROn
22-08-2010, 17:45
Great!
So - to get 1496mW (like Asus stock FW) I just enter 0 as value (in GUI)?
yep, but don't forget that with the higher tx power you'll get the higher level of noise, and your real connection speed could degradate

Magna-Flash
23-08-2010, 12:31
Entered 0 in GUI (Radio Power) and got:

[admin@WL-******** root]$ wl txpwr1
TxPower is 127 qdbm, 31.75 dbm, 1496 mW Override is Off

However - still pretty weak signal compared to Asus 1.0.1.2
Maybe this has something to do with it:

[admin@WL-******** root]$ nvram show | grep power
size: 14992 bytes (17776 left)
wl0_radio_power_x=17
wl_radio_power_x=0

Shouldnīt they be the same? In Asus 1.0.1.2 they both are 17 (wl and wl0):

# nvram show | grep power
size: 17662 bytes (15106 left)
wl0_radio_power_x=17
wl_radio_power_x=17
# wl txpwr1
TxPower is 127 qdbm, 31.75 dbm, 1496 mW Override is Off

Magna-Flash
23-08-2010, 19:05
Here are two screenshots - one with Asus FW, one with Oleg FW.
I entered the settings in each screenshot. Note that Asus is about 15dB stronger than Oleg. Same position of laptop/router (2m distance)

http://lh3.ggpht.com/_3jWLaYnz7tw/THK1Xi4ia4I/AAAAAAAACac/9qhSHFkAG8U/asus-office.jpg

*************************************

http://lh4.ggpht.com/_3jWLaYnz7tw/THK1YjvTRvI/AAAAAAAACag/_N2lejaMXv0/oleg-office.JPG

wpte
23-08-2010, 22:13
Here are two screenshots - one with Asus FW, one with Oleg FW.
I entered the settings in each screenshot. Note that Asus is about 15dB stronger than Oleg. Same position of laptop/router (2m distance)


I don't think I mentioned this before, not sure if you've tried though.
have you tried changing regulatory modes: http://code.google.com/p/wl500g/wiki/GUIWirelessAdvanced#Regulatory_Mode ?

I'm not sure if the original asus firmware uses 802.11d standard.
I have original FW fobia these days:p

there must be an explanation for this, I mean the power levels are the same and they use the same driver right:confused:

wpte
23-08-2010, 22:17
Hi,

what is maximum LAN to WAN and WAN to LAN throughput on latest Oleg's firmware for N16?

benchmarks from the russian forum: http://wl500g.info/showpost.php?p=200011&postcount=9

I had higher throughputs on LAN-LAN though, so I'm not sure if these results are completely valid (saying they could be higher)

Magna-Flash
24-08-2010, 04:26
there must be an explanation for this, I mean the power levels are the same and they use the same driver right:confused:

The power values are NOT the same (look again;)) - thatīs why I posted the screenshots.
I donīt know the difference between wl and wl0, but in Asus FW they are the same (both 17) and independent of the txpwr1 value.

However, in Oleg FW wl seems to follow the Radio Power value set in GUI.

ex.
A value of 0 in the GUI results in 1496mW txpwr1 and 0 in wl_radio_power_x.

So - my point is, the difference in signal strength maybe has to do with this?!

Arcao
24-08-2010, 08:34
Thanks,

I saw the benchmark for Netgear WNR3500L, which has almost the same hardware like Asus RT-N16 (Asus has 128MB RAM, 32 MB flash, Netgear only 64MB RAM, 8MB flash), and WNR3500L throughput is 256/301 Mbps (WAN to LAN / LAN to WAN) with stock firmware. So the probably hardware minimum throughput for Asus should be the same as Netgear one I think.

SNB review for Netgear WNR3500L (http://www.smallnetbuilder.com/wireless/wireless-reviews/31153-new-to-the-charts-netgear-wnr3500l-rangemax-wireless-n-gigabit-router-with-usb)
SNB review for Asus RT-N16 (http://www.smallnetbuilder.com/wireless/wireless-reviews/31058-asus-rt-n16-gigabit-n-router-reviewed)


benchmarks from the russian forum: http://wl500g.info/showpost.php?p=200011&postcount=9

I had higher throughputs on LAN-LAN though, so I'm not sure if these results are completely valid (saying they could be higher)

theMIROn
24-08-2010, 13:49
The power values are NOT the same (look again;)) - thatīs why I posted the screenshots.
I donīt know the difference between wl and wl0, but in Asus FW they are the same (both 17) and independent of the txpwr1 value.

However, in Oleg FW wl seems to follow the Radio Power value set in GUI.

ex.
A value of 0 in the GUI results in 1496mW txpwr1 and 0 in wl_radio_power_x.

So - my point is, the difference in signal strength maybe has to do with this?!

Nope, it's just a asus stock fw bug...
Please, make sure you're using the same meaningful nvram settings


nvram show | grep regulation_domain
nvram show | grep country_code
nvram show | grep reg_mode
nvram show | grep maxpwr
nvram show | grep pwrsave
nvram show | grep mimo_preamble
nvram show | grep antdiv
nvram show | grep txant

and, afaik, original one runs modern wl driver than we have in our


$ wl ver
5.10 RC56.46
wl0: Jun 18 2009 13:55:48 version 5.10.56.46

Magna-Flash
24-08-2010, 15:11
afaik, original one runs modern wl driver than we have in our


$ wl ver
5.10 RC56.46
wl0: Jun 18 2009 13:55:48 version 5.10.56.46


Asus 1.0.1.2:

# wl ver
5.10 RC56.27
wl0: Mar 26 2009 17:23:33 version 5.10.56.27

Will check the other settings later...

Magna-Flash
25-08-2010, 12:29
Please, make sure you're using the same meaningful nvram settings


nvram show | grep regulation_domain
nvram show | grep country_code
nvram show | grep reg_mode
nvram show | grep maxpwr
nvram show | grep pwrsave
nvram show | grep mimo_preamble
nvram show | grep antdiv
nvram show | grep txant



The only value that differed was reg_mode (d in Oleg, OFF in Asus).
I however set it to OFF in Oleg aswell to test - but no difference, still weaker signal.
Neither Asus or Oleg showed any values in these:

nvram show | grep maxpwr
nvram show | grep txant

I will have to stick with Asus 1.0.1.2 for now:(

Magna-Flash
27-08-2010, 12:17
Downloaded the newly released Asus 1.0.1.7 and I also get weaker signal with that one!:confused:

So - it seems 1.0.1.2 has something the other firmwares hasnīt:cool:
And yes - I have done factory default on every firmware upgrade...;)

wpte
27-08-2010, 15:15
Downloaded the newly released Asus 1.0.1.7 and I also get weaker signal with that one!:confused:

So - it seems 1.0.1.2 has something the other firmwares hasnīt:cool:
And yes - I have done factory default on every firmware upgrade...;)

hmm... perhaps it's just the different version drivers?

to be honest, the new settings made my wifi more stable.
for my wireless ethernet bridge (a WL-500W) the signal increased to -60dBm while it used to be -70
Average ping decreased from 4ms to 2,5ms and the package drop is 0% instead of 3%:p
Jitter is now 1ms instead of +40ms

So overall, that's great for streaming movies (what it is intended for), and now I don't need to drill a hole trough the ceiling for a utp cable:D

btw, I haven't had any wifi dropouts since I increased the wifi power:D

RdBw
27-08-2010, 17:13
So overall, that's great for streaming movies (what it is intended for), and now I don't need to drill a hole trough the ceiling for a utp cable:D

btw, I haven't had any wifi dropouts since I increased the wifi power:D
Which version of FW do you use and what is your power setting for movie streamig? I have a lot of problem with 1080p movies, especially at highest bitrate - it stucking.

wpte
27-08-2010, 21:07
Which version of FW do you use and what is your power setting for movie streamig? I have a lot of problem with 1080p movies, especially at highest bitrate - it stucking.

I use it like this:
Internet <--utp cable--> [RT-N16] < - - - - WiFi - - - - > [WL-500W] <--utp cable--> [asus oplay]
This gives me a bandwidth of 40Mbits/s

with a wificard in my laptop I'm only able to pull 20Mbits/s which is more or less the problem of my laptop motherboard:p

If I put the same wifi card in my big PC I can't really see any difference in speed with cable... I'm able to stream HD perfectly.

I'm using this firmware atm: http://wpte.kicks-ass.net/downloads/Oleg%20Firmware/RT-N16%20builds/1967/RT-N16-1.9.2.7-rtn-r1967.trx

RdBw
28-08-2010, 01:38
Thank's for reply. My problem is probable just one RT-N16 router which is WiFi connected to Xtreamer, so signal is not so strong in that case. I think so ...

wpte
28-08-2010, 02:12
Thank's for reply. My problem is probable just one RT-N16 router which is WiFi connected to Xtreamer, so signal is not so strong in that case. I think so ...

using a wifi usb stick on the xtreamer then?
My O!play air has build in wifi (via usb as well actually) and it was just unacceptable... the player became unresponsive to the remote while playing and everything + no hd streaming whatsoever.
That's why I hooked it up to my old WL-500W which works highly stable now, but in the end: a little cable is always the best.;)

streaming from samba works fine, but I usually use upnp since it works (noticeably) faster.

RdBw
28-08-2010, 02:49
streaming from samba works fine, but I usually use upnp since it works (noticeably) faster.
Yes, samba is default for sharing files, but I use NFS, which is faster and more stable, but not enough to stream 1080p without the problem.

bef
01-10-2010, 23:24
I use it like this:
Internet <--utp cable--> [RT-N16] < - - - - WiFi - - - - > [WL-500W] <--utp cable--> [asus oplay]
This gives me a bandwidth of 40Mbits/s


I'm trying to setup a more or less identical system, but i'm currently stuck with the rt-n16 <-> wl500w wifi bridge... what settings are needed on the wl500w? and do i understand it correctly that only wpa and not wpa2 enryption works works for this setup?

regards
Benj

wpte
02-10-2010, 11:13
I'm trying to setup a more or less identical system, but i'm currently stuck with the rt-n16 <-> wl500w wifi bridge... what settings are needed on the wl500w? and do i understand it correctly that only wpa and not wpa2 enryption works works for this setup?

regards
Benj

Took me some time to set it up, so it might be easier to give you a config file :p
I changed my SSID, passphrase and mac for privacy, but the rest is still the same.
The WL-500W will act as a switch with a static IP of 192.168.2.253 with standard admin login credentials.
that way you just need to fill in some wifi settings and perhaps a new static ip and it should work:)
I have it working with WPA2 here:D

btw, the wifi led can blink on and off, that's when it can't find the network to connect to ;)

bef
02-10-2010, 15:31
Thanks for the config file. Unfortunately it doesn't work for me :/ Did you setup anything on the RT_N16 for this use-case? (Like in the wireless -> Bridge menu?)

And what operation mode is the wl500w in? Home Gateway or Acces Point

Ok scratch that... I should've known it better... before flashing some config-files a reset to facory defaults works wonders xD thank you once again for the config file :)

wpte
02-10-2010, 22:37
Thanks for the config file. Unfortunately it doesn't work for me :/ Did you setup anything on the RT_N16 for this use-case? (Like in the wireless -> Bridge menu?)

And what operation mode is the wl500w in? Home Gateway or Acces Point

Ok scratch that... I should've known it better... before flashing some config-files a reset to facory defaults works wonders xD thank you once again for the config file :)

hehe, np:)

the steps I made:

Set a static IP (IP-config -> lan)
Set the router to switch mode (system setup -> operation mode)
set the wifi to wifi ethernet bridge (wireless -> advanced)

and then just fill in the settings:p

Without the static ip you can't change things anymore, which was a bugger when I tried it out for the first time:D

bef
18-04-2011, 09:42
Is there any way to check the "health" of the flash memory? I got a few segfaults in the last weeks and then more and more libs could no longer be found. After a fresh install things work again, except now programs like iptables segfault e.g. modifying rules works, things like "iptables -L" don't oO

wpte
18-04-2011, 11:23
Is there any way to check the "health" of the flash memory? I got a few segfaults in the last weeks and then more and more libs could no longer be found. After a fresh install things work again, except now programs like iptables segfault e.g. modifying rules works, things like "iptables -L" don't oO

that's a bit odd yes...
Have you tried backing up the router config and flashfs and do a factory default?
Maybe flash it with the restoration tool/tftp?

Flash memory wears out obviously, but I thought you can do 10.000 up to 100.000 write cycles depending on the flash quality.:)

bef
18-04-2011, 11:31
that's a bit odd yes...
Have you tried backing up the router config and flashfs and do a factory default?
Maybe flash it with the restoration tool/tftp?

Flash memory wears out obviously, but I thought you can do 10.000 up to 100.000 write cycles depending on the flash quality.:)

No I have only flashed the firmware twice without resetting to factory defaults... I will try this today evening

bef
18-04-2011, 19:04
Resetting to the default settings solves the problem until I restore it from the backup ( slightly obvious ;) )... anyway reinstalling iptables with ipkg will fix it. So I'm good for now. Thanks for the advice.

theMIROn
18-04-2011, 19:12
Resetting to the default settings solves the problem until I restore it from the backup ( slightly obvious ;) )... anyway reinstalling iptables with ipkg will fix it. So I'm good for now. Thanks for the advice.

installing iptables from ipk is very strange and not very bad idea.
it's alreay builtin.

bef
18-04-2011, 20:09
installing iptables from ipk is very strange and not very bad idea.
it's alreay builtin.

I know it's already built in... but as the built-in version keeps segfaulting on me, I thought it wouldn't hurt trying the ipkg one. As long as it works I'm somewhat happy...