It's your post from a few weeks ago that piqued my interest. From my initial attempts, I can say for sure that it's possible to turn off all of the front panel lights. As an experiment, I set all gpio outputs to zero. All the leds, but the power led, turned off. Unfortunately, the HDD also turned off! The box itself, including the wireless link, was still running.
I think there's enough info in the 1.0.4.2 code to easily figure out the gpio<->led /button relationship. Turning them on and off should be as simple as fiddling with /dev/gpio/*. I'm still going to play around with this because I want to use the copy button for other purposes.
- K.C.
Last edited by kfurge; 17-12-2006 at 03:18.
File looked OK initially, but ...
After a while (I'm not sure if it was elapsed time or some other event) the files went back to its original contents.
Is there a better way (other than via /etc/hosts) to have the router know the host names of the machines on the lan?
DNS services are provided by dnsmasq. A quick google search turned up the project page (http://thekelleys.org.uk/dnsmasq/doc.html). Along with being a mini DNS server, it also supports DHCP and will maintain DNS entries for the IP addresses it configures.
So... You could probably kill udhcpc then restart dnsmasq with the correct option flags to also be the DHCP server. Of course by doing this, you'll lose the ability to configure DHCP via the web interface.
- K.C.
Last edited by kfurge; 17-12-2006 at 15:23. Reason: Bad url
I have used dnsmasq in the past - the beauty of it is that it's really easy to configure. I just tried it on my router and it works perfectly - much better than bind which is what I was trying to use!
All you have to do is
1. modify your /opt/etc/dnsmasq.conf - I recommend you set dhcp to only run on the interface br0 to avoid affecting your WAN-side connection. Just uncomment the interface= line and put br0 after =
2. put in a domain name for you local domain (mine is based upon my internet side DynDNS homelinux.org domain)
3. add in lines for your dhcp-host machines based upon each interfaces mac address - there are examples in the conf file. You can assign a name and "static ip" in one line to match to a MAC address.
4. then killall -9 udhcpd and run sudo /opt/etc/init.d/S56dnsmasq
if this works - edit your rc.local to kill udhcpd and start dnsmasq
and thats it!![]()
That was brilliant! Thanks. This fixed the problem and met the need exactly!
OK.
So now to set up CUPS and HPIJS for my next project.
PS: Oops, I spoke too soon!
'ipkg update' now doesn't work any more. In fact, 'wget anything' does not work either.
It looks like dnsmasq isn't working right for the local machine.
Later PS: Fixed now. I should not have disabled the DHCP server via the web interface, it would seem.
Last edited by hal2k1; 18-12-2006 at 13:58. Reason: spoke too soon!
@all
Is it possible to change de sorting method (to filename) the router for the “browse share” explorer interface and uPnP server with telnet?
See discussion:
http://www.wl700g.com/showthread.php...=sorting+files
Greatings B
Sure.
The magic package you need to install is "buildroot". I manually installed it (without the use of ipkg) because it's a 30M monster. You'll also want to install the dependent packages listed in the buildroot package including make, autoconf, m4, etc.
For gnu "configure" to work properly, you'll need to replace some of the buysbox utilities with their heavyweight versions. Packages like awk, sed, and grep come to mind. There's probably more. I manually installed them as needed when I noticed funny behavior while configuring.
Addtionally, I added this to my .profile
PATH_SEPARATOR=:
CONFIG_SHELL=/opt/bin/bash
AWK=/opt/bin/gawk
export PATH_SEPARATOR CONFIG_SHELL AWK
Finally when you run configure, make sure you do "bash configure --prefix=/opt". You'll still find some configure scripts and makefiles won't work right, especially when installing the package. I've found the main reason is because some Makefile.in files don't use the @SHELL@ macro and have /bin/sh hardcoded inside instead. Replace all /bin/sh with /opt/bin/bash and they usually always work.
Hope this helps.
- K.C.
Hmm, I am having some trouble trying to compile busybox - I get the following error
$ make
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf.o: In function `check_stdin':
conf.c: (.text+0x19c): undefined reference to `dcgettext'
conf.c: (.text+0x1e0): undefined reference to `dcgettext'
conf.c: (.text+0x220): undefined reference to `dcgettext'
scripts/kconfig/conf.o: In function `check_conf':
conf.c: (.text+0x1190): undefined reference to `dcgettext'
scripts/kconfig/conf.o: In function `main':
conf.c: (.text+0x1fb0): undefined reference to `dcgettext'
scripts/kconfig/conf.o:conf.c: (.text+0x2020): more undefined references to `dcgettext' follow
collect2: ld returned 1 exit status
scripts/kconfig/conf -s Config.in
make[2]: scripts/kconfig/conf: Command not found
make[2]: *** [silentoldconfig] Error 127
make[1]: *** [silentoldconfig] Error 2
make: *** [include/autoconf.h] Error 2
Can anyone suggest what is happening here - there was no configure script, so it may not be looking in the right place for libraries?
That was the latest version - 1.3.0, but I get similar errors out of version 1.2.0 and 1.1.3.
Hi KC,
Just a quick question, this could be dumb but why do you recommend using GerardNL's tutorial for flashing firmware, is the asus webpage not able to flash your custom firmware?
I'm asking because I want to rule out some problems I'm having at the moment. The asus webpage firmware upload is far easier to use. I would have PM'd this question but you've turned it off.
Thanks,
LK.
LeperKing: I have always used the asus firmware upload page with no problems. I used the GerardNL approach only when my router stopped giving out IP addresses at one point. Other than that, the ASUS upload page has always worked for me