OpenWrt Forum Archive

Topic: Asus WL600g

The content of this topic has been archived between 19 Sep 2015 and 3 May 2018. Unfortunately there are posts – most likely complete pages – missing.

TheDrake wrote:

mke2fs should be real, but not fully tested. Don't know why they are so big. They should be already stripped and shared libs enabled.

BTW, I tryed to cross compile mc, but It doesn't work very well. Screen not well drawn, F keys does not work, colors absent. Probably I miss something.

try insert mke2fs - very needed tool inside firmware

about mc:

for color we must use profile:
export TERMINFO="/etc/terminfo" # or other path where mc terms profile stored (xterm for color)
export TERM="xterm"

F keys from F1-F5 may be use like ~+<number> (F6-F10 must work)

for properly worked F keys (F1-F10) and also hide panells by Crtl+O need bash and export SHELL="/opt/bin/bash"

P.S. transmision 1.6 in web says:
401: Unauthorized
Unauthorized IP Address.
Either disable the IP address whitelist or add your address to it.
If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries.
If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details.

(Last edited by AndreyPopov on 10 May 2009, 00:00)

AndreyPopov wrote:
TheDrake wrote:

mke2fs should be real, but not fully tested. Don't know why they are so big. They should be already stripped and shared libs enabled.

BTW, I tryed to cross compile mc, but It doesn't work very well. Screen not well drawn, F keys does not work, colors absent. Probably I miss something.

P.S. transmision 1.6 in web says:
401: Unauthorized
Unauthorized IP Address.
Either disable the IP address whitelist or add your address to it.
If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries.
If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details.

Please note that transmission/.config directory is not included in tar. You should use the one that comes with previous version or just upgrade your current version.

update: bug, need to upgrade to a newer build of transmission. Tomorrow (or sometime in the near future)... smile

Bye,
Paolo.

(Last edited by TheDrake on 12 May 2009, 23:28)

AndreyPopov wrote:
TheDrake wrote:

BTW, I tryed to cross compile mc, but It doesn't work very well. Screen not well drawn, F keys does not work, colors absent. Probably I miss something.

about mc:

for color we must use profile:
export TERMINFO="/etc/terminfo" # or other path where mc terms profile stored (xterm for color)
export TERM="xterm"

F keys from F1-F5 may be use like ~+<number> (F6-F10 must work)

for properly worked F keys (F1-F10) and also hide panells by Crtl+O need bash and export SHELL="/opt/bin/bash"

Do you mean that firmware (or mc) needs ncurses libs? hmm

When I add torrent file to transmission it does not start downloading. there is no activity (no download or uploading) It is only waiting. How can I solve this problem.

(Last edited by alidemir on 10 May 2009, 11:03)

TheDrake wrote:
AndreyPopov wrote:

1. I try remove "-" not any changes

1. I can't find this bug... Hope someone could help us. sad

Transmission web-start problem fixed!!!!

Just change /var/harddisk/asus/etc/init.d/transmission file as follow:

#!/bin/sh

logger -s $0 $1
export LD_LIBRARY_PATH=/lib:/var/harddisk/asus/lib:/var/harddisk/lib
ASUSBASEPATH=/var/harddisk/asus
TRANSMISSIONPATH=$ASUSBASEPATH/transmission

case $1 in
start)
echo "16384" > /proc/sys/net/ipv4/route/max_size
echo "16384" > /proc/sys/net/ipv4/netfilter/ip_conntrack_max
$TRANSMISSIONPATH/bin/transmission-daemon -g $TRANSMISSIONPATH/.config/transmission-daemon
;;
stop)
killall -q transmission-daemon
;;
*)
esac
exit $?

Bye,
Paolo.

(Last edited by TheDrake on 10 May 2009, 15:48)

TheDrake wrote:

[Do you mean that firmware (or mc) needs ncurses libs? hmm

http://downloads.x-wrt.org/xwrt/kamikaz … s/Packages
Package: mc
Version: 4.6.1-2
Depends: glib1, libncurses
Provides:
Source: feeds/packages/utils/mc
Section: utils
Priority: optional
Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>
Architecture: mips
Installed-Size: 537018
Filename: mc_4.6.1-2_mips.ipk
Size: 228139
MD5Sum: aace17a79f19070e4933de8c4bb23cec
Description:  GNU Midnight Commander is a text-mode full-screen file manager.
It uses a two panel interface and a subshell for command execution.
It includes an internal editor with syntax highlighting and an
internal viewer with support for binary files. Also included is
Virtual Filesystem (VFS), that allows files on remote systems
(e.g. FTP, SSH, SMB servers) and files inside archives to be
manipulated like real files.

Hi TheDrake and AndreyPopov,

  ntfs support should be fine for RW but permisson denied, guess should be the mount parameter problem but i don't how to change it. FYI, see below uid=0 and gid=0 should be the user account to access.

/dev/discs/disc0/part6 on /var/harddisk/part1 type ntfs (rw,sync,noatime,nodirat
ime,uid=0,gid=0,fmask=0177,dmask=077,nls=cp950,errors=continue,mft_zone_multipli
er=1)

BTW, i am using the chinese native language, unfortunely the movies i downloaded are always unable to display correctly which i don't the names (transmission works well more than ctorrent, thanks).  I tried to mount manually with charset cp936 supporting but it always mounted as cp950, is there any way you guys can help me or tell me how to change the parameters?

i tried, mount -t vfat -o iocharset=cp936 /dev/discs/disc0/part5 /mnt
after mounted successfully, to show the mount list, codepage and iocharset became cp950 again.

Thanks and Thanks again for contributing to wl600g fans!

BTW, temp files profile~, rcS~  has been built int the release, probably you would remove it in next release smile

(Last edited by royon.james on 10 May 2009, 17:10)

royon.james wrote:

Hi TheDrake and AndreyPopov,

  ntfs support should be fine for RW but permisson denied, guess should be the mount parameter problem but i don't how to change it. FYI, see below uid=0 and gid=0 should be the user account to access.

Sorry, this kernel version has an old ntfs driver with read only version (preliminar rw implementation is useless). So in last build I've completely disabled it.

royon.james wrote:

BTW, i am using the chinese native language, unfortunely the movies i downloaded are always unable to display correctly which i don't the names (transmission works well more than ctorrent, thanks).  I tried to mount manually with charset cp936 supporting but it always mounted as cp950, is there any way you guys can help me or tell me how to change the parameters?

i tried, mount -t vfat -o iocharset=cp936 /dev/discs/disc0/part5 /mnt
after mounted successfully, to show the mount list, codepage and iocharset became cp950 again.

cp936 was removed. It will be reinserted in next build.

Bye,
Paolo.

royon.james wrote:

BTW, temp files profile~, rcS~  has been built int the release, probably you would remove it in next release smile

Count on it... wink

TheDrake wrote:
royon.james wrote:

BTW, i am using the chinese native language, unfortunely the movies i downloaded are always unable to display correctly which i don't the names (transmission works well more than ctorrent, thanks).  I tried to mount manually with charset cp936 supporting but it always mounted as cp950, is there any way you guys can help me or tell me how to change the parameters?

i tried, mount -t vfat -o iocharset=cp936 /dev/discs/disc0/part5 /mnt
after mounted successfully, to show the mount list, codepage and iocharset became cp950 again.

cp936 was removed. It will be reinserted in next build.

Bye,
Paolo.

Thanks very much!

The original one you didn't remove oriental charset is still the same, for the latest one i have manually loaded the cp936 charset module by insmod, anyhow the same result as above. seems it's default to cp950... or the busybox mount command do not support charset mounting?

royon.james wrote:

The original one you didn't remove oriental charset is still the same, for the latest one i have manually loaded the cp936 charset module by insmod, anyhow the same result as above. seems it's default to cp950... or the busybox mount command do not support charset mounting?

In next build cp936 will be a module too. Put insmod it in your startup file if you need it.

Default for mount will remain cp950. Actually it's "hardcoded" in cfm, but it could be hacked as well.

Bye,
Paolo.

TheDrake wrote:
royon.james wrote:

The original one you didn't remove oriental charset is still the same, for the latest one i have manually loaded the cp936 charset module by insmod, anyhow the same result as above. seems it's default to cp950... or the busybox mount command do not support charset mounting?

In next build cp936 will be a module too. Put insmod it in your startup file if you need it.

Default for mount will remain cp950. Actually it's "hardcoded" in cfm, but it could be hacked as well.

Bye,
Paolo.

Luckily to hear this message, can you help for this? i think for the other friends would also request their Native language charset, if it could be parameter configure like in startup, that would be wonderful. if not, can help for how or either build a special version to me that would be appreciate very much!

TheDrake

may be on services page remove Start/Stop button on Thttpd?  because services page can display ONLY if Thttpd run!

remain only status of thttpd.

no need command in busybox:
rpm - 492k
install - 594k

and
unix2dos - 594k
dos2unix - 594k

i think mke2fs, tune2fs and e2fsck more waiting?

(Last edited by AndreyPopov on 10 May 2009, 23:08)

Hello. About a month ago i've bought a WL-600g and now i am almost disappointed. I've tried a couple of firmwares from The Drake (Thank you for your work, The Drake) and both official ones. So none of them are working good for me. I am talk about that god damned DNS issue. Device might work for 5 hours without reboot and might not for five minutes without any torrents activity. Is there any working solution resolving DNS situation? I also have an Acorp LAN 422 with modified firmware. It has comparable RAM/CPU. It's uptime was about 2 month without reboots and any problems at all. Thank you.

Hi TheDrake,

I have figured out the way to load my own NLS cp936 in startup script, the mount script has to be executed outside the startup script in harddisk, otherwise it would get Device or resource busy error.

Here i would share my script for manually loading my own codepage cp936, you would re-architect either any other better idea to make this NLS available.
First, i copied nls_cp936.ko (you build in firmware that would be perfect, but for different NLS language, that would cost space, so better put in /var/hardisk/asus/lib) to harddisk
I created 3 startup files for calling togehter
startup
======
#!/bin/sh
# re-mount harddisk as netive language - cp936
insmod /var/harddisk/asus/lib/nls/nls_cp936.ko
cp /var/harddisk/asus/startup2 /var/startup2
sh /var/startup2 &

startup2
======
# kill the programs which would open files/folders in harddisk
killall stupid-ftpd
# sleep to make sure no files opened from harddisk
sleep 2
umount /var/harddisk
mount -t vfat -o codepage=936,iocharset=cp936 /dev/discs/disc0/part5 /var/harddisk
sh /var/harddisk/asus/startup3 &

startup3
======
# startup 3 is the normal start script for loading program from harddisk

#!/bin/sh

# re-mount harddisk as netive language - cp936
rm /var/startup2

stupid-ftpd -f /var/stupid-ftpd.conf

# refine memory to kill processes
killall lpd

#check for swap file
if  [ ! -e /var/harddisk/myswap.swp ];
         then
dd if=/dev/zero of=/var/harddisk/myswap.swp bs=1M count=32
mkswap /var/harddisk/myswap.swp
#make swap file
fi

#make swap on
swapon /var/harddisk/myswap.swp

#start requried thttpd for Service tab enable
/var/harddisk/asus/etc/init.d/thttpd start
...............
..............
............

Hope this is an idea for you to figure out better solution.

Keep up good working, you guys make our Route WL600g so powerful!!!
thanks!

Tranmission works pretty well in Lan. When i try to use it my office remotely to home, anyhow the connection could not be made.

netstat returned 9091 port is opened at 0.0.0.0, for unfortunately that connection is still refused, is there any firewall or settings like service.conf to open http, ftp, telnet etc?

hmm ... cfm program controls the firewall.
Try iptables -A INPUT -p tcp --dport 9091 -j ACCEPT ???

@ The Drake firmware @
   
I propose to use a lower transmission priority using nice or renice commands.

(Last edited by marcinmaster999 on 12 May 2009, 12:01)

TheDrake by free command:

# free
              total         used         free       shared      buffers
  Mem:        13784        13260          524            0          104
 Swap:       131064          320       130744
Total:       144848        13580       131268

number of buffers is VERY SMALL!!!!

may be you find wheree number of buffers can be increased?

AndreyPopov wrote:

TheDrake by free command:

# free
              total         used         free       shared      buffers
  Mem:        13784        13260          524            0          104
 Swap:       131064          320       130744
Total:       144848        13580       131268

number of buffers is VERY SMALL!!!!

may be you find wheree number of buffers can be increased?

I think that they are dynamic managed. See my last build (not yet released) with samba started, after some hours of "idle":


# uptime
 19:14:51 up 22:34, load average: 0.01, 0.01, 0.00

# free
              total         used         free       shared      buffers
  Mem:        13784        13208          576            0          516
 Swap:        21496         2748        18748
Total:        35280        15956        19324
marcinmaster999 wrote:

hmm ... cfm program controls the firewall.
Try iptables -A INPUT -p tcp --dport 9091 -j ACCEPT ???

@ The Drake firmware @
   
I propose to use a lower transmission priority using nice or renice commands.

renice is included in the build. Have you tested transmission with priority lowered?

TheDrake wrote:

I think that they are dynamic managed.

yes, I know that dynamic. but for fast and perfomance file operations more buffers needed!

for example Oleg firmware for WL-500gp routers:

$ free
              total         used         free       shared      buffers
  Mem:        30324        27916         2408            0        11244
 Swap:       132980          188       132792
Total:       163304        28104       135200

DD-WRT firmware for broadcom routers:

 free
              total         used         free       shared      buffers
  Mem:        29236        26860         2376            0         7260
 Swap:       312472         2100       310372
Total:       341708        28960       312748

more intensive file operations - more buffers needed.

may be when you limit size of var than number of buffers decraese?
I remember in previously firmware more than 1000 buffers avaible.

(Last edited by AndreyPopov on 12 May 2009, 21:37)

AndreyPopov wrote:
TheDrake wrote:

I think that they are dynamic managed.

yes, I know that dynamic. but for fast and perfomance file operations more buffers needed!

for example Oleg firmware for WL-500gp routers:

$ free
              total         used         free       shared      buffers
  Mem:        30324        27916         2408            0        11244
 Swap:       132980          188       132792
Total:       163304        28104       135200

DD-WRT firmware for broadcom routers:

 free
              total         used         free       shared      buffers
  Mem:        29236        26860         2376            0         7260
 Swap:       312472         2100       310372
Total:       341708        28960       312748

more intensive file operations - more buffers needed.

may be when you limit size of var than number of buffers decraese?
I remember in previously firmware more than 1000 buffers avaible.

Yes, limiting var fs size also decreases buffers because fs used for var shares memory with buffers. But I suspect that overall speed is increased by free RAM instead of buffers. I Think that our bottleneck relative weight is RAM -> CPU -> DISK. I think that overall disk speed is mainly limited by RAM and CPU, not buffers. Any measures about that?

About Oleg dynamic RAM assignment, remember that WL600 have only 16MB RAM vs 32MB WL500. smile

TheDrake wrote:

I think that overall disk speed is mainly limited by RAM and CPU, not buffers. Any measures about that?

one guy says that if usb mounted only with (rw) option instead (rw,sync) than write speed equal to read speed about 1.5-2MB/s