PDA

Bekijk de volledige versie : Firmware v1.7.5.6 CR4 [Oleg]



Oleg
23-05-2004, 16:06
click here to download files from chupa.nl you need:
firmware (http://files.wl500g.info/asus/wl500g/firmware/customized/1.7.5.6-4/wl500g-1.7.5.6-4.zip)
sources (http://files.wl500g.info/asus/wl500g/firmware/customized/1.7.5.6-4/wl500g-1.7.5.6-4.tar.bz2)
root fs (http://files.wl500g.info/asus/wl500g/firmware/customized/1.7.5.6-4/wl500g-1.7.5.6-4-root.tar.bz2)

New custom firmware (http://wl500g.dyndns.org/wl500g-1.7.5.6-4.zip) and accompanying sources (http://wl500g.dyndns.org/wl500g-1.7.5.6-4.tar.bz2) (11 MBytes) for building it, root fs (http://wl500g.dyndns.org/wl500g-1.7.5.6-4-root.tar.bz2) if you need this.

Differences with 1.7.5.6-3

Support for ov518 cameras (compression)
New timezone (Azores Islands)
Updated dnsmasq to 2.8
Changes in the ddns script to prevent abuse after reboot
Several new applets in busybox, including du, df and httpd (named busybox_httpd)
Samba 1.9.17p5, not enabled by default. Important notice: the samba is totally unsupported, use on your own risk! How to use samba: 1) be sure you've specified hostname in the LAN IP Setting (this name will used be by samba); 2) add the following to your bootCmds:


nvram bootCmdS="/usr/sbin/smbd -D"
nvram bootCmdN="/usr/sbin/nmbd -D"
nvram commit
reboot

Once you've rebooted your wl500g should appear in workgroup called WORKGROUP and present you a share named "share". This share is read-only view of your usb drive (/mnt/usbfs). There is also second invisible share called "share$" which is in the fact the read/write view of /mnt/usbfs. No other access restriction present.

ronin
23-05-2004, 20:13
looks very nice again Oleg!!!

Just trying to figure out busybox_httpd. How can I provide acces from WAN to the webserver. Do I need portforwardings?

Any tips on how to run asp's and for a good httpd.conf?

Thanxz a lot for doing all this for us!

RoNiN

Oleg
24-05-2004, 11:08
* Typical usage:
* for non root user
* httpd -p 8080 -h $HOME/public_html
* or for daemon start from rc script with uid=0:
* httpd -u www
* This is equivalent if www user have uid=80 to
* httpd -p 80 -u 80 -h /www -c /etc/httpd.conf -r "Web Server Authentication"
*
*
* When a url contains "cgi-bin" it is assumed to be a cgi script. The
* server changes directory to the location of the script and executes it
* after setting QUERY_STRING and other environment variables.
*
* The server can also be invoked as a url arg decoder and html text encoder
* as follows:
* foo=`httpd -d $foo` # decode "Hello%20World" as "Hello World"
* bar=`httpd -e "<Hello World>"` # encode as "&#60Hello&#32World&#62"
* Note that url encoding for arguments is not the same as html encoding for
* presentation. -d decodes a url-encoded argument while -e encodes in html
* for page display.
*
* httpd.conf has the following format:
*
* A:172.20. # Allow address from 172.20.0.0/16
* A:10.0.0.0/25 # Allow any address from 10.0.0.0-10.0.0.127
* A:10.0.0.0/255.255.255.128 # Allow any address that previous set
* A:127.0.0.1 # Allow local loopback connections
* D:* # Deny from other IP connections
* /cgi-bin:foo:bar # Require user foo, pwd bar on urls starting with /cgi-bin/
* /adm:admin:setup # Require user admin, pwd setup on urls starting with /adm/
* /adm:toor:PaSsWd # or user toor, pwd PaSsWd on urls starting with /adm/
* .au:audio/basic # additional mime type for audio.au files
*
* A/D may be as a/d or allow/deny - first char case insensitive
* Deny IP rules take precedence over allow rules.
*
*
* The Deny/Allow IP logic:
*
* - Default is to allow all. No addresses are denied unless
* denied with a D: rule.
* - Order of Deny/Allow rules is significant
* - Deny rules take precedence over allow rules.
* - If a deny all rule (D:*) is used it acts as a catch-all for unmatched
* addresses.
* - Specification of Allow all (A:*) is a no-op
*
* Example:
* 1. Allow only specified addresses
* A:172.20 # Allow any address that begins with 172.20.
* A:10.10. # Allow any address that begins with 10.10.
* A:127.0.0.1 # Allow local loopback connections
* D:* # Deny from other IP connections
*
* 2. Only deny specified addresses
* D:1.2.3. # deny from 1.2.3.0 - 1.2.3.255
* D:2.3.4. # deny from 2.3.4.0 - 2.3.4.255
* A:* # (optional line added for clarity)
*
* If a sub directory contains a config file it is parsed and merged with
* any existing settings as if it was appended to the original configuration.
*
* subdir paths are relative to the containing subdir and thus cannot
* affect the parent rules.
*
* Note that since the sub dir is parsed in the forked thread servicing the
* subdir http request, any merge is discarded when the process exits. As a
* result, the subdir settings only have a lifetime of a single request.
*
*
* If -c is not set, an attempt will be made to open the default
* root configuration file. If -c is set and the file is not found, the
* server exits with an error.
*

signed
25-05-2004, 18:00
Updated to cr4.
From telnet entered the nvram set bootCmdS/N commands
including nvram commit and reboot.
Share didn't work, name was entered in LAN/IP settings.
can't connect to share by name or ip adres.
Connecting from win xp prof (i don't see the workgroup "Workgroup" neighter)

Antiloop
25-05-2004, 19:19
Updated to cr4.
From telnet entered the nvram set bootCmdS/N commands
including nvram commit and reboot.
Share didn't work, name was entered in LAN/IP settings.
can't connect to share by name or ip adres.
Connecting from win xp prof (i don't see the workgroup "Workgroup" neighter)

take instead of S / N a number instead
e.g. bootCmd0 and bootCmd1
or higher if you have set a bootCmd already

ronin
25-05-2004, 21:48
same here. added to bootCmds,commit, reboot. no share.

ropmip
25-05-2004, 23:35
Thanks OLEG, just uploaded the firmware: my Philips toucam XS is now working and I'm happy with the Azores Islands timezone.
I think before the update I could't see network computer names (windows) between WLAN and LAN (not sure), and now I can, does it have something to do with the dnsmasq update or samba?

Pirat
26-05-2004, 08:15
I have same problem with samba. But just look http://wl500g.info/showthread.php?t=160
In /etc/hosts MUST be an entry "WL500g"

signed
26-05-2004, 11:25
I have same problem with samba. But just look http://wl500g.info/showthread.php?t=160
In /etc/hosts MUST be an entry "WL500g"

There is; xxx.xxx.xxx.xxx my.router my.WL500G Signed

I put in the nvram set bootCmd command right this time (thanks for the explanation)

Still no workgroup "workgroup" or share :(

Oleg
26-05-2004, 12:36
I have same problem with samba. But just look http://wl500g.info/showthread.php?t=160
In /etc/hosts MUST be an entry "WL500g"
There is no requirement for wl500g entry like this. The thing you're talking about heavily depends on the contents of smb.conf. So, please don't add anything to /etc/hosts unless you're absolutely sure this is needs to there.

Oleg
26-05-2004, 12:39
There is; xxx.xxx.xxx.xxx my.router my.WL500G Signed

I put in the nvram set bootCmd command right this time (thanks for the explanation)

Still no workgroup "workgroup" or share :(
Please post the results of


cat /etc/hosts
cat /var/lock/browse.dat

signed
26-05-2004, 15:24
~ # cat /etc/hosts
127.0.0.1 localhost localhost.localdomain
192.168.0.1 my.router my.WL500g signed
192.168.0.2 Winsor
192.168.0.4 Client_AP
192.168.0.9 Ipaq
192.168.0.11 Monster-Asus
192.168.0.60 Lappo
192.168.0.69 I0007779

~ # cat /var/lock/browse.dat
cat: /var/lock/browse.dat: No such file or directory

/mnt/ramfs/var/lock # ls
p9100d p9101d

There are only 2 files in /var/lock

Oleg
26-05-2004, 17:23
nmbd and smbd are not running. check your bootCmds.
try lauching them manually


/usr/sbin/nmbd -D
/usr/sbin/smbd -D

Once you get them running try to access share \\signed\share
Also, you can check log files: /var/log/nmb and /var/log/smb

signed
26-05-2004, 17:42
nmbd and smbd are not running. check your bootCmds.
try lauching them manually


/usr/sbin/nmbd -D
/usr/sbin/smbd -D

Once you get them running try to access share \\signed\share
Also, you can check log files: /var/log/nmb and /var/log/smb

Hi Oleg,

I think my bootCmds should be oke, how can i check what it is starting?

When i check the log i get the following:

~ # cat /var/log/nmb
05/26/04 18:28:11 netbios nameserver version 1.9.17p5 started
Copyright Andrew Tridgell 1994-1997
Get_Hostbyname: Unknown host WL500g.
Unable to get my hostname - exiting.

~ # cat /var/log/smb
Get_Hostbyname: Unknown host WL500g.
Get_Hostbyname: Unknown host WL500g.
No interface found for address 196.87.189.42
Get_Hostbyname: Unknown host. WL500g
Get_Hostbyname: Unknown host WL500g.
Get_Hostbyname: Unknown host WL500g.
No interface found for address 196.87.189.42
Get_Hostbyname: Unknown host. WL500g
Get_Hostbyname: Unknown host WL500g.
Get_Hostbyname: Unknown host WL500g.
No interface found for address 196.87.189.42
Get_Hostbyname: Unknown host. WL500g

Where is the ip adress coming from?
Thanks in advance, luv ur firmware btw

signed
26-05-2004, 17:51
Oleg,

I got it working!!
I changed signed in wl500g. (Under LAN/IP settings)
BootCmd is working fine, the logfiles looked good this time, no errors.

Thanks for your help. :)

ps. I still want to know why smb is looking for the name wl500g

ronin
26-05-2004, 19:42
it works here also!

thank you!

signed
26-05-2004, 19:49
it works here also!

thank you!

What does, you mean you also changed the name to wl500g and after that it works?

Oleg
26-05-2004, 20:01
Oleg,

I got it working!!
I changed signed in wl500g. (Under LAN/IP settings)
BootCmd is working fine, the logfiles looked good this time, no errors.

Thanks for your help. :)

ps. I still want to know why smb is looking for the name wl500g
Ok, now I see, that's my fault... Until next firmware please use wl500g as hostname.

erik_bies
26-05-2004, 20:08
Oleg,

I got it working!!
I changed signed in wl500g. (Under LAN/IP settings)
BootCmd is working fine, the logfiles looked good this time, no errors.

Thanks for your help. :)

ps. I still want to know why smb is looking for the name wl500g

Although I'm not 100% sure I believe the system is looking for the 'network node name', or hostname

I think if you leave the "hostname" entry empty (IPCONFIG->WAN-LAN->Special Requirement from ISP ->Hostname) the system is taking the default hostname, and there is no extry for that hostname in the /etc/hosts file

as during the init "echo "$IPRouters my.router my.$ProductID $x_HostName" > /etc/hosts" it only creates an my.WL500g entry

So alternatively you could set the hostname to my.WL500g and it would also work



/init # /busybox hostname -?
hostname: invalid option -- ?
BusyBox v1.00-pre5 (2004.01.09-12:23+0000) multi-call binary

Usage: hostname [OPTION] {hostname | -F FILE}

Get or set the hostname or DNS domain name. If a hostname is given
(or FILE with the -F parameter), the host name will be set.

Options:
-s Short
-i Addresses for the hostname
-d DNS domain name
-f Fully qualified domain name
-F FILE Use the contents of FILE to specify the hostname

/init # /busybox hostname
WL500g
/init #

Oleg
26-05-2004, 20:30
No, the problem is what initially I've used ProductId for hostname (/proc/sys/kernel/hostname). That's why it looks for wl500g. :) With the next frimware release it's will be set to HostName specified via web.

Niall
26-05-2004, 22:29
Hi guys,

I have been looking at using the WL-500b and g in our wisp and think the work you guys are doing is great. I thought you might like to check out the following site for future upgrade ideas. Do you think it is possible to integrate certain features like QOS for access point clients etc?

The site is www.mikrotik.com

Cheers,

Niall

pipos
26-05-2004, 23:31
No, the problem is what initially I've used ProductId for hostname (/proc/sys/kernel/hostname). That's why it looks for wl500g. :) With the next frimware release it's will be set to HostName specified via web.
Could you make the change in web login screeen and /etc/hosts too?

If it's possible remove from hosts file nemaes my.router and my.wl500g (it makes mess for me when i use several wl500g and the resolv their names....

and if it;s possible.....web interface could write somwhere the hostname...it will be better for orientation when configuring more wl500g at once ;)
Thanks

Oleg
27-05-2004, 08:34
Could you make the change in web login screeen and /etc/hosts too?

/etc/hosts already contain right hostname specified via web.


If it's possible remove from hosts file nemaes my.router and my.wl500g (it makes mess for me when i use several wl500g and the resolv their names....

don't use my.* names at all. I do not want to remove things which will break behavior specified in the user manual, otherwise someone will claim "You firmware killed my router! I can't access my.router and so on". On the other hand my.wl500g could be removed - it's undocumented feature. :)


and if it;s possible.....web interface could write somwhere the hostname...it will be better for orientation when configuring more wl500g at once ;)
Thanks
It's already there on the IP config page. Right? :D Also, System Logs will contain the right name in the next firmware release.

pipos
27-05-2004, 09:48
/etc/hosts already contain right hostname specified via web.

don't use my.* names at all. I do not want to remove things which will break behavior specified in the user manual, otherwise someone will claim "You firmware killed my router! I can't access my.router and so on". On the other hand my.wl500g could be removed - it's undocumented feature. :)

It's already there on the IP config page. Right? :D Also, System Logs will contain the right name in the next firmware release.

OK...I understand, but could you change the order? hostname first, and then my.router and my.wl500g? It could make change in route output, that it will write hostname instead my.router

And for web, i was thinking about some more visible place....top left corner for example, and the login dialog where you type login & password (there it writes WL-500g)

Thanx for all your work :)

Oleg
27-05-2004, 14:49
OK...I understand, but could you change the order? hostname first, and then my.router and my.wl500g? It could make change in route output, that it will write hostname instead my.router

ok


And for web, i was thinking about some more visible place....top left corner for example, and the login dialog where you type login & password (there it writes WL-500g)

As for realm - probably this i hardcoded to the httpd...

Dominic
28-05-2004, 12:45
click here to download files from chupa.nl you need:
firmware (http://files.wl500g.info/asus/wl500g/customized/1.7.5.6-4/wl500g-1.7.5.6-4.zip)

Looking forward to trying this as I've only used the official release so far, and can't get my printer or camera to work.

I have an Epson CX6400 multifunction device - has anyone else got a mfd working - and is it worth trying or is it known that this will not work? If you think it's worth trying, I'll have a go. I don't mind about the other functions, I just want to be able to print via wireless. Is there any reason why this will not work?

I'll report back... Thanks for all your work, Oleg!

Styno
28-05-2004, 13:08
Looking forward to trying this as I've only used the official release so far, and can't get my printer or camera to work.

I have an Epson CX6400 multifunction device - has anyone else got a mfd working - and is it worth trying or is it known that this will not work? If you think it's worth trying, I'll have a go. I don't mind about the other functions, I just want to be able to print via wireless. Is there any reason why this will not work?

I'll report back... Thanks for all your work, Oleg!Have you noticed the custom firmware (by Oleg) uses a different printing driver/stratigy compared to the official firmware? See this topic (http://wl500g.info/showthread.php?t=249) for more info on the new printer deamon.

yanism
28-05-2004, 18:34
Oleg, i've read you post about the embedded http server and i've not undestand all. Can i make with httpd an other server without disabled the one of the asus configuration ? because with the solution of tecnik on this link (http://wl500g.info/showthread.php?t=280&highlight=http) the web server for asus configuration is down.
I've search on the net a way to do that and it will be possible to run several instances of httpd changing the httpd.conf but where is this file ?

thank for this new firmware Oleg :D and the wol function of the CR3

Oleg
29-05-2004, 09:07
Yes, busybox_httpd could be used simulteneously with ASUS httpd, but you need to specify a port other then 80 on which it will listen for connections. As for httpd.conf - see the beginning of the thread for details.

SirRoden
30-05-2004, 15:56
When I'm connecting my HP Lasertjet 1010 with this firmware en the previous version 3 i get the following error...

May 30 16:33:18 WL500g user.err klogd: usb.c: USB device not accepting new address=4 (error=-145)
May 30 16:33:18 WL500g user.err klogd: usb.c: USB device not accepting new address=5 (error=-145)

Also when i'm trying to print according to the directions given in an earlier post on port 9101 (usb port) i get the following error

May 30 16:44:48 WL500g lpr.notice syslog: Connection from 192.168.100.51 port 4627 accepted
May 30 16:44:48 WL500g lpr.err syslog: /dev/usb/lp0: Permission denied

Does anyone know how to solve this problem?

--edit--
I solved the problem. Although the printer had worked fine before i switched the usb cable to the router I replaced the usb cable. With the cable replaced the router detected the printer instantly.