Bekijk de volledige versie : New oleg firmware version
I got the following now:
find . -name '*.[chS]' | xargs /home/wchan/wl500w/broadcom/src/linux/linux-2.4.37.10/scripts/mkdep -D__KERNEL__ -I/home/wchan/wl500w/broadcom/src/linux/linux-2.4.37.10/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -fomit-frame-pointer -I /home/wchan/wl500w/broadcom/src/linux/linux-2.4.37.10/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -finline-limit=10000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -fno-delete-null-pointer-checks -I/home/wchan/wl500w/broadcom/src/include -DBCMDRIVER -nostdinc -iwithprefix include -- > .depend
realpath(/home/wchan/wl500w/broadcom/src/linux/linux-2.4.37.10/include/asm/gcc) failed, No such file or directory
make[3]: *** [fastdep] Error 123
make[3]: Leaving directory `/home/wchan/wl500w/broadcom/src/linux/linux-2.4.37.10/arch/mips/tools'
make[2]: *** [_sfdep_arch/mips/tools] Error 2
make[2]: Leaving directory `/home/wchan/wl500w/broadcom/src/linux/linux-2.4.37.10'
make[1]: *** [dep-files] Error 2
make[1]: Leaving directory `/home/wchan/wl500w/broadcom/src/linux/linux-2.4.37.10'
make: *** [kernel-image] Error 2
I checked that the "/home/wchan/wl500w/broadcom/src/linux/linux-2.4.37.10/include/asm" is missing. should I manually create a symbolic link to asm-mips? :confused:
i.e. ln -sf asm-mips /home/wchan/wl500w/broadcom/src/linux/linux-2.4.37.10/include/asm
Seems to be you have slightly different host environment, try to
make kernel
from src/gateway before "make"
I checked that the "/home/wchan/wl500w/broadcom/src/linux/linux-2.4.37.10/include/asm" is missing. should I manually create a symbolic link to asm-mips? :confused:
Something goes wrong on your host env. This link should be created automatically by kernel's Makefile. Also check .config file presence in kernel directory.
I did the symbolic link then try the make kernal again. Now I got this error and I am completely lost.
( . /home/wchan/wl500w/broadcom/src/linux/linux/.config ; \
if [ "${CONFIG_EMBEDDED_RAMDISK}" = "" ] ; then \
make -C /home/wchan/wl500w/broadcom/src/linux/linux zImage CC=mipsel-uclibc-gcc-3.4.6; \
fi )
make[1]: Entering directory `/home/wchan/wl500w/broadcom/src/linux/linux-2.4.37.10'
make[1]: *** No rule to make target `include/linux/autoconf.h', needed by `include/config/MARKER'. Stop.
make[1]: Leaving directory `/home/wchan/wl500w/broadcom/src/linux/linux-2.4.37.10'
make: *** [kernel-image] Error 2
.config exist in ~/wl500w/broadcom/src/gateway
but not in ~/wl500w/broadcom/src/linux/linux-2.4.37.10/kernel
Something goes wrong on your host env. This link should be created automatically by kernel's Makefile. Also check .config file presence in kernel directory.
should I try the RTN version of wl500w instead? Does RTN version has better support for usb sound?
Does RTN version has better support for usb sound?
Generally - no, since 2.6.22 is very old kernel and usb sound support on router is not our primary task. Of course, some parts of sound subsystem definitely newer in 2.6.
back to the compilation then... how do I proceed? Any clue?
.config exist in ~/wl500w/broadcom/src/gateway
but not in ~/wl500w/broadcom/src/linux/linux-2.4.37.10/kernel
back to the compilation then... how do I proceed? Any clue?
Unless you get some knowledge about Makefiles & linux kernel , you can't proceed. ".config" you mentioned are totally different. kernel's default config stored in src/linux/linux/arch/mips/defconfig-bcm947xx and later copied to src/linux/linux/.config
Generally - no, since 2.6.22 is very old kernel and usb sound support on router is not our primary task. Of course, some parts of sound subsystem definitely newer in 2.6.
Is the rtn build stable? how does it compare to the 2.4 version?
Is the rtn build stable? how does it compare to the 2.4 version?
Please read info at http://wl500g.googlecode.com/ - it's beta.
If someone can describe to you all difference between 2.4 & 2.6 kernels in a few words, he(she) will be true hero.
Please read info at http://wl500g.googlecode.com/ - it's beta.
If someone can describe to you all difference between 2.4 & 2.6 kernels in a few words, he(she) will be true hero.
I think you've gotten me wrong. I just want to know the difference between the rtn and the d build of wl500w. Not the difference between the two kernel version. The components that concerns me are the webcam support and wireless stability.
I just want to know the difference between the rtn and the d build of wl500w. Not the difference between the two kernel version. The components that concerns me are the webcam support and wireless stability.
As you can read in forum, wireless driver provided by Broadcom in binary blob, so we can't modify it.
Single major difference between rtn & d branches is ... kernel 2.6. Key points is here - http://code.google.com/p/wl500g/wiki/News
Hi wpte,
I was thinking about oleg and USBoIP ...
but I've also found an opensource one with beta support for windows (so it's cross platform)
this sounds very interesting. I was looking for such sw two years ago for the MGB100 but couldn't find anything free (no, there was one abandoned version in japan); still was hopeing that AVM would release/leak the code for the fritzbox
schufti
So, I was experimenting to link httpd with mini-lzo.
http://www.oberhumer.com/opensource/lzo/#minilzo
it only adds around ~5kb to the binary, while it can decompress webpages.
If we pre-compress the webpages, it's possible to save around 40-50% of the total size, which is around 300kb.
good idea?:D
So, I was experimenting to link httpd with mini-lzo.
http://www.oberhumer.com/opensource/lzo/#minilzo
it only adds around ~5kb to the binary, while it can decompress webpages.
If we pre-compress the webpages, it's possible to save around 40-50% of the total size, which is around 300kb.
good idea?:D
Since webpages resides on root filesystem(squashfs) which already has lzma compression support, IMHO it will take no effect.
Since webpages resides on root filesystem(squashfs) which already has lzma compression support, IMHO it will take no effect.
*slaps in his face*
Yes, I was thinking about it while I should have remembered that part:o
foolish me:p
theMIROn
07-12-2010, 22:02
*slaps in his face*
Yes, I was thinking about it while I should have remembered that part:o
foolish me:p
don't be :)
whatever, you could try whether it will take an effect in lzma over lzo
Hey, I'm using the new firmware, with a WL500GPv2.
I was wondering if it would be possible to see a list of all attached devices.
I saw the DHCP leases, where you find a MAC address an IP and some host name.
When you click at wireless, you see (I think) the devices attached, but just with MAC address. Could it be possible to also show the hostname and IP?
Also, another question, if I would like to packet sniff everything what goes through the router (so LAN & WAN), what would be the best way to do this? (If possible of course)
Many thanks for this great firmware!
Hey, I'm using the new firmware, with a WL500GPv2.
I was wondering if it would be possible to see a list of all attached devices.
I saw the DHCP leases, where you find a MAC address an IP and some host name.
When you click at wireless, you see (I think) the devices attached, but just with MAC address. Could it be possible to also show the hostname and IP?
Also, another question, if I would like to packet sniff everything what goes through the router (so LAN & WAN), what would be the best way to do this? (If possible of course)
Many thanks for this great firmware!
For snifing try t-shark, for a client-list install net-tools (then use "arp")
recent patches for the memory use less swap I see :D
http://i54.tinypic.com/2vxf61i.png
(green swap, blue RAM)
:D
ryzhov_al
13-01-2011, 10:03
I was thinking about oleg and USBoIP since things like sane don't work that fast... only 1 A4 sheet in 5 minutes on 300dpi:p
So I guess usb over ip is a lot faster.
obviously you got the fantastic closed source solutions: http://usb-server.com/index.html
but I've also found an opensource one with beta support for windows (so it's cross platform)
There is USB/IP (http://usbip.sourceforge.net/) open source project with working solution (http://www.nslu2-linux.org/wiki/HowTo/UseUsbIpOnTheNSLU2) on OpenWRT. Server side includes two kernel modules and userspace daemon.
Windows client is ready (http://citylan.dl.sourceforge.net/project/usbip/usbip/usbip-win-preview/usbip-win.zip), kernel modules for RTN-fork too (http://www.wl500g.info/attachment.php?attachmentid=7509&d=1294685813). But userspace daemon with two dependencies still hard to compile.
theMIROn
13-01-2011, 10:32
But userspace daemon with two dependencies still hard to compile.Could you please explain these dependencies more detailed? Didn't check it by myself yet
ryzhov_al
17-01-2011, 08:00
Since r2486 revision rtn fork supports USB/IP (http://sourceforge.net/projects/usbip/), which helps you to use USB devices without specific linux drivers at all!
USB/IP project now has restrictions with some compound USB-devices. We tested a number of USB-devices. Successfully:
USB-HDD. R/W speed is ~5,5MB/s at ~60% CPU load,
Canon printer with CARPS drivers,
D-Link DBT-122 bluetooth dongle,
USB mouse.
Won't work:
USB-sound card (http://www.dealextreme.com/details.dx/sku.22475),
ZTE MF626 3G-modem.
To use USB/IP it is necessary to tune a server part on a router and a client part on the PC where the USB-device will work on.
1. Tuning of the server part.
The server part consists of two kernel modules and a userspace daemon.
1.1. USB/IP modules are included in modules-1.9.2.7-rtn-rĠĠĠĠ.tgz. Download and plug them:
$ cd /opt
$ wget ftp://core.dumped.ru/rt-n/2486/modules-1.9.2.7-rtn-r2486.tar.gz
$ tar -xzvf ./modules-1.9.2.7-rtn-r2486.tar.gz
$ modprobe usbip
1.2. The userspace daemon is compiled as a ipk-package. You can attach a corresponding repository and do not think about manual updating. It is necessary to add following lines in a file/opt/etc/ipkg.conf
src/gz wl500g-d http://wl500g.googlecode.com/svn/ipkg/optware-d
src/gz wl500g-optware http://wl500g.googlecode.com/svn/ipkg/optware
and install the daemon:
$ ipkg install usbip
Start the server part:
$ usbipd -D
Now we have to look at the list of USB-devices which can be exported:
$ usbip_bind_driver --list
List USB devices
- busid 2-2 (2001:f111)
2-2:1.0 -> none
2-2:1.1 -> none
2-2:1.2 -> none
- busid 1-1 (04fc:0c25)
1-1:1.0 -> usb-storage
The last USB-device 1-1 is a USB-HDD. Do not use uspip with it! Now it is necessary to make the device 2-2 accessible on the client side:
$ usbip_bind_driver --usbip 2-2
2. Tuning the client part.
The client part for Linux exists and is packaged in most of popular distributions. Windows client is here (http://sourceforge.net/projects/usbip/files/usbip_windows/), lets make it work.
2.1. Install USB Bus enumerator driver with USBIPEnum.inf. If successfully installed, the device will be named "Virtual USB Bus Enumerator" in section "System Devices" on Device Manager.
2.2. Starting the userspace part. Usbip.exe must be started with Local Administrator credentials.
Lets look what devices are exported by the server:
C:\usbip>usbip.exe -l 192.168.0.1
usbip dbg: usbip_network.c: 229 (tcp_connect ) trying 192.168.0.1 port 3240
usbip dbg: usbip_network.c: 249 (tcp_connect ) connected to 192.168.0.1:3240
- RTRouter
usbip dbg: usbip.c: 423 (query_exported_devices) exportable 1 devices
2-2: unknown vendor : unknown product (2001:f111)
: /sys/devices/pci0000:00/0000:00:04.0/usb2/2-2
: unknown class / unknown subclass / unknown protocol (e0/01/01)
: 0 - unknown class / unknown subclass / unknown protocol (e0/01/01)
: 1 - unknown class / unknown subclass / unknown protocol (e0/01/01)
: 2 - unknown class / unknown subclass / unknown protocol (ff/ff/ff)
We see earlier exported device 2-2. Now connect it:
C:\usbip>usbip.exe -a 192.168.0.1 2-2
usbip dbg: usbip_network.c: 229 (tcp_connect ) trying 192.168.0.1 port 3240
usbip dbg: usbip_network.c: 249 (tcp_connect ) connected to 192.168.0.1:3240
usbip dbg: usbip.c: 147 (query_interface0) exportable 1 devices
usbip dbg: usbip.c: 164 (query_interface0) 2-2: unknown vendor : unknown product (2001:f111)
usbip dbg: usbip.c: 165 (query_interface0) : /sys/devices/pci0000:00/0000:00:04.0/usb2/2-2
usbip dbg: usbip.c: 166 (query_interface0) : unknown class / unknown subclass / unknown protocol (e0/01/01)
usbip dbg: usbip.c: 186 (query_interface0) : 0 - unknown class /unknown subclass / unknown protocol (e0/01/01)
usbip dbg: usbip.c: 186 (query_interface0) : 1 - unknown class /unknown subclass / unknown protocol (e0/01/01)
usbip dbg: usbip.c: 186 (query_interface0) : 2 - unknown class /unknown subclass / unknown protocol (ff/ff/ff)
usbip dbg: usbip.c: 189 (query_interface0)
usbip dbg: usbip_network.c: 229 (tcp_connect ) trying 192.168.0.1 port 3240
usbip dbg: usbip_network.c: 249 (tcp_connect ) connected to 192.168.0.1:3240
call from attch here
return from attch here
devfd:0022FF0C
new usb device attached to usbvbus port 1
Then there should be a driver installation dialogue of the device connected to the router. The device will be visible in the Device Manager as if its connected not to a router, but to windows PC:). Don't close the window with the usbip.exe started!
3. Shutting down.
To shut down USB/IP correctly, it is necessary to execute above listed step in reverse order.
3.1. On the client side open a new cmd.exe window and type:
C:\usbip>usbip.exe -d 2-2
3.2. On the server side (the router), disconnect USB/IP driver from USB devices:
$ usbip_bind_driver --other 2-2
** (process:385): DEBUG: write "del 2-2" to /sys/bus/usb/drivers/usbip/match_busid
** Message: bind 2-2 to other drivers than usbip, complete while using USB-device!
Then stop the daemon:
$ killall usbipd
4. Notes.
All the hard work for USB/IP adapting is done by theMIROn (http://www.wl500g.info/member.php?u=18446) è lly (http://www.wl500g.info/member.php?u=7094). Thanks guys!
thanks for the short how-to ryzhov_al :)
Now I don't need to read all documentation first:p
hmm...
I followed the steps above but eventually my ubuntu laptop says "failed" after 10s waiting :p
starting the daemon:
Bind usbip.ko to a usb device to be exportable!
dunno if that's a debug message, but I modprobed usbip.ko
devices are detected properly and while mounting:
usbip_bind_driver --usbip 1-2.1
** (process:5888): DEBUG: 1-2.1:1.0 -> usb-storage
** (process:5888): DEBUG: unbinding interface
** (process:5888): DEBUG: write "add 1-2.1" to /sys/bus/usb/drivers/usbip/match_busid
** Message: bind 1-2.1 to usbip, complete!
works fine as well
ryzhov_al
18-01-2011, 06:33
starting the daemon:
Bind usbip.ko to a usb device to be exportable!
dunno if that's a debug message, but I modprobed usbip.ko
Yes. Thats debug message, its ok.
devices are detected properly and while mounting:
usbip_bind_driver --usbip 1-2.1
** (process:5888): DEBUG: 1-2.1:1.0 -> usb-storage
** (process:5888): DEBUG: unbinding interface
** (process:5888): DEBUG: write "add 1-2.1" to /sys/bus/usb/drivers/usbip/match_busid
** Message: bind 1-2.1 to usbip, complete!
Why just 1-2.1 exported, not whole 1-2? Have You got external USB hub?
What device you try to export?
Why just 1-2.1 exported, not whole 1-2? Have You got external USB hub?
What device you try to export?
Yes, it's a harddrive connected through an usb hub.
I umounted the hdd first obviously.
The other harddrive is connected straight to the router, but I don't think it's a good idea to force umount /opt and share it over usb:p
ryzhov_al
18-01-2011, 11:36
Yes, it's a harddrive connected through an usb hub.
I umounted the hdd first obviously.
I would like to solve your problem, but i have not any external hub. If i'll find one, i'll do. You may try to export entire hub (1-2).
I would like to solve your problem, but i have not any external hub. If i'll find one, i'll do. You may try to export entire hub (1-2).
Mounting the hub works:) (late answer)
anyway, I've tried the rtn version of the wl-500w firmware.
Now, is this supposed to work or is it for future development?
When I flash it with the restoration tool the device won't reboot after 10 minutes, and when I re-apply power myself it doesn't look like the router is going through a boot process at all:confused:
anyway, I've tried the rtn version of the wl-500w firmware.
Now, is this supposed to work or is it for future development?
If you compile rtn FW for WL500W yourself, I suppose it's incomplete automation in Makefile.top - your kernel MUST be MIPS32R1
If you compile rtn FW for WL500W yourself, I suppose it's incomplete automation in Makefile.top - your kernel MUST be MIPS32R1
well it seems like the logic is correct:
$(LINUXDIR)/.config: .config
cp $(LINUXDIR)/arch/mips/defconfig-bcm947xx $@
$(call SwitchConfParam,$@,CONFIG_IPV6,$(if $(CONFIG_IPV6),y,n))
$(call SwitchConfParam,$@,CONFIG_CPU_MIPS32_R1,$(if $(filter WL%,$(MODEL)),y,n))
$(call SwitchConfParam,$@,CONFIG_CPU_MIPS32_R2,$(if $(filter RT-N%,$(MODEL)),y,n))
which should switch:
# CONFIG_CPU_MIPS32_R1 is not set
CONFIG_CPU_MIPS32_R2=y
I can try to manually set it to R1 to be sure:)
ryzhov_al
09-03-2011, 10:14
Mounting the hub works:) (late answer)
Good news^) Win64 client is avaliable (http://sourceforge.net/projects/usbip/files/usbip_windows/).
anyway, I've tried the rtn version of the wl-500w firmware.
Now, is this supposed to work or is it for future development?
When I flash it with the restoration tool the device won't reboot after 10 minutes, and when I re-apply power myself it doesn't look like the router is going through a boot process at all:confused:
Before step 4.2 of Compiling HowTo (http://code.google.com/p/wl500g/wiki/CompilingCustomFirmware?wl=en) run
$ cd ./broadcom/src/linux/linux-2.6
$ make menuconfig
and choose MIPS32R1 at "CPU Selection".
Good news^) Win64 client is avaliable (http://sourceforge.net/projects/usbip/files/usbip_windows/).
Before step 4.2 of Compiling HowTo (http://code.google.com/p/wl500g/wiki/CompilingCustomFirmware?wl=en) run
$ cd ./broadcom/src/linux/linux-2.6
$ make menuconfig
and choose MIPS32R1 at "CPU Selection".
Nice :)
I just manually selected it yes, and works:)
I noticed that my WL-500W which I use as wireless ethernet bridge has a better sensitivity now and higher throughput :D
Now I know that my automatic building script doesn't work because I first do "make" which builds vor mips32r2, then I run something like "make install MODEL=RT-N16" so that's not going to work:p
So the error is with me, allthough I didn't test if the logic in the makefile works:)
I get "Illegal instruction" error as a result of (almost) every command I enter.
I've tried upgrade firmware and ipkg update (illegal instruction)...
I get "Illegal instruction" error as a result of (almost) every command I enter.
I've tried upgrade firmware and ipkg update (illegal instruction)...
Maybe it's a bad flash?
or a faulty firmware image.
preacher@wl500g
13-03-2011, 15:18
Upgraded to RTN firmware on the WL500gP today.
Got everything working but cannot figure out how to get sound working.
Attaching a USB soundcard does not load a kernel module and there's also no /dev/sound
I want to try to get ESD working
Can anybody tell me how sound support is now implemented and what to do?
Upgraded to RTN firmware on the WL500gP today.
Got everything working but cannot figure out how to get sound working.
Attaching a USB soundcard does not load a kernel module and there's also no /dev/sound
I want to try to get ESD working
Can anybody tell me how sound support is now implemented and what to do?
Sound kernel modules are available in the modules.tar.gz file ;)
ryzhov_al
14-03-2011, 09:04
Sound kernel modules are available in the modules.tar.gz file ;)
The RTN firmware already includes sound modules:
$ find /lib/modules/ -name *snd*
/lib/modules/2.6.22.19/snd-hwdep.ko
/lib/modules/2.6.22.19/snd-mixer-oss.ko
/lib/modules/2.6.22.19/snd-page-alloc.ko
/lib/modules/2.6.22.19/snd-pcm-oss.ko
/lib/modules/2.6.22.19/snd-pcm.ko
/lib/modules/2.6.22.19/snd-rawmidi.ko
/lib/modules/2.6.22.19/snd-timer.ko
/lib/modules/2.6.22.19/snd-usb-audio.ko
/lib/modules/2.6.22.19/snd-usb-lib.ko
/lib/modules/2.6.22.19/snd.ko
Attaching a USB soundcard does not load a kernel module and there's also no /dev/sound
I want to try to get ESD working
To make any USB Audio Class 1.0 standards compiant soundcard work do:
1.1 Try to load kernel modules automatically
insmod soundcore
insmod audio
1.2 If it fails due to "modules.dep" absence, load modules manually in those order:
insmod soundcore
insmod snd
insmod snd-timer
insmod snd-page-alloc
insmod snd-pcm
insmod snd-hwdep
insmod snd-rawmidi
insmod snd-usb-lib
insmod snd-usb-audio
insmod snd-mixer-oss
insmod snd-pcm-oss
2 check it out:
wget -q -O - http://scfire-dtc-aa06.stream.aol.com:80/stream/1010 | madplay -
Mine (http://www.dealextreme.com/details.dx/sku.22475) works fine.
There is no ESD-daemon, just OSS.
preacher@wl500g
14-03-2011, 20:56
The RTN firmware already includes sound modules:
$ find /lib/modules/ -name *snd*
/lib/modules/2.6.22.19/snd-hwdep.ko
/lib/modules/2.6.22.19/snd-mixer-oss.ko
/lib/modules/2.6.22.19/snd-page-alloc.ko
/lib/modules/2.6.22.19/snd-pcm-oss.ko
/lib/modules/2.6.22.19/snd-pcm.ko
/lib/modules/2.6.22.19/snd-rawmidi.ko
/lib/modules/2.6.22.19/snd-timer.ko
/lib/modules/2.6.22.19/snd-usb-audio.ko
/lib/modules/2.6.22.19/snd-usb-lib.ko
/lib/modules/2.6.22.19/snd.ko
To make any USB Audio Class 1.0 standards compiant soundcard work do:
1.1 Try to load kernel modules automatically
insmod soundcore
insmod audio
1.2 If it fails due to "modules.dep" absence, load modules manually in those order:
insmod soundcore
insmod snd
insmod snd-timer
insmod snd-page-alloc
insmod snd-pcm
insmod snd-hwdep
insmod snd-rawmidi
insmod snd-usb-lib
insmod snd-usb-audio
insmod snd-mixer-oss
insmod snd-pcm-oss
2 check it out:
wget -q -O - http://scfire-dtc-aa06.stream.aol.com:80/stream/1010 | madplay -
Mine (http://www.dealextreme.com/details.dx/sku.22475) works fine.
There is no ESD-daemon, just OSS.
It seems to work :-) Thanks a lot for the instruction.
I guess it is not initialized automatically due to the abscence of the waveserver. I got ESD from: http://home.in.tum.de/~pustka/WL-500g_as_wireless_soundcard.html
In Kernel 2.4 it just caused an endles beep when playing.
WL-500gP login: admin
Password:
[admin@WL-500gP root]$ insmod soundcore
insmod: can't insert 'soundcore.ko': File exists
[admin@WL-500gP root]$ insmod audio
insmod: can't insert 'audio.ko': No such file or directory
[admin@WL-500gP root]$ insmod soundcore
insmod: can't insert 'soundcore.ko': File exists
[admin@WL-500gP root]$ insmod snd
pcm
insmod snd-hwdep
insmod snd-rawmidi
insmod snd-usb-lib
insmod snd-usb-audio
insmod snd-mixer-oss
insmod snd-pcm-oss[admin@WL-500gP root]$ insmod snd-timer
[admin@WL-500gP root]$ insmod snd-page-alloc
[admin@WL-500gP root]$ insmod snd-pcm
[admin@WL-500gP root]$ insmod snd-hwdep
[admin@WL-500gP root]$ insmod snd-rawmidi
[admin@WL-500gP root]$ insmod snd-usb-lib
[admin@WL-500gP root]$ insmod snd-usb-audio
[admin@WL-500gP root]$ insmod snd-mixer-oss
[admin@WL-500gP root]$ insmod snd-pcm-oss
[admin@WL-500gP root]$ ls /dev/
2-1 loop1 mtd2 ppp ptypb ttyS0 ttypc
2-2 loop2 mtd2ro ptmx ptypc ttyS1 ttypd
audio loop3 mtd3 pts ptypd ttyp0 ttype
console loop4 mtd3ro ptyp0 ptype ttyp1 ttypf
dsp loop5 mtd4 ptyp1 ptypf ttyp2 urandom
fd loop6 mtd4ro ptyp2 random ttyp3 usb1
full loop7 mtdblock0 ptyp3 root ttyp4 usb2
fuse lp0 mtdblock1 ptyp4 shm ttyp5 usb3
gpio mem mtdblock2 ptyp5 snd ttyp6 usbdev1.1
kmem mixer mtdblock3 ptyp6 sound ttyp7 usbdev2.1
kmsg mtd0 mtdblock4 ptyp7 stderr ttyp8 usbdev2.2
log mtd0ro null ptyp8 stdin ttyp9 usbdev2.3
loop mtd1 nvram ptyp9 stdout ttypa usbdev3.1
loop0 mtd1ro port ptypa tty ttypb zero
[admin@WL-500gP root]$ ls /dev/sound/
audio dsp mixer
[admin@WL-500gP root]$ /tmp/local/opt/esd -d /dev/sound/dsp -public -tcp &
[admin@WL-500gP root]$ - using device /dev/sound/dsp
mistraller
19-03-2011, 22:48
Is it still needed to recompile firmware to make use of both serial ports of the asus wl500g deluxe with the new firmware? I only found a 5 year old thread about recompiling the kernel, but I have never recompiled a kernel before, so I would like to know if this is necessary, and how I should accomplish this.
I got a lot of these when using openvpn:
Mar 21 11:48:40 kernel: Call Trace:
Mar 21 11:48:40 kernel: [<80300000>] mount_block_root+0x2a8/0x338
Mar 21 11:48:40 kernel: [<c0274090>] tun_chr_aio_write+0x1c8/0x2e4 [tun]
Mar 21 11:48:40 kernel: [<80003204>] stack_done+0x20/0x40
Mar 21 11:48:40 kernel: [<80300000>] mount_block_root+0x2a8/0x338
Mar 21 11:48:41 kernel: WARNING: at net/8021q/vlan_dev.c:351 vlan_dev_hard_header()
I got r2845 installed
I got a lot of these when using openvpn:
I got r2845 installed
Please try r2837, will bug appear? If yes, try to turn off fastnat by
nvram set misc_fastnat_x=0
Please try r2837, will bug appear? If yes, try to turn off fastnat by
nvram set misc_fastnat_x=0
I can't flash firmware atm since the router will crash after firmware flash & shutdown.
Anyway, I thought fastnat was disabled by default, I turned it off and rebooted which solved the problem:)
All my internet is tunneling through openvpn again:)
wpte
Unfortunately, Broadcom's fastnat isn't as smart & flexible as can be imagined. theMIROn tries to improve it, but it is not so easy task.
wpte
Unfortunately, Broadcom's fastnat isn't as smart & flexible as can be imagined. theMIROn tries to improve it, but it is not so easy task.
Yeah, I've seen the conversation on google code.
Isn't fastnat just faster because it isn't completely compatible with some networking things?
I think the fastnat patch is good since you have more performance, unless you use something like openvpn:p
Also not many people have that internet speed, yet:)
Got some other kernel messages going on using r2849 which appeared a couple of times while downloading:
Mar 24 01:18:43 kernel: swapper: page allocation failure. order:3, mode:0x4020
Mar 24 01:18:43 kernel: Call Trace:
Mar 24 01:18:43 kernel: [<80300000>] mount_block_root+0x2a8/0x338
Mar 24 01:18:43 kernel: [<8000150c>] ret_from_irq+0x0/0x4
Mar 24 01:18:43 kernel: [<c013c47c>] chiprx+0x1ec/0x2a8 [et]
Mar 24 01:18:43 kernel: [<c042f06c>] wl_intrson+0x29c/0x37c [wl]
Mar 24 01:18:43 kernel: [<c013b444>] et_dpc+0xbc/0x4e4 [et]
Mar 24 01:18:43 kernel: [<80300000>] mount_block_root+0x2a8/0x338
Mar 24 01:18:43 kernel: [<8000150c>] ret_from_irq+0x0/0x4
Mar 24 01:18:43 kernel: Mem-info:
Mar 24 01:18:43 kernel: Normal per-cpu:
Mar 24 01:18:43 kernel: CPU 0: Hot: hi: 42, btch: 7 usd: 1 Cold: hi: 14, btch: 3 usd: 13
Mar 24 01:18:43 kernel: Active:18282 inactive:7773 dirty:6 writeback:0 unstable:0
Mar 24 01:18:43 kernel: free:1551 slab:1872 mapped:8784 pagetables:215 bounce:0
Mar 24 01:18:43 kernel: Normal free:6204kB min:1440kB low:1800kB high:2160kB active:73128kB inactive:31092kB present:130048kB pages_scanned:8 all_unreclaimable? no
Mar 24 01:18:43 kernel: lowmem_reserve[]: 0
Mar 24 01:18:43 kernel: Normal: 919*4kB 268*8kB 20*16kB 0*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 6204kB
Mar 24 01:18:43 kernel: Swap cache: add 204, delete 203, find 71/104, race 0+0
Mar 24 01:18:43 kernel: Free swap = 521844kB
Mar 24 01:18:43 kernel: [<80004f80>] memset+0x0/0x1c
Mar 24 01:18:43 kernel: [<80300000>] mount_block_root+0x2a8/0x338
Mar 24 01:18:43 kernel: [<c043c350>] wlc_dpc+0x7f4/0x94c [wl]
Mar 24 01:18:43 kernel: [<c042efdc>] wl_intrson+0x20c/0x37c [wl]
Mar 24 01:18:43 kernel: [<80300000>] mount_block_root+0x2a8/0x338
Mar 24 01:18:43 kernel: [<8000150c>] ret_from_irq+0x0/0x4
Mar 24 01:18:43 kernel: [<802ffc00>] start_kernel+0x2e8/0x344
Mar 24 01:18:43 kernel: [<802ff564>] unknown_bootoption+0x0/0x340
Mar 24 01:18:43 kernel: Mem-info:
Mar 24 01:18:43 kernel: Normal per-cpu:
Mar 24 01:18:43 kernel: CPU 0: Hot: hi: 42, btch: 7 usd: 1 Cold: hi: 14, btch: 3 usd: 13
Mar 24 01:18:43 kernel: Active:18282 inactive:7773 dirty:6 writeback:0 unstable:0
Mar 24 01:18:43 kernel: free:1544 slab:1873 mapped:8784 pagetables:215 bounce:0
Mar 24 01:18:43 kernel: Swap cache: add 204, delete 203, find 71/104, race 0+0
Mar 24 01:18:43 kernel: Free swap = 521844kB
Mar 24 01:18:43 kernel: Total swap = 522072kB
Mar 24 01:18:43 kernel: Free swap: 521844kB
Mar 24 01:18:43 kernel: 32768 pages of RAM
Mar 24 01:18:43 kernel: 0 pages of HIGHMEM
Mar 24 01:18:43 kernel: 1087 reserved pages
Mar 24 01:18:43 kernel: 23123 pages shared
Mar 24 01:18:43 kernel: 1 pages swap cached
Mar 24 01:18:43 kernel: swapper: page allocation failure. order:3, mode:0x4020
Mar 24 01:18:43 kernel: Call Trace:
Mar 24 01:18:43 kernel: [<80004f80>] memset+0x0/0x1c
Mar 24 01:18:43 kernel: [<80300000>] mount_block_root+0x2a8/0x338
Mar 24 01:18:43 kernel: [<c043c350>] wlc_dpc+0x7f4/0x94c [wl]
Mar 24 01:18:43 kernel: [<c042efdc>] wl_intrson+0x20c/0x37c [wl]
Mar 24 01:18:43 kernel: [<80300000>] mount_block_root+0x2a8/0x338
Mar 24 01:18:43 kernel: [<8000150c>] ret_from_irq+0x0/0x4
Mar 24 01:18:43 kernel: [<802ffc00>] start_kernel+0x2e8/0x344
Mar 24 01:18:43 kernel: [<802ff564>] unknown_bootoption+0x0/0x340
Mar 24 01:18:43 kernel: Mem-info:
Mar 24 01:18:43 kernel: Normal per-cpu:
Mar 24 01:18:43 kernel: CPU 0: Hot: hi: 42, btch: 7 usd: 0 Cold: hi: 14, btch: 3 usd: 13
Mar 24 01:18:43 kernel: Active:18282 inactive:7773 dirty:6 writeback:0 unstable:0
Mar 24 01:18:43 kernel: free:1544 slab:1873 mapped:8784 pagetables:215 bounce:0
Mar 24 01:18:43 kernel: Normal free:6176kB min:1440kB low:1800kB high:2160kB active:73128kB inactive:31092kB present:130048kB pages_scanned:8 all_unreclaimable? no
Mar 24 01:18:43 kernel: lowmem_reserve[]: 0
Mar 24 01:18:43 kernel: Normal: 912*4kB 268*8kB 20*16kB 0*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 6176kB
Mar 24 01:18:43 kernel: Swap cache: add 204, delete 203, find 71/104, race 0+0
Mar 24 01:18:43 kernel: Free swap = 521844kB
Mar 24 01:18:43 kernel: Total swap = 522072kB
Mar 24 01:18:43 kernel: 0 pages of HIGHMEM
Mar 24 01:18:43 kernel: 1087 reserved pages
Mar 24 01:18:43 kernel: 23123 pages shared
Mar 24 01:18:43 kernel: 1 pages swap cached
Mar 24 01:18:43 kernel: swapper: page allocation failure. order:3, mode:0x4020
Mar 24 01:18:43 kernel: Call Trace:
Mar 24 01:18:43 kernel: [<80004f80>] memset+0x0/0x1c
Mar 24 01:18:43 kernel: [<80300000>] mount_block_root+0x2a8/0x338
Mar 24 01:18:43 kernel: [<c043c350>] wlc_dpc+0x7f4/0x94c [wl]
Mar 24 01:18:43 kernel: [<c042efdc>] wl_intrson+0x20c/0x37c [wl]
Mar 24 01:18:43 kernel: [<80300000>] mount_block_root+0x2a8/0x338
Mar 24 01:18:43 kernel: [<8000150c>] ret_from_irq+0x0/0x4
Mar 24 01:18:43 kernel: [<802ffc00>] start_kernel+0x2e8/0x344
Mar 24 01:18:43 kernel: CPU 0: Hot: hi: 42, btch: 7 usd: 6 Cold: hi: 14, btch: 3 usd: 13
Mar 24 01:18:43 kernel: Active:18282 inactive:7773 dirty:6 writeback:0 unstable:0
Mar 24 01:18:44 kernel: free:1537 slab:1873 mapped:8784 pagetables:215 bounce:0
Mar 24 01:18:44 kernel: Normal free:6148kB min:1440kB low:1800kB high:2160kB active:73128kB inactive:31092kB present:130048kB pages_scanned:8 all_unreclaimable? no
Mar 24 01:18:44 kernel: lowmem_reserve[]: 0
Mar 24 01:18:44 kernel: Normal: 905*4kB 268*8kB 20*16kB 0*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 6148kB
Mar 24 01:18:44 kernel: Swap cache: add 204, delete 203, find 71/104, race 0+0
Mar 24 01:18:44 kernel: Free swap = 521844kB
Mar 24 01:18:44 kernel: Total swap = 522072kB
Mar 24 01:18:44 kernel: Free swap: 521844kB
Mar 24 01:18:44 kernel: CPU 0: Hot: hi: 42, btch: 7 usd: 5 Cold: hi: 14, btch: 3 usd: 13
Mar 24 01:18:44 kernel: Active:18282 inactive:7773 dirty:6 writeback:0 unstable:0
Mar 24 01:18:44 kernel: free:1537 slab:1873 mapped:8784 pagetables:215 bounce:0
Mar 24 01:18:44 kernel: Normal free:6148kB min:1440kB low:1800kB high:2160kB active:73128kB inactive:31092kB present:130048kB pages_scanned:8 all_unreclaimable? no
Mar 24 01:18:44 kernel: lowmem_reserve[]: 0
Mar 24 01:18:44 kernel: Normal: 905*4kB 268*8kB 20*16kB 0*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 6148kB
Mar 24 01:18:44 kernel: Swap cache: add 204, delete 203, find 71/104, race 0+0
Mar 24 01:18:44 kernel: Free swap = 521844kB
Mar 24 01:18:44 kernel: Total swap = 522072kB
Mar 24 01:18:44 kernel: Free swap: 521844kB
Mar 24 01:18:44 kernel: 32768 pages of RAM
Mar 24 01:18:44 kernel: 0 pages of HIGHMEM
Mar 24 01:18:44 kernel: 1087 reserved pages
Mar 24 01:18:44 kernel: 23123 pages shared
Mar 24 01:18:44 kernel: 1 pages swap cached
ryzhov_al
24-03-2011, 06:43
Put somewhere in /usr/local/sbin/post-boot
echo 8192 > /proc/sys/vm/min_free_kbytes
I think the UPnP deamon is dead again:)
On several computers that used to work with upnp it simply won't show up anymore.
And when I run my little tool that discovers the devices using this broadcast string:
string req = "M-SEARCH * HTTP/1.1\r\n" +
"HOST: 239.255.255.250:1900\r\n" +
"ST:upnp:rootdevice\r\n" +
"MAN:\"ssdp:discover\"\r\n" +
"MX:3\r\n\r\n";
the router simply does not respond to that packet, other devices do tho:)
ryzhov_al
15-04-2011, 08:43
Even after restart?
$ cat /opt/usr/sbin/clearupnp.sh
#!/bin/sh
killall upnp
for line in `nvram show | grep "forward_port" | sed "s/ //"`
do
i=`expr index $line "="`
let i=i-1
rule=`expr substr $line 1 $i`
nvram unset $rule
done
upnp -D -L br0 -W ppp0
Even after restart?
That seems to work, probably because killall says there's no upnp running.
I do have it enabled in the web-admin.
I edited your script a bit so that it knows what lan and wan is:
#!/bin/sh
killall upnp
for line in `nvram show | grep "forward_port" | sed "s/ //"`
do
i=`expr index $line "="`
let i=i-1
rule=`expr substr $line 1 $i`
nvram unset $rule
done
upnp -D -L `nvram get lan_ifname` -W `nvram get wan_ifname`
:)
theMIROn
15-04-2011, 12:54
I got a lot of these when using openvpn:
Mar 21 11:48:40 kernel: Call Trace:
Mar 21 11:48:40 kernel: [<80300000>] mount_block_root+0x2a8/0x338
Mar 21 11:48:40 kernel: [<c0274090>] tun_chr_aio_write+0x1c8/0x2e4 [tun]
Mar 21 11:48:40 kernel: [<80003204>] stack_done+0x20/0x40
Mar 21 11:48:40 kernel: [<80300000>] mount_block_root+0x2a8/0x338
Mar 21 11:48:41 kernel: WARNING: at net/8021q/vlan_dev.c:351 vlan_dev_hard_header()
I got r2845 installed
can you please confirm openvpn bug is here or not after r2894
can you please confirm openvpn bug is here or not after r2894
with fastnat turned on?
because at the moment it's turned off, causing no errors whatsoever:)
theMIROn
15-04-2011, 14:04
with fastnat turned on?
because at the moment it's turned off, causing no errors whatsoever:)
I know, idea is to check it with fastnat turned on
I know, idea is to check it with fastnat turned on
Apr 15 17:58:06 kernel: WARNING: at net/8021q/vlan_dev.c:351 vlan_dev_hard_header()
Apr 15 17:58:06 kernel: Call Trace:
Apr 15 17:58:06 kernel: [<c0137d40>] cleanup_module+0x14f4/0x30ac [et]
Apr 15 17:58:06 kernel: [<80300000>] pcibios_fixup_bus+0x1f0/0x290
Apr 15 17:58:06 kernel: [<c0235090>] cleanup_module+0xe3c/0x13d8 [tun]
Apr 15 17:58:06 kernel: [<80003204>] stack_done+0x20/0x40
Apr 15 17:58:07 kernel: WARNING: at net/8021q/vlan_dev.c:351 vlan_dev_hard_header()
Apr 15 17:58:07 kernel: Call Trace:
Apr 15 17:58:07 kernel: [<80300000>] pcibios_fixup_bus+0x1f0/0x290
Apr 15 17:58:07 kernel: [<c0235090>] cleanup_module+0xe3c/0x13d8 [tun]
Apr 15 17:58:07 kernel: [<80003204>] stack_done+0x20/0x40
Apr 15 17:58:07 kernel: WARNING: at net/8021q/vlan_dev.c:351 vlan_dev_hard_header()
Apr 15 17:58:07 kernel: Call Trace:
Apr 15 17:58:07 kernel: [<c0137d40>] cleanup_module+0x14f4/0x30ac [et]
Apr 15 17:58:07 kernel: [<80300000>] pcibios_fixup_bus+0x1f0/0x290
Apr 15 17:58:07 kernel: [<c0235090>] cleanup_module+0xe3c/0x13d8 [tun]
Apr 15 17:58:07 kernel: [<80003204>] stack_done+0x20/0x40
Apr 15 17:58:07 kernel: WARNING: at net/8021q/vlan_dev.c:351 vlan_dev_hard_header()
Apr 15 17:58:07 kernel: Call Trace:
Apr 15 17:58:07 kernel: [<80300000>] pcibios_fixup_bus+0x1f0/0x290
Apr 15 17:58:07 kernel: [<c0235090>] cleanup_module+0xe3c/0x13d8 [tun]
Apr 15 17:58:07 kernel: [<80003204>] stack_done+0x20/0x40
Apr 15 17:58:07 kernel: WARNING: at net/8021q/vlan_dev.c:351 vlan_dev_hard_header()
Apr 15 17:58:07 kernel: Call Trace:
Apr 15 17:58:07 kernel: [<80300000>] pcibios_fixup_bus+0x1f0/0x290
Apr 15 17:58:07 kernel: [<c0235090>] cleanup_module+0xe3c/0x13d8 [tun]
Apr 15 17:58:07 kernel: [<80003204>] stack_done+0x20/0x40
Apr 15 17:58:07 kernel: WARNING: at net/8021q/vlan_dev.c:351 vlan_dev_hard_header()
Apr 15 17:58:07 kernel: Call Trace:
Apr 15 17:58:07 kernel: [<c0137d40>] cleanup_module+0x14f4/0x30ac [et]
Apr 15 17:58:07 kernel: [<80300000>] pcibios_fixup_bus+0x1f0/0x290
Apr 15 17:58:07 kernel: [<c0235090>] cleanup_module+0xe3c/0x13d8 [tun]
Apr 15 17:58:07 kernel: [<80003204>] stack_done+0x20/0x40
Apr 15 17:58:07 kernel: WARNING: at net/8021q/vlan_dev.c:351 vlan_dev_hard_header()
Apr 15 17:58:07 kernel: Call Trace:
Apr 15 17:58:07 kernel: [<c0137d40>] cleanup_module+0x14f4/0x30ac [et]
Apr 15 17:58:07 kernel: [<80300000>] pcibios_fixup_bus+0x1f0/0x290
Apr 15 17:58:07 kernel: [<c0235090>] cleanup_module+0xe3c/0x13d8 [tun]
Apr 15 17:58:07 kernel: [<80003204>] stack_done+0x20/0x40
and so on
Is the original WL-500g supported by the firmware available at http://code.google.com/p/wl500g/?
I am referring to the model with the following hardware:
Bootloader: PMON
System-On-Chip: Broadcom 4710
CPU Speed: 125 Mhz
Flash size: 4 MB
RAM: 16 MB
Wireless: Mini-PCI Broadcom WL-120G (BCM4306)
Ethernet: two network interface, one for 4 LAN ports, one for WAN port, no VLAN tagging
USB: 1xUSB 1.1
LPT: yes
Serial: yes, with external UART
JTAG: no
No, I'm sorry:(
This is the latest firmware from oleg for the wl500g: http://oleg.wl500g.info/1.9.2.7-9/ yes, from 2008:o
No, I'm sorry:(
This is the latest firmware from oleg for the wl500g: http://oleg.wl500g.info/1.9.2.7-9/ yes, from 2008:o
Thanks.
I also happen to know this one http://koppel.cz/cdmawifi/english/ which adds USB modem support. It is the only ready to use firmware capable of transforming an old WL-500g into a 3G router that I know of. But development stopped in 2008 too.
I recently found a new firmware from IIy WL500gpv2-1.9.2.7-d-r2624.trx,
everything works perfectly also choose samba is finally corrected, but I have a big problem: if I connect to ssh ce MC and root disk is displayed incorrectly and I can not browse folders with no view and copy the file.
I see the following directory structure shown (as in the picture attached) for example
/tmp"
/etc"
/dev"
and it is not possible to work... in the previous version of Oleg, the problem don't, all correct.
What is wrong?
Even had an idea, of that can be used by another character set, but I'm not sure.
What is wrong?
It is a known bug in MC, appeared on busybox target systems only. Fixed in current stable versions (I use 4.7.5).
An old Oleg FW has very old busybox which hasn't some new features used by MC fishfs.
Hello,
thank you for your explanation,about this error I had no idea...
I can update, if it is available for my distro.
It is a known bug in MC, appeared on busybox target systems only. Fixed in current stable versions (I use 4.7.5).
An old Oleg FW has very old busybox which hasn't some new features used by MC fishfs.
Resolved,
I just found a new version of MC, installed and everything works fine.
Want to come back on the upnp daemon.
It's starting during boot, but it's also crashing every now and then, and I don't have fastnat enabled;)
there's no log about it happening either:confused:
Want to come back on the upnp daemon.
It's starting during boot, but it's also crashing every now and then, and I don't have fastnat enabled;)
there's no log about it happening either:confused:
Probably, problem is in specific client request since I can't reproduce it. Are you able to run upnp daemon via gdb to see crash stacktrace?
gdb --args upnp -L lan_ifname -W wan_ifname
Probably, problem is in specific client request since I can't reproduce it. Are you able to run upnp daemon via gdb to see crash stacktrace?
gdb --args upnp -L lan_ifname -W wan_ifname
Yes, I might have been wrong about the crash, it just becomes unresponsive to anything: upnp discovery or soap messages.
I'm running it in gdb now:)
The result:
(gdb) run
Starting program: /usr/sbin/upnp -L br0 -W vlan2
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
calling upnp_main
Program received signal SIGPIPE, Broken pipe.
0x2ab39cf4 in write () from /lib/libc.so.0
(gdb)
I'm using the Toolchain (gcc 4.3.5 uClibc 0.9.30.1) K26 x86_64 build 2011.05.05 version to compile it all.
anyone know if it is safe to import config file exported from -d version in -rtn version?
anyone know if it is safe to import config file exported from -d version in -rtn version?
yeah, should be fine.
The thing is, I did have some configuration problems when I tried it, so in the end it might be better just to do a manual reconfiguration when you experience the same problems:)
I must say that the rtn branch runs more stable than the d branch on my wl-500w:D
yeah, should be fine.
The thing is, I did have some configuration problems when I tried it, so in the end it might be better just to do a manual reconfiguration when you experience the same problems:)
I must say that the rtn branch runs more stable than the d branch on my wl-500w:D
nvram (config) was ok, but backup your flashfs.
yeah, should be fine.
The thing is, I did have some configuration problems when I tried it, so in the end it might be better just to do a manual reconfiguration when you experience the same problems:)
I must say that the rtn branch runs more stable than the d branch on my wl-500w:D
really!!! What about the wireless performance? Is there any improvement?
really!!! What about the wireless performance? Is there any improvement?
I use my WL-500W as a wireless ethernet bridge to my RT-N16.
so you plug in ethernet cables and it'll send the packages over wireless to the RT-N16.:)
I noticed:
- the connection is always alive, under the -d firmware it would stop working sometimes.
- Better sensitivity of the network
- Higher throughput
so yeah, you could say so:)
I'd like to play around with tcp_vegas a bit so I loaded the module with modprobe, but somehow the files don't appear in the /proc/sys directory:
echo 1 > /proc/sys/net/ipv4/tcp_vegas_cong_avoid
-sh: can't create /proc/sys/net/ipv4/tcp_vegas_cong_avoid: nonexistent directory
the log shows that vegas is registered tho:
kernel: TCP vegas registered
also the available methods show vegas:
cat /proc/sys/net/ipv4/tcp_available_congestion_control
cubic reno vegas
any ideas?:)
doc: http://neal.nu/uw/linux-vegas/
Never mind, I think I got it working in the other way:p
modprobe tcp_vegas
cat /proc/sys/net/ipv4/tcp_available_congestion_control
cubic reno vegas
#setting it to vegas
echo vegas > /proc/sys/net/ipv4/tcp_congestion_control
cat /proc/sys/net/ipv4/tcp_congestion_control
vegas
shantanugoel
22-06-2011, 08:41
I use my WL-500W as a wireless ethernet bridge to my RT-N16.
so you plug in ethernet cables and it'll send the packages over wireless to the RT-N16.:)
I noticed:
- the connection is always alive, under the -d firmware it would stop working sometimes.
- Better sensitivity of the network
- Higher throughput
so yeah, you could say so:)
wow.. I thought broadcom driver is not compatible with 2.6 kernel but this means it is? Does moving to this firmware from the regular 2.4 based images released over at http://code.google.com/p/wl500g have any impact on apps that are installed or is it a straight upgrade? (I currently have wl500g-1.9.2.7-d-r1825 on my wl-500w)
wow.. I thought broadcom driver is not compatible with 2.6 kernel but this means it is? Does moving to this firmware from the regular 2.4 based images released over at http://code.google.com/p/wl500g have any impact on apps that are installed or is it a straight upgrade? (I currently have wl500g-1.9.2.7-d-r1825 on my wl-500w)
no, nothing will have to change on your harddrive(s), nor the flashfs.
I only had some problems with the nvram (web-admin) settings, apart from that the installation of the k2.6 firmware is as smooth as a rock;)
Michelasso
23-06-2011, 15:38
Can anyone tell me how to install WL500gpv2-1.9.2.7-rtn-r2972.trx? I have no problem with the -d release, but that one doesn't seem to flash. The power light starts blinking and then it gets stuck. Obviously into a WL500 GP v2. Thanks.
Can anyone tell me how to install WL500gpv2-1.9.2.7-rtn-r2972.trx? I have no problem with the -d release, but that one doesn't seem to flash. The power light starts blinking and then it gets stuck. Obviously into a WL500 GP v2. Thanks.
have you tried the firmware restoration tool?
flashing might take a while with it, sometimes like 5 minutes:)
Michelasso
23-06-2011, 21:59
have you tried the firmware restoration tool?
flashing might take a while with it, sometimes like 5 minutes:)
The one from Windows? (un)fortunately I use a MacBook. I tried with a virtual machine but obviously it messed up. Now I installed Win7 in a partition and that may help in case.
What i did has been to upload the fw from the web interface. it works fine (and fast) with the -d release. With the -rtn I don't know what it happens.
I managed to unblock the router using the wl500g-clear-nvram.trx and wl500g-recover.trx via tftp, fortunately I've found some instructions in the ww-drt site.
So, my only guess is that it really should take 5 minutes to install? How do i know if the firmware has been installed? I am not sure because I messed up, but I thought that in one try I left the router on for 10 minutes or so, but I can remember wrong. Anyway, what do you suggest? The Windows tool?
Well you could use the mac osx build in tftp client to upload the firmware.
In the end... that's all the windows tool does:)
If you're running a VM of windows you could try to bridge the network adapters, that way it might work as well:)
Michelasso
25-06-2011, 00:28
Well you could use the mac osx build in tftp client to upload the firmware.
In the end... that's all the windows tool does:)
If you're running a VM of windows you could try to bridge the network adapters, that way it might work as well:)
That's what I did indeed (upload via tftp). Still the rtn version seemed to not load. I check the M5 number and it is correct, so it isn't a file corrupted problem. I will try maybe tomorrow, waiting few 10 minutes this time. I know how to restore the old firmware anyway if anything goes wrong again. Thanks. I'll let you know.
Michelasso
27-06-2011, 09:27
Nothing. I am totally unable to install the rtn release of the wl500gp v2 fw. I tried also with the restore utility from Windows and it got stuck waiting for an IP address. I gave a static IP address (192.168.1.2) to Windows and same thing. Uploaded via tftp, binary mode (octet) it got uploaded (I enabled trace as well) and that's it. Left on for 10-20 minutes, nothing happened.
How do you guys flash the rtn version?! I need it because I read it might fix a problem with the WiFi (that in my case it can disappear for weeks, but the light is on and then sometime it reappears). This is very frustrating.
How do you guys flash the rtn version?! I need it because I read it might fix a problem with the WiFi (that in my case it can disappear for weeks, but the light is on and then sometime it reappears). This is very frustrating.
I'm sorry it doesn't work for you:(
I only have a wl-500w and a rt-n16, both just flash fine trough the web-interface.
Also the wl-500gPv2 should be compatible with the rtn branch.
You've also tried restoring to factory defaults before flashing?
have you also tried newer builds: http://wpte.kicks-ass.net/downloads/Oleg%20Firmware/Nightlys/1.9.2.7-rtn/3101/wl-models/ ?
Michelasso
28-06-2011, 13:46
I think I tried everything. It just seems it doesn't like that file. But the checksum is correct, so i have no clue.
I will give the night builds a look. Thanks
shantanugoel
12-07-2011, 17:17
I flashed the WL500W-1.9.2.7-rtn-r3121.trx on my asus wl-500w this weekend. Everything seems to be working great but I see one issue. UPnP no longer works. None of my programs that use upnp for opening ports are able to do so. Even transmission (running on router itself) is not able to open the incoming port and shows it as closed. On checking the Status & Log -> Port forwarding page, it is completely blank, not even a single port forwarded, which is strange because I run a lot of services on my PC, PS3 and router that forward ports through UPnP and earlier this page used to be filled with atleast 15-20 ports always.. I've enabled UPnP (yes, report wan address) under IP Config->Miscellaneous. Any ideas?
I flashed the WL500W-1.9.2.7-rtn-r3121.trx on my asus wl-500w this weekend. Everything seems to be working great but I see one issue. UPnP no longer works. None of my programs that use upnp for opening ports are able to do so. Even transmission (running on router itself) is not able to open the incoming port and shows it as closed. On checking the Status & Log -> Port forwarding page, it is completely blank, not even a single port forwarded, which is strange because I run a lot of services on my PC, PS3 and router that forward ports through UPnP and earlier this page used to be filled with atleast 15-20 ports always.. I've enabled UPnP (yes, report wan address) under IP Config->Miscellaneous. Any ideas?
Have you tried resetting the router to factory defaults to check if it's not a configuration problem?
Also, if this tool (I made) can find it nothing should be wrong: http://code.google.com/p/csharp-upnp-portmapper/ (it's still very simplistic)
Also you could try these settings:
IP Config - Miscellaneous -> Efficient Multicast Forwarding: Disabled
Wireless - Advanced -> Enable WMF? Yes
Your firmware version has a upnp patch that stopped the upnp daemon from crashing (an issue I experienced myself)
You can use this script to reset the upnp daemon:
#!/bin/sh
killall upnp
for line in `nvram show | grep "forward_port" | sed "s/ //"`
do
i=`expr index $line "="`
let i=i-1
rule=`expr substr $line 1 $i`
nvram unset $rule
done
upnp -D -L `nvram get lan_ifname` -W `nvram get wan_ifname`
(thanks to ryzhov_al for this script)
theMIROn
12-07-2011, 21:17
Have you tried resetting the router to factory defaults to check if it's not a configuration problem?
Also, if this tool (I made) can find it nothing should be wrong: http://code.google.com/p/csharp-upnp-portmapper/ (it's still very simplistic)
please check upnp with this tools (win32)
http://www.zultrax.com/forward-port/upnp.htm
Also you could try these settings:
IP Config - Miscellaneous -> Efficient Multicast Forwarding: Disabled
Wireless - Advanced -> Enable WMF? Yes
WMF is about wireless multicast only, it's not related with UPNP.
Your firmware version has a upnp patch that stopped the upnp daemon from crashing (an issue I experienced myself)
You can use this script to reset the upnp daemon:
FW has miniupnpd, not upnp as daemon, script is useless.
And, that's why leases are not saved after restarts.
please check upnp with this tools (win32)
http://www.zultrax.com/forward-port/upnp.htm
Ok, another installer, and not even a dedicated upnp-nat program
WMF is about wireless multicast only, it's not related with UPNP.
When I disabled it I couldn't find any media server wirelessly anymore, since that happens using SSDP (what upnp uses) it is a thing to try out.
FW has miniupnpd, not upnp as daemon, script is useless.
And, that's why leases are not saved after restarts.
True, forgot that.
shantanugoel
13-07-2011, 07:16
Thanks wpte and theMiron. I'll try out your suggestions and report back.
shantanugoel
13-07-2011, 14:04
Hi wpte/theMiron
I tried all your suggestions.
Efficient multicast forwarding and WMF are already disabled.
When I run wpte's tool, it is able to map the ports well..
However, when I run the tool suggested by theMiron, it gives following output:
TEST 1 - Operating System Support - PASSED
TEST 2 - SSDP Service Running Check - FAILED
TEST 3 - SSDP Service Automatic Check - FAILED
TEST 4 - UPnPHost Service Running Check - FAILED
TEST 5 - UPnPHost Service Automatic Check - FAILED
TEST 6 - UPnP Framework Firewall Exception Check - PASSED
TEST 7 - Adapter #0 - 192.168.0.7 - PASSED
TEST 8 - Get External IP Address (Result: x.x.x.x) - PASSED
These are all run on my PC. Router is connected directly to my ISP's cable without any modem in between and gets the external IP assigned correctly. Also, I downloaded utorrent and ran that and that is also working fine for adding ports through upnp.
However, the programs that I run on my router itself (e.g. transmission) are not able to open the ports through upnp and the port always shows up as closed. I'm very confused by all these results :(. Unfortunately I'm pretty naive with upnp/nat-pmp etc and couldn't debug anything more. Please let me know if I can provide any more information.
theMIROn
13-07-2011, 14:13
However, the programs that I run on my router itself (e.g. transmission) are not able to open the ports through upnp and the port always shows up as closed. I'm very confused by all these results :(. Unfortunately I'm pretty naive with upnp/nat-pmp etc and couldn't debug anything more. Please let me know if I can provide any more information.
add them (ports) to the vserver or to post-firewall directly
shantanugoel
13-07-2011, 14:51
add them (ports) to the vserver or to post-firewall directly
Yeah, I can do that but I have set transmission to use random ports..I can set it to use fixed port for now and get by this issue but just interested in seeing if the problem can be fixed..
Anyways, I did some more searching around and debugging. Used a tool from http://bitlet.org/upnp and it reports no UPnP enabled gateway devices found. Also ran transmission with debug logging mode and saw that UPnpDiscover and UPnP_getValidIGD calls were failing. Searching for this on transmission forums lead me to this ticket https://trac.transmissionbt.com/ticket/3452 where they mention that this problem started happening when they "fixed" their code to use proper return values from UPNP_GetValidIGD. Earlier they were just checking for >1 and now they check specially for 1.
miniupnp says:
/* UPNP_GetValidIGD() :
* return values :
* 0 = NO IGD found
* 1 = A valid connected IGD has been found
* 2 = A valid IGD has been found but it reported as
* not connected
* 3 = an UPnP device has been found but was not recognized as an IGD
so miniupnp is getting confused and returning 3, basically not finding any valid IGD. Searching on miniupnp forums, it is mentioned that this is a router problem, not a miniupnp problem.
Just thought of providing this information in case you can make some connections :)
theMIROn
13-07-2011, 15:26
please try following (on the router):
1. killall miniupnpd
2. edit /etc/miniupnpd.conf:
search for
...
listening_ip=...
...
allow 1024-65535 ... 1024-65535
...
and insert lines as following:
...
listening_ip=127.0.0.1
listening_ip=...
...
allow 1024-65535 127.0.0.0/8 1024-65535
allow 1024-65535 ... 1024-65535
...
3. miniupnpd
4. check if it works
shantanugoel
14-07-2011, 15:42
please try following (on the router):
1. killall miniupnpd
2. edit /etc/miniupnpd.conf:
search for
...
listening_ip=...
...
allow 1024-65535 ... 1024-65535
...
and insert lines as following:
...
listening_ip=127.0.0.1
listening_ip=...
...
allow 1024-65535 127.0.0.0/8 1024-65535
allow 1024-65535 ... 1024-65535
...
3. miniupnpd
4. check if it works
just tried this.. didn't work :(
shantanugoel
21-07-2011, 12:28
Another query: Is it ok to use inotify calls on rtn builds? (since they are built on 2.6 kernel)?
shantanugoel
30-07-2011, 20:45
Another query: Is it ok to use inotify calls on rtn builds? (since they are built on 2.6 kernel)?
To answer my own question, it works :). I just tried by compiling minidlna with inotify support for wl-500w and then used it with the new firmware and it detected the new files added while it was running :)
I keep getting the message:
miniupnpd[526]: Can't find in which sub network the client is
and ports entered are not forwarded:(
I keep getting the message:
and ports entered are not forwarded:(
Sorry, didn't find your original post about problem above. Since which build it appeared?
Sorry, didn't find your original post about problem above. Since which build it appeared?
that was the only post I made about the problem.
I'm not quite sure, I just use upnp-nat every now and then and noticed it didn't work:p
shantanugoel (a few posts back) had issues, I remember that before that I had no problems with miniupnpd. after that there's only this update: http://code.google.com/p/wl500g/source/detail?r=3169 as far as I can see in the svnlog.
the configuration seems correct as well:
# automagically generated
ext_ifname=vlan2
listening_ip=192.168.2.1/255.255.255.0
port=0
enable_upnp=yes
enable_natpmp=yes
lease_file=/tmp/upnp.leases
secure_mode=no
presentation_url=http://192.168.2.1:8080/
system_uptime=yes
notify_interval=60
clean_ruleset_interval=600
uuid=002618a1-3cfb-0026-18a1-3cfb00000000
model_number=RT-N16
allow 1024-65535 192.168.2.0/24 1024-65535
deny 0-65535 0.0.0.0/0 0-65535
presentation url is on the same port as my web-admin, that's ok I guess?
Anyway, I checked it just now, and suprisingly it works:confused: there is no more message about the sub network either...
I didn't change anything either:o
shantanugoel
01-09-2011, 08:32
yeah..the issue I had with miniupnpd was that programs running on router itself are not able to open any ports but programs running on my PC can open ports. Using 127.0.0.1 in listening_ip in the configuration didn't solve the problem as well but I noticed that if I run miniupnpd with the listening IP specified on the command line as 127.0.0.1 instead of specifying in config file, then the programs running on the router are able to open ports.
My miniupnpd crashed today...
wel it stayed in a 100% cpu usage loop displaying the messages
Oct 20 20:12:16 miniupnpd[526]: send(res_buf): Broken pipe
over and over again.
I wasn't able to kill it for some reason:(
I've version 1.9.2.7-rtn-r3422
wpte
100% cpu usage already fixed in r3479 ;) It is a bug inside miniupnpd. I would be glad if someone opened a problem at miniupnpd's forum, I haven't enough time for it.
True root of problem should be investigated, but I can't reproduce this bug myself. Probably, recipient close other end of pipe too early and miniupnpd either don't parse response correctly or it is an hole in workflow...
wpte
100% cpu usage already fixed in r3479 ;) It is a bug inside miniupnpd. I would be glad if someone opened a problem at miniupnpd's forum, I haven't enough time for it.
True root of problem should be investigated, but I can't reproduce this bug myself. Probably, recipient close other end of pipe too early and miniupnpd either don't parse response correctly or it is an hole in workflow...
My bad, I looked over that update:o
I've only had it once as well... it's a rare problem I guess...
Looks like a problem with the upnp request parsing, I don't understand why they don't use the intel upnp toolkit (it's a bit bigger in size I guess) since it has been running completely stable here in C here.
I experiment with it to control the QoS rules based on what programs the client PC is running, so that you'll always have optimal rules :D
ecaddict
02-11-2011, 11:30
My system log contain quite many of these (RT-N16, 1.9.2.7-rtn-r3497, not PPP connection) in every half an hour:
Nov 2 00:23:37 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:37 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:37 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:37 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:37 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:37 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:37 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:37 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:37 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:37 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:37 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:37 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:41 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:41 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:41 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:41 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:41 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:41 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:41 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:41 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:41 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:41 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:41 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:41 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:45 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:45 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:45 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:45 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:45 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:45 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:45 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:45 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:45 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:45 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:45 miniupnpd[406]: Can't find in which sub network the client is
Nov 2 00:23:45 miniupnpd[406]: Can't find in which sub network the client is
I've noticed it only now, but cannot guess what it is. Nothing was connected to the router at that time not even via OpenVPN although it was running.
Do you have some idea what's causing this or how to figure it out (what client it refers to)?
Do you have some idea what's causing this or how to figure it out (what client it refers to)?
Some client send command to unlisted interface or it is a bug inside miniupnpd.
I can add debug print about sender IP to miniupnpd only.
P.S. Unfortunately, miniupnpd is far from ideal daemon...
theMIROn
02-11-2011, 13:50
P.S. Unfortunately, miniupnpd is far from ideal daemon...
But, indeed it's better than supplied bcm upnp
ecaddict
02-11-2011, 14:52
I've stopped twonkymedia and the messages disappeared. After starting it again they have appeared immediately.
Maybe there is something wrong with my configuration even though it's nothing special compared to the factory twonkymedia-server-default.ini.
Anyhow, thanks for quick responses.
I've stopped twonkymedia and the messages disappeared. After starting it again they have appeared immediately.
I'm not familiar with UPnP protocols, but twonkymedia really issues SSDP M-SEARCH command.
Probably, we have to add "listening_ip=127.0.0.1/8" into miniupnpd.conf
As I can see in miniupnp sources, there should be one diagnostic string more in syslog.log, like:
SSDP M-SEARCH from 0.0.0.0 ST: ???"
Are you logging errors only? Could you provide output of following comands
ps|grep syslogd
nvram get log_level_x
?
I've stopped twonkymedia and the messages disappeared. After starting it again they have appeared immediately.
Maybe there is something wrong with my configuration even though it's nothing special compared to the factory twonkymedia-server-default.ini.
Anyhow, thanks for quick responses.
Hmm... what version do you use?
I'm not familiar with UPnP protocols, but twonkymedia really issues SSDP M-SEARCH command.
Probably, we have to add "listening_ip=127.0.0.1/8" into miniupnpd.conf
I've implemented the entire basic UPnP stack for control points(the clients) and devices(servers in common computer language:p) while working on a uni project.
I've done a quick capture with wireshark and this is what I got:
M-SEARCH * HTTP/1.1\r\n
MX: 3\r\n
ST: urn:schemas-upnp-org:device:RemoteUIServer:1\r\n
HOST: 239.255.255.250:1900\r\n
MAN: "ssdp:discover"\r\n
I guess that's the ssdp m-search package you're talking about.
My comment on this: It's a correct package according to the UPnP Device architecture document:
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: seconds to delay response
ST: search target
(without the line endings, but they're supposed to be windows style)
All the required values are defined, but in theory shouldn't follow the exact same order.
So in my quickly formed opinion this is a bug in the way miniupnpd handles it's m-searches.
blocking out the local host could work, unless you have a bad network and packages bounce back :)
ecaddict
02-11-2011, 19:13
I've solved the issue via adding ip=192.168.1.1 to twonkymedia.ini.
In this way it's restricted to LAN interface. I don't know if it's any issue, probably not.
Please correct me if I'm wrong.
I'll skip checking this issue further in upnp as I'm not familiar enough with it.
Btw. twonkymedia version is 6.0.37.
I've solved the issue via adding ip=192.168.1.1 to twonkymedia.ini.
In this way it's restricted to LAN interface. I don't know if it's any issue, probably not.
Please correct me if I'm wrong.
I'll skip checking this issue further in upnp as I'm not familiar enough with it.
Btw. twonkymedia version is 6.0.37.
I'm not sure ecaddict... an m-search is just a udp broadcast so an ip should be resolved by the control point (miniupnpd in this case), setting an ip for the device shouldn't make a difference:confused:
I'm not sure ecaddict... an m-search is just a udp broadcast so an ip should be resolved by the control point (miniupnpd in this case), setting an ip for the device shouldn't make a difference:confused:
M-SEARCH has a multicast target address, but sender(source) address in packet is?
theMIROn
03-11-2011, 08:23
Probably, we have to add "listening_ip=127.0.0.1/8" into miniupnpd.conf
refer http://wl500g.info/showpost.php?p=234697&postcount=590
despite the face of security hole, seems like we have to add lo interface.
refer http://wl500g.info/showpost.php?p=234697&postcount=590
despite the face of security hole, seems like we have to add lo interface.
To be sure to do this, we must know that sender IP neither anycast, nor multicast. Right?
Since I haven't twonkey, I ask wpte & ecaddict for information.
theMIROn
03-11-2011, 10:54
Ok
"Can't find in which sub network the client %s is", client_ip?
M-SEARCH has a multicast target address, but sender(source) address in packet is?
Yes, the ip-endpoint is set at 255.255.255.255:1900
then an ipv4 socket is created with udp and datagram (http://en.wikipedia.org/wiki/Datagram_socket) settings.
then twonky sends the m-search message 3 times (according to upnp spec)
and reads the responses back.
It's importand that if you have multiple devices on 1 host that either way you solve the problem of multiple sockets on 1 interface with a root device (which could act like a sort of switch) or like most programs do because of compatebility issues: do not bound on the socket but simply send and receive data.
In my programming I've never had to use the ip of the device... well... only for serving the service, but not for m-searches and responses:confused:
In wireshark the ip of the twonky m-search just popped up as my router ip, as expected.
ecaddict
03-11-2011, 12:16
refer http://wl500g.info/showpost.php?p=234697&postcount=590
despite the face of security hole, seems like we have to add lo interface.
I can confirm that running the following commands:
killall miniupnpd
cat >> /etc/miniupnpd.conf << __EOF__
listening_ip=127.0.0.1
allow 1024-65535 127.0.0.0/8 1024-65535
__EOF__
miniupnpd
ps afx | grep miniupnpd
makes it unnecessary adding the ip=192.168.1.1 to twonkymedia.ini so that the strange logs disappear.
I don't know if this information is any help to you.
Well my message is coming from an unexpected corner:p
miniupnpd[216]: Can't find in which sub network the client 192.168.3.1:1030 is
192.168.3.x is my openvpn ip range:p
twonky does set it self up on every interface as far as I know. the weird thing is, when connected to openvpn it's not visible:p
Unfortunately, miniupnpd hasn't bind to specific interface option. Seems to be it really urgent on routers...
theMIROn
14-11-2011, 12:34
Unfortunately, miniupnpd hasn't bind to specific interface option. Seems to be it really urgent on routers...
Huh, that's was I'm talking about recently
Unfortunately, miniupnpd hasn't bind to specific interface option. Seems to be it really urgent on routers...
Seems like an easy fix tho.
This could explain why twonky didn't cause the messages after it knew the ip the broadcast on...
It's too bad the developers didn't include this by default, on a port-forwarding application it would be a good security feature in my eyes.
Hi,
Currently i'm using USB 3g modem in rt-n16 with the latest firmware.
i need to send some AT commands before making the connection and similarly after making the connection. With the help of additional AT commands option i could send pre-connection AT commands successfully. But i couldn't able to send AT commands after successful connection. Is there any way its possible?
I tried setting up post-firewall, but it was not successful.
Any help or some hint much appreciated :)
I just flashed r3668 and the reboot problem is still present...
unless... I have no harddrives attached, then it just reboots like a charm:D
not sure what goes wrong, still, since the pre-shutdown script is called.:confused:
I just flashed r3668 and the reboot problem is still present...
Could you try to run pre-shutdown script in console with harddrive attached? Hope, it will show problematic place in script.
Are problem exists in r3619, r3611?
Could you try to run pre-shutdown script in console with harddrive attached? Hope, it will show problematic place in script.
Are problem exists in r3619, r3611?
I'll try that tonight...
I just use the script wengi proposed in his how-to:
#! /bin/sh
/opt/etc/init.d/rc.unslung stop
sleep 10s
for i in `cat /proc/mounts | awk '/ext3/{print($1)}'` ; do
mount -oremount,ro $i
done
swapoff -a
sleep 1s
I have used that for a long long time without any issues:)
I have to note that the reboot without the harddrive attached did feel like it took longer than normal.
I'll try that tonight...
Problem reproduced, read-only remount stuck. Bug appeared in r3607, will try to fix it ASAP. Thank you for report.
Updated: Fixed in r3670
Problem reproduced, read-only remount stuck. Bug appeared in r3607, will try to fix it ASAP. Thank you for report.
Updated: Fixed in r3670
I can confirm it works, thanks :)
Hi,
Currently i'm using USB 3g modem in rt-n16 with the latest firmware.
i need to send some AT commands before making the connection and similarly after making the connection. With the help of additional AT commands option i could send pre-connection AT commands successfully. But i couldn't able to send AT commands after successful connection. Is there any way its possible?
I tried setting up post-firewall, but it was not successful.
Any help or some hint much appreciated :)
I've succeeded with post-firewall script and now new problem is, post-firewall event doesn't fireup when the pppd(3G) connection disconnects and reconnects automatically. Any help here?
Basically i want to execute an script, after successful wan connection, similar to wan-up in tomato and i'm not sure whether this is possible here or not?
I've succeeded with post-firewall script and now new problem is, post-firewall event doesn't fireup when the pppd(3G) connection disconnects and reconnects automatically. Any help here?
Basically i want to execute an script, after successful wan connection, similar to wan-up in tomato and i'm not sure whether this is possible here or not?No one interested to help me or give some hints here? :(
Do i need to do something special to activate fast-nat and get more dw/up speed wan-lan?
corwin_x
11-02-2012, 12:17
Hello guys,
I have a strange problem. After upgrading to rtn 3702 on my ASUS WL-500g Premium, mounting order of my partitions went FUBAR. I have three, SWAP, OPT and data partition, all was set in the FStab in previous version of the firmware. But after an update, the partitions get mounted automatically to some default mountpoints, and I am unable to locate the fstab in the /etc to specify the mount order. Remounting them manually of course solves the problem, but this is real pain in the ass to do after each reboot...
Any help appreciated.
ryzhov_al
11-02-2012, 14:19
You may try to mount partition by its labels. Here is an example:
$ cat /etc/fstab
LABEL=SWAP none swap sw 0 0
LABEL=OPT /opt ext3 rw 1 1
LABEL=STORE /tmp/store ext3 rw 1 1
LABEL=DOWNLOADS /tmp/downloads ext3 rw 1 1
#LABEL=DOWNLOADS /tmp/downloads ext4 rw,barrier=0 1 1
Firmware tries to mount first avaliable partition at /tmp/mnt/diskX_Y and symlink it to /tmp/harddisk automatically.
corwin_x
You have to read forums FAQ/tutorials more attentively. Flashfs content can be lost if upgrading from firmware with big difference in .trx size. You simply have to backup/restore it.
Moreover, fstab for 2.4 kernels (1.9.2.7-d) incompatible with 2.6 one (1.9.2.7-rtn).
not quite sure if this is a firmware problem:
Feb 21 01:40:10 kernel: transmission-da: page allocation failure. order:3, mode:0x4020
Feb 21 01:40:10 kernel: Call Trace:
Feb 21 01:40:10 kernel: [<80004fe0>] memset+0x0/0x1c
Feb 21 01:40:10 kernel: [<c00f6c2c>] et_link_up+0x2a4c/0x2cd0 [et]
Feb 21 01:40:10 kernel: [<c00f53f0>] et_link_up+0x1210/0x2cd0 [et]
Feb 21 01:40:10 kernel: [<c00f5418>] et_link_up+0x1238/0x2cd0 [et]
Feb 21 01:40:10 kernel: [<802f0000>] cpu_cache_init+0x50/0x6c
Feb 21 01:40:10 kernel: [<c00f5830>] et_link_up+0x1650/0x2cd0 [et]
Feb 21 01:40:10 kernel: [<8000150c>] ret_from_irq+0x0/0x4
Feb 21 01:40:11 kernel: WARNING: at mm/slub.c:2432 kfree()
Feb 21 01:40:11 kernel: Call Trace:
Feb 21 01:40:11 kernel: [<802f0000>] cpu_cache_init+0x50/0x6c
Feb 21 01:40:11 kernel: [<c00f5830>] et_link_up+0x1650/0x2cd0 [et]
Feb 21 01:40:11 kernel: [<8000150c>] ret_from_irq+0x0/0x4
Feb 21 01:40:11 kernel: WARNING: at mm/slub.c:2432 kfree()
Feb 21 01:40:11 kernel: Call Trace:
Feb 21 01:40:11 kernel: [<802f0000>] cpu_cache_init+0x50/0x6c
Feb 21 01:40:11 kernel: WARNING: at mm/slub.c:2432 kfree()
Feb 21 01:40:11 kernel: Call Trace:
Feb 21 01:40:11 kernel: [<802f0000>] cpu_cache_init+0x50/0x6c
Feb 21 01:40:11 kernel: [<c00f5830>] et_link_up+0x1650/0x2cd0 [et]
Feb 21 01:40:11 kernel: [<8000150c>] ret_from_irq+0x0/0x4
Feb 21 01:40:11 kernel: [<80003204>] stack_done+0x20/0x40
Feb 21 01:40:11 kernel: WARNING: at mm/slub.c:2432 kfree()
Feb 21 01:40:11 kernel: Call Trace:
Feb 21 01:40:11 kernel: [<80003204>] stack_done+0x20/0x40
Feb 21 01:40:11 kernel: WARNING: at mm/slub.c:2432 kfree()
I do know it kills my router frequently:D
I've already increased the min_free_kbytes option since... a long long time, but it's not good enough anymore:(
echo 8192 > /proc/sys/vm/min_free_kbytes
Hello,
I have a router WL500gp with WL500gp-1.9.2.7-rtn-r3702.trx
I use WDS and it does not connect. With the software WL500gp-1.9.2.7-d-r2624 i do not have any problems.
What could be the problem?
Best regards
mimiko
pheidrias
09-03-2012, 18:13
not quite sure if this is a firmware problem:
I do know it kills my router frequently:D
I do observe something similar after some time running the router:
$ dmesg
art_kernel+0x2c/0x4c4
[<80001524>] ret_from_irq+0x0/0x4
[<80006470>] schedule+0x41c/0xb9c
[<80006518>] schedule+0x4c4/0xb9c
[<800081cc>] schedule_hrtimeout_range+0xec/0x17c
[<c029a228>] wlc_phytxctl1_calc+0x2198/0x303c [wl]
[<c029d104>] wlc_prep_sdu+0x810/0x1590 [wl]
[<c032e0b4>] wlc_phy_chanspec_get+0x0/0x8 [wl]
[<80004de0>] memcpy+0x0/0x4
[<c029aa68>] wlc_phytxctl1_calc+0x29d8/0x303c [wl]
[<c029d104>] wlc_prep_sdu+0x810/0x1590 [wl]
[<c02a6d20>] wlc_dpc+0x710/0xa70 [wl]
[<80327a00>] start_kernel+0x2c/0x4c4
[<c029e058>] wlc_send_q+0x1d4/0x7f4 [wl]
[<c02a6d20>] wlc_dpc+0x710/0xa70 [wl]
[<80327a00>] start_kernel+0x2c/0x4c4
[<80327e00>] start_kernel+0x42c/0x4c4
[<800032f0>] stack_done+0x20/0x40
WARNING: at mm/slub.c:2432 kfree()
Call Trace:
[<c029c0c0>] wlc_dotxstatus+0xbe8/0x11fc [wl]
[<c02a7280>] wlc_scbfind+0x0/0xd4 [wl]
[<c02a6d94>] wlc_dpc+0x784/0xa70 [wl]
[<80327e00>] start_kernel+0x42c/0x4c4
[<c0296e38>] wl_intrson+0x228/0x3bc [wl]
[<80327e00>] start_kernel+0x42c/0x4c4
[<80327a00>] start_kernel+0x2c/0x4c4
[<80001524>] ret_from_irq+0x0/0x4
[<80006470>] schedule+0x41c/0xb9c
[<80006518>] schedule+0x4c4/0xb9c
[<800081cc>] schedule_hrtimeout_range+0xec/0x17c
[<c029a228>] wlc_phytxctl1_calc+0x2198/0x303c [wl]
[<c029d104>] wlc_prep_sdu+0x810/0x1590 [wl]
[<c032e0b4>] wlc_phy_chanspec_get+0x0/0x8 [wl]
[<80004de0>] memcpy+0x0/0x4
[<c029aa68>] wlc_phytxctl1_calc+0x29d8/0x303c [wl]
[<c029d104>] wlc_prep_sdu+0x810/0x1590 [wl]
[<c02a6d20>] wlc_dpc+0x710/0xa70 [wl]
[<80327a00>] start_kernel+0x2c/0x4c4
[<c029e058>] wlc_send_q+0x1d4/0x7f4 [wl]
[<c02a6d20>] wlc_dpc+0x710/0xa70 [wl]
[<80327a00>] start_kernel+0x2c/0x4c4
[<80327e00>] start_kernel+0x42c/0x4c4
[<800032f0>] stack_done+0x20/0x40
.
.
.
.
WARNING: at mm/slub.c:2432 kfree()
Call Trace:
[<c02a0a18>] wlc_recvdata+0xa60/0xdf4 [wl]
[<c029e0dc>] wlc_send_q+0x258/0x7f4 [wl]
[<c029c0c0>] wlc_dotxstatus+0xbe8/0x11fc [wl]
[<c02a6d94>] wlc_dpc+0x784/0xa70 [wl]
[<80327e00>] start_kernel+0x42c/0x4c4
[<c0296e38>] wl_intrson+0x228/0x3bc [wl]
[<80327e00>] start_kernel+0x42c/0x4c4
[<80001524>] ret_from_irq+0x0/0x4
[<80001524>] ret_from_irq+0x0/0x4
[<800032f0>] stack_done+0x20/0x40
With this, it seems that my router is not reachable via Web-IF (ssh works, though).
After reboot, no message like this and everything is fine.
pheidrias
11-03-2012, 19:36
It seems, that the avove problem stems from the usage of transmission?
transmission itself gives me the following "hints" at startup:
$ EVENT_NOEPOLL=1 transmission-daemon -f --log-debug
[20:35:34.294] Transmission 2.50 (13228) started (session.c:718)
[20:35:34.296] Cache Maximum cache size set to 2.00 MiB (128 blocks) (cache.c:249)
[20:35:34.297] RPC Server Adding address to whitelist: *.*.*.* (rpc-server.c:803)
[20:35:34.298] RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:997)
[20:35:34.299] RPC Server Whitelist enabled (rpc-server.c:1001)
[20:35:34.300] Bound socket 10 to port 51413 on 0.0.0.0 (net.c:371)
[20:35:34.300] Bound socket 11 to port 51413 on :: (net.c:371)
[20:35:34.301] UDP Failed to set receive buffer: requested 4194304, got 221184 (tr-udp.c:75)
[20:35:34.304] UDP Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf (tr-udp.c:80)
[20:35:34.305] UDP Failed to set send buffer: requested 1048576, got 221184 (tr-udp.c:86)
[20:35:34.306] UDP Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf (tr-udp.c:91)
.
.
.
[20:35:34.313] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:72)
[20:35:34.314] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (natpmp.c:72)
[20:35:34.315] Port Forwarding (UPnP) UPNP_GetValidIGD failed (errno 0 - Success) (upnp.c:214)
[20:35:34.316] Port Forwarding (UPnP) If your router supports UPnP, please make sure UPnP is enabled! (upnp.c:217)
[20:35:34.317] Port Forwarding Starting (port-forwarding.c:93)
.
.
.
May this be related?
Does the Asus provide a "/etc/sysctl.conf" (I couldn't find one)?
Should I create one?
Regarding the ports-problems --> what is the preferred way to enable UPnP?
Thanks for help,
pheidrias
PS:
my transmission config:
cat .config/transmission-daemon/settings.json
{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"blocklist-url": "http://www.example.com/blocklist",
"cache-size-mb": 2,
"dht-enabled": true,
"download-dir": "/tmp/harddisk/transmission/download",
"download-queue-enabled": true,
"download-queue-size": 5,
"encryption": 0,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/usr/local/root/Downloads",
"incomplete-dir-enabled": false,
"lpd-enabled": false,
"message-level": 3,
"peer-congestion-algorithm": "",
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": "default",
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"prefetch-enabled": 0,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 2,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": false,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "whoknows",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "",
"rpc-whitelist": "*.*.*.*",
"rpc-whitelist-enabled": true,
"scrape-paused-torrents-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"seed-queue-enabled": false,
"seed-queue-size": 10,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"start-added-torrents": true,
"trash-original-torrent-files": false,
"umask": 18,
"upload-slots-per-torrent": 14,
"utp-enabled": true
}
Does the Asus provide a "/etc/sysctl.conf" (I couldn't find one)?
No, it not included for size reason. You have to directly write to:
/proc/sys/net/core/rmem_max
/proc/sys/net/core/wmem_max
Is this true?
It says download speed 903Mbps, upload speed 628Mbps
http://photohost.info/images/7801203051445410af640ad90.jpg
staticroute
06-06-2012, 03:42
I do observe something similar after some time running the router:
$ dmesg
art_kernel+0x2c/0x4c4
[<80001524>] ret_from_irq+0x0/0x4
[<80006470>] schedule+0x41c/0xb9c
[<80006518>] schedule+0x4c4/0xb9c
[<800081cc>] schedule_hrtimeout_range+0xec/0x17c
[<c029a228>] wlc_phytxctl1_calc+0x2198/0x303c [wl]
[<c029d104>] wlc_prep_sdu+0x810/0x1590 [wl]
[<c032e0b4>] wlc_phy_chanspec_get+0x0/0x8 [wl]
[<80004de0>] memcpy+0x0/0x4
[<c029aa68>] wlc_phytxctl1_calc+0x29d8/0x303c [wl]
[<c029d104>] wlc_prep_sdu+0x810/0x1590 [wl]
[<c02a6d20>] wlc_dpc+0x710/0xa70 [wl]
[<80327a00>] start_kernel+0x2c/0x4c4
[<c029e058>] wlc_send_q+0x1d4/0x7f4 [wl]
[<c02a6d20>] wlc_dpc+0x710/0xa70 [wl]
[<80327a00>] start_kernel+0x2c/0x4c4
[<80327e00>] start_kernel+0x42c/0x4c4
[<800032f0>] stack_done+0x20/0x40
WARNING: at mm/slub.c:2432 kfree()
Call Trace:
[<c029c0c0>] wlc_dotxstatus+0xbe8/0x11fc [wl]
[<c02a7280>] wlc_scbfind+0x0/0xd4 [wl]
[<c02a6d94>] wlc_dpc+0x784/0xa70 [wl]
[<80327e00>] start_kernel+0x42c/0x4c4
[<c0296e38>] wl_intrson+0x228/0x3bc [wl]
[<80327e00>] start_kernel+0x42c/0x4c4
[<80327a00>] start_kernel+0x2c/0x4c4
[<80001524>] ret_from_irq+0x0/0x4
[<80006470>] schedule+0x41c/0xb9c
[<80006518>] schedule+0x4c4/0xb9c
[<800081cc>] schedule_hrtimeout_range+0xec/0x17c
[<c029a228>] wlc_phytxctl1_calc+0x2198/0x303c [wl]
[<c029d104>] wlc_prep_sdu+0x810/0x1590 [wl]
[<c032e0b4>] wlc_phy_chanspec_get+0x0/0x8 [wl]
[<80004de0>] memcpy+0x0/0x4
[<c029aa68>] wlc_phytxctl1_calc+0x29d8/0x303c [wl]
[<c029d104>] wlc_prep_sdu+0x810/0x1590 [wl]
[<c02a6d20>] wlc_dpc+0x710/0xa70 [wl]
[<80327a00>] start_kernel+0x2c/0x4c4
[<c029e058>] wlc_send_q+0x1d4/0x7f4 [wl]
[<c02a6d20>] wlc_dpc+0x710/0xa70 [wl]
[<80327a00>] start_kernel+0x2c/0x4c4
[<80327e00>] start_kernel+0x42c/0x4c4
[<800032f0>] stack_done+0x20/0x40
.
.
.
.
WARNING: at mm/slub.c:2432 kfree()
Call Trace:
[<c02a0a18>] wlc_recvdata+0xa60/0xdf4 [wl]
[<c029e0dc>] wlc_send_q+0x258/0x7f4 [wl]
[<c029c0c0>] wlc_dotxstatus+0xbe8/0x11fc [wl]
[<c02a6d94>] wlc_dpc+0x784/0xa70 [wl]
[<80327e00>] start_kernel+0x42c/0x4c4
[<c0296e38>] wl_intrson+0x228/0x3bc [wl]
[<80327e00>] start_kernel+0x42c/0x4c4
[<80001524>] ret_from_irq+0x0/0x4
[<80001524>] ret_from_irq+0x0/0x4
[<800032f0>] stack_done+0x20/0x40
With this, it seems that my router is not reachable via Web-IF (ssh works, though).
After reboot, no message like this and everything is fine.
you may try to re-compile whole firmware with SLAB allocator turned on by default in kernel, maybe it'd help (by default SLUB is selected).
it helped me to reduce load on my wl500gP equipped with BCM43222.
Regarding the ports-problems --> what is the preferred way to enable UPnP?
Thanks for help,
pheidrias
Check Virtual Server in WEB interface, I do not trust uPNP, better forward certain ports to your computer/router.
you may try to re-compile whole firmware with SLAB allocator turned on by default in kernel, maybe it'd help (by default SLUB is selected).
it helped me to reduce load on my wl500gP equipped with BCM43222.
Well you can easily configure this in post-boot
echo 256960 > /proc/sys/net/core/rmem_default
echo 256960 > /proc/sys/net/core/rmem_max
echo 256960 > /proc/sys/net/core/wmem_default
echo 256960 > /proc/sys/net/core/wmem_max
I've even added some extra settings:
echo 0 > /proc/sys/net/ipv4/tcp_timestamps
echo 1 > /proc/sys/net/ipv4/tcp_sack
echo 1 > /proc/sys/net/ipv4/tcp_window_scaling
echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout
echo 30 > /proc/sys/net/ipv4/tcp_keepalive_intvl
echo 5 > /proc/sys/net/ipv4/tcp_keepalive_probes
echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle
echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse
turning off the tcp_timestamps actually gives me 200-300KB/s extra speed:eek:
note that this might break some traffic, but timestamps are hardly used in my experience:D
Check Virtual Server in WEB interface, I do not trust uPNP, better forward certain ports to your computer/router.
True... but it's easy :)
If you run a tight ship when it comes to security, you should be good. If you don't it's not that smart.
btw, does anyone have experience with a 3TB harddisk and oleg?
Can I just create one giant 3TB partition? I know windows has troubles with it, but I'm not sure about linux :)
staticroute
06-06-2012, 19:35
Well you can easily configure this in post-boot
I've even added some extra settings:
turning off the tcp_timestamps actually gives me 200-300KB/s extra speed:eek:
note that this might break some traffic, but timestamps are hardly used in my experience:D
True... but it's easy :)
If you run a tight ship when it comes to security, you should be good. If you don't it's not that smart.
btw, does anyone have experience with a 3TB harddisk and oleg?
Can I just create one giant 3TB partition? I know windows has troubles with it, but I'm not sure about linux :)
there is a GUID support inside 2.6.22.19 kernel firmware by default, it should work I think.
about NAT ports, well you just need to forward certain applications which you really need, ofc you need to use latest version and patch them.
I know windows has troubles with it, but I'm not sure about linux :)
It doesn't depend on the OS alone. The filesystem (http://en.wikipedia.org/wiki/List_of_file_systems) is imho more important.
ext4 for example supports volumes up to 1 Exbibyte where ext3 supports max 16 Tebibyte per volume...
(yes I really try following IEEE 1541 suggestions :D)
there is a GUID support inside 2.6.22.19 kernel firmware by default, it should work I think.
It doesn't depend on the OS alone. The filesystem (http://en.wikipedia.org/wiki/List_of_file_systems) is imho more important.
ext4 for example supports volumes up to 1 Exbibyte where ext3 supports max 16 Tebibyte per volume...
(yes I really try following IEEE 1541 suggestions :D)
Good good :p
I'm thinking about using EXT4 for a new drive. With all the backports in oleg it does run nicely:)
staticroute
06-06-2012, 19:48
Good good :p
I'm thinking about using EXT4 for a new drive. With all the backports in oleg it does run nicely:)
yes, but still 2.6 seems to be a lot more buggy than 2.4 branch, at least for me..
without custom configuration of kernel it's useless for me..
yes, but still 2.6 seems to be a lot more buggy than 2.4 branch, at least for me..
without custom configuration of kernel it's useless for me..
buggy? I prefer the 2.6 kernel a lot over the 2.4 one tbh.
staticroute
06-06-2012, 20:01
buggy? I prefer the 2.6 kernel a lot over the 2.4 one tbh.
may I ask what is your router model?
mine is WL500gP v1
may I ask what is your router model?
mine is WL500gP v1
RT-N16
I also have a WL-500W as wireless ethernet bridge with 2.6, including some oleg opkg packages:)
I actually noticed wifi improvements for my WL-500W. It's stronger and faster :)
I'm waiting silently waiting for my RT-N66U to get oleg as well (not trying to rush the devs;) )
staticroute
06-06-2012, 21:02
RT-N16
I also have a WL-500W as wireless ethernet bridge with 2.6, including some oleg opkg packages:)
I actually noticed wifi improvements for my WL-500W. It's stronger and faster :)
I'm waiting silently waiting for my RT-N66U to get oleg as well (not trying to rush the devs;) )
well, RT-N16 is based originally on 2.6 I believe, that's why it works ok, but with wl500gP situation is different, the most stable situation with this router is on 2.4.20 kernel, low CPU load, irq usage etc. But the problem is I can't use it due closed-source wi-fi driver which is only available for 2.6 branch.
I partially solved some issues with SLAB allocator and tuned kernel config a bit, but I think it's still not perfect under load.
For example I'm running few openvpn tunnels on 2.4.20 kernel they were eating 0.20 0.10 maximum load, but on new firmware with 2.6.22.19 0.50,0.35,0.22.
Also there is huge load when you're downloading something from LAN, on default options CPU is reaching 100% load. If I didn't alter kernel config it'd be useless (i can't open any site and can't use anything).
Actually my wl500gP equipped with BCM43222 as I noted before + I flashed WL500W firmware, so it's like yours WL500W.
Regarding opkg I just tried it and I think I'd stick with oleg's optware, just because I'm so used to it and I don't want to break existing packages.
Good news for the people that use OpenVPN!
If you keep an eye out on the changelog of Oleg firmware you might have noticed r4318 (https://code.google.com/p/wl500g/source/detail?r=4318).
This update finally fixes fastnat to work with applications like OpenVPN. This means everyone should be able to turn on fastnat without any problem!
theMIROn (http://wl500g.info/member.php?18446-theMIROn) who worked on this issue managed to fix it, and I'd like to thank him for that:)
For the people who don't know what fastnat is: fastnat is a piece of code to speed up the routing between wan and lan (nat).
Even if you have no super speed internet fastnat will save you some cpu load you can use on a whole lot of other things:p
So does it affect the OpenVPN performance? YES!
I did a little benchmark and came back with these results:
fastnat on:
down 8.00
up 6.36
fastnat off:
down 7.83
up 6.20
Results from http
So if you update your firmware to r4318 or later you are good to go.
note: this update is only available in the rt-n firmware with linux kernel 2.6.
So how do you check if you have fastnat enabled?
nvram get misc_fastnat_x
This line should produce the answer "1" (without the quotes).
If it doesn't here is how to turn it on:
nvram set misc_fastnat_x=1
nvram commit
Now reboot your router after this and it should work.
If you wish to turn it off again, just replace the 1 by a 0.
staticroute
12-06-2012, 22:15
Good news for the people that use OpenVPN!
If you keep an eye out on the changelog of Oleg firmware you might have noticed r4318 (https://code.google.com/p/wl500g/source/detail?r=4318).
This update finally fixes fastnat to work with applications like OpenVPN. This means everyone should be able to turn on fastnat without any problem!
theMIROn (http://wl500g.info/member.php?18446-theMIROn) who worked on this issue managed to fix it, and I'd like to thank him for that:)
For the people who don't know what fastnat is: fastnat is a piece of code to speed up the routing between wan and lan (nat).
Even if you have no super speed internet fastnat will save you some cpu load you can use on a whole lot of other things:p
So does it affect the OpenVPN performance? YES!
I did a little benchmark and came back with these results:
fastnat on:
down 8.00
up 6.36
fastnat off:
down 7.83
up 6.20
Results from http
So if you update your firmware to r4318 or later you are good to go.
So how do you check if you have fastnat enabled?
nvram get misc_fastnat_x
This line should produce the answer "1" (without the quotes).
If it doesn't here is how to turn it on:
nvram set misc_fastnat_x=1
nvram commit
Now reboot your router after this and it should work.
If you wish to turn it off again, just replace the 1 by a 0.
if i do
nvram set misc_fastnat_x=1
nvram commit
and try to use openvpn everytime I try to connect via openvpn from the NAT router gets a reboot. I have wl500gP on rtn firmware. I believe there is no fast nat support on this router.
if i do
nvram set misc_fastnat_x=1
nvram commit
and try to use openvpn everytime I try to connect via openvpn from the NAT router gets a reboot. I have wl500gP on rtn firmware. I believe there is no fast nat support on this router.
are you on oleg rt-n firmware r4318 or later?
staticroute
12-06-2012, 22:30
are you on oleg rt-n firmware r4318 or later?
didn't try yet 4318 i'm on 4298, but will do later.
didn't try yet 4318 i'm on 4298, but will do later.
well... that's sort of the point, the patch was added on r4318 :p
oldgringo
12-06-2012, 22:44
didn't try yet 4318 i'm on 4298, but will do later.
You should read wpte's post correctly! Proper functionality is introduced in r4318. I'm on that version and OpenVPN is working smooth like a charm.
Thanks for that, theMIROn. :D
theMIROn
12-06-2012, 23:02
So how do you check if you have fastnat enabled?
nvram get misc_fastnat_x
This line should produce the answer "1" (without the quotes).
actually, if nvram get misc_fastnat_x returns 0, it means fastnat is disabled.
all other values (empty, 1, 2, on, enabled, !!!111, etc) mean it's enabled.
su, the proper way to enable it, if was disabled, is
nvram unset misc_fastnat_x
nvram commit
reboot
actually, if nvram get misc_fastnat_x returns 0, it means fastnat is disabled.
all other values (empty, 1, 2, on, enabled, !!!111, etc) mean it's enabled.
su, the proper way to enable it, if was disabled, is
nvram unset misc_fastnat_x
nvram commit
reboot
That's what I said:p
So how do you check if you have fastnat enabled?
...
This line should produce the answer "1" (without the quotes).
or am I confused here?:confused::p
I used set instead of unset just to leave the value stored in nvram.
Do you think I should change that to unset then?
Good news for the people that use OpenVPN!
In general I like this :)
But I'm not sure how I get into this party mood :D
Actually my OpenVPN instance is running on the gateway-router.
My WL-500gP is running in access-point mode, so fastnat won't give me any performance benefits, if I would run the OpenVPN Service there right? :confused:
What do you think?
staticroute
13-06-2012, 01:50
OK, fastnat started working since r4318, no more router reboots when openvpn is used with fastnat option.
There seems to be a speed improvement as well when using fastnat over openvpn.
Thanks for this.
My WL-500gP is running in access-point mode, so fastnat won't give me any performance benefits, if I would run the OpenVPN Service there right? :confused:
What do you think?
In AP mode the router works like a switch, so there's no lan-wan routing, just switching which is already fast;)
theMIROn
13-06-2012, 17:27
I used set instead of unset just to leave the value stored in nvram.
Do you think I should change that to unset then?
if unset - default mode (enabled) should be in use.
so fastnat won't give me any performance benefits, if I would run the OpenVPN Service there right?
fastnat will be active if there's any DNAT/SNAT/MASQUERADE targets
I'm playing around with EXT4 since I'm planning on buying a new 3TB harddisk.
My other harddisk is wearing out a bit so I want to replace it before it breaks down;)
I properly looked into the configuration of the kernel before thinking about going over 3TB.
I've seen UEFI was enabled which should allow the GTP partition system for >2TB disks.
For some reason I could never insmod the EXT4 module though I did insmod the dependencies before trying.
It always reported something about a missing symbol.
I decided to build a firmware with EXT4 build in rather than a module and found out while trying to mount, that one option should be enabled as well.
CONFIG_LBD=y
This will allow Large Block Devices to work. After applying this as well I found that mounting EXT4 worked fine.:D
Let me bump this:o
Do you guys think it's a good idea to go for a 3TB EXT4 formatted disk?
I'm willing to build myself a special brew firmware with CONFIG_LBD enabled if necessary.
Also I think flashfs is not working on the current firmware. Is the firmware getting bigger again?;)
MercuryV
02-09-2012, 20:47
Do you guys think it's a good idea to go for a 3TB EXT4 formatted disk?
I'm willing to build myself a special brew firmware with CONFIG_LBD enabled if necessary.
Technically, 3TB disk will work with LBD enabled (there is a success story (http://wl500g.info/showthread.php?30436-%CF%EE%E4%EA%EB%FE%F7%E5%ED%E8%E5-%E2%ED%E5%F8%ED%E5%E3%EE-%E6%E5%F1%F2%EA%EE%E3%EE-%E4%E8%F1%EA%E0-WD-MyBook-3TiB-(LBD)), in russian) and ext4 support is stable enough (I use ext4 for five months).
But I do not think it's a good idea - to use a high capacity drive on router at low speed. You decide :)
Technically, 3TB disk will work with LBD enabled (there is a success story (http://wl500g.info/showthread.php?30436-%CF%EE%E4%EA%EB%FE%F7%E5%ED%E8%E5-%E2%ED%E5%F8%ED%E5%E3%EE-%E6%E5%F1%F2%EA%EE%E3%EE-%E4%E8%F1%EA%E0-WD-MyBook-3TiB-(LBD)), in russian) and ext4 support is stable enough (I use ext4 for five months).
But I do not think it's a good idea - to use a high capacity drive on router at low speed. You decide :)
I don't care too much about the speed thing, that'll be allright:p
But tbh, why not enable LBD by default? I mean EFI is enabled by default, to support GPT.
Obviously it adds a little extra size, but not that much imho.
MercuryV
02-09-2012, 22:45
But tbh, why not enable LBD by default? ... Obviously it adds a little extra size, but not that much imho.
lly wrote (http://wl500g.info/showthread.php?17554-%CF%EE%E4%EA%EB%FE%F7%E5%ED%E8%E5-USB-HDD-%E4%EB%FF-%EE%F7%E5%ED%FC-%EE%F7%E5%ED%FC-%ED%EE%E2%E8%F7%EA%EE%E2&p=243894#post243894) that CPU load is slightly increased too
lly wrote (http://wl500g.info/showthread.php?17554-%CF%EE%E4%EA%EB%FE%F7%E5%ED%E8%E5-USB-HDD-%E4%EB%FF-%EE%F7%E5%ED%FC-%EE%F7%E5%ED%FC-%ED%EE%E2%E8%F7%EA%EE%E2&p=243894#post243894) that CPU load is slightly increased too
hmm... that's indeed a downside.
I might consider a 2TB disk then... too bad the price/gb is a lot higher for those drives:p
MercuryV
02-09-2012, 23:14
I might consider a 2TB disk then... too bad the price/gb is a lot higher for those drives:p
Can you buy 3TB HDD with a sort of money-back guarantee?
Can you buy 3TB HDD with a sort of money-back guarantee?
In the Netherlands we have a law for online shopping.
You can return something until 14 days after you received it, no questions asked. You might have to pay refurbishment costs if you scratch it or something though:p
If I want to return it, it's going to take a long long time with dban (http://sourceforge.net/projects/dban/) though:D
MercuryV
02-09-2012, 23:48
In the Netherlands we have a law for online shopping.
You can return something until 14 days after you received it, no questions asked.
Then try and share results :)
Then try and share results :)
Still need to wait for it to be in stock again... almost 2 weeks till it is.
I was looking at this bad boy btw: http://www.wdc.com/en/products/products.aspx?id=240
I'm playing around with EXT4 a bit, and I received this kernel error:
Oct 13 19:10:45 kernel: Call Trace:
Oct 13 19:10:45 kernel: [<80266a18>] dump_stack+0x8/0x34
Oct 13 19:10:45 kernel: [<800a0fc0>] __getblk+0x310/0x320
Oct 13 19:10:45 kernel: [<800a1038>] __bread+0x1c/0x1ac
Oct 13 19:10:45 kernel: [<c02cc434>] ext4_group_desc_csum_verify+0x61c/0x2e18 [ext4]
Oct 13 19:10:45 kernel: EXT4-fs (sdc1): unable to read superblock
using r4680
I created the partition like this:
mke2fs -t ext4 /dev/sdb1
on the router.
I tried to make the ext4 partition with gparted :p
and it uses the command:
mkfs.ext4 -j -O extend -L "" /dev/sdb1
Also gave me the same error.
Either way the drive shows up at my pc correctly and is usable
edit:
on r4656 it seems to work. I'll try higher revisions tomorrow
I'm playing around with EXT4 a bit, and I received this kernel error:
using r4680
Probably it broken in r4667. Backport can be incomplete :(
Try to remove kernel-2.6/150-fs-ext4-updates7.patch before kernel tree prepare. Please report if it help.
Probably it broken in r4667. Backport can be incomplete :(
Try to remove kernel-2.6/150-fs-ext4-updates7.patch before kernel tree prepare. Please report if it help.
Yes, with kernel-2.6/150-fs-ext4-updates7.patch removed it seems to work fine.
I've just compiled the modules, and loaded them up.
When I place the modules in /opt/lib/modules/2.6.22.19 it even automatically modprobes them, nice :)
I did unload the old modules by rmmod ext4, crc16 and jbd2.
I must say I like ext4 on the router so far. It seems to give a better performance in big file and directory situations. In ext3 it takes a long time to even list the files for some reason.
Also I was able to get about 0.5MB/s extra speed trough samba.
Eventually I want to move my /opt partition onto a ssd (with mlc memory) to save some energy and make my harddisk live a bit longer.
So I've bought a 4TB harddrive: http://www.wdc.com/en/products/products.aspx?id=870
I formatted it with EXT4 under linux mint 13 with kernel 3.5.3 with gparted. I rounded the sizes to MiB.
When I plugged it in my RT-N16 it was just plug and play, it instantly worked:D
now I just need to wait for my 950GB to transfer to my new drive :p
I've transferred over 400GB already, but I did noticed some hiccups.
EXT4 seems to work well overall, good performance etc.
But after a while (seems almost random) I get a segmentation fault in cp, the drive becomes inaccessible and the router is not able to umount it, even when the drive is removed.
I don't see any oops, maybe I should turn extra debugging on?
The router is also not able to reboot after the segfault.
I'm using r4695 btw.
staticroute
06-11-2012, 16:57
I've transferred over 400GB already, but I did noticed some hiccups.
EXT4 seems to work well overall, good performance etc.
But after a while (seems almost random) I get a segmentation fault in cp, the drive becomes inaccessible and the router is not able to umount it, even when the drive is removed.
I don't see any oops, maybe I should turn extra debugging on?
The router is also not able to reboot after the segfault.
I'm using r4695 btw.
Only debugging can help. Did you try the same on regular Linux workstation or Windows?
Only debugging can help. Did you try the same on regular Linux workstation or Windows?
Yes I did a full check (sector by sector) of the drive before I dumped all my data on it;)
I'm copying again, and I have a bit of a nasty memory leak feeling.
If it's a leak, the leak is probably small because the used memory is increased bit by bit very slowly.
I've transferred over 400GB already, but I did noticed some hiccups.
EXT4 seems to work well overall, good performance etc.
But after a while (seems almost random) I get a segmentation fault in cp, the drive becomes inaccessible and the router is not able to umount it, even when the drive is removed.
I don't see any oops, maybe I should turn extra debugging on?
The router is also not able to reboot after the segfault.
In case of you can't reboot, it seems to be kernel problem.
It can be either ext4(jbd2) specific or common writeback/bdi interfaces problem. I never hear that somebody did such stress-test on router, 400Gb is really huge amount of data!
Best of all, if you able to prepare reproducible minimal test-case.
If problem is ext4 specific, than switching to ext3 will help. To enable ext4 debugging you have to recompile ext4.ko, jbd2.ko kernel modules with CONFIG_EXT4_DEBUG=y & CONFIG_JBD2_DEBUG=y
Also, please try r4652 - it is a small chance that I miss something in latest backports.
Anyway, "cp" shouldn't crash silently - please try to use gdb to get type of fault.
In case of you can't reboot, it seems to be kernel problem.
It can be either ext4(jbd2) specific or common writeback/bdi interfaces problem. I never hear that somebody did such stress-test on router, 400Gb is really huge amount of data!
Best of all, if you able to prepare reproducible minimal test-case.
If problem is ext4 specific, than switching to ext3 will help. To enable ext4 debugging you have to recompile ext4.ko, jbd2.ko kernel modules with CONFIG_EXT4_DEBUG=y & CONFIG_JBD2_DEBUG=y
Also, please try r4652 - it is a small chance that I miss something in latest backports.
Anyway, "cp" shouldn't crash silently - please try to use gdb to get type of fault.
pff 400gig is nothing:p
But that's a total I copied. First I copied about 70GB when cp crashed, then after a hard-reboot I copied the rest without any problem.
I didn't found any corruption of the filesystem btw.
I remember that I had an incident with an other drive as well (a test ext4 drive). It was just spun down for a long time, it worked for days but then I wasn't able to umount or access it. I'm not sure if this is a stress problem.
I will run the cp command with gdb this time, and try the latest revision;)
To enable ext4 debugging you have to recompile ext4.ko, jbd2.ko kernel modules with CONFIG_EXT4_DEBUG=y & CONFIG_JBD2_DEBUG=y
I get an error when I try that:
fs/jbd2/journal.c: In function 'journal_free_journal_head':
fs/jbd2/journal.c:1880:13: error: 'JBD2_POISON_FREE' undeclared (first use in this function)
fs/jbd2/journal.c:1880:13: note: each undeclared identifier is reported only once for each function it appears in
I've just set it with make menuconfig in the kernel after all the patches where applied (after gateway directory was created)
I get an error when I try that:
Sorry, I must check it myself before to give advice to you. Will fix it ASAP.
Updated: Fixed in r4703
Sorry, I must check it myself before to give advice to you. Will fix it ASAP.
Updated: Fixed in r4703
allright, I've loaded up the modules with debugging, and ran cp in gdb.
With gdb this is all I've got:
Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
I've attached the dmesg output. not sure if the debugging option helped that much:
9330
2 oops's are logged.
I just noticed I also get quite a bit of IPv6 ICMP spoofing attempts :p
allright, I've loaded up the modules with debugging, and ran cp in gdb.
With gdb this is all I've got:
Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
I've attached the dmesg output. not sure if the debugging option helped that much:
2 oops's are logged.
Thanks for info, looks like unaligned access cause wrong destination address calculation. Very strange that stack trace seems to be incomplete - memdup_user() can't be called from userspace directly. I will try to dig more deeper...
Could you provide output of
grep unaligned /proc/cpuinfo
?
Thanks for info, looks like unaligned access cause wrong destination address calculation. Very strange that stack trace seems to be incomplete - memdup_user() can't be called from userspace directly. I will try to dig more deeper...
Could you provide output of
grep unaligned /proc/cpuinfo
?
unaligned_instructions : 687
Sorry, I rebooted my router, so I reproduced the problem.
Each time I execute that grep the unaligned instructions increase by 3 btw.
unaligned_instructions : 687
Sorry, I rebooted my router, so I reproduced the problem.
Each time I execute that grep the unaligned instructions increase by 3 btw.
Strangely, when I use built-in /bin/grep - it not increases. Value of unaligned instructions on my router less than 10...
Strangely, when I use built-in /bin/grep - it not increases. Value of unaligned instructions on my router less than 10...
Well on the RT-AC66U with stock firmware it's: 2873311
On there I've no disk attached or anything:p
I just checked the build-in grep and noticed that it didn't increase.
When I used the optware grep it increased again.
Right now it's >900 but the drive is still working.
When I rmmod the ext4, jdb2 and crc16 module it still behaves with a +3 increase.
Is the optware software compromised maybe?
staticroute
11-11-2012, 12:23
on r3323 unaligned instructions are increasing all the time:
Every 1.0s: cat /proc/cpuinfo |grep unalign Sun Nov 11 16:24:53 2012
unaligned_instructions : 88652442
unaligned_instructions : 88653829
unaligned_instructions : 88654494
i have l2tp connection and openvpn daemons running
theMIROn
11-11-2012, 12:43
on r3323 unaligned instructions are increasing all the time:
Every 1.0s: cat /proc/cpuinfo |grep unalign Sun Nov 11 16:24:53 2012
unaligned_instructions : 88652442
unaligned_instructions : 88653829
unaligned_instructions : 88654494
i have l2tp connection and openvpn daemons running
in short, l2tp unaligned access was fixed long time ago, but after r3323.
no crashes so far ever since I updated to r4716
2 days without a crash, and I copied maybe 300GB.
Anyway, let's hope it'll stay that way ;)
no crashes so far ever since I updated to r4716
2 days without a crash, and I copied maybe 300GB.
Anyway, let's hope it'll stay that way ;)
Thanks for good news. It is due to r4715,r4716 I hope.
Thanks for good news. It is due to r4715,r4716 I hope.
Still going strong. I've been using my 4TB EXT4 disk as primary storage location for a few days now.
Soon I'll make a switch for /opt as well to an ssd so I'll have less wear on my big harddrive:D
I've no complaints but I'd like to give some feedback performance-wise.
I still use the debug-enabled modules maybe that's what causing extra load, but this is my load graph from the last week:
9343
You can clearly see a load increase while I didn't do anything different than usual.
Again no complaints from my side, I'm happy with EXT4, but it's interesting for people who may want to switch.
In the weekend I'll start using the debug-less modules again I guess, since everything has been running smooth.
You can clearly see a load increase while I didn't do anything different than usual.
My guess that is is due to our old bdi(backing device interface) kernel subsystem. Modern kernels has per-device bdi, our still use single kthread. Hope, I able to backport per-device bdi in futer, but it requires a lot of time & efforts.
My guess that is is due to our old bdi(backing device interface) kernel subsystem. Modern kernels has per-device bdi, our still use single kthread. Hope, I able to backport per-device bdi in futer, but it requires a lot of time & efforts.
I really think it was the debugging version that gave me the extra load.
yesterday I upgraded the modules, including the firmware and it seems to be pretty much the same load as it used to be again:
9348
The graph displays an entire week again.
So EXT4 means (almost) no extra load :D
I just want to report, that the new sdk510 branch is rock-stable on my old-fashioned w500gp. :rolleyes:
There is just a warning at boot, right after detecting the ethernet controller - nothing I'm afraid of
Jan 1 01:00:03 kernel: WARNING: at net/core/dev.c:3504 unregister_netdevice()
Jan 1 01:00:03 kernel: Call Trace:
Jan 1 01:00:03 kernel: [<8029f144>] dump_stack+0x8/0x34
Jan 1 01:00:03 kernel: [<801b7b40>] unregister_netdev+0x18/0x24
Jan 1 01:00:03 kernel: [<c00ef040>] init_module+0x26040/0x26f44 [et]
I just want to report, that the new sdk510 branch is rock-stable on my old-fashioned w500gp. :rolleyes:
It is an old branch for people who experienced problems with Wi-Fi (802.11n especially) described in issue 298 (http://code.google.com/p/wl500g/issues/detail?id=298)
Thanks for report - it is an old bug which was fixed in new SDK 5.60
Hi,
I installed WL500gpv2-1.9.2.7-rtn-r4667 on my WL500gP-v2 router.
I copied the root filesystem onto a usb disk. I checked "flashfs status" which says enabled. My USB device appears as /dev/disks/diska/part1, which is listed in the nvram as the boot_dev.
I was expecting this to continue booting from my attached USB stick as a previous Oleg's firmware version did.
Unfortunately, my USB disk no longer mounts as the root filesystem boot up. Instead, it is mounted a few seconds later in /tmp/mnt/disca_1
Please can someone tell me what I have missed?
Thanks,
Chris.
Unfortunately, my USB disk no longer mounts as the root filesystem boot up. Instead, it is mounted a few seconds later in /tmp/mnt/disca_1
Please can someone tell me what I have missed?
rootfs? the rootfs is installed on your router with the firmware image. Or do you mean optware?
Anyway, with the new version of the firmware you need to make a fstab to configure automatic mounting of usb drives.
Wengi has a great tutorial for this: http://wl500g.info/showthread.php?10307-How-To-Install-and-Configure-Olegs-firmware&p=60931#post60931 (part about fstab)
rootfs? the rootfs is installed on your router with the firmware image. Or do you mean optware?
Anyway, with the new version of the firmware you need to make a fstab to configure automatic mounting of usb drives.
Wengi has a great tutorial for this: http://wl500g.info/showthread.php?10307-How-To-Install-and-Configure-Olegs-firmware&p=60931#post60931 (part about fstab)
I followed the instructions at http://oleg.wl500g.info/ under section "Root file system on the external USB drive", but changing the boot_dev path to the new location, i.e. /dev/discs/disca/part1.
I was expecting the root file system to be pivot_mount'ed from the temporary rootfs to the persistent permanent copy on my USB stick. This used to work with the Oleg verison of the firmware under 2.4.x but no longer works on the 2.6.x kernel.
I followed the instructions at http://oleg.wl500g.info/ under section "Root file system on the external USB drive", but changing the boot_dev path to the new location, i.e. /dev/discs/disca/part1.
I was expecting the root file system to be pivot_mount'ed from the temporary rootfs to the persistent permanent copy on my USB stick. This used to work with the Oleg verison of the firmware under 2.4.x but no longer works on the 2.6.x kernel.
I see... that's pretty old stuff, I'm unsure if that's still supported.
Nowadays we have the Oleg based firmware for enthusiasts: https://code.google.com/p/wl500g/ which you have installed.
It uses a new toolchain, new uclibc etc etc.
So even if it's supported you might need to make a new rootfs stick because it's newer software:p
Usually people use a wengi-like tutorial like I've shown you in my previous response to install software on a disk mounted to /opt
Basicly you have a repository installed on that disk and you can install and update software on the fly. The rootfs on the router will just run next to that.
You have the ipkg repository as described in the wengi-howto, but also the new entware repo which uses opkg: http://code.google.com/p/wl500g-repo/
It allows you to install things like bash, lighttpd, mysql and a lot more. If you're familiar with debian linux boxes you probably know something like "sudo apt-get install ..." this is exactly the same.
Do I make sense a bit? ;)
Also another thing, you probably know these already, on this page the custom userscripts are explained: https://code.google.com/p/wl500g/wiki/UserScripts
question:
Is it possible to use the toolchain with ccache (http://ccache.samba.org/)?
I've added "export PATH=/usr/lib/ccache:$PATH" to my .profile
Also I've added the soft links to ccache like this:
ln -s /usr/bin/ccache /usr/lib/ccache/mipsel-linux-gcc
and so on for all the compilers, like mipsel-uclibc-cpp
The thing is, when I check the cache with
ccache -s
the files don't seem to get cached or hit at all...
only now and then I see some increases in the numbers
which gives a proper result however:
$ which mipsel-linux-gcc
/usr/lib/ccache/mipsel-linux-gcc
I'm positive ccache since I compiled the toolchain with it, and it seems to build a lot quicker now;)
Is it possible to use the toolchain with ccache (http://ccache.samba.org/)?
Unfortunately, out-of-the-box ccache support is not ready. Several toolchain make scripts must be improved.
As usual, if someone done this task, we will gladly accept patches.
@wpte
What's happened to the "Nightly" builds server ?
"Invalid directory" on every section... just now that I have time to test -rtn with old 5.10 SDK...
MaX
I upgraded from old Olegs firmware to "renewed Oleg's firmware", WL500gp-1.9.2.7-rtn-r4772 on my WL500gP V1 router.
In old firmware I followed Wengi tutorial, formated my 80GB drive to swap, opt and data partitions, installed ipkg and instaled another software.
recently i bought webcam and tried to get it working (Logitech quickcam for notebooks) - not well supported ind 2.4 kernel, so I upgraded to 2.6 kernel.
Now the webcam is detected, but cannot get images from it (maybe problem of cam server). No problem at all, just minor glitch, I will try/use RaspberryPi for that.
But.
After upgrade (and few glitches with firmware restore tool, because i used improper firmware version - Wl500gpV2 for my V1 router:), I restored my nvram settings anf flashfs, got my connection to internet working, but my USB disk doesnt automount. I fixed my boot scripts in /usr/local/sbin to correct paths, modified fstab to new /dev/discs/disca/part1...3 paths. But still no automount. When I manualy start my post-boot, pre-mount, post-mount, post-firewall scripts, it works as expected.
In /tmp/syslog.log afted detecting USB disk by usbcore, drives get assigned sda1..3 simlinks in /dev and after that moment I can see in my log only ntp and dns updates.
Any thoughts/suggestions?
Thnax in advance.
mhm strange it normally should work. chmod +x on the scripts?
Yes, scripts are executable, I use them to manualy start services (cd /usr/local/sbin && ./pre-boot && ./post-boot && ./pre_mount && ./post-mount && ./post-firewall). After that all is working as expected, disks ake checked and mounted, services start.
I am planning to try new version of firmware this wekk, I will see if that helps...
Hi all,
please I need help with my new 3Tb drive, I cannot get working it :(
I know there is some discussion few pages before, but I am unsuccesfull. Can you recommend me the firmware I need to use?
Also I created partitions on my PC (but under windows7 with Acronis Disk Director, 3 partitions, 512MB linux swap, 1GB linux and the rest 2,7xxTB linux).
I dont know how to mount them?
Tried new fw (WL500gpv2-1.9.2.7-rtn-r4923.trx from "https://code.google.com/p/wl500g/downloads/detail?name=WL500gpv2-1.9.2.7-rtn-r4923.trx&can=2&q=").
I am normally using wengi tutorial but it seems that "/dev/discs/disc0/part3" is changed to something like "/dev/sda3"??
fdisk -l shows me:
Disk /dev/sda: 801.5 GB, 801569726464 bytes
256 heads, 63 sectors/track, 97071 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 266306 2147483647+ ee EFI GPT
On PC i see 3 partitions.
Please advise me FW and how to mount the partitions.
Thanks very much
Edit: for many hours of laborating I discovered, that it is adapters that not support over 2TB discs :(
So my advise for future for others... The only way around this problem is to get an external enclosure/adapter that supports over-2TiB disks.
EDIT: I have to read post to the end, first I didnt notice the edit with enclosure unsuported disk size:)
But you could try to format partitions so they dont overlap max. supported size, my disk is maybe 1TB, but I cloned my old 80GB disk after its failure and never resized paritions...
For anybody looking to information to automount disk afer upgrade:
I am normally using wengi tutorial but it seems that "/dev/discs/disc0/part3" is changed to something like "/dev/sda3"??
try running mount, in the output you wil see list of mount points, "/dev/discs/disc0/part3" should be /dev/sda3. (on my WL500gp, or /dev/discs/disca/part3 on my RTN-16)
Edit /etc/fstab:
#device Mountpoint FStype Options Dump Pass#
/dev/sda1 none swap sw 0 0
/dev/sda2 /opt ext3 rw,noatime 1 1
/dev/sda3 /mnt ext3 rw,noatime 1 1
for comapatbility with my old scripts I added this command to post-mount script:
if [ ! -d "/tmp/harddisk" ]; then
ln -s /mnt /tmp/harddisk
fi
I am using my old WL500gp as router and to collect data from my arduino sensors, running script which collescts data over serial line, parses it and save it in rrd database and online (cosm.com). I noticed strange disk activity every 5 seconds, trying to turn off screen session logging, increase data storage interval, and it all stays the same. Disk monitoring tools like atop are not functioning properly to identify specific process responsible for disk writes because support for it is not compiled into kernel.
Do you know any good method/tools for this?
Hey lly, any chance you could give us an update on oleg for RT-N66U?
Still waiting on the drivers?
DD-WRT and Tomato just don't deliver the quality and functionalities I need.
EXT4 and large LBA support is just nowhere to be found:(
Hey lly, any chance you could give us an update on oleg for RT-N66U?
Still waiting on the drivers?
Sorry, I know, we should done it last year.
At now, only free time for SDK 5.110 migration is a real problem :(
Sorry, I know, we should done it last year.
At now, only free time for SDK 5.110 migration is a real problem :(
Ok, but it is possible then? It's just a time issue.
Maybe I can dig into it a bit, I've more spare time on my hands now these days:)
Do you have some pointers for me? where to look at etc. ?
Or is it just about getting the SDK5110 branch to build?
Ok, but it is possible then? It's just a time issue.
Maybe I can dig into it a bit, I've more spare time on my hands now these days:)
Do you have some pointers for me? where to look at etc. ?
Or is it just about getting the SDK5110 branch to build?
The unfinished part in sdk5110 branch is ... kernel. Broadcom modifications couldn't be applied "As Is" due to they move open-source fast-NAT into closed ctf.ko blob :( theMIROn's advice is to follow Broadcom and replace BCM_NAT.
Size of diff(patch) against kernel is 660Kb(made from ASUS GPL, can't be applied on our kernel). Of course, I can share it to you, but I'm not sure that we should load you this way.
The unfinished part in sdk5110 branch is ... kernel. Broadcom modifications couldn't be applied "As Is" due to they move open-source fast-NAT into closed ctf.ko blob :( theMIROn's advice is to follow Broadcom and replace BCM_NAT.
Size of diff(patch) against kernel is 660Kb(made from ASUS GPL, can't be applied on our kernel). Of course, I can share it to you, but I'm not sure that we should load you this way.
Well, I could always take a look you know.
Sounds like a lot of work, but maybe I can at least get a few things done in the right direction?:)
WoolF911
10-02-2014, 01:26
I'm trying to convert the hard drive partitions to ext4. I archived the files in /opt, formatted this partition in ext4 as in instructions, connect the modules from the modules-1.9.2.7-rtn-r5066-MIPS32r2.tgz, corrected fstab, restored the files from the archive back, and reboot the router... ext4 partition is not mounted and is not displayed in the mount, df -h, and ext4 support in /proc/filesystems appeared. In what may be the reason that the section is not mounted? (
Router Asus RT-N16 c iOS 1.9.2.7-rtn-r5362. Some logs:
[admin@WL-BCAEC5C484F0 root]$ cat /etc/fstab
#device Mountpoint FStype Options Dump Pass#
/dev/sda1 none swap sw 0 0
/dev/sda2 /opt ext4 rw,noatime,barrier0 1 1
/dev/sda3 /tmp/mnt/disca_3 ext3 rw,noatime 1 1
[admin@WL-BCAEC5C484F0 root]$
[admin@WL-BCAEC5C484F0 root]$ mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devfs on /dev type tmpfs (rw,noatime)
devpts on /dev/pts type devpts (rw)
tmpfs on /tmp type tmpfs (rw,noatime)
usbfs on /proc/bus/usb type usbfs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
/dev/discs/disca/part3 on /tmp/mnt/disca_3 type ext3 (rw,noatime,errors=continue,data=ordered)
[admin@WL-BCAEC5C484F0 root]$
[admin@WL-BCAEC5C484F0 root]$ df -h
Filesystem Size Used Available Use% Mounted on
rootfs 4.6M 4.6M 0 100% /
/dev/root 4.6M 4.6M 0 100% /
devfs 100.0K 4.0K 96.0K 4% /dev
tmpfs 61.9M 616.0K 61.3M 1% /tmp
/dev/discs/disca/part3
1.8T 1.7T 0 100% /tmp/mnt/disca_3
[admin@WL-BCAEC5C484F0 root]$
[admin@WL-BCAEC5C484F0 root]$ cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev pipefs
nodev anon_inodefs
nodev tmpfs
nodev inotifyfs
nodev devpts
ext3
squashfs
nodev ramfs
vfat
nodev usbfs
ntfs
nodev rpc_pipefs
nodev nfsd
ext4
[admin@WL-BCAEC5C484F0 root]$
[admin@WL-BCAEC5C484F0 root]$ cat /tmp/syslog.log
...
Jan 1 04:00:03 kernel: usbcore: registered new interface driver usbfs
Jan 1 04:00:03 kernel: usbcore: registered new interface driver hub
Jan 1 04:00:03 kernel: usbcore: registered new device driver usb
Jan 1 04:00:03 kernel: ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Jan 1 04:00:03 kernel: USB20H mdio control register : 0x8000000c
Jan 1 04:00:03 kernel: ehci_hcd 0000:00:04.1: EHCI Host Controller
Jan 1 04:00:03 kernel: ehci_hcd 0000:00:04.1: new USB bus registered, assigned bus number 1
Jan 1 04:00:03 kernel: ehci_hcd 0000:00:04.1: irq 5, io mem 0x18004000
Jan 1 04:00:03 kernel: ehci_hcd 0000:00:04.1: USB 0.0 started, EHCI 1.00
Jan 1 04:00:03 kernel: usb usb1: configuration #1 chosen from 1 choice
Jan 1 04:00:03 kernel: hub 1-0:1.0: USB hub found
Jan 1 04:00:03 kernel: hub 1-0:1.0: 2 ports detected
Jan 1 04:00:03 kernel: usbcore: registered new interface driver usblp
Jan 1 04:00:03 kernel: usb 1-2: new high speed USB device using ehci_hcd and address 2
Jan 1 04:00:04 kernel: SCSI subsystem initialized
Jan 1 04:00:04 kernel: usb 1-2: configuration #1 chosen from 1 choice
Jan 1 04:00:04 kernel: Initializing USB Mass Storage driver...
Jan 1 04:00:04 kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jan 1 04:00:04 kernel: usbcore: registered new interface driver usb-storage
Jan 1 04:00:04 kernel: USB Mass Storage support registered.
Jan 1 04:00:04 kernel: NTFS driver 2.1.30 [Flags: R/O MODULE].
Jan 1 04:00:04 kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Jan 1 04:00:04 portmap[311]: user 'rpc' not found, reverting to default uid
Jan 1 04:00:05 statd[313]: Version 1.1.6 Starting
Jan 1 04:00:05 statd[313]: statd running as root. chown /var/lib/nfs/sm to choose different user
Jan 1 04:00:06 kernel: scsi 0:0:0:0: Direct-Access Seagate FA GoFlex Desk 0155 PQ: 0 ANSI: 4
Jan 1 04:00:06 kernel: sd 0:0:0:0: [sda] 3907029167 512-byte hardware sectors (2000399 MB)
Jan 1 04:00:06 kernel: sd 0:0:0:0: [sda] Write Protect is off
Jan 1 04:00:06 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Jan 1 04:00:06 kernel: sda: sda1 sda2 sda3
Jan 1 04:00:06 kernel: sd 0:0:0:0: [sda] Attached SCSI disk
...
Jan 1 04:00:23 kernel: Adding 506008k swap on /dev/sda1. Priority:-1 extents:1 across:506008k
Jan 1 04:00:24 kernel: EXT4-fs (sda2): Unrecognized mount option "barrier0" or missing value
Jan 1 04:00:24 kernel: Unhandled kernel unaligned access[#1]:
Jan 1 04:00:24 kernel: Cpu 0
Jan 1 04:00:24 kernel: $ 0 : 00000000 00000062 800a5d2c 00000001
Jan 1 04:00:24 kernel: $ 4 : 810e6c40 00000000 ffffffff 80286250
Jan 1 04:00:24 kernel: $ 8 : 00000000 80316064 00003fff 756c6176
Jan 1 04:00:24 kernel: $12 : 00000000 000f7181 00000000 00000067
Jan 1 04:00:24 kernel: $16 : 810e6b78 873b6c00 800745fc ffffffea
Jan 1 04:00:24 kernel: $20 : 86d36740 810e6c40 800c0000 00000000
Jan 1 04:00:24 kernel: $24 : 00000001 8013e20c
Jan 1 04:00:24 kernel: $28 : 86cf8000 86cf9bd8 00000001 c0257a48
Jan 1 04:00:24 kernel: Hi : 00000000
Jan 1 04:00:24 kernel: Lo : 4c023000
Jan 1 04:00:24 kernel: epc : 800a5d30 bd_release+0x4/0x38 Tainted: P
Jan 1 04:00:24 kernel: ra : c0257a48 ext4_group_desc_csum_verify+0x6a4/0x2ed8 [ext4]
Jan 1 04:00:24 kernel: Status: 1100bc03 KERNEL EXL IE
Jan 1 04:00:24 kernel: Cause : 00000010
Jan 1 04:00:24 kernel: BadVA : 00000031
Jan 1 04:00:24 kernel: PrId : 00019740
Jan 1 04:00:24 kernel: Modules linked in: ext4 crc16 jbd2 nfsd exportfs lockd sunrpc ntfs usb_storage sd_mod scsi_mod usblp ehci_hcd usbcore nf_nat_ftp nf_conntrack_ftp wl(P) et(P) igs(P) emf(P)
Jan 1 04:00:24 kernel: Process mount (pid: 397, threadinfo=86cf8000, task=86cce000)
Jan 1 04:00:24 kernel: Stack : 00000000 86cf9b50 00000000 00000000 00000000 00000003 00000000 00000000
Jan 1 04:00:24 kernel: 00000000 00000000 00000000 86e42000 00000000 00000000 00000000 00000000
Jan 1 04:00:24 kernel: 00000001 00000000 00000000 00000000 86cf9cb0 00000002 8735b500 802edc60
Jan 1 04:00:24 kernel: 00008000 86e42000 86e3c000 00490000 7ff13a78 80114c64 800794b4 80079c18
Jan 1 04:00:24 kernel: 878af188 8033c9c0 86cf9c7c c02755a0 873b6c00 800bc084 873b6c40 00000200
Jan 1 04:00:24 kernel: ...
Jan 1 04:00:24 kernel: Call Trace:
Jan 1 04:00:24 kernel: [<800a5d30>] bd_release+0x4/0x38
Jan 1 04:00:24 kernel: [<c0257a48>] ext4_group_desc_csum_verify+0x6a4/0x2ed8 [ext4]
Jan 1 04:00:24 kernel: Code: 03e00008 ac83ffa0 8c83003c <8c620030> 2442ffff 14400003 ac620030 8c82003c ac40002c
Feb 8 19:27:35 USB storage: ext3 fs at /dev/discs/disca/part3 mounted to /tmp/mnt/disca_3
Feb 8 19:27:38 dropbear[391]: Exit before auth (user 'admin', 0 fails): Timeout before auth
Feb 8 19:27:43 dropbear[399]: Child connection from 192.168.1.115:37688
Feb 8 19:27:46 dropbear[399]: Password auth succeeded for 'admin' from 192.168.1.115:37688
[admin@WL-BCAEC5C484F0 root]$
Does not mounted. Maybe have more some logs what I should to see? :(
Maybe in this case the reason is the same as described wpte, here (http://wl500g.info/showthread.php?18004-New-oleg-firmware-version&p=255515#post255515)?
maybe change barrier0 to barrier=0?
taylor729
13-05-2016, 04:55
Hi,
Is there any newer router than RT-N16 which is supported by Oleg firmware? Unfortunately my RT-N16 went dead and it is not normally available on the market anymore.
Thanks a lot,
Pavel