PDA

Bekijk de volledige versie : New oleg firmware version



Pages : [1] 2 3

Lesiuk
18-01-2009, 14:19
It's been almost a year since Oleg publish last version of his firmware. Since then, much has changed. There are several things that must be done. Among other things layer7 support, better QoS (preferably integrated with the web interface), a newer kernel (the last of the 2.4 line), better ipv6 support, some bugfixes, etc.

I know that some may say if you want that features write it yourself or use OpenWRT.
I do not have experience with that and i do not want change firmware because i like it.

Oleg is opensource maybe somebody know somebody who wants become this firmware developer?

best regards
Damian Lesiuk

lly
18-01-2009, 15:55
Nobody can replace Oleg :D

But some tasks can be done without Oleg. If you can read russian (even with automatic translator), you can visit thread http://wl500g.info/showthread.php?t=17136

Lesiuk
18-01-2009, 18:20
I see.

You are one of developers.
Can you write list of changes in english?

translate.google.com and yahoo babelfish have problems with some words.

Is it stable?

I want help. How can i help you?

best regards
Damian Lesiuk

lly
18-01-2009, 18:51
Can you write list of changes in english?
Short version is ready on http://code.google.com/p/wl500g/wiki/NEWS
Long Changelog.txt exist in russian only.


Is it stable?

I prefer to call it 'Experimental', since I cannot provide support like Oleg. i.e. it stable for me, but has some untested places and bugs ( all sofware has bugs;) ).

How can i help you?
We needs an iptables guru to test this part of firmware. People, who can write detailed tutorials(FAQ) also welcome. And, of course, web interface is very old (as in Oleg firmware), but this requires skill in programming due to ASUS design of internal http server.

al37919
18-01-2009, 19:05
He is not one of developers --- he did it all! :) At the moment contributions of others are really small. On the other hand this firmware seems to be already pretty stable. Personally I run it already for more than a month, and I don't see any failures. However, additional testing is certainly pretty welcome.

This new firmware itself, its sources, modules, and new toolchain are available here: http://wl500g.googlecode.com/ The firmware's sources are available there as svn-repository as well.

Brief English changelog is here: http://code.google.com/p/wl500g/wiki/NEWS The full one is attached to the first message in the Russian thread.

Lesiuk
18-01-2009, 19:15
Good Job!!! I'll try it tomorrow.

It looks very nice.

I can write tutorials with screenshots for begginers. Maybe i try later write simple web interface something like asus (asp -> vbscript)

The most important for me is QoS.
Wshaper do not work best.
I put torrent trafic in lowest class and no effect. (web pages load very slow)
QoS in OpenWRT works perfect, may be a good idea to do the same here.

Maybe you could try to do something with it?

I would be very grateful

best regards
Damian Lesiuk

Lesiuk
25-01-2009, 12:45
Ok i install it. And that is amazing.

With oleg 1.9.2.7-10 if i do things what need a lot of cpu power. (compressing folders with tar) Router was crashing and internet connection was broken.

I test it 16 hours and i think that firmware is better than oleg.

I can surf the internet even something is compressing on the router. That is amazing.

lly
25-01-2009, 13:39
I test it 16 hours and i think that firmware is better than oleg.
First of all, you have to say thanks to Linux kernel team :cool:
Second, Oleg also has plans to migrate to new kernel and he helps me at starting point.

And of course, animadversion to lazy Broadcom :mad: they don't want neither recompile wl driver to 2.6 kernel tree, nor open it sources!

thejew
25-01-2009, 17:39
Wow just found this new firmware and it sounds very interesting.
Tried it and what I saw until now looks very good.

The 1.1/2.0 USB bug annoys me a lot, so if this fixes it would be great. ( cant try since i mostly have 1.1 hubs due to the bug)
The Irda driver in the newest changelog looks intresting anyone knows how to use it.
I plugged un my Irda usb dongle and "lsusb" gives me: SigmaTel, Inc. STIr4200 IrDA Bridge.
So it seems like its detected, but i dont really know how to go on from here.
any help apreciated.

Thx to everyone trying to make the firmware even better!

lly
25-01-2009, 17:50
The 1.1/2.0 USB bug annoys me a lot, so if this fixes it would be great. ( cant try since i mostly have 1.1 hubs due to the bug)
This task is really huge and far away from complete. Ideally, it is necessary to backport entire EHCI driver from 2.6 kernel tree. Only about 8-10% done.

Gerdi
26-01-2009, 16:05
I've recently installed 1.9.2.7-10.
A wonderfull firmware!!

Is this the newest one (=1.9.2.7-d???) or have I got to install a newer one?

al37919
26-01-2009, 16:44
this is further development based on 1.9.2.7-10

Lesiuk
26-01-2009, 21:05
I've recently installed 1.9.2.7-10.
A wonderfull firmware!!

Is this the newest one (=1.9.2.7-d???) or have I got to install a newer one?

If you want you can install. I think that firmware is more stable than oleg.

You can download it from wl500g.googlecode.com

sacharja
31-01-2009, 16:13
Still unusable for wl500gp users (like all other recent OLEG firmwares). Works only if "PPPoE Idle Disconnect Time" is set to "0" :(

( http://wl500g.info/showthread.php?t=14257 )

wirespot
06-02-2009, 14:12
but this requires skill in programming due to ASUS design of internal http server.

Yeah, BTW, can anything be done about that server? Like replace it with something that can use another programming language?

Although I don't exactly see what that alternative language could be, since all interpreted languages are resource hogs as far as the 500gP is concerned...

What are the limitations of the internal http server?

lly
06-02-2009, 14:46
Yeah, BTW, can anything be done about that server?
People wants to see new Web-UI, like is in latest ASUS firmwares. Since this UI uses non-standart calls in http server, migration of web-pages only, is impossible.

Lesiuk
06-02-2009, 21:50
I compiled newest version of your firmware from sources.

I upload it via web interface.
After that power led turn down, after 5 minutes i restart ruter.

Router run without any problems.

/usr/local/sbin/post-*,/etc/fstab,/etc/ipkg.conf have their old content, all the settings are old so if I did not install the new firmware. How can I check if the firmware has changed on later?

I used before your firmware but compiled 24 January 2009.

best regards
Damian Lesiuk

al37919
06-02-2009, 22:57
cat /.version

it will work if you put a new firmware over Oleg's one
otherwise, e.g.:

ls -al /bin/busybox

and look on the date of the file

Lesiuk
07-02-2009, 18:54
Thanks.

With that fix (http://code.google.com/p/wl500g/source/detail?r=89) websites work very fast!


There is no compiled version on website but i compiled it for wl 500gp v1 and this is link to .trx: http://freefilehosting.net/download/450jf

I test it 5 hours and it works very nice.

lly
07-02-2009, 19:34
With that fix (http://code.google.com/p/wl500g/source/detail?r=89) websites work very fast!
Thanks for report.
Usually, we make some delay between SVN repository update and binary public release. This allows to have time for extra tests for stability.

ondrejpecta
08-02-2009, 10:52
Thanks.

With that fix (http://code.google.com/p/wl500g/source/detail?r=89) websites work very fast!


There is no compiled version on website but i compiled it for wl 500gp v1 and this is link to .trx: http://freefilehosting.net/download/450jf

I test it 5 hours and it works very nice.

Thanks. Works like a charm!

sacharja
08-02-2009, 15:27
Thanks. Works like a charm!
Is it working with settings of "PPPoE Idle Disconnect Time" other than "0"?

(WL-500GPv1)

lly
08-02-2009, 16:21
Is it working with settings of "PPPoE Idle Disconnect Time" other than "0"?
Not yet. Unfortunately, Oleg is in offline, me & theMIROn has no PPPoE connection for tests. And no other volunteers who can find problem in pppd.

sacharja
08-02-2009, 16:30
Not yet. Unfortunately, Oleg is in offline, me & theMIROn has no PPPoE connection for tests. And no other volunteers who can find problem in pppd.
Hm, the link to the thread I posted contains a long log. But if there's sth. else I could do to help you I install it again.

lly
08-02-2009, 16:39
Hm, the link to the thread I posted contains a long log. But if there's sth. else I could do to help you I install it again.
Sorry, I can't determine such problematic place by ordinary log. It is necessary to turn on debugging in pppd and drill down the bug.

sacharja
08-02-2009, 20:23
Ok I reinstalled the FW, how do I turn on debugging (Additional pppd options?)? Maybe we can track this down together.

Apart from that it might make sense if Oleg includes "Known issues" within http://oleg.wl500g.info/ . I think most users install Oleg's firmwares because they expect better stability and more features than the standard firmware without knowing, that some included features might not work at all. My first thought concerning "PPPoE Idle Disconnect Time" was that I did sth. wrong and I reinstalled it about 5 times with all variations of clear ram etc.. That certainly wouldn't have happened with a small statement in http://oleg.wl500g.info/

lly
09-02-2009, 09:22
Ok I reinstalled the FW, how do I turn on debugging (Additional pppd options?)? Maybe we can track this down together.
Thanks for the offer of assistance, I will write you. Your experience should allow you to connect to router by telnet and work in command line.
Please, be patient. At this moment, we discuss in russian thread appropriateness of pppd upgrade to 2.4.4 and Oleg patches. Unfortunately, nobody of us are not pppd guru.

Lesiuk
09-02-2009, 14:41
If someone want test build95 and dont have linux machine to compile fw here is link to .trx file: http://freefilehosting.net/download/452aa

That is .trx for wl 500g premium v1 only.

I compiled it for myself and i thought that it might be useful for someone.

source: http://code.google.com/p/wl500g/

Thank you theMIROn and lly.

theMIROn
09-02-2009, 14:53
If someone want test build95 and dont have linux machine to compile fw here is link to .trx file: http://freefilehosting.net/download/452aa
I compiled it for myself and i thought that it might be useful for someone.Thnx for building it, but plz provide router model target (firmware name at least)

sacharja
09-02-2009, 17:11
Thanks for the offer of assistance, I will write you. Your experience should allow you to connect to router by telnet and work in command line.
Please, be patient. At this moment, we discuss in russian thread appropriateness of pppd upgrade to 2.4.4 and Oleg patches. Unfortunately, nobody of us are not pppd guru.
OK, I'm waiting for some news from you.

poiu
09-02-2009, 20:26
So i install this build, no problem here in 1 day.
Upgrade is done via web iface, all services are up and running, plus rtorrent, squid, tor, some rrd scripts too.
Everything look fine, cpu is under 5% with spikes from ntpd every hour.
I cant see any changes, web browsing is good, but was good before -d, i have 8M/1M, and cpu was same before this.
Single thing i see is stable, so anyone can use -d without fear, even for testing.
And no pppd here, nor dhcpd on wan, i have fixed ip .

Lesiuk
12-02-2009, 11:27
How do I enable IPv6? I want to use the sixxs.net tunnel and use IPv6 in my local network (IP via DHCP)

lly
12-02-2009, 12:25
How do I enable IPv6? I want to use the sixxs.net tunnel and use IPv6 in my local network (IP via DHCP)
IPv6 is disabled by default, since it is useless for most people in home application and flash size is very limited for some router models (520gU, 500gx, 550gE).
You have to recompile firmware from sources with enabled IPv6 in kernel, busybox and other networking packages configs.

Lesiuk
12-02-2009, 13:13
IPv6 is disabled by default, since it is useless for most people in home application and flash size is very limited for some router models (520gU, 500gx, 550gE).
You have to recompile firmware from sources with enabled IPv6 in kernel, busybox and other networking packages configs.

How can i do that?

lly
12-02-2009, 14:23
http://code.google.com/p/wl500g/wiki/CompilingCustomFirmware_en
Change src/linux/linux/.config (see kernel Documentation)
Change src/gateway/.config
Change busybox config

We are not test IPv6 functionality at all. Moreover, some packages can't fully support IPv6 itself.

Lesiuk
12-02-2009, 15:32
Can You relase one more version of the fw for wl500gpv1 with all included as standard? (IPv6, layer-7).

I hope that it will not be a problem for you.

best regards
Damian Lesiuk

lly
12-02-2009, 16:23
Can You relase one more version of the fw for wl500gpv1 with all included as standard? (IPv6, layer-7).
Theoretically - yes. Practically, it requires:
1) our time (I'm suspect that some tuning will be needed).
2) qualified tester

P.S. As I already wrote in russian thread, we cannot support end-users at this moment. Any volunteers?

preacher@wl500g
18-02-2009, 17:24
I tried "wl500g-1.9.2.7-d7 (2009-01-24)" on my WL500Gp, works great and stable until now! Good job!
What I really recognized is, thad CIFS access is now really fast against the Koppel-Firmware I used before.


An issue that is still open concerns the sound-interface. The USB audio-adapter I use still only produces a constant beep when playing over esd or by use of madplay. Can this issue ever be fixed on kernel 2.4.x?

lly
18-02-2009, 19:34
An issue that is still open concerns the sound-interface. The USB audio-adapter I use still only produces a constant beep when playing over esd or by use of madplay. Can this issue ever be fixed on kernel 2.4.x?
Thanks for report.
If this issue is really a kernel bug, it never be fixed until someone volunteer explore and repair it. We can't maintain Linux kernel itself...

outkastm
20-02-2009, 09:29
Is there any chance to have NTFS or HFS+ write support ?

lly
20-02-2009, 09:51
Is there any chance to have NTFS or HFS+ write support ?
NTFS 3g can be compiled with current kernel 2.4.37, but nobody tested it.
HFS+ supported by kernel, we can include module binary in next snapshot in case you ready to test it.

downloadd
20-02-2009, 17:44
support for DNS-O-Matic ?

lly
21-02-2009, 20:45
support for DNS-O-Matic ?
Currently, we have more urgent tasks to achieve stability & bugs removal. If someone send me patch to add this functionality and it will not so huge (we have a very limited space for 520gU, 500gx and other 4M flash routers), than we can include it into the mainstream.

wpte
24-02-2009, 10:04
on dns-o-matic they say dd-wrt supports it, so maybe we can rip it from the sources and magicly put it in the oleg sources:D
http://www.dnsomatic.com/wiki/dd-wrt
but I have this weird feelin that olegs firmware also might be able to do this... since you can specify the server:

DYNDNS Server: updates.dnsomatic.com
I'm sure this must be a value somewhere in olges:)

I already like the D release, so I can't wait till the full one, keep it up;)

lly
24-02-2009, 10:19
on dns-o-matic they say dd-wrt supports it, so maybe we can rip it from the sources and magicly put it in the oleg sources:D
DD-WRT uses inadyn (http://www.dnsomatic.com/wiki/inadyn). Olegs firmware uses ez-ipupdate. Our firmware adds ability to use custom config /etc/ddns.conf (appendable with /usr/local/etc/ddns.conf). If someone confirm that ez-ipupdate works with dns-o-matic, we can add this parameters to predefined list in web-interface.

theMIROn
24-02-2009, 10:26
I already like the D release, so I can't wait till the full one, keep it up;)seems like dns-o-matic uses dyndns-like update api. you can try it right now (using 1.9.2.7-d exactly)
create /usr/local/etc/ddns.conf according ez-ipupdate manuals, wich is to be append to autogenerated /etc/ddns.conf
any these params will override autogenerated ones, so you should specify server=updates.dnsomatic.com with typical ddns.org settings
so, play with it, or i could patch ez-ipupdate to suit your dns-o-matic needs... some day...

theMIROn
24-02-2009, 10:27
DD-WRT uses inadyn (http://www.dnsomatic.com/wiki/inadyn). Olegs firmware uses ez-ipupdate. Our firmware adds ability to use custom config /etc/ddns.conf (appendable with /usr/local/etc/ddns.conf). If someone confirm that ez-ipupdate works with dns-o-matic, we can add this parameters to predefined list in web-interface.
yep. someone has to try it out

EDIT: works for me with dyndns setted up at web interface and following /usr/local/etc/ddns.conf

service-type=dyndns
server=updates.dnsomatic.com
host=all.dnsomatic.com

viasat
24-02-2009, 12:55
Hello
First of all thanks you for your hard work,I've tested a few versions of your firmware and it's very stable...but I've tried today your latest build from 24.02,and I've a problem: after I set up Wireless Mac adress filtering,puting a 5 mac adress of wireless devices to allow them to connect wireless,after saving an reboot,I can't no more to login in the web interface of the router(IE or Firefox),I mean the page doesn't appear anymore,the IP is 192.168.1.1 ,and nothing,same message:''Internet Explorer cannot display the webpage'' .I've flashed 5 times,resetting to defaults ,nvram erase ,nothing,same story.Everything is ok,until I set Mac filtering to permit for wireless access,after that,no more web interface of the router.Maybe someone could try to see if they have the same problem.
Tnx a lot
Cheers

lly
24-02-2009, 13:35
You have to flash firmware by wire, not by WiFi.
Is web-interface accessible by wire? (If yes, you have mistake in your restrictions).

viasat
24-02-2009, 13:50
Tnx for your reply.
Everything I've done only by wire,using Asus firmware restauration tool...everything is ok until I'm changing Mac Wireless Filter to permit a mac adress from my laptop to access the wireless network...after that no more acces to the webpage of the router using wired access,not wireless(wireless I've not tryed at all,only wired).Right now I'm downloading the firmware again,and flashing again to see if it happens again.
Cheers
I've tried on 2 asus wl500gP v1 ,also the build from 09 february ,same story,the routers frozen,nothing works,only with hard reset can log in again...with january build,no problem,it works,so something must be changed in latest builds..I don't have enabled any kind of security on wireless,no wep,no wpa,nothing,only MAC filter with permit access for 3 mac adress,1 laptop and 2 Nokia phones.
Tnx again

lly
24-02-2009, 17:42
everything is ok until I'm changing Mac Wireless Filter to permit a mac adress from my laptop to access the wireless network...
Unfortunately, I can't reproduce problem. I tried both Accept/Reject modes
on "Wireless - Access Control" page, adds six MAC's - all ok. If situation repeats, you should prepare testcase, step by step.

viasat
24-02-2009, 18:09
Please try one more time,I've attached an printscreen where the modification is.If I click on Finish,Save&Restart ,it will never restart,no more log in into router,only after hard reset.Believe me,I don't want to waste your time,but the problem it's there,at least for me ,on two different routers...you don't need to have internet conection,just flash the router with your latest build,go on to the option from printscreen,select Accept,add an mac adress,Finish,Save%Restart,and you will see that never restarts,,at least for me...if works for you,it's ok,I give it up,I don't know anymore what else to try,and I'll wait your next releseas...
Tnx again and excuse my bad English!
Cheers

lly
24-02-2009, 18:28
viasat
First of all, You modify wrong page!
On this page you define MAC rules for both wire & wireless clients!

Please, read carefully that written on screen BEFORE modifying anything.

viasat
24-02-2009, 19:50
Ok,tnx a lot,my mistake,I'll search better next time!
Cheers and thanck you for your work and help!
Best Regards

outkastm
25-02-2009, 10:20
NTFS 3g can be compiled with current kernel 2.4.37, but nobody tested it.
HFS+ supported by kernel, we can include module binary in next snapshot in case you ready to test it.

Sure im ready to test it. I have an Packard Bell Store & Play 500GB that supports FAT, NTFS or HFS+ fs for connection to TV.

lly
25-02-2009, 12:12
Sure im ready to test it. I have an Packard Bell Store & Play 500GB that supports FAT, NTFS or HFS+ fs for connection to TV.
HFS+ module you can get on http://wl500g.googlecode.com/files/modules-1.9.2.7-d-20090224.tar.bz2 since 20090224 snapshot.
NTFS 3g binary - http://rapidshare.de/files/45619009/ntfs-3g-mipsel.tar.bz2.html

P.S. And don't forget to set up LD_LIBRARY_PATH variable

downloadd
27-02-2009, 04:11
How to disable access to router configuration from wireless?
Option to disable wireless with ezsetup button?
Option to write log file to usb hdd?
WPA KEY generator ?
link on router home page to http://wl500g.info/ and http://code.google.com/p/wl500g/?

lly
27-02-2009, 08:13
How to disable access to router configuration from wireless?read iptables manual

Option to disable wireless with ezsetup button?search FAQ about /usr/local/sbin/ez-setup script

Option to write log file to usb hdd?search forum. This very hard to be realized in standart GUI due to USB hdd mounts after logging starts & in case of error - hdd never be mounted automatic.

WPA KEY generator ?Your suggestion?

link on router home page to http://wl500g.info/ and http://code.google.com/p/wl500g/?maybe

wpte
27-02-2009, 23:34
WPA KEY generator ?
Your suggestion?


I made a quick generator, it's as attachment.

anyway, here was my feature request:D

anyway... a little feature request popped up, and it's not like a big deal I think...
The problem is that the webcam daemon generates a giant cpu load. If there was an option in the webinterface to limit it to eg 1fps

there is an option -s in rcamd, that lets you set after how many seconds it'll take a frame from the webcam, when 0 it is unlimited.

like this maybe:

rcamd -p 7777 -s 1 -z MET-1METDST,M3.5.0/2,M10.5.0/3 -a 0 -t 0 -r 0 -f 640x480 -m 100 -c 100

if there could be a box to fill that in the webinterface, my sometimes working script at boot to reduce the fps of the webcam will become unneeded, and I don't have to restart the cam daemon.

what do you say?:D

:D

lly
28-02-2009, 07:43
I made a quick generator, it's as attachment.
There is .EXE in attachment - it useless in unix! Anyway, maybe you can explain, why you want it in main firmware?

anyway, here was my feature request:D
accepted, but I can't you promise exact time of realization.

wpte
28-02-2009, 13:14
There is .EXE in attachment - it useless in unix! Anyway, maybe you can explain, why you want it in main firmware?

accepted, but I can't you promise exact time of realization.

I didn't want the generator in the firmware... but because someone wanted a generator aparrently, I made a quick one in C#.
it doesn't work in wine either, because it's .net 3.5
I couldn't convert it back to 2.0 unfortunately, too mutch errors :(

I can give you the source if you want?:D


edit:
the webpages are written in ASP right?
then a button with this code linked to it might do the job quickly:
http://www.sashadesign.com/howto/7/

lly
28-02-2009, 14:02
I didn't want the generator in the firmware...
I apoligize that downloadd wants it in firmware and can't imagine, why?

wpte
28-02-2009, 15:17
I apoligize that downloadd wants it in firmware and can't imagine, why?

you don't have to apologize:confused:
but you said that:


There is .EXE in attachment - it useless in unix! Anyway, maybe you can explain, why you want it in main firmware?

and I tought "you" referred to me:p
just a misunderstanding I guess:)

lly
28-02-2009, 18:13
wpte
Your FR about rcamd was much simpler than I thought :)
"Refresh Time in seconds:" field on webcam page controls unused variable "usb_webfresh_x". So, I simply change default value, as in ASUS rc internals, to "0", and made it usable.

r141 uploaded into SVN

wpte
28-02-2009, 20:28
wpte
Your FR about rcamd was much simpler than I thought :)
"Refresh Time in seconds:" field on webcam page controls unused variable "usb_webfresh_x". So, I simply change default value, as in ASUS rc internals, to "0", and made it usable.

r141 uploaded into SVN

hmm... I tought "Refresh Time in seconds:" was for the non-activeX webcam viewer page to reload itself and have to correct frame displayed:p
and that is the case I think...
so if you put it on 0 (no limit on the fps) you won't get a refresh in the webpage, or too mutch refreshes?:confused:
I'm going to test it out anyway;)
thanks:D

lly
28-02-2009, 20:45
hmm... I tought "Refresh Time in seconds:" was for the non-activeX webcam viewer page to reload itself and have to correct frame displayed:p
Maybe you are right, my fast solution is not so good :(
But this variable means near same both in web-interface & rcamd.
rcamd:
-s <seconds between frames> (default==1)
web:
This field indicates the time interval in seconds that system reloads image.
Thus, I decide do decision above.

wpte
01-03-2009, 12:55
well... you could do it like that I guess, but you need a little handler for the webrefresh if it isn't there yet:)

something like:

if(interval=0)
{
webrefresh=1;
}


dunno how it looks like in the FW, but I guess if you put this somewhere in between it should pick up and have a proper refresh:D

lly
01-03-2009, 20:30
well... you could do it like that I guess, but you need a little handler for the webrefresh if it isn't there yet:)
i.e. you suggest that webrefresh always be greater than zero?
Ok, I agree.

wpte
02-03-2009, 11:08
i.e. you suggest that webrefresh always be greater than zero?
Ok, I agree.


great:)

btw, I noticed that the flashfs files have changed over time from the svn builds?
when I tried reflashing an old flashfs file, the router wouldn't start it's dhcp server anymore... or something else went wrong.
so I'm still sailing on the older D firmware.
I have a wl-500w btw.

mali
02-03-2009, 11:20
One of the goals for the new firmware mentioned in the initial post was "better ipv6 support". However, it seems that IPv6 support ist currently completly disabled. :(

Is it possible to compile the firmware with IPv6 support enabled?

al37919
02-03-2009, 11:31
if you read carefully, the first post was also a sort of wishlist.

ondrejpecta
02-03-2009, 12:33
great:)

btw, I noticed that the flashfs files have changed over time from the svn builds?
when I tried reflashing an old flashfs file, the router wouldn't start it's dhcp server anymore... or something else went wrong.
so I'm still sailing on the older D firmware.
I have a wl-500w btw.

I have to report the same problem - I couldn't connect to router at all after reflashing to lastest firmware, so I had to revert back to previsous version (WL500gp-1.9.2.7-d-20090225.trx) using TFTP.

theMIROn
02-03-2009, 12:43
I have to report the same problem - I couldn't connect to router at all after reflashing to lastest firmware, so I had to revert back to previsous version (WL500gp-1.9.2.7-d-20090225.trx) using TFTP.
did reflash finish successfully? I mean did power led turn on again?
or power led was turn off and router hangs?

try to follow this steps:
1. flashfs disable && reboot
2. reflash firmware, router should be flashed and rebooted as usual
3. flashfs enable && reboot

will it hang at shutdown or at boot time?

wpte
02-03-2009, 20:40
did reflash finish successfully? I mean did power led turn on again?
or power led was turn off and router hangs?

try to follow this steps:
1. flashfs disable && reboot
2. reflash firmware, router should be flashed and rebooted as usual
3. flashfs enable && reboot

will it hang at shutdown or at boot time?

it stops at booting for me...
it seems, as soon as I actually even create a flashfs (like creating post-boot etc.) and save it, it's enough to make it stop working.
the boot procedure seems normal if I look at the LED's on the front, the same kinda flashing lights and 2 refreshes of the switch... nothing out of the ordinary.

Also I noticed that I received data from the router, but I couldn't send anything. how many times do you see that on your network stats?:p:D

theMIROn
02-03-2009, 21:02
okie. try this:
1. restore prevous firmware build (tftp maybe)
2. boot, save flashfs.tar.gz and disable it (flashfs disable)
3. reboot
4. flash r141 or newer 1.9.2.7-d firmware
5. restore flashfs.tar.gz via web interface

will it help? it'll be nice to provide console boot logs, if you have it

DrChair
02-03-2009, 23:38
I also have some problems with SVN-version 140.

I flashed the firmware succesfully.
Next I noticed the new option to enable SSH in the webinterface, so I enabled that option.

After that, my clients didn't get any ip-adres from DHCP and I was unable to ping the router.

I after serveral attempt to flash the old firmware, I accidentaly discovered that via a static ip-adres I was able to login to SSH (but still no ping).

It seems that enabling SSH from the webinterface, breaks some of the firewall rules, cause if I disable the firewall with "iptables -D INPUT -j DROP" everyting is working again....
However this also leaves my unprotected.

(i'm building r144 atm, to see if that solves the problem)

Edit:
Further tests show that it has nothing to do with enabling SSH.
I went back to factory defaults, and configured the basics -> everthing is fine
Next I do a flashfs enable && reboot -> at first everything seems fine, but after a while I get 'firewalled'
I'll see tomorrow if i can find the exact moment where the firewall is enabled.

al37919
03-03-2009, 06:21
DrChair:
If you still have problem with firewall, could you show output of

iptables-save | grep INPUT

lly
03-03-2009, 10:02
btw, I noticed that the flashfs files have changed over time from the svn builds?
No, this behavior shouldn't be changed.

when I tried reflashing an old flashfs file, the router wouldn't start it's dhcp server anymore... or something else went wrong.
Please, describe more detailed. My assumption:
1. You flashed new firmware. Successful?
2. reboot. router up ok? what about dhcp-server(dnsmasq)?
3. Did you try to execute "flashfs enable" & reboot?
4. Router itself starts? What is in syslog?

wpte
03-03-2009, 21:48
No, this behavior shouldn't be changed.

Please, describe more detailed. My assumption:
1. You flashed new firmware. Successful?
2. reboot. router up ok? what about dhcp-server(dnsmasq)?
3. Did you try to execute "flashfs enable" & reboot?
4. Router itself starts? What is in syslog?

1. yes, successful (tried with webpage upload and asus restoration tool)
2. First reboot is good, and after applying the settings to the router it's also rebooting fine. Only after saving something in the flashfs memory it stops working properly.
3. I did, I always execute "flashfs save && flashfs commit && flashfs enable && reboot", I actually have it under a macro on my G15 keyboard:p
4. The router doesnt respond to anything anymore when something is in the flashfs, not even the reset button, I need to unplug the psu to make it run again.

I do want to note that sometimes the firmware is flashed, but the original memory of the old firmware is still there, even after a factory default.

I just noticed that the stable release has a tar.gz compression and it seems like the beta(or alpha, I dunno) has tar.bz2 compression.
Also I saw that the paths in the flashfs file are different in the older beta release, than the newer one.

DrChair
03-03-2009, 22:19
DrChair:
If you still have problem with firewall, could you show output of
iptables-save | grep INPUT

If I have no post-firewall script, everything is working fine
then the output is
:INPUT ACCEPT [288:57716]
:INPUT ACCEPT [288:57716]

If I have the following post-firewall in place:


#!/bin/sh
## FIREWALL
## set default policy
iptables -D INPUT -j DROP

## Allow access to webserver from WAN
iptables -A INPUT -p tcp --dport 80 -j ACCEPT

## Allow access to SSH (port24) from WAN
iptables -A INPUT -p tcp --dport 24 -j ACCEPT
iptables -t nat -A PREROUTING -i vlan1 -p tcp --dport 24 -j DNAT --to-destination 192.168.2.1:24

# Allow access to PROFTPD (port 21) from WAN
iptables -A INPUT -p tcp --dport 20 -j ACCEPT
iptables -t nat -A PREROUTING -i vlan1 -p tcp --dport 20 -j DNAT --to-destination 192.168.2.1:20
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
iptables -t nat -A PREROUTING -i vlan1 -p tcp --dport 21 -j DNAT --to-destination 192.168.2.1:21
iptables -A INPUT -p tcp --dport 65530:65535 -j ACCEPT
iptables -t nat -A PREROUTING -i vlan1 -p tcp --dport 65530:65535 -j DNAT --to-destination 192.168.2.1

iptables -A INPUT -j DROP

I have a problem and the output of iptables-save |grep INPUT is:
:INPUT ACCEPT [695:224835]
:INPUT ACCEPT [36:11691]
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 24 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 20 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 65530:65535 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 24 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 20 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 65530:65535 -j ACCEPT
-A INPUT -j DROP

With firmware around r100 this post-firewall was still working.
I guess it has something to do with all the SNAT changes

preacher@wl500g
03-03-2009, 23:18
One thin I have to mention is the successful connection of my old printer.
I have a quite old HP Deskjet 720C, which I couldn't use on my notebook running windows vista because of the lack of a parallel port so far.
This printer is a so called GDI-printer, which needs a direct connection and doesn't have an own image processing unit.
A HP Jetdirect I tried didnt' work, it produced only a few lines and then stopped printing, even when trying to print the Windows test-page
Now I bougt a cheap (1) parallel to usb adapter, which didn't work as expected with my notebook (approx 2/3 of the Windows test-page was printed).
But when connected to the WL500GP's USB-port and used as TCP/IP printer this works perfectly! Even complex pages are printed without any problems.
I am running one of the latest firmware from googlecode and I am really glad to have this functionallity. What a great piece of software on this nice router! Thanks for your work, it keeps my printer working even after 12 years!

chtr
04-03-2009, 14:52
I use my WL-500GP mainly as a printer- and fileserver (samba). I had stability issues with oleg's firmware and had to reboot the rooter 6-7 times a day, because samba stopped working.
With this firmware the router is now up and running for 4 days and samba is still working. Thank you very much for this firmware, great work!

theMIROn
04-03-2009, 21:07
it stops at booting for me...
it seems, as soon as I actually even create a flashfs (like creating post-boot etc.) and save it, it's enough to make it stop working.
the boot procedure seems normal if I look at the LED's on the front, the same kinda flashing lights and 2 refreshes of the switch... nothing out of the ordinary.


I have to report the same problem - I couldn't connect to router at all after reflashing to lastest firmware, so I had to revert back to previsous version (WL500gp-1.9.2.7-d-20090225.trx) using TFTP.

bug discovered. temporary fix could be done in the several ways before flashing firmware:
1. add "insmod ipt_recent.o" in your /usr/local/sbin/post-boot script
2. set nvram recent_ftp_enable to 1 if you've enabled ftp server via web interface, commit nvram after
3. set both ssh_enable and nvram recent_ssh_enable to 1, commit nvram after. it will cause dropbear to start on boot time without any additional post-boot scripts

sorry for the inconvenience, folks

wpte
05-03-2009, 00:18
np man
just a question... does this mean dropbear will be integrated in the firmware?:)

al37919
05-03-2009, 00:33
np man
just a question... does this mean dropbear will be integrated in the firmware?:)
yes, it already does (including autogeneration and storing of the keys in flashfs when needed, functioning of ssh server even if flashfs is disabled, and brute force attack protection for ssh and ftp servers based on ipt_recent). See System Setup->Services and Internet Firewall->Basic Config

At the moment r156 is commited which (I hope) solves this issue. Reports are welcome.

theMIROn
05-03-2009, 10:17
use r160 build from http://wl500g.googlecode.com/
now, even with bruteforce protection is off, firmware should boot as usual

wpte
05-03-2009, 12:46
plz, test it
http://themiron.ru/pub/soft/WL500gp-1.9.2.7-d-r157M.trx
now, even with bruteforce protection is off, firmware should boot as usual

I need the wl-500W version;)


yes, it already does (including autogeneration and storing of the keys in flashfs when needed, functioning of ssh server even if flashfs is disabled, and brute force attack protection for ssh and ftp servers based on ipt_recent). See System Setup->Services and Internet Firewall->Basic Config

At the moment r156 is commited which (I hope) solves this issue. Reports are welcome.

sounds interesting, since I couldn't get that old denyhosts working on mine. eventually I swtiched to a different port.
Would that iprecent also work on openssh or different server like apps?:)

al37919
05-03-2009, 12:57
Would that iprecent also work on openssh or different server like apps?
yes, it is done as a separate chain through which you can pass what you wish

theMIROn
05-03-2009, 17:13
I need the wl-500W version;)
grab r160 builds from http://wl500g.googlecode.com/


yes, it is done as a separate chain through which you can pass what you wish
if bruteforce protection is enabled, you can use the same chain:
iptables -A INPUT -m tcp -p tcp -i <IFACE> -s <SOURCE> --syn -j BRUTE
it means that any new tcp connections from SOURCE ip addr from IFACE interface (ppp0, etc) will be counted and denied on exec food

wpte
07-03-2009, 01:42
great work
I'm going to test it somewhere in the weekend, and I'll let you know what I think:D

btw... are there any simple programming jobs?
maybe it is a nice opportunity for me to learn some linux programming, I'm already known with C# and some ansi C for an embedded usb board.

wpte
07-03-2009, 17:20
I've flashed my router today, and the webcam refresh feature seems to work great:D
the flashfs things also work good now, and I didn't have any troubles so far:)

quazar
08-03-2009, 13:29
Great work guys, I will test the new r160 on my WL-500W.
So far so good!

Lesiuk
08-03-2009, 18:34
Great work guys, I will test the new r160 on my WL-500W.
So far so good!

My isp give me short dhcp ip lease time, every 60 secound ip must be renewed.

If the router is busy, the router do not renew my ip on time and all connections were closed.

It make me nervous when while I am transferring files via FTP I lose the connection to the Internet.

I dont know how fix that... Any ideas ?

DrChair
08-03-2009, 22:58
Building r169 requires user input:



*
* Machine selection
*
Support for Acer PICA 1 chipset (EXPERIMENTAL) (CONFIG_ACER_PICA_61) [N/y/?]
Support for Alchemy Bosporus board (CONFIG_MIPS_BOSPORUS) [N/y/?] (NEW)
Support for FIC Multimedia Player board (CONFIG_MIPS_FICMMP) [N/y/?] (NEW)
Support for Alchemy Mirage board (CONFIG_MIPS_MIRAGE) [N/y/?] (NEW)
Support for Alchemy Db1000 board (CONFIG_MIPS_DB1000) [N/y/?]
Support for Alchemy Db1100 board (CONFIG_MIPS_DB1100) [N/y/?]
Support for Alchemy Db1500 board (CONFIG_MIPS_DB1500) [N/y/?]
Support for Alchemy Db1550 board (CONFIG_MIPS_DB1550) [N/y/?] (NEW)
Support for Alchemy Db1200 board (CONFIG_MIPS_DB1200) [N/y/?] (NEW)
Support for Alchemy PB1000 board (CONFIG_MIPS_PB1000) [N/y/?]
Support for Alchemy PB1100 board (CONFIG_MIPS_PB1100) [N/y/?]
Support for Alchemy PB1500 board (CONFIG_MIPS_PB1500) [N/y/?]
Support for Alchemy PB1550 board (CONFIG_MIPS_PB1550) [N/y/?] (NEW)
Support for Alchemy PB1200 board (CONFIG_MIPS_PB1200) [N/y/?] (NEW)
Support for Alchemy Hydrogen3 board (CONFIG_MIPS_HYDROGEN3) [N/y/?] (NEW)
Support for MyCable XXS1500 board (CONFIG_MIPS_XXS1500) [N/y/?] (NEW)
Support for 4G Systems MTX-1 board (CONFIG_MIPS_MTX1) [N/y/?] (NEW)
Support for Cogent CSB250 board (CONFIG_COGENT_CSB250) [N/y/?] (NEW)
Support for BAGET MIPS series (EXPERIMENTAL) (CONFIG_BAGET_MIPS) [N/y/?]
Support for CASIO CASSIOPEIA E-10/15/55/65 (CONFIG_CASIO_E55) [N/y/?]
Support for Cobalt Server (EXPERIMENTAL) (CONFIG_MIPS_COBALT) [N/y/?]
Support for DECstations (CONFIG_DECSTATION) [N/y/?]
Support for Galileo EV64120 Evaluation board (EXPERIMENTAL) (CONFIG_MIPS_EV64120) [N/y/?]
Support for Galileo EV96100 Evaluation board (EXPERIMENTAL) (CONFIG_MIPS_EV96100) [N/y/?]
Support for Globespan IVR board (CONFIG_MIPS_IVR) [N/y/?]
Support for Hewlett Packard LaserJet board (CONFIG_HP_LASERJET) [N/y/?]
Support for IBM WorkPad z50 (CONFIG_IBM_WORKPAD) [N/y/?]
Support for LASAT Networks platforms (CONFIG_LASAT) [N/y/?]
Support for ITE 8172G board (CONFIG_MIPS_ITE8172) [N/y/?]
Support for MIPS Atlas board (CONFIG_MIPS_ATLAS) [N/y/?]
Support for MIPS Magnum 4000 (CONFIG_MIPS_MAGNUM_4000) [N/y/?]
Support for MIPS Malta board (CONFIG_MIPS_MALTA) [N/y/?]
Support for MIPS SEAD board (EXPERIMENTAL) (CONFIG_MIPS_SEAD) [N/y/?]
Support for Momentum Ocelot board (CONFIG_MOMENCO_OCELOT) [N/y/?]
Support for Momentum Ocelot-G board (CONFIG_MOMENCO_OCELOT_G) [N/y/?]
Support for Momentum Ocelot-C and -CS boards (CONFIG_MOMENCO_OCELOT_C) [N/y/?] (NEW)


I guess some config-file needs modifying...

lly
09-03-2009, 09:30
Building r169 requires user input:

(CONFIG_MOMENCO_OCELOT_C) [N/y/?] (NEW)

Something goes wrong on your build system, as you can see

# CONFIG_MOMENCO_OCELOT_C is not set
line already present in our kernel.config. Have you execute
make koldconf in gateway directory after kernel patching?

lly
09-03-2009, 09:52
My isp give me short dhcp ip lease time, every 60 secound ip must be renewed.
...
I dont know how fix that... Any ideas ?

Ask ISP to change too short lease time (should be at least 30 min).
Change bad ISP

DrChair
09-03-2009, 11:17
Something goes wrong on your build system, as you can see

# CONFIG_MOMENCO_OCELOT_C is not set
line already present in our kernel.config. Have you execute
make koldconf in gateway directory after kernel patching?

No I haven't, cause it's not mentioned in the howto...

r165 still builds fine on my machine, but r166 and up have this problem.

I use the following script to build the firmware:



#!/bin/sh
inst="/firmware"
rm -rf /opt/brcm
rm -rf $inst/broadcom

mkdir $inst/broadcom/src/linux -p
mkdir /opt/brcm -p
tar -C $inst -zxvf /home/downloads/GPL_1927.zip
rm -rf $inst/broadcom/src/linux/linux
tar -C $inst/broadcom/src/linux -jxvf /home/downloads/linux-2.4.37.tar.bz2
ln -sf $inst/broadcom/src/linux/linux-2.4.37 $inst/broadcom/src/linux/linux
tar -C /opt/brcm -jxvf /home/downloads/hndtools-mipsel-uclibc-4.1.2-1.tar.bz2
ln -sf /opt/brcm/hndtools-mipsel-uclibc-4.1.2 /opt/brcm/hndtools-mipsel-uclibc

svn checkout --revision 166 http://wl500g.googlecode.com/svn/trunk/ $inst/broadcom/src/wl500g-1.9.2.7-d
rm -rf $inst/broadcom/opt

PATH=$PATH:/opt/brcm/hndtools-mipsel-uclibc/bin

export PATH
cd $inst/broadcom/src/wl500g-1.9.2.7-d
make kernel
make

cd $inst/broadcom/src/gateway
make
make install

lly
09-03-2009, 11:44
No I haven't, cause it's not mentioned in the howto...

r165 still builds fine on my machine, but r166 and up have this problem.
Howto was written in assumption that entire tree prepared from scratch. In case of partial code upgrade from SVN, it should be extended, but we are hope that people who can do it also can understand Makefile rules.

Probably, you got an error somewhere in "make kernel". Please, remove commands after this point, and check for a error message.

DrChair
09-03-2009, 14:11
Howto was written in assumption that entire tree prepared from scratch. In case of partial code upgrade from SVN, it should be extended.

What do you mean with partial code upgrade??

My build-script starts with deleting my entire build-directory.
Next it performs all steps mentioned in the Wiki.

So as I see it, my tree is prepaired from scratch...

lly
09-03-2009, 14:21
What do you mean with partial code upgrade??

I added paragraph 5 on Howto (http://code.google.com/p/wl500g/wiki/CompilingCustomFirmware_en)

So as I see it, my tree is prepaired from scratch...
Ok, but I even don't exclude our mistake ;)
You(we) should repeat process step-by-step to find a problem.

DrChair
09-03-2009, 15:25
You(we) should repeat process step-by-step to find a problem.

I just repeated the procedure manually with last svn, and this works fine :o
So either it is solved again, or my script is wrong...

Edit:
Also with my buildscript r174 builds fine, so the problem is fixed again with that revision.

Further tests show that r168 till r173 failed during "make kernel" on applying "235-usb-ehci-backport.patch" (hence the fix in r174)
r166 & r167 failed during "make kernel" on applying "303-pppol2tp.patch" (which was fixed in r169)

(and my script is wrong, cause it lacks error-checking of the different steps)

wpte
10-03-2009, 01:57
maybe another idea for the new firmware:
when you save somthing in the webinterface you can do a restart, to load the changed things...
Now this restart is a quick one and not a proper reboot as far as I noticed, since it leaves behind all kind of things in the memory... like php-fcgi connection.

so if you restart it via webinterface, you need to do an additional "reboot" command to have a proper clean restart.

now I guess the restart is just a quick one since nothing mutch has to be done in the normal firmware, but olegs is mainly used as more functionality via optware, so it's not really well put to have an quick restart so some programs won't reload properly:p


can be a stupid idea... dunno:p

lly
10-03-2009, 09:26
wpte
Idea is excellent, but requires too much time to rewrite almost entire web-interface...

TheCrow
10-03-2009, 19:39
i found 2 fw for my wl-500gp v2: wl500g-1.9.2.7-d-r160 (2009-03-05) http://code.google.com/p/wl500g/wiki/NEWS and WL500gpv2-1.9.2.7-10.7.trx 02-Mar-2009 http://oleg.wl500g.info/pre10a/

What are differences between`s 2

wpte
10-03-2009, 19:47
wpte
Idea is excellent, but requires too much time to rewrite almost entire web-interface...

maybe I can manage to make a patch for that:)

al37919
10-03-2009, 20:55
i found 2 fw for my wl-500gp v2: wl500g-1.9.2.7-d-r160 (2009-03-05) http://code.google.com/p/wl500g/wiki/NEWS and WL500gpv2-1.9.2.7-10.7.trx 02-Mar-2009 http://oleg.wl500g.info/pre10a/

What are differences between`s 2
The difference is actually described here: http://code.google.com/p/wl500g/wiki/NEWS
Oleg's last pre-10a-version is a bugfix, which doesn't include new features. The main improvement is new wireless drivers. This is long awaited update at least by users of wl500gPv2, where old drivers caused sometimes serious problems.

newbiefan
13-03-2009, 15:51
Hi,
first thx to Ily for this great job......
Anyhow, installed yesterday r160.trx (gpV1) and installed everything according wengis howto. Everything works stable, but when I want to umount, I get a problem:
umount /tmp/mnt/disc0_3 works fine, is part 3
umount /opt device or resource busy
well, of course, no opt sw should run, hence: /opt/etc/init.d/rc.unslung stop
Even when I killall sw related and/or linked to any /opt folder, I get the same
message: device or resource busy
swopoff -a works
but it's strange - when I run fdisk /dev/discs/disc0/disc I can delete any partition and write the partition table. The only thing is, that I've found until now no way to reload kernels partition table. So it needs a reboot to reload the new part-table.
Can somebody confirm and/or has a solution?
For confirmation, I'll install oleg's and Ily's FW to my 2 wl500gp's, will report tomorrow.
Many thanks!

Edit: all what I wanna do is to umount with a script, because I wrote a script (not finished yet http://autoinstall.lima-city.de) to install everything faster......

al37919
13-03-2009, 17:48
newbiefan:
you can try the script from here:
http://www.wl500g.info/showpost.php?p=134183&postcount=37
it is further development of the pre-shutdown script

Take into account:
1) you may have something in cron which restarts processes (that is where I had problem which was not able to find for a long time), if so --- kill cron before anything.
2) kill everything which is started from pre-* and post-* files outside of rc.unslung explicitly
3) to have an effect from 'rc.unslung stop' some of the startup files should be rewritten, because some of them intended to perform only start
4) if you reboot or unmount from cmd-line you should login by user which uses /bin/sh as shell (and not /opt/bin/bash or so)

Finally, there should be no difference between oleg's and lly's firmwares in this respect. So, pay maximum attention to the lsof utility which actually can tell you which files are open by which application.

newbiefan
13-03-2009, 22:42
@ al37919
thanks for pointing me to a better script.......
Have taken care with ps axf to kill everything, even smbd, nmbd, vsftpd (from fw), just to avoid that any pointer points to /opt/var/log via syslogd even after a killall syslogd (that was my guess).
After long trials, I gaved up.......because I had no explanation, why fdisk has not called ioctl to re-read partition table, the only way to umount was the lazy one: umount -l /opt. When lazy unmounted, ioctl was called from fdisk.
Maybe, my install-script is the guilty guy........

Ok, have not installed yet the better shutdown script, because it should work the regular way. (Many thanks, I'll use the script soon!)

Well, then I've done a reset and installed fw again, guess what:
IT WORKS - hardly believable, but true.

Tomorrow or sunday, I'll give it a try to compile fw r160 in a friboli-linux (vmware) environment which I use to compile freetz. If successful, I'll report and write a short howto in engl. and german.

Many thanks again

ctr99
16-03-2009, 09:52
Hi,

I have a quick question about the new firmware.

Do you know how I could get the router to log all WPA association attempts, so that I have a definitive record of which MAC addresses were associated at any given time?

Thanks,

Chris.

newbiefan
28-03-2009, 20:30
@crt99

should work:


wl assoclist

ctr99
30-03-2009, 15:42
@newbiefan

Thanks for the reply.

"wl assoclist" does indeed show the MAC addresses of the currently associated wireless clients.

I had hoped to get logging of connection attempts to syslog, like happens for DHCP requests already?

Do you know whether that is possible?

If not, is there another command to show FAILED connection attempts?

Thanks,

C.

wopper
01-04-2009, 19:32
Hi,

anyone else have the problem that WLAN stops after 2 a 3 days on a WL-500W on release 119.

If it occurs again i will collect some system logging if wired connection still works.

wpte
02-04-2009, 11:30
Serious security issue...
All my ports are open!
I actually had people requesting a DHCP IP adress from the internet!:eek:
Also people trying to access my upnp service, samba shares, mysql and many other thigs!

This is what I have
I tried r191 and r211

The firewall in the webadmin is enabled (without the brute force prevention), I have a script from tamadite that prevents hackers from logging in (attatched). -> all my ports are open

The firewall in the webadmin is DISABLED, I have a script from tamadite that prevents hackers from logging in (attatched). -> all my ports are open

The firewall in the webadmin is enabled (without the brute force prevention), I have my old iptables script for simple portforwarding. -> all my ports are open

The firewall in the webadmin is enabled with brute force prevention, My old iptables rules (wich are not executed!) -> only FTP and SSH are open...

The firewall in the webadmin is enabled with brute force prevention, the script from tamadite is running -> only ftp and ssh are open...


seriously... what is going on!:confused:
in revision 161 I believe it was, nothing was wrong, and now suddenly I've a serious leak...

lly
02-04-2009, 12:04
Serious security issue...
All my ports are open!
I actually had people requesting a DHCP IP adress from the internet!:eek:
Also people trying to access my upnp service, samba shares, mysql and many other thigs!
Can't reproduce situation on my home gateway router (it have a real IP), please describe how you discover this exactly. External scanner? What else?

btw. DHCP, by default, can assign only LAN addresses.

al37919
02-04-2009, 12:22
wpte:
do the following --- disable your post-firewall, enable firewall in web, and check if the problem persists. If yes, post here the output of iptables-save command

wpte
02-04-2009, 12:57
Can't reproduce situation on my home gateway router (it have a real IP), please describe how you discover this exactly. External scanner? What else?

btw. DHCP, by default, can assign only LAN addresses.

I used an external scanner, also a portscan directly on the wan port of the router.

I discovered this because I had hughe cpu usages on various services like upnp, samba, webcam server etc.
Also the dhcp leases came from outside my network, leasing a local network IP... the mac adress was a false one, but I had like 30 false leases:confused:
(my wireless is set to wpa2 and a strong password, so that can't be the issue)


wpte:
do the following --- disable your post-firewall, enable firewall in web, and check if the problem persists. If yes, post here the output of iptables-save command

I did that and nothing comes thru..
I've actually been trying to get my firewall running properly for over the last 2 hours.
Now I've made it, that my firewall in the web is running with brute-force prevention enabled and a simple iptables script, by cutting the original one I had:

#!/bin/sh
# This we know...
WANIF=eth1
LANIP=192.168.1.10

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

# Standart open ports
iptables -A INPUT -p tcp --dport 3690 -j ACCEPT
iptables -A INPUT -p udp --dport 3690 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT

# Torrent client rules
iptables -A INPUT -p tcp --dport 51413 -j ACCEPT
iptables -A INPUT -p udp --dport 51413 -j ACCEPT
iptables -I INPUT 1 -p tcp -i "$1" --syn --dport 51777:51780 -j ACCEPT
iptables -I INPUT 1 -p udp -i "$1" --dport 6881 -j ACCEPT

#block bad ip-adresses
iptables -I INPUT -s 91.121.111.28 -j DROP
iptables -I INPUT -s 91.121.84.162 -j DROP
iptables -I INPUT -s 91.121.108.28 -j DROP
iptables -I INPUT -s 91.121.111.27 -j DROP
iptables -I INPUT -s 91.121.108.81 -j DROP
iptables -I INPUT -s 91.121.108.73 -j DROP
iptables -I INPUT -s 91.121.108.87 -j DROP
iptables -I INPUT -s 91.121.108.82 -j DROP
iptables -I INPUT -s 91.121.108.81 -j DROP
iptables -I INPUT -s 91.121.110.118 -j DROP
iptables -I INPUT -s 91.121.108.87 -j DROP

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

I acutally have no idea why it suddenly works now, or why tamadite's script failed for some reason...

Also my FTP and SSH ports are closed now I believe. Do I need to port-forward these first and then apply the brute-force prevention or something?

Thanks for the quick responses, for some reason it seems to have something to do with the firmware in my eyes.

al37919
02-04-2009, 13:35
My guess: post-firewall is executed until the first error. You remove DROPALL rule then add something, then restore DROPALL. It means that in case of the break during execution your firewall is in the state ALLOWALL. I'd suggest to issue iptables -P INPUT DROP close to the beginning of the file instead of the last DROPALL line. And of course debug your post-firewall by ether manual execution (while providinge required parameters), or add 'logger ...' commands to check untill which point you really reach on execution

lly
02-04-2009, 15:51
I guess that al37919 assumption is right, since there was no security/iptables changes in firmware in r162-r211. But busybox is upgraded and it stability not so good :(

wpte
04-04-2009, 02:02
well... I had a whole day of testing stuff now.
it seems it hasn't anything to do with the firmware (wohoo:D)
it actually has to do something with the last few lines of the iptables:

iptables -A INPUT -p tcp -m tcp -j LOG --log-prefix "TARPIT " --log-tcp-sequence --log-tcp-options --log-ip-options
iptables -A INPUT -p tcp -m tcp -j TARPIT

not sure, but after these are applied, all ports are open, I guess I'm going to PM tamadite about it.
Removing the lines don't hurt anyway, because I have now the portscan prevention from tamadite in the script, and it catches the portscans right and put them in the BANDIT file, next to the web firewall generated BRUTE file:D
it's not blocking anything now tho... but I do get some messages in my log about scanners...

I also tested stability and speed a bit. I can't notice any stability problems so far... everything runs smoothly.
I however did noticed a bit of a speed-drop with samba2 (ipkg package), it can be the system since on r191 (I think) I had speeds from 4 till 5mb/s, and now with r121 I get about 3,5mb/s.
I did apply the overclock again, because without it I only got about 2,4mb/s.

I'll try to keep it running a couple of days, and wait for a crash (that will probably never happen).;)

lly
04-04-2009, 14:48
it seems it hasn't anything to do with the firmware (wohoo:D)
sounds good :)

btw., TARPIT module not loaded by default, so if you want to use it, you have to issue "insmod ipt_TARPIT.o" somewhere (in post-boot for example).

wpte
04-04-2009, 14:54
sounds good :)

btw., TARPIT module not loaded by default, so if you want to use it, you have to issue "insmod ipt_TARPIT.o" somewhere (in post-boot for example).

Yeh I do that in the beginning of post-firewall:)

lly
04-04-2009, 15:41
Yeh I do that in the beginning of post-firewall:)
Sorry, forgot to take a look to attached post-firewall.txt. IMHO, better to load modules in post-boot, since post-firewall may be called many times due to IP changes etc.

wpte
04-04-2009, 22:39
Sorry, forgot to take a look to attached post-firewall.txt. IMHO, better to load modules in post-boot, since post-firewall may be called many times due to IP changes etc.

k will do that;)

I found these messages a few times in the log btw:

Apr 4 19:39:37 kernel: Warning: DQ5 raised while erase operation was in progress, but erase completed OK
Apr 4 19:41:25 dnsmasq[51]: DHCPREQUEST(br0) ****
Apr 4 19:41:25 dnsmasq[51]: DHCPACK(br0) ****
Apr 4 19:47:34 ntp client: Synchronizing time with time.nist.gov ...
Apr 4 19:54:44 kernel: Warning: DQ5 raised while erase operation was in progress

After a bit of googeling I found out this is a bug?

lly
05-04-2009, 09:33
kernel: Warning: DQ5 raised while erase operation was in progress, but erase completed OK

After a bit of googeling I found out this is a bug?
It is "induced" bug. Unfortunately, I can't reproduce it myself.

wpte
10-04-2009, 22:33
Got another one:

Apr 10 20:52:01 kernel: __alloc_pages: 0-order allocation failed (gfp=0x20/0)

I had about 100 of these errors (all the same) within a single second:p
and nothing I can see in the log that started it... the last few messages where about DHCP leases.

btw... do I need to post up errors that possibly concern the firmware here?
just wondering, don't want to spam you guys;)

lly
11-04-2009, 08:22
wpte:
It means that memory was ceased. At all... You can play with tmps limits if /tmp if full, or watch which process eats memory.

About errors - if you suspect that it is firmware bug, of course, yes! I hope, you will never post messages like:
It is a critical bug! Repair it immediately!
[admin@WL-0018F398D447 root]$ wine
-sh: wine: not found :D

wpte
11-04-2009, 16:22
wpte:
It means that memory was ceased. At all... You can play with tmps limits if /tmp if full, or watch which process eats memory.

About errors - if you suspect that it is firmware bug, of course, yes! I hope, you will never post messages like: :D

So you mean that the flash memory became full?
like in a way of an exploding log file by example?

haha, no I won't post those things up:D:p
OMG NO WINDOWZE ON MY ROUTER!:)

sebw
20-04-2009, 14:02
It appears that the patch mentioned here http://home.in.tum.de/~pustka/WL-500g_as_wireless_soundcard.html, which was added by Oleg in 1.9.2.7-7b, has been omitted.

Please could it be added to the new firmware along with the same treatment for another Creative based USB sound card (the Toshiba Mediacenter) which has code 041e:3048 and suffers from being muted by default.

Keep up the good work :)

lly
20-04-2009, 15:31
It appears that the patch mentioned here http://home.in.tum.de/~pustka/WL-500g_as_wireless_soundcard.html, which was added by Oleg in 1.9.2.7-7b, has been omitted.
First of all, we base on newer kernel, which already contains most of this patch, except mute control.
Second, in 2.6 kernel I found totally different workaround for Audigy 2 NX - see snd_usb_audigy2nx_boot_quirk() function.

Since I don't own this card - can you answer which way is right? Is patch from your link is enough?


Please could it be added to the new firmware along with the same treatment for another Creative based USB sound card (the Toshiba Mediacenter) which has code 041e:3048 and suffers from being muted by default.
If you means unmute patch, yes. But, answer to my first question first, please.

sebw
21-04-2009, 10:15
lly

Thanks very much for you reply.

I have downloaded "linux-2.4.37.tar.bz2" and searched for the snd_usb_audigy2nx_boot_quirk() function without success. I have also looked through the various patches in http://code.google.com/p/wl500g/source/browse/. Where can I find the function?

The only change I made to the audio.o module to fix my muting problem, in Oleg's 1.9.2.7-10 F/W, was to change the 0x3020 reference to 0x3048 and force the USB port to 1.0 by putting
rmmod ehci-hcd in my post-mount. I was hoping that I might be able to avoid this second step by using your newer firmware
* kernel 2.4.37.1
o fix usbaudio driver work via USB 2.0 hub In case it is of interest, the product I am using is a Toshiba Multimedia Center: http://www.toshibadirect.com/td/b2c/toshibadirect.to?page=multimediacenter

lly
21-04-2009, 10:50
I have downloaded "linux-2.4.37.tar.bz2" and searched for the snd_usb_audigy2nx_boot_quirk() function without success.
This function present in 2.6 kernel branch only! I look at 2.6.27 sound/usb/usbaudio.c. Since, we have to backport much of code from current kernel branch and I'm not familiar with Audigy 2NX, I asked you about function above.


The only change I made to the audio.o module to fix my muting problem, in Oleg's 1.9.2.7-10 F/W, was to change the 0x3020 reference to 0x3048 and force the USB port to 1.0 by putting
rmmod ehci-hcd in my post-mount. I was hoping that I might be able to avoid this second step by using your newer firmware
Hope yes, but I can't exclude some other not realized features in our old kernel...

P.S. Can you build firmware from SVN yourself?

sebw
21-04-2009, 14:37
P.S. Can you build firmware from SVN yourself?I am a bit of a noob, but I shall try to follow the "Building of the custom firmware" instructions tonight on a Ubuntu machine.

In the morning:
I appear to have successfully created: WL500gx-1.9.2.7-d-r255.trx (3,649,536 bytes):)

Lesiuk
21-04-2009, 20:03
lly:

Is it posible to use on this fw bluetooth with pan(http://en.wikipedia.org/wiki/Personal_area_network) ?

I want to share internet connection to my bluetooth phone (sony ericsson).

lly
22-04-2009, 08:46
Is it posible to use on this fw bluetooth with pan(http://en.wikipedia.org/wiki/Personal_area_network) ?
Strange question :confused: Bluetooth modules are present, bluez already in optware...
Nobody wrote step-by-step guide? Sorry, I know this topic only in russian Bluetooth wl500gP (http://wl500g.info/showthread.php?t=10818)

sebw
22-04-2009, 13:52
Hi lly

Many thanks for including my sound card (041e:3048) in the r256 unmute patch.
I shall try it out in the next day or two.

Lesiuk
23-04-2009, 17:18
Strange question :confused: Bluetooth modules are present, bluez already in optware...
Nobody wrote step-by-step guide? Sorry, I know this topic only in russian Bluetooth wl500gP (http://wl500g.info/showthread.php?t=10818)

I do not know Russian language but it looks like somebody did it. Nice.

I will try it.

Thanks.

theMIROn
23-04-2009, 21:34
I do not know Russian language but it looks like somebody did it. Nice.
I will try it.Btw, you can try http://transtale.google.com to read it from russian to your native

sebw
24-04-2009, 11:09
Hi lly

Many thanks for including my sound card (041e:3048) in the r256 unmute patch.
I shall try it out in the next day or two.Just to confirm that I now have my sound card running unmuted across USB 2.0 using 1.9.2.7-d-r256 on my WL500gx.

Many thanks.

wpte
24-04-2009, 12:15
hey lly

would it be possible to set the default regulatory mode in the wireless advanced tab (for wl-500w routers) to 802.11h?
since it's something all the intel cards use and most other wireless cards to get a faster speed than 54mbit.

802.11h is also newer plus it's used in draft-N 2.0 (with the 5GHz band):

http://en.wikipedia.org/wiki/IEEE_802.11h
http://en.wikipedia.org/wiki/IEEE_802.11d

to set it to H I think most people will stick with oleg because they won't notice any difference with original firmware on wireless speeds (since most of them don't look to advanced settings).

thanks:p

lly
24-04-2009, 12:43
would it be possible to set the default regulatory mode in the wireless advanced tab (for wl-500w routers) to 802.11h?
we will try to do that.

sebw
24-04-2009, 13:31
I am having trouble using my webcam which worked under 1.9.2.7-10 F/W.
I am using Palantir.
I have modprobed the pwc and pwcx modules but get the following:
dmesg output...

Linux video capture interface: v1.00
pwc Philips webcam module version 9.0.2 loaded.
pwc Supports Philips PCA645/646, PCVC675/680/690, PCVC720[40]/730/740/750 & PCVC830/840.
pwc Also supports the Askey VC010, various Logitech Quickcams, Samsung MPC-C10 and MPC-C30,
pwc the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite VCS-UC300 and VCS-UM100.
usb.c: registered new driver Philips webcam
pwc Logitech QuickCam 4000 Pro USB webcam detected.
pwc Registered as /dev/video0.
pwc Philips webcam decompressor routines version 9.0-BETA-2
pwc Supports all cameras supported by the main module (pwc).
pwc Adding decompressor for model 645.
pwc Adding decompressor for model 646.
pwc Adding decompressor for model 675.
pwc Adding decompressor for model 680.
pwc Adding decompressor for model 690.
pwc Adding decompressor for model 720.
pwc Adding decompressor for model 730.
pwc Adding decompressor for model 740.
pwc Adding decompressor for model 750.

Palantir ouput....

$ Apr 24 11:47:31 [config] Ignoring deprecated `Audio' directive at line 67
Apr 24 11:47:31 [main] -- palantir 2.7 starting --
Apr 24 11:47:31 [main] Definitions for 1 devices found
Apr 24 11:47:31 [main] No serial port specified
Apr 24 11:47:31 [main] No named pipe specified
Apr 24 11:47:31 [video] Card: Logitech QuickCam Pro 4000 (/dev/v4l/video0)
Apr 24 11:47:31 [video] Capabilities: 1 (capture )
Apr 24 11:47:31 [video] Size: (160x120)-(640x480)
Apr 24 11:47:31 [video] Channel no. 0 ('Webcam') tuners: 0, flags: 0, type: 2, norm: 10937
Apr 24 11:47:31 [video] Unmuted audio input 0
Apr 24 11:47:31 [video] Audio input 0 does not support volume control
Apr 24 11:47:31 [video] RGB palette unavailable.
Apr 24 11:47:31 [video] trying YUV420P...
Apr 24 11:47:31 [video] brightness: 32768 hue: 65535 colour: 32768
Apr 24 11:47:31 [video] contrast: 32768 whiteness: 32768
Apr 24 11:47:31 [video] depth: (24) palette: 15
Apr 24 11:47:31 [video] Actual capture box is 320x240 (requested 320x240)
Apr 24 11:47:31 [video] Camera has no pan/tilt control
Apr 24 11:47:31 [video] Frame rate set to 15 f/s
Apr 24 11:47:31 [video] Video buffer size: 921600, frames: 2
Apr 24 11:47:31 [video] Allocating yuv->rgb buffer (230400 bytes)
Apr 24 11:47:31 [main] Starting device thread
Apr 24 11:47:31 [audio] Setting up audio device /dev/sound/dsp1
Apr 24 11:47:31 [audio] Audio sample rate set to 8000 Hz
Apr 24 11:47:31 [audio] Audio input buffering: 4 fragments of 256 bytes each
Apr 24 11:47:31 [main] Listening on 0.0.0.0 port 3000
Apr 24 11:47:31 [main] Listening on 0.0.0.0 port 3001
Apr 24 11:47:31 [main] Control queue timeout set to 30 s

Palantir output following client connection....

Apr 24 12:09:32 [main] 192.168.0.1 - #0: connection accepted, spawning server.
Apr 24 12:09:32 [main] 1 client(s) connected
Apr 24 12:09:32 [main] Capture thread started
Apr 24 12:09:32 [http] 192.168.0.1 - video server started
Apr 24 12:09:32 [http] 192.168.0.1 - requested URL `/'
Apr 24 12:09:32 [http] 192.168.0.1 - User-Agent: pclient/ack 2.4 [1] (Win32)
Apr 24 12:09:32 [http] 192.168.0.1 - streaming mode: continuous, closed loop

back to dmesg output....

pwc Failed to set LED on/off time.
pwc set_video_mode(176x144 @ 10, palette 15).
pwc decode_size = 1.
pwc Using alternate setting 1.
hcd.c: use explicit queuing not urb->next
pwc isoc_init() submit_urb 0 failed with error -22
hcd.c: use explicit queuing not urb->next
pwc isoc_init() submit_urb 1 failed with error -22
pwc set_video_mode(320x240 @ 15, palette 15).
pwc decode_size = 3.
pwc Using alternate setting 4.
hcd.c: use explicit queuing not urb->next
pwc isoc_init() submit_urb 0 failed with error -22
hcd.c: use explicit queuing not urb->next
pwc isoc_init() submit_urb 1 failed with error -22The client shows no picture and top shows no CPU load for Palantir.
I presume the problem is to do with the error -22 which occurs in the pwc-if.c module.
Any suggestions or help would be appreciated.

lly
24-04-2009, 13:57
I am having trouble using my webcam which worked under 1.9.2.7-10 F/W.
...
I presume the problem is to do with the error -22 which occurs in the pwc-if.c module.
Any suggestions or help would be appreciated.
This is due to updated kernel code.

Updated:
I was wrong - pwc 10.0.12-rc1 isn't compatible with 2.4 kernels :( [ At least, urb->next don't used in it. ]

Problems similar to this, present in most old webcam drivers :( For example - https://dev.openwrt.org/ticket/532
We will try to fix this issue, but I can't you promise exact date when it happens.

sebw
24-04-2009, 16:37
Should I enter this pwc issue here: http://code.google.com/p/wl500g/issues/list

lly
24-04-2009, 20:24
Should I enter this pwc issue here: http://code.google.com/p/wl500g/issues/list
As you wish. People from russian forum discover this bug a few weeks ago. I didn't put this link here since most of people in this thread don't understand russian language.

Unfortunately, webcam developers switched to 2.6 trunk several years ago, so we have to backport much things from new kernels, and this job is not so easy...

theMIROn
24-04-2009, 20:50
this job is not so easy...confirmed. only our free time, desire, ability, volunteers and/or donations are required ;)

wpte
24-04-2009, 22:32
Unfortunately, webcam developers switched to 2.6 trunk several years ago, so we have to backport much things from new kernels, and this job is not so easy...

Why is it that we stay with kernel 2.4?
when I read some openWRT stuff I found out the only thing is the wireless driver is still in kernel 2.4 and not 2.6

isn't it easier to port the wireless driver to 2.6 then?

I guess there are also other things that are not compatible:o

theMIROn
24-04-2009, 23:46
isn't it easier to port the wireless driver to 2.6 thenisn't. broadcom wireless driver is closed sourced and shipped in binnaries only for 2.4 kernels yet

wpte
25-04-2009, 02:31
isn't. broadcom wireless driver is closed sourced and shipped in binnaries only for 2.4 kernels yet

I hate closed software for linux:(
they probably didn't update it ever since they released it as well I guess...

lets see if they allow decompiling in the ual:D
or... maybe send a letter:p

I'm on this:cool:

lly
25-04-2009, 07:29
lets see if they allow decompiling in the ual:D
or... maybe send a letter:p
As I know, you are not the first, who want ask Broadcom about wl driver sources (OpenWRT team, Oleg). Unfortunately, result is negative :mad:

theMIROn
25-04-2009, 08:50
At the other hand, there're good news upcoming 'bout 2.6 kernel and broadcom native wl driver
http://wl500g.info/showpost.php?p=136257&postcount=789

lly
25-04-2009, 09:03
At the other hand, there're good news upcoming 'bout 2.6 kernel and broadcom native wl driver
http://wl500g.info/showpost.php?p=136257&postcount=789
New drivers probably can omit support for old cards :(

theMIROn
25-04-2009, 09:20
New drivers probably can omit support for old cards :(Yep, it's possible... We'll see, holding our fingers crossed.

teddy_bear
25-04-2009, 21:05
would it be possible to set the default regulatory mode in the wireless advanced tab (for wl-500w routers) to 802.11h?
AFAIK 802.11h disables connectivity for Intel 2200BG and similar wireless cards (by setting the spectrum management flag to ON), so it's probably a good idea to keep regulatory mode "off" by default.

Alternatively wlconf can be patched to keep spectrum management off even if regulatory is set to "h" - but I don't know if this change may have any other implications...

wpte
25-04-2009, 21:39
AFAIK 802.11h disables connectivity for Intel 2200BG and similar wireless cards (by setting the spectrum management flag to ON), so it's probably a good idea to keep regulatory mode "off" by default.

Alternatively wlconf can be patched to keep spectrum management off even if regulatory is set to "h" - but I don't know if this change may have any other implications...

well yes, spectrum management is one of the key good features of 802.11h... less intefierence

but by default the regulatory mode is set to 802.11d, wich isn't that great imo
I didn't have any problems with B/G cards with 802.11h tho:confused:

teddy_bear
25-04-2009, 23:48
I didn't have any problems with B/G cards with 802.11h tho:confused:
Not sure... I don't have any Intel 2200BG card to test it myself, so this info is mostly based on this OpenWRT ticket (https://dev.openwrt.org/ticket/1075), and this Tomato thread (http://www.linksysinfo.org/forums/showthread.php?t=60509). Also, Oleg recommended to set mode to "d" when he releazed 1.9.2.7-8 (http://wl500g.info/showthread.php?p=88216) - specifically to "solve some problems with Intel WiFi cards".

But what I know for a fact, is that the Atheros wl card in my notebook works better when regulatory mode is "off" - otherwise it keeps reconnecting all the time...

I'd vote for "off" as a default value, since according to the above and what I could google out, it causes less problems with various wifi clients than "d" or "h" modes. Anyway - not a big deal, the option is still available and can be set to "h" if that works better for you :).

theMIROn
26-04-2009, 13:05
I'd vote for "off" as a default value+1, completely agree

wpte
30-04-2009, 20:52
a bit offtopic, but:
I completed my own firmware compiles successfully thanks to the wiki on googlecode:D

Now can I use "export PATH=$PATH:/opt/brcm/hndtools-mipsel-uclibc/bin" for other projects to cross compile?

since I'm trying to get the master make file to work... but the openwrt svn is offline so it wont complete:(

lly
30-04-2009, 21:03
Now can I use "export PATH=$PATH:/opt/brcm/hndtools-mipsel-uclibc/bin" for other projects to cross compile?
Yes, you may. But toolchain from wl500g.googlecode.com is incompatible with optware since it uses different uClibc (0.9.29 vs. 0.9.28.2).

wpte
30-04-2009, 22:36
Yes, you may. But toolchain from wl500g.googlecode.com is incompatible with optware since it uses different uClibc (0.9.29 vs. 0.9.28.2).

but it uses the uclibc in oleg firmware right?
or won't I be able to run it on the router?:confused:

btw, I get as build system when I do a configure: i686 architecture... that's not right I guess? :P

lly
01-05-2009, 08:33
but it uses the uclibc in oleg firmware right?
or won't I be able to run it on the router?:confused:

Old "Classic" ;) Oleg firmwares uses uClibc 0.9.19, we upgrade it to 0.9.29. Some old binaries can run new libc, but mostly not. optware seeks for /opt/lib/libc.so.0 by default, this allows usage of two versions of uClibc simultaneously.


btw, I get as build system when I do a configure: i686 architecture... that's not right I guess? :P
Typically, you should issue:

./configure --host=mipsel-linux
for cross-compilation.

wpte
01-05-2009, 13:59
thanks lly, works great:D
way better than the optware cross compiler imo:p

wpte
03-05-2009, 13:03
Hey, I found out this morning that r273 has a non working webcam:p

I have a logitech quickcam 4000
and when connecting it acts normal:

May 3 00:13:31 kernel: hub.c: new USB device 01:03.0-2, assigned address 2
May 3 00:13:31 kernel: usb.c: USB device 2 (vend/prod 0x46d/0x8b2) is not claimed by any active driver.
May 3 00:13:31 USB webcam: attached
May 3 00:14:14 kernel: pwc Philips webcam module version 9.0.2 loaded.
May 3 00:14:14 kernel: pwc Supports Philips PCA645/646, PCVC675/680/690, PCVC720[40]/730/740/750 & PCVC830/840.
May 3 00:14:14 kernel: pwc Also supports the Askey VC010, various Logitech Quickcams, Samsung MPC-C10 and MPC-C30,
May 3 00:14:14 kernel: pwc the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite VCS-UC300 and VCS-UM100.
May 3 00:14:14 kernel: pwc Default image size set to vga [640x480].
May 3 00:14:14 kernel: usb.c: registered new driver Philips webcam
May 3 00:14:14 kernel: pwc Logitech QuickCam 4000 Pro USB webcam detected.
May 3 00:14:14 kernel: pwc Registered as /dev/video0.
May 3 00:14:14 kernel: pwc Philips webcam decompressor routines version 9.0-BETA-2
May 3 00:14:14 kernel: pwc Supports all cameras supported by the main module (pwc).
May 3 00:14:15 kernel: pwc Failed to set LED on/off time.

like any other time...

because in the changelog there is something about a fix for webcams on usb-hubs, I tought of trying to connect it to the usb-hub wich resulted in this:

May 3 10:49:48 kernel: hub.c: new USB device 01:03.2-1.4, assigned address 5
May 3 10:49:48 kernel: usb.c: unable to get device descriptor (error=-32)
May 3 10:49:48 kernel: hub.c: new USB device 01:03.2-1.4, assigned address 6
May 3 10:49:48 kernel: usb.c: unable to get descriptor
May 3 10:49:48 kernel: usb.c: unable to get device 6 configuration (error=-32)

I have a full 2.0 usb hub and all my hdd work on it:D

well, the only thing I can see is a grey image with the time displayed on right bottom...
kinda weird, because rcamdmain and rcamd are started:confused:

purpleray
08-05-2009, 04:17
lly firmware makes me interested in studing wl-500gx again!!;)

After one day i installed r273 firmwareon wl-500gx, it shows below error message, and it seemed to occure in Oleg firmware as well. any idea to resolve it, please. Or it's a known bug in both firmware of oleg and lly?:confused:

With making a google for possible rooted cause, it looks like one non-proper interface configuration in lo. So I try to re-config lo by "ifup lo", there seems no this commend by error message shown "-sh: ifup: not found" :confused:

Thanks a lot!

smbd[296]: [2009/05/08 02:24:01, 0] lib/util_sock.c:open_socket_in(826)
smbd[296]: Get_Hostbyname: Unknown host wl-500gx@RR
smbd[296]: [2009/05/08 02:24:01, 0] smbd/oplock.c:open_oplock_ipc(93)
smbd[296]: open_oplock_ipc: Failed to get local UDP socket for address 100007f. Error was No such file or directory
smbd[297]: [2009/05/08 02:24:01, 0] lib/util_sock.c:open_socket_in(826)
smbd[297]: Get_Hostbyname: Unknown host wl-500gx@RR
smbd[297]: [2009/05/08 02:24:01, 0] smbd/oplock.c:open_oplock_ipc(93)
smbd[297]: open_oplock_ipc: Failed to get local UDP socket for address 100007f. Error was No such file or directory
smbd[298]: [2009/05/08 02:24:02, 0] lib/util_sock.c:open_socket_in(826)
smbd[298]: Get_Hostbyname: Unknown host wl-500gx@RR
smbd[298]: [2009/05/08 02:24:02, 0] smbd/oplock.c:open_oplock_ipc(93)
smbd[298]: open_oplock_ipc: Failed to get local UDP socket for address 100007f. Error was No such file or directory

purpleray
08-05-2009, 11:50
i get he answer for no ifup, becasue there's no ifup in busybox of lly firmware. It currently defined functions:

[, [[, arping, ash, awk, basename, busybox_httpd, cat, chgrp, chmod, chown, chroot, cmp, cp, crond, crontab, cut, date, dd, df, dirname, dmesg, du, e2fsck, echo, env, ether-wake, expr, false, fdisk, free, fsck.ext2, fsck.ext3, fuser, grep, gunzip, gzip, head, hexdump, hostname, hwclock, ifconfig, insmod, ipcalc, kill, killall, klogd, ln, logger, login, ls, lsmod, md5sum, mkdir, mke2fs, mkfifo, mkfs.ext2, mkfs.ext3, mknod, mkswap, modprobe, more, mount, mv, netstat, nice, nohup, nslookup, od, passwd, pidof, ping, pivot_root, printf, ps, pwd, realpath, renice, rm, rmdir, rmmod, route, sed, seq, sh, sleep, sort, strings, stty, su, swapoff, swapon, sync, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top, touch, tr, traceroute, true, tty, udhcpc, umount, uname, uniq, uptime, usleep, uuencode, vconfig, vi, watch, wc, wget, yes, zcat



lly firmware makes me interested in studing wl-500gx again!!;)

After one day i installed r273 firmwareon wl-500gx, it shows below error message, and it seemed to occure in Oleg firmware as well. any idea to resolve it, please. Or it's a known bug in both firmware of oleg and lly?:confused:

With making a google for possible rooted cause, it looks like one non-proper interface configuration in lo. So I try to re-config lo by "ifup lo", there seems no this commend by error message shown "-sh: ifup: not found" :confused:

Thanks a lot!

smbd[296]: [2009/05/08 02:24:01, 0] lib/util_sock.c:open_socket_in(826)
smbd[296]: Get_Hostbyname: Unknown host wl-500gx@RR
smbd[296]: [2009/05/08 02:24:01, 0] smbd/oplock.c:open_oplock_ipc(93)
smbd[296]: open_oplock_ipc: Failed to get local UDP socket for address 100007f. Error was No such file or directory
smbd[297]: [2009/05/08 02:24:01, 0] lib/util_sock.c:open_socket_in(826)
smbd[297]: Get_Hostbyname: Unknown host wl-500gx@RR
smbd[297]: [2009/05/08 02:24:01, 0] smbd/oplock.c:open_oplock_ipc(93)
smbd[297]: open_oplock_ipc: Failed to get local UDP socket for address 100007f. Error was No such file or directory
smbd[298]: [2009/05/08 02:24:02, 0] lib/util_sock.c:open_socket_in(826)
smbd[298]: Get_Hostbyname: Unknown host wl-500gx@RR
smbd[298]: [2009/05/08 02:24:02, 0] smbd/oplock.c:open_oplock_ipc(93)
smbd[298]: open_oplock_ipc: Failed to get local UDP socket for address 100007f. Error was No such file or directory

lly
11-05-2009, 14:42
Hey, I found out this morning that r273 has a non working webcam:p
r264 patch was blind, since I haven't appropriate hardware :(
If your webcam don't work in r273 at all, seems to be uhci/ohci drivers requires urb->next, but ehci can't work with it :( This situation already resolved in 2.6 kernels, and I should to look into drivers code, but it may consume much time. As fast solution I can revert r264 patch only.

About
usb.c: unable to get device descriptor (error=-32) or -EPIPE error code - I can only suggest remote debugging, since this error never be observed myself since 232-usb-hub11.patch applied.
i.e. I build debug firmware - you runs it and send back to me debug messages. If it is acceptable for you - drop me private message.

sebw
11-05-2009, 16:25
I have my quickcam 4000 working well via USB 2.0 direct into my WL500gx with F/W r264.

I think wpte is having problem using the webcam via a hub, which is the known issue number ID 23:

http://code.google.com/p/wl500g/issues/detail?id=23&colspec=ID%20Type%20Status%20Priority%20Owner%20Su mmary%20Opened

Edit.
Just realised that I may not have updated my /opt/lib/modules/2.4.37 when I upgraded to r264.
I will need to check and confirm this tonight:o

lly
11-05-2009, 16:59
I have my quickcam 4000 working well via USB 2.0 direct into my WL500gx with F/W r264.

When you plug webcam direct in router - it communicates via UHCI driver. When you connect it via USB 2.0 hub - then EHCI driver communicates with hub+device and perform all transfers.

Anyway, thank you for positive report.


I think wpte is having problem using the webcam via a hub, which is the known issue number ID 23:
No, this issue refers to -ENOSPC (-28) error, wpte's code is -EPIPE (-32) - i.e. stalled device. Possible, timings/timeouts issue.

AshDyk
11-05-2009, 19:13
I'm new here, and also quite new to this router. I succesfully installed Oleg's firmware (version 1.9.2.7-10).

Printing works perfect, but I can't get filesharing working. I installed dropbear, can make a connection, but when I try fdisk /dev/discs/disc0/disc (got it from the first start tutorial), it says it can't open it.

Do I need some special hardware for my harddisk, I currently have a "Wintech", with a Jimicron chipset (typenumber EX-MOB-45).

Can somebody help me out? :)

sebw
11-05-2009, 22:30
I have my quickcam 4000 working well via USB 2.0 direct into my WL500gx with F/W r264.I must confess that I have mislead you lly. I have just recompiled r264 and made sure that I copied the r264 modules to "/opt/lib/modules". Using modprobe to install pwc and pwcx I had a non-working webcam. I then compiled r263 and copied the modules to "/opt/lib/modules" and the webcam worked once again.:o

lly
12-05-2009, 13:07
I must confess that I have mislead you lly.
try r282 - it should fix problem.

sebw
12-05-2009, 17:00
I have installed r282 and transferred lib/modules and the webcam is good.
Thanks lly:)

mimiko
12-05-2009, 20:34
Hello
Can you tell me please where I can download the r282?
Thank you

theMIROn
12-05-2009, 21:07
Hello
Can you tell me please where I can download the r282?
Thank you
The only way yet is to build it by yourself (http://code.google.com/p/wl500g/wiki/CompilingCustomFirmware_en)

nexstar
23-05-2009, 07:18
ipkg error

ipkg.sh update
mkdir: cannot create directory '//opt/tmp/': Read-only file system





Can you please add an option to mask/unmask password fields

akacosti
01-06-2009, 21:04
show output of:

dmesg | grep printer
enter command either by telnet/ssh or here http://192.168.1.1/Main_AdmStatus_Content.asp

and also output of

ps

is it usb1 printer?

for the command
ps
PID USER VSZ STAT COMMAND
1 admin 2472 S /sbin/init
2 admin 0 SW [keventd]
3 admin 0 RWN [ksoftirqd_CPU0]
4 admin 0 SW [kswapd]
5 admin 0 SW [bdflush]
6 admin 0 SW [kupdated]
7 admin 0 SW [mtdblockd]
54 admin 2092 S telnetd
59 admin 2092 S httpd vlan1
60 admin 2092 S syslogd -m 0 -O /tmp/syslog.log -S -l 7
62 admin 2092 S klogd
65 admin 1836 S nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
69 nobody 1184 S dnsmasq
70 admin 0 SW [khubd]
77 admin 1140 S lpd
79 admin 1028 S p9100d -f /dev/usb/lp0 0
82 admin 2464 S waveservermain
84 admin 2464 S rcamdmain
97 admin 1652 S infosvr br0
98 admin 2468 S watchdog
100 admin 2028 S upnp -D -L br0 -W vlan1
101 admin 2464 S ntp
143 admin 2096 S sh -c ps > /tmp/syscmd.log 2>&1
144 admin 2092 R ps

and for
dmesg | grep printer
printer.c: v0.13: USB Printer Device Class driver
can u help me with a discussion?10x in advance

zexe
08-06-2009, 12:01
hi,
I upgraded to WL500W-1.9.2.7-d-r308.trx and now transmission is not working and ipkg update/upgrade as well. Any help?

lly
08-06-2009, 14:44
hi,
I upgraded to WL500W-1.9.2.7-d-r308.trx and now transmission is not working and ipkg update/upgrade as well. Any help?
You (like most users) didn't provide necessary info:

From which firmware you upgraded
Logs of "broken" ipkg

I don't know about transmission, but ipkg operability confirmed by most customers.

poiu
09-06-2009, 21:08
I install r308 yesterday, everything work ok, ipkg too.
WL500GP.
I use rtorrent instead Transmission.

theMIROn
09-06-2009, 21:45
I install r308 yesterday, everything work ok, ipkg too.
WL500GP.
I use rtorrent instead Transmission.
thnx for the good report

cichy
10-06-2009, 13:19
Had some problems with r308 too, i.e. weak signal on radio, after switching back to older version all is fine.

For not working ipkg try to mount filesystem, use

mount -a
maybe this will help, had same problem.

lly
10-06-2009, 14:23
Had some problems with r308 too, i.e. weak signal on radio, after switching back to older version all is fine.
Your message has null informativity :(

First of all, you didn't tell which router model you own.
Second, wireless driver is Broadcom binary, i.e. we can't modify ourself anything!
Finally, "older" version is what ??!

greengreen
10-06-2009, 17:50
HI lly thanks for your work ;)
(I have wl-500gx and 520gU)
is any way to run cam Logitech QuickCam Pro for Notebooks with this firmware? About is need UVCdriver, is possible to run it in kernel 2.4?
thanks

lly
10-06-2009, 19:06
is any way to run cam Logitech QuickCam Pro for Notebooks with this firmware? About is need UVCdriver, is possible to run it in kernel 2.4?

UVCdriver - chances is very small, only if somebody do backport from 2.6 kernel. Task is huge, but possible.

check http://qce-ga.sourceforge.net/ if it support your webcam, this driver can be compiled for 2.4

greengreen
10-06-2009, 20:28
Thanks a lot it is unsupported webcam :(

wpte
10-06-2009, 22:23
Hey lly,

got the lastest firmware flashed today.

When I connect the webcam straight to the box (no hub)
Only the rcamdmain process starts, and /dev/video stays empty:

[root@wpte root]$ rcamd -p 7777 -s 4 -z MET-1METDST,M3.5.0/2,M10.5.0/3 -a 0 -t 0
-r 0 -f 640x480 -m 100 -c 100 &
[root@wpte root]$ Unable to open /dev/video: No such file or directory
I also replugged it to be sure.

Another random thing is that:

Jan 1 01:00:04 kernel: hub.c: USB hub found
Jan 1 01:00:04 kernel: hub.c: 4 ports detected
Jan 1 01:00:04 kernel: usb.c: registered new driver usblp

pops up while there isn't any hub connected:confused:
or I must have found wireless usb on the router:p



Now with usb hub:
Another no go, exactly the same problem as with a direct connection:(

I have the logs attached

lly
11-06-2009, 08:41
Hey lly,

got the lastest firmware flashed today.

When I connect the webcam straight to the box (no hub)
Only the rcamdmain process starts, and /dev/video stays empty:
Yes, I see real problem - webcam driver is not loaded

Jun 10 22:10:08 USB webcam: attached
Jun 10 22:10:12 kernel: hub.c: new USB device 01:03.0-1, assigned address 3
Jun 10 22:10:12 kernel: usb.c: USB device 3 (vend/prod 0x46d/0x8b2) is not claimed by any active driver.
Jun 10 22:10:12 USB webcam: removed

But I can investigate this problem only after my week vacation.


pops up while there isn't any hub connected:confused:
or I must have found wireless usb on the router:p
It is internal hub in router.

wpte
11-06-2009, 11:00
But I can investigate this problem only after my week vacation.


It is internal hub in router.

Have a good holiday:D

internal hub? I thought that there was a 4 port usb chip with only 2 ports attached...
since it's also saying it found 2 usb ports...:p

greengreen
13-06-2009, 08:37
Hi is possible compile vsftpd with ssl/tls support?
thanks a lot

wpte
13-06-2009, 21:06
Hi is possible compile vsftpd with ssl/tls support?
thanks a lot

I'm not sure if it's possible with dropbear, but you can connect to openssh with sftp.

it's easy, just connect with your username and password:)

lly
21-06-2009, 08:11
Hi is possible compile vsftpd with ssl/tls support?
thanks a lot
Only as external package, since it requires openssl library. Take a look into optware packages.

wpte
21-06-2009, 17:53
WOOHOO!
My webcam is working again, on usb hub AND direct connection!:D
great job lly;)
r381 for the win:cool:

EDIT:
Via usb hub is working when:
1. the webcam is plugged in directly on the router
2. removed
3. plugged in the usb hub

otherwise I get this:

Jan 1 01:00:07 kernel: hub.c: new USB device 01:03.2-1.4.1, assigned address 5
Jan 1 01:00:07 kernel: usb.c: unable to get device descriptor (error=-32)
Jan 1 01:00:07 kernel: hub.c: new USB device 01:03.2-1.4.1, assigned address 6
Jan 1 01:00:07 kernel: usb.c: unable to get descriptor
Jan 1 01:00:07 kernel: usb.c: unable to get device 6 configuration (error=-32)

kaffesump
23-06-2009, 05:25
Hello everyone, some questions and potential help to the project:

1. I'm a linux-noob and I do not know much more than that I can follow a How-To/Guide/Tut and understand what is happening (as long as there are explanations :D). I have a WL-520gU fresh from the store. I want to use it as a torrent-downloader to my external USB HDD and I want to be able to access the files (the easiest way with Samba probably). I originally used the latest of Olegs firmwares, and followed wengi's excellent How-To. However, it is not working as good as I would have hoped. Atm. I cannot reboot the router :eek:, transmission is working pretty good but working with transmission through it's webinterface is nearly impossible (due to being very slow). Anyway, do you recommend me to try to use the latest version of the firmware or should I stick with oleg's until you have a good release? Or do you have any tips on my problems?

2. From what I have understood of this discussion, I will have to compile the stuff myself which I can imagine will be a problem for me, even if I have a How-To. Is it possible to find a compiled version somewhere that fits my needs? Otherwise, any recommended version or should I just go with the latest?

3. If I use this firmware, would it still be possible to follow wengi's guide? (let me know if you need a url to it)

5. From what I have read here, you are some crazy l337 *nix ha><><0rz, and I am very greatful for all your work. However, you lack the knowledge of webprogramming, especially VBScript right? I feel that the least thing I can do to do "my share" for using all your awesome stuff you l337 *nix ha><><0rz (oh how long I've waited to use the l337 language in a discussion again :D) it I happen to know a little (probably enough as long as I do not need to deal with the *nix stuff). I have of course like everybody else, a very limited amount of time to help you out, but if you have some small, kind of critical and very useful stuff that should be done, let me know how I can contribute.

Again, thank you all l337 *nix ha><><0rz out there (especially Illy in this thread I assume) for your great work!

wpte
23-06-2009, 18:17
1. You can still use wengi's how-to on the beta firmware.
In fact, the only thing you need to do is: backup settings and flashfs, restore factory defaults, flash firmware, reconfigure the router and flash the flashfs file back. You'll be done quickly:)
Rebooting is a different problem... you should just type "reboot" in a console like putty.

2. No you don't need to compile it yourself, even tough it's not that hard. You can download the latests revision here: http://code.google.com/p/wl500g/
they may update a lot faster than the stable releases, so visit the site now and then;)

good answers?:p

sebw
25-06-2009, 10:48
Have started using 1.9.2.7-d-r381 on my WL500gx. I have updated the additional kernel modules to the same version but get the following problem when trying to load the audio modules.
[admin@Server root]$ modprobe audio
modprobe: Failed to load module audio: Operation not permitted.I have returned to
[admin@Server root]$ insmod soundcore
[admin@Server root]$ insmod audio
[admin@Server root]$and that works fine. I have the same problem with pwc and pwcx.
Is modprobe broken?

lly
25-06-2009, 11:04
Is modprobe broken?
This is expected behavior in all Oleg firmwares.

modprobe intended to use with modules in /opt/lib/modules/... - i.e. external modules, and requires modules.dep for proper work.

insmod search for modules in /lib/modules/... only.

maurer
25-06-2009, 13:18
after i run almost all Wengi how-to (at least the parts i needed) i enabled the ftp from web-gui.
I'm using WL500gx-1.9.2.7-d-r381.trx latest.
But the performance of the ftp were very poor - through ssh tunnel.
After i disabled the ftp from web-gui i could not see my usb harddisk.
What could be the cause?
Do I need to restore the defaults and run the how-to again?

thanks.

sebw
25-06-2009, 17:06
Thanks for your reply lly
modprobe intended to use with modules in /opt/lib/modules/... - i.e. external modules, and requires modules.dep for proper work.
I have /opt/lib/modules/2.4.37.2/modules.dep and all the modules. This used to work in earlier versions and 'modprobe nfs' still works OK. I can execute 'modprobe audio' after inserting using insmod and I do not get any errors.

Any ideas what may be doing wrong?

lly
26-06-2009, 08:42
I have /opt/lib/modules/2.4.37.2/modules.dep and all the modules. This used to work in earlier versions and 'modprobe nfs' still works OK. I can execute 'modprobe audio' after inserting using insmod and I do not get any errors.

Any ideas what may be doing wrong?
Will check it, possible bug in busybox.

Updated:
I confirm the problem, it appeared only if module has dependencies. Fixed in r388.

cichy
27-06-2009, 01:20
Hello,
I'm getting this messages all the time

svc: bad direction 1681013353, dropping request
What's wrong, where's my mistake. I'm using latest version of wl-500 firmware (WL500gp-1.9.2.7-d-r381)

lly
27-06-2009, 09:49
Hello,
I'm getting this messages all the time

svc: bad direction 1681013353, dropping request
What's wrong, where's my mistake. I'm using latest version of wl-500 firmware (WL500gp-1.9.2.7-d-r381)
I even don't know in which circumstances this happens on you router, how you achieve it, was this works on alternative firmwares, etc. So I can't help without such information.
Either you should explain problem in detail, or only somebody who use NFS/RPC exactly same as you can help.

P.S. NFS is not enabled by default.

kaffesump
27-06-2009, 18:46
1. Very good indeed! :D

2. Yes, you would think that "reboot" would work from Putty but the problem is when is it not :p I've tried "reboot", rebooting from the webinterface etc. but now I've reseted (by removing the electricity cord) and restored the whole shit. But I'll definitively download the latest compiled version and flash and re-do everything when I find the time =)

Thanks a lot for the answers! :cool:

PS. Love the smileys on this forum


1. You can still use wengi's how-to on the beta firmware.
In fact, the only thing you need to do is: backup settings and flashfs, restore factory defaults, flash firmware, reconfigure the router and flash the flashfs file back. You'll be done quickly:)
Rebooting is a different problem... you should just type "reboot" in a console like putty.

2. No you don't need to compile it yourself, even tough it's not that hard. You can download the latests revision here: http://code.google.com/p/wl500g/
they may update a lot faster than the stable releases, so visit the site now and then;)

good answers?:p

cichy
27-06-2009, 19:11
Regarding last issue i've posted here, well it's all gone there's no more such error. But now i've noticed something else, that wasn't there.

Jun 27 12:16:03 smbd[222]: [2009/06/27 12:16:03, 0] lib/util_sock.c:read_socket_data(477)
Jun 27 12:16:03 smbd[222]: read_socket_data: recv failure for 4. Error = No route to host

lly
27-06-2009, 19:22
Regarding last issue i've posted here, well it's all gone there's no more such error. But now i've noticed something else, that wasn't there.

Jun 27 12:16:03 smbd[222]: [2009/06/27 12:16:03, 0] lib/util_sock.c:read_socket_data(477)
Jun 27 12:16:03 smbd[222]: read_socket_data: recv failure for 4. Error = No route to host

"error" from your first post means that something send bad RPC request to NFS server on router, nothing more. I can't imagine what program on which host it can be.
"error" from your next post means either bad record in routing table or lost link to specific host. This is not a firmware bug too.

cichy
27-06-2009, 19:24
Glad to hear this, so i'll try to find whatever causes these errors.

P.S. Is there any thread about using NTFS-3G on oleg's firmware?

lly
27-06-2009, 20:15
P.S. Is there any thread about using NTFS-3G on oleg's firmware?
As I know, dedicated thread is absent, since NTFS-3G is not supported on stock kernels 2.4.20. Some volunteers from Russian thread perform tests of NTFS-3g on our beta firmware, and found it working, but transfer speed is ugly small ~1.5 Mb/s due to CPU limitation.

cichy
27-06-2009, 20:16
So i'll stay with ext3. Thanx lly

wpte
29-06-2009, 00:06
Just wondering, is it possible to turn on asynchronous io?
or get it compiled for olegs?

since I believe this means it's turned off?

cat /proc/slabinfo | grep kio
kiobuf 0 0 64 0 0 1

I guess it might optimize disk speeds a lot:)

and ibm says it's available in patches for 2.4:
http://www.ibm.com/developerworks/linux/library/l-async/

theMIROn
29-06-2009, 07:02
there's no aio support in 2.4 vanila kernel, and the latest andrea's patch is from 05-Oct-2003
http://www.kernel.org/pub/linux/kernel/people/andrea/kernels/v2.4/2.4.23aa1.bz2

wpte
29-06-2009, 16:38
there's no aio support in 2.4 vanila kernel, and the latest andrea's patch is from 05-Oct-2003
http://www.kernel.org/pub/linux/kernel/people/andrea/kernels/v2.4/2.4.23aa1.bz2

so that's a no go then?

theMIROn
29-06-2009, 17:37
so that's a no go then?
that means if someone would prepare patches for 2.4.37.2 kernel, it'll be included

lly
29-06-2009, 18:15
Just wondering, is it possible to turn on asynchronous io?

I guess it might optimize disk speeds a lot:)
I guess the effect will be minimal. Some days I included epoll patch since some people ask me to do that. Unfortunately, nobody done performance tests (including people who promise that to me), and I ever not sure that epoll working 100% correctly :(

So, without serious reasons or any performance tests on our platform (not on x86!), I don't want to include aio into firmware.

P.S. There is no aio support for our platform in uClibc 0.9.29

wpte
29-06-2009, 19:56
I guess the effect will be minimal. Some days I included epoll patch since some people ask me to do that. Unfortunately, nobody done performance tests (including people who promise that to me), and I ever not sure that epoll working 100% correctly :(

So, without serious reasons or any performance tests on our platform (not on x86!), I don't want to include aio into firmware.

P.S. There is no aio support for our platform in uClibc 0.9.29

yeh... it doesn't always give a performance boosts on IO
but the idea that it lowers the cpu usage, wich comes quite handy, or at least giving other processes processor time so that the cpu is used better is quite a good thing. Especially when you consider that most routers here use swap (wich is io) to have enough memory, this might actually work even if it's only working for the cpu performance.
yeh, it's still theory:o

You don't mind if I try to program a good patch for olegs I hope?
maybe my c programming skillzz are good enough already:p

lly
29-06-2009, 20:41
You don't mind if I try to program a good patch for olegs I hope?
maybe my c programming skillzz are good enough already:p
If you really decide to spend a lot of time on this task, than I expect definite results :) i.e. we will know amount of performance boost on our platform, at least.

P.S. Unfortunately, 2.4 kernels are very old :(

wpte
29-06-2009, 21:26
If you really decide to spend a lot of time on this task, than I expect definite results :) i.e. we will know amount of performance boost on our platform, at least.

P.S. Unfortunately, 2.4 kernels are very old :(

Well I can't promise you that I will get it working since it will be my first linux programming... I've only done embedded c so far.
but since there are so many linux source codes out there, I guess I can make it trough:p

dzebrys
23-07-2009, 10:32
hi all,

i'm using hyuwei e220 umts modem and koppel fw to connect to the internet
but i'd like to switch to this evolving fw.

does anybody knows if this modem is supported in precompiled version or by
additional module? sorry, but i'm unable to compile it from svn.

as i remember i've tried to implement driver in original Oleg firmware but give
up as even with proper module the modem was initialised to flash disk by
default and no chance to switch to its serial interface [that modem is build from
two interfaces, small flash disk where win drivers are stored and modem
device. unfortunately that first is by default initiated by driver. koppel uses
some script with module load parameters but it was not working for me on Oleg
fw].

does anybody seen any how-to with "manual" set up of dial script and pppd on
wl500?


thanks in advance
piotr

preacher@wl500g
23-07-2009, 11:01
Hi piotr ,

I rencently asked the same question!
I'm using this new Firmware now for half a year, runs pretty stable, has more basic functionallity and Samba transfers from USB harddisks are much faster than in other firmwares!
But .... in the web-if there's no USB modem option
As I could see in the blog entries, all the drivers are already included!
The reply to my question concerning UMTS-modem was, to take the init-scripts from koppel firmware and put them in the same directory stucture on the current firmware.
But I've never tried it so far.

Regards, Thomas

lly
23-07-2009, 12:14
The reply to my question concerning UMTS-modem was, to take the init-scripts from koppel firmware and put them in the same directory stucture on the current firmware
Transferring koppel scripts one-to-one wouldn't bring positive result. We already has plans to add support of USB modems via web-GUI, but this task is really big.

Any real help (patches, corrected scripts) will be accepted with pleasure.

preacher@wl500g
23-07-2009, 15:27
Well, as I could see somebody found a solution.
in the german forum someone wrote an answer to my question concerning ppp scripts on your firmware:

http://wl500g.info/showpost.php?p=142506&postcount=238

He suggested to copy settings and scripts form koppel firmware and execute the script mentioned.
It seemed to me, that this worked for him.
But i didn't try so far as I am happy with the features of your firmware and other people to whom I suggested an ASUS router come along with the features of koppel firmware.

dzebrys
24-07-2009, 12:50
Well, as I could see somebody found a solution.
in the german forum someone wrote an answer to my question concerning ppp scripts on your firmware:

http://wl500g.info/showpost.php?p=142506&postcount=238

He suggested to copy settings and scripts form koppel firmware and execute the script mentioned.
It seemed to me, that this worked for him.
But i didn't try so far as I am happy with the features of your firmware and other people to whom I suggested an ASUS router come along with the features of koppel firmware.

thank you preacher! what i see the script deals with initialisation of modem to
second interface [serial modem]. i'll try to set it up that way and inform about results.

regards
piotr

preacher@wl500g
24-07-2009, 16:48
thank you preacher! what i see the script deals with initialisation of modem to
second interface [serial modem]. i'll try to set it up that way and inform about results.

regards
piotr

Your're welcome!

I'm used to Linux, but no crack in script programming, so I didn't know.
I think we are all interested in good functionallity, so if I found something interesting in another language forum, I will post it here.

Regards
Thomas

DrChair
28-07-2009, 23:24
I'm trying to compile and run a program that needs libusb.
(libk8055 from sourceforge)


When I just try to compile it (native), it fails on:

error: usb.h: No such file or directory



If I include "usb.h" from libusb-compat-0.1.3 and try to compile it, it fails on:

/opt/bin/ld: warning: libusb-1.0.so.0, needed by /usr/lib/libusb.so, not found (try using -rpath or -rpath-link)
/usr/lib/libusb.so: undefined reference to `libusb_release_interface'
/usr/lib/libusb.so: undefined reference to `libusb_get_device_descriptor'
/usr/lib/libusb.so: undefined reference to `libusb_control_transfer'
/usr/lib/libusb.so: undefined reference to `libusb_claim_interface'
/usr/lib/libusb.so: undefined reference to `libusb_set_configuration'


If I first make and install libusb-1.0.2 and libusb-compat-0.1.3 to /opt, followed by trying to compile the program, fails on:
/opt/bin/../lib/libusb-1.0.so.0: undefined reference to `pthread_mutex_trylock'
collect2: ld returned 1 exit status


However, on old oleg-firmware it compiles and runs fine (after installing ipkg libusb), but that is libusb-0.1.12.


If I try to use the binary compiled against libusb-0.1.12 on the new firmware, it gives:
can't load library 'libusb-0.1.so.4'

If I install the ipkg libusb on the new firmware, and try the binary compiled against libusb.0.1.12, it begins to run, but then reboots the router...

Any idea's how to solve this?

wpte
28-07-2009, 23:49
I remember using this one here: http://libusb.wiki.sourceforge.net/
worked out perfectly fine for me:confused:

I wasn't compiling libk8055 tho;)

DrChair
31-07-2009, 02:04
In the meantime I solved the pthead error, by adding -lpthread to libs in the Makefile.

And I found out, the libk8055 isn't functioning with libusb-compat.

But on old oleg it gives an error, while on new oleg it just cold-boots the router ;(

quazar
04-08-2009, 22:07
Quite off-topic, but many thanks for this great firmware!

DrChair
06-08-2009, 00:16
since the libk8055 doesn't work with libusb-compat and doesnt work with libusb-0.1.12 on new oleg, I ported it to libusb1.0.

I tested the ported source on i368 ubuntu -> here it works with libusb-1.0

However on the asus it doesn't work. Enabling debug mode, gives me the error: [calculate_timeout] failed to read monotonic clock.

So I patched io.c from libusb-1.0 and changed all occurences of usbi_backend->clock_gettime in to clock get_time. (like it used to be)

This solves the error. However now running the program again cold boots my router.

Reverting to old oleg and the program now gives the error:
libusb:warning [handle_bulk_completion] unrecognised urb status -130
libusb:warning [do_sync_bulk_transfer] unrecognised status code 1
intr error -99

I'm starting to get lost on this one :(

greengreen
09-08-2009, 08:41
HI I'm using lastest oleg's firmware and I tried to run passive ftp over vsftpd. Everythink is O.K. but I have to open one specific port for this connestion forever. But I think that firewall could open this port automaticly without hard wite rule in iptables. i think it depend on any module
modprobe ip_tables
modprobe ip_conntrack
modprobe ip_conntrack_ftp
modprobe ip_conntrack_irc
modprobe iptable_nat
modprobe ip_nat_ftp

Do you know how to run this?Is possible to run it?
thanks a lot

lly
12-08-2009, 11:26
since the libk8055 doesn't work with libusb-compat and doesnt work with libusb-0.1.12 on new oleg, I ported it to libusb1.0.

I tested the ported source on i368 ubuntu -> here it works with libusb-1.0

This should sounds like "works with libusb-1.0 + kernel 2.6"!

However on the asus it doesn't work. Enabling debug mode, gives me the error: [calculate_timeout] failed to read monotonic clock.
Since r379 bundled libusb-1.0 already has similar patch (http://code.google.com/p/wl500g/source/browse/trunk/libusb/libusb-1.0.2.patch)

However now running the program again cold boots my router.
Probably, bug in kernel. Which firmware build you use? Can problem be reproduced without specific hardware? If yes, please provide modified sources of libk8055 & simple test case, we will try to fix it.

Lesiuk
12-08-2009, 13:21
You enabled IMQ in newest revision.

Is it possible to do some QoS with it?

lly
12-08-2009, 13:30
You enabled IMQ in newest revision.

Is it possible to do some QoS with it?
It is under tests now, but I hope, yes. Unfortunately, there will no web-GUI until someone contribute it.

wpte
12-08-2009, 14:35
is there any chance that a ppp_mppe module can be added to the kernel?:)

Lesiuk
12-08-2009, 14:35
It is under tests now, but I hope, yes. Unfortunately, there will no web-GUI until someone contribute it.

I do not need webui, i like do everything in console.

It's great news.

Maybe you need some help?
Do you use jabber/xmpp ?

lly
12-08-2009, 14:57
is there any chance that a ppp_mppe module can be added to the kernel?:)
CONFIG_PPP_MPPE_MPPC=y is set for years in Oleg-based firmwares...
Maybe I understand your wrong?

wpte
12-08-2009, 16:18
CONFIG_PPP_MPPE_MPPC=y is set for years in Oleg-based firmwares...
Maybe I understand your wrong?

sorry, I didn't knew it was enabled already:)

DrChair
12-08-2009, 23:51
Probably, bug in kernel. Which firmware build you use? Can problem be reproduced without specific hardware? If yes, please provide modified sources of libk8055 & simple test case, we will try to fix it.

Oke, for now I assume libusb-1.0 (and compat-libusb) isn't full compatible with the current kernel.
So let's try to find out why the the libusb-0.1 version crashes the router.

If I remove the USB device, the program doesn't crash the router. So I guess you need the specific hardware.
However I can reproduce the problem with an usb-mouse (with also uses interrupt transfers)

I'll PM you the details...

Anyway, I spend the whole day compiling different revisions of the firmware.

R334 is the last one that works (with the libusb-0.1 version)
R335 and R336 don't compile
R337 has the problem.

So the problem is caused by "Add missed urb->interval initialization for usbdevfs"

lly
14-08-2009, 08:34
R334 is the last one that works (with the libusb-0.1 version)
R335 and R336 don't compile
R337 has the problem.

So the problem is caused by "Add missed urb->interval initialization for usbdevfs"
Problem reproduced, thanks to report.
As workaround you simply can exclude kernel/242-usb-devio.patch from custom build process. This patch repairs EHCI(2.0), but broke UHCI(1.1) drivers interface via usbdevfs ioctl calls. It will take some time to find proper solution.

cichy
17-08-2009, 22:17
Great FW with great options :)
I wonder if there's a possibility to add a file called version in /etc/ directory with actual firmware version and a name of OS the router is running (i know there's a .version in / dir but it's read-only). I'm asking that coz i found something like that http://phpsysinfo.sourceforge.net/ and it gives great info about router (i added nslu icon and it's being recognized as Oleg's Firmware after finding /etc/version file). I know that this is something stupid but i think it's quite useful :)

lly
18-08-2009, 09:21
I wonder if there's a possibility to add a file called version in /etc/ directory with actual firmware version and a name of OS the router is running (i know there's a .version in / dir but it's read-only).
/etc directory is writeable, as in all Oleg FW. File "/.version" must be read-only. OS version you can get from uname utility or from /proc/version

lly
20-08-2009, 18:22
In r461 we add experimental accel-pptp kernel driver, which should significantly improve PPTP speed. Please help us to test it.

To turn it on you have to do:

nvram set wan0_pptp_kernel=1
nvram commit is superfluous, since there is not needed that driver will start after reboot or crash.
After this, push "Disconnect", wait 10 sec, push "Connect" in web-GUI.

Syslog should have lines like below:


Aug 18 08:39:26 wan: connected manually
Aug 18 08:39:29 kernel: vlan1: Setting MAC address to xx xx xx xx xx xx.
Aug 18 08:39:29 post-firewall: started [ppp0 0.0.0.0 br0 192.168.0.1 vlan1 xxx.xxx.xxx.xxx]
Aug 18 08:39:30 pptp[258]: Plugin pptp.so loaded.
Aug 18 08:39:30 pptp[258]: PPTP plugin version 0.8.3 compiled for pppd-2.4.5, linux-2.4.37.5
Aug 18 08:39:30 pptp[259]: pppd 2.4.5 started by admin, uid 0
Aug 18 08:39:30 pptp[259]: PPTP: failed to setsockopt PPTP_SO_TIMEOUT (Operation not supported)
Aug 18 08:39:30 pptp[260]: anon log[callmgr_main:pptp_callmgr.c:132]: IP: xxx.xxx.xxx.xxx
Aug 18 08:39:30 pptp[260]: anon log[callmgr_main:pptp_callmgr.c:136]: control connection
Aug 18 08:39:30 pptp[260]: anon log[callmgr_main:pptp_callmgr.c:140]: unix_sock
Aug 18 08:39:30 pptp[261]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Aug 18 08:39:30 pptp[261]: anon log[ctrlp_disp:pptp_ctrl.c:737]: Received Start Control Connection Reply
Aug 18 08:39:30 pptp[261]: anon log[ctrlp_disp:pptp_ctrl.c:771]: Client connection established.
Aug 18 08:39:31 pptp[261]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Aug 18 08:39:31 pptp[261]: anon log[ctrlp_disp:pptp_ctrl.c:856]: Received Outgoing Call Reply.
Aug 18 08:39:31 pptp[261]: anon log[ctrlp_disp:pptp_ctrl.c:895]: Outgoing call established (call ID 2, peer's call ID 22850).
Aug 18 08:39:31 pptp[259]: Using interface ppp0
Aug 18 08:39:31 pptp[259]: Connect: ppp0 <--> pptp (xxx.xxx.xxx.xxx)
Aug 18 08:39:33 pptp[259]: CHAP authentication succeeded
Aug 18 08:39:33 pptp[259]: local IP address xxx.xxx.xxx.xxx
Aug 18 08:39:33 pptp[259]: remote IP address xxx.xxx.xxx.xxx
Aug 18 08:39:33 post-firewall: started [ppp0 xxx.xxx.xxx.xxx br0 192.168.0.1 vlan1 xxx.xxx.xxx.xxx]
Aug 18 08:39:33 ddns: IP address has not changed since the last update
Aug 18 08:39:33 PPTP: connected to ISP


p.s automatic reconnect don't work for now.

cichy
20-08-2009, 21:13
New firmware already in place but now i'm getting this error:


Aug 20 21:07:28 ddns update: ez-ipupdate Version 3.0.11b7, Copyright (C) 1998-2001 Angus Mackay.
Aug 20 21:07:28 ddns update: ez-ipupdate started for interface vlan1 host cichy.ath.cx using server members.dyndns.org and service dyndns-static
Aug 20 21:07:28 ddns update: connected to members.dyndns.org (204.13.248.112) on port 80.
Aug 20 21:07:28 ddns update: authentication failure
Aug 20 21:07:28 ddns update: failure to update vlan1->xx.xx.xx.xx (domain.ath.cx)
Aug 20 21:07:28 ddns update: shutting down updater for domain.ath.cx due to fatal error
Although settings were the same as in earlier version and worked fine. What could be the problem?

lly
21-08-2009, 10:43
Although settings were the same as in earlier version and worked fine. What could be the problem?
ez-ipudate didn't changes between r396-r461. So, if router provides internet successfully, it is not an error of FW itself.

theMIROn
21-08-2009, 11:00
Aug 20 21:07:28 ddns update: authentication failurewrong hostname, password or account expired.
so it's not a prob of FW
check it in /etc/ddns.conf file

theMIROn
22-08-2009, 10:19
In r461 we add experimental accel-pptp kernel driver, which should significantly improve PPTP speed. Please help us to test it.

To turn it on you have to do:

nvram set wan0_pptp_kernel=1
nvram commit is superfluous, since there is not needed that driver will start after reboot or crash.
After this, push "Disconnect", wait 10 sec, push "Connect" in web-GUI.

Syslog should have lines like below:


...


p.s automatic reconnect don't work for now.

Since r473 automatic reconnect will work as well, so we really need your feedback about pptp speedup

wpte
28-08-2009, 23:57
hello!
I have some problems with wget (the one from ipkg)
basicly when you try to download something it takes ages to resolve the adress for some reason:confused:
about 30 to 50 seconds

with the wget from /usr/bin/wget it just happens straight away
I'm not entirely sure if this is firmware related but it seemed to happen after updating r396 to r473

lly
29-08-2009, 07:38
hello!
I have some problems with wget (the one from ipkg)
basicly when you try to download something it takes ages to resolve the adress for some reason:confused:
about 30 to 50 seconds

with the wget from /usr/bin/wget it just happens straight away
I'm not entirely sure if this is firmware related but it seemed to happen after updating r396 to r473
Very strange, since wget-opt should use its own uClibc from /opt/lib and dnsmasq wasn't changed. You use wget 1.11.4-1 from Oleg ipkg repository?

theMIROn
29-08-2009, 09:25
hello!
I have some problems with wget (the one from ipkg)
basicly when you try to download something it takes ages to resolve the adress for some reason:confused:
about 30 to 50 seconds

with the wget from /usr/bin/wget it just happens straight away
I'm not entirely sure if this is firmware related but it seemed to happen after updating r396 to r473

30 to 50 seconds? Are you sure your dns servers is ok? check it with nslookup

wpte
29-08-2009, 12:34
30 to 50 seconds? Are you sure your dns servers is ok? check it with nslookup
well yes that's the weird thing since I'm using the same DNS server for everything.
My modem is on 192.168.1.1
and the router is connected via dhcp and has no problem receiving the dns server (confirmed by the modem). The only thing the router does is forward the dns server on 192.168.2.1 (used by the computers)

Even when I connect to the dns server directly and try browsing on my pc, there is no delay in resolving addresses.

the nslookup command gives this:

nslookup google.com
Server: 192.168.1.1
Address 1: 192.168.1.1 openrg.home

[about 20 seconds delay]

Name: google.com
Address 1: 74.125.127.100
Address 2: 74.125.67.100
Address 3: 74.125.45.100

I mean... it's using the right adress
even when I try an open dns server I get the same delay:

nslookup google.com 208.67.220.220
[10 seconds delay]
Server: 208.67.220.220
Address 1: 208.67.220.220

[another 20 sec delay]

Name: google.com
Address 1: 74.125.67.100
Address 2: 74.125.127.100
Address 3: 74.125.45.100
so I dunno anymore:p

WiziPok
03-09-2009, 00:34
Gentlemen, I need your help to solve my PREROUTING problem


I used the latest FW, seem that during few hours after rebooting the 500gP v1 everything is work, but after some time everything stops.

Asus 500gp used as AP as open system. In some cases the clients have to be prerouted to the information web pages on port 81.

On port 81 I use bysybox_httpd, starting with post-mount script:


# InfoWeb server on 81
busybox_httpd -p 81 -u root -h /tmp/harddisk/opt/www_info

When the client has to be prerouted I use the following command in script:


mac=$1
port=$2
iptables -t nat -A PREROUTING -p tcp -m mac --mac-source $mac --dport 80 -j DNAT --to-destination 192.168.1.1:$port

So, after fresh reboot the prerouting is working, but after some time and adding new MACs to preroute list the browser got TIME OUT, and no Info Pages appears.

The command


iptables -L -vn -t nat

gives:


Chain PREROUTING (policy ACCEPT 300K packets, 23M bytes)
pkts bytes target prot opt in out source destination
147K 14M VSERVER all -- * * 0.0.0.0/0 83.183.110.99
46 2192 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 MAC 00:1D:EE:61:FE:11 tcp dpt:80 to:192.168.1.1:81

Chain POSTROUTING (policy ACCEPT 97076 packets, 9890K bytes)
pkts bytes target prot opt in out source destination
211K 15M MASQUERADE all -- * vlan1 !83.183.110.99 0.0.0.0/0
823 82476 SNAT all -- * br0 192.168.1.0/24 192.168.1.0/24 to:192.168.1.1

Chain OUTPUT (policy ACCEPT 18669 packets, 1220K bytes)
pkts bytes target prot opt in out source destination


Where is the trouble?

Thank you

WiZi

lly
03-09-2009, 11:26
So, after fresh reboot the prerouting is working, but after some time and adding new MACs to preroute list the browser got TIME OUT, and no Info Pages appears.

Where is the trouble?
Unfortunately, this is not easy question, for me at least.
We already has similar reports (see Issue 34 (http://code.google.com/p/wl500g/issues/detail?id=34)), but still can't reproduce problem.

In your sample I can see only single DNAT rule. Is problem appears with single client after some time, or only when several rules was added? Did you remove rule for disconnected clients?

When forwarding stops, can you trace packets with tcpdump yourself?

WiziPok
03-09-2009, 12:31
Hi,

The trouble starts every time, not depending on the number of added MACs.

No, all added rules are permanent. Some cases use the same way to preroute the unwanted clients to the port 82, where ra the BanPages about banned MAC.

Some more specification of 500gp:
- the 500gp is used without WIFI card, so just HOME GATEWAY for Ethernet ports
- all clients are connecting using standalone APs connected to the 500gp trough LAN

Is there must be any additional rule to allow prerouting trough br0 ?

Thank you

WiZi