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.

Hi fullbanner !

Would not be possible to setup project on sf.net and use their svn repository for latest sources in there ?.
Then more people will have chance to improve, test and add new mods for wl600gp. And maybe less requests to
port xyz software

+1 for mety;'s request. Please make the source code of the changes available somewhere.

And many many thanks for all your work so far.

metyl wrote:

Hi fullbanner !

Would not be possible to setup project on sf.net and use their svn repository for latest sources in there ?.
Then more people will have chance to improve, test and add new mods for wl600gp. And maybe less requests to
port xyz software

I have been thinking in something like that

Thank you for asking, will make it available all the sources with the changes i have made

If possible i will make available all my experience compiling software for this machine
with instructions, etc...

When I stoped thttpd service than servises page no possible read, nesesary HW reset. UOAM works good.

fullbanner wrote:

Thank you for asking, will make it available all the sources with the changes i have made

If possible i will make available all my experience compiling software for this machine
with instructions, etc...

That would be excellent smile

Falty123 wrote:

When I stoped thttpd service than servises page no possible read, nesesary HW reset. UOAM works good.

thttpd is the webserver that makes possible view start and stop the services.

I have included the thttpd in the services because if you need to remove your flashdisk you need to stop it first.

I will make all those informations available in the new sourceforge webpage.


cvs: http://enhancedwl-600g.cvs.sourceforge.net
web: http://enhancedwl-600g.sourceforge.net

(Last edited by fullbanner on 8 Aug 2008, 14:23)

It would by nice that after downloading some torrents I could download them from Pen-Drive via FTP with no need to eject it from router, but where should I change the download path?

oscyp wrote:

It would by nice that after downloading some torrents I could download them from Pen-Drive via FTP with no need to eject it from router, but where should I change the download path?

You don't need to.

Go to the address ftp://192.168.1.1, supposing your router ip is 192.168.1.1

then enter in the folder torrents->download

You can add this folder in the details of the torrent in Yodctcs.

mine Yodctcs configuration looks like this

detail-url=ftp://192.168.1.1/torrents/download/

Yodctcs configuration file can be found in: <your_flash_disk>/asus/dctcs/dctcs.conf

Then in the details of the torrents all the file names will be links to the file.

Falty123 wrote:

Is it possible runing the Ventrilo Server on Wl-600g? http://www.ventrilo.com/download.php

I coudn't find the sources in the webpage

I think this program is not open source.

If so, then no.

Sources are needed for crosscompile to this machine.

fullbanner! Tambem sou tuga big_smile pelo que vi tas a fazer um bom trabalho! ;D

Eu estava a procura de um download manager para o wl-600 e um cliente de torrents, mas isso tem se fazer sempre por telnet ou percebi mal? não da indo a pagina do router? De qualquer maneira, podes dar aqui uma ajuda?

##########

I was looking for a download manager for the wl-600 and a client of torrents, but it has always done via telnet or i don´t understand ? does not work going to the page of router?? Anyway, can you help-me??


Thanks

fullbanner wrote:

then enter in the folder torrents->download

I can't beacuse there are no such directories when I login on ftp...

Hi All!
What do you think about this "improvements" in latest firmware 1.0.3.3 ?

/opt/bcm963xx/userapps/broadcom/cfm/util/system/syscall.c (1420)

/*
   if ( conntrack_max == 0 )
    conntrack_max = 1000;
   else {   
      if ( conntrack_max < 1000 ) {
         conntrack_max *= 2;
         if ( conntrack_max > 1000 )
            conntrack_max = 1000;
      }
   }
*/
conntrack_max = 2000;

/opt/bcm963xx/kernel/linux/net/ipv4/netfilter/ip_conntrack_proto_tcp.c (62)

unsigned long ip_ct_tcp_timeout_established =   3 MINS; //2007.01.19 Yau change 5 DAYS -> 3MINS

For the information:

3.7.8. ip_ct_tcp_timeout_established wrote:

The ip_ct_tcp_timeout_established variable tells us the default timeout value for tracked connections in the ESTABLISHED state. All connections that has finished the initial 3-way handshake, and that has not seen any kind of FIN packets are considered as ESTABLISHED. This is in other words more or less the default state for a TCP connection.
Since we never want a connection to be lost on either side of the netfilter firewall, this timeout is set extremely high so we do not accidentally erase entries that are still used. Per default, the ip_ct_tcp_timeout_established variable is set to 432000 seconds, or 5 days.
You should not consider lowering this variable because you have too many active connection tracking entries going. If this is your problem, you should be looking at the ip_conntrack_core.c file, function ip_conntrack_init which defines the maximum connection tracking entries. Unfortunately, this maximum value is static as of writing this, and will probably remain so for a long time since each conntrack entry requires a non-swappable memory.

Megabyte#12 wrote:

fullbanner! Tambem sou tuga :D pelo que vi tas a fazer um bom trabalho! ;D

Eu estava a procura de um download manager para o wl-600 e um cliente de torrents, mas isso tem se fazer sempre por telnet ou percebi mal? não da indo a pagina do router? De qualquer maneira, podes dar aqui uma ajuda?

##########

I was looking for a download manager for the wl-600 and a client of torrents, but it has always done via telnet or i don´t understand ? does not work going to the page of router?? Anyway, can you help-me??


Thanks

Boas

Esquece o telnet por enquanto, porque o sistema já está quase todo via web.

The last firmware i've posted it has already a torrent downloader, a service manager and a download manager(wget)

You can get it here: http://www.rn-design.net/WL-600gA-080808_1809.zip

The torrents are controlled with Yodctcs where you can download new torrents directly.

I have already uploaded some source files to the cvs server where you can see how you can implement wget service in a webpage.

When you open the services page, that page is located in <your_flash_disk>/asus/thttpd/cgi-bin/services

You can create something like:

#!/var/harddisk/asus/bin/bash
# downloadfile

echo "Content-type=text/html"
echo ""
echo "<html>"
echo "<head></head>"
echo "<body>"
echo "<form method='post' action='download'>"
echo "Please paste the complete url below"
echo "<input type='text' name='conf' size='100'><br><input type='submit' value='Start download'>"
echo "</form>"
echo "</body></html>"

Then you can change the source file for the setservice like this

system("/var/harddisk/asus/bin/wget " && conf);

Then rename the file to 'download.c' and compile the file with the toolchain.

I'm working in the webpage to post more information and examples so anyone can help in this project.

Sources are located in:

cvs: http://enhancedwl-600g.cvs.sourceforge.net

web will be: http://enhancedwl-600g.sourceforge.net/

(Last edited by fullbanner on 10 Aug 2008, 05:08)

oscyp wrote:
fullbanner wrote:

then enter in the folder torrents->download

I can't beacuse there are no such directories when I login on ftp...

Please in the router configuration, USB Application > FTP Server > FTP Settings
enable the option:

"Allow Anonymous User to Login?"

Then click save/apply

After this changes try again "ftp://192.168.1.1" and check that you see the root of your flash disk.

fullbanner, check your pm's please

how i use wget and ctorrent?

I has update the firmware, and put the files in my flash drive, but where access wget and ctorrent? there is a GUI?
what i have to do?

sorry my english
Thanks

Megabyte#12 wrote:

how i use wget and ctorrent?

I has update the firmware, and put the files in my flash drive, but where access wget and ctorrent? there is a GUI?
what i have to do?

sorry my english
Thanks

Yes there is a gui.

In your router configuration "Usb application > Services" start the service "Yodctcs"

Then you can access it in the address http://your_router_ip:8081

Enjoy

Everyone

Once you update the firmware of your router and extract the files in the archive "harddisk.tar.gz" to your
flash disk, you can control everything with gui.

After the upgrade you will have a new menu in your router configuration

"USB Application -> Services"

To start the "gui" to control the program "ctorrent", please start the service "Yodctcs".

Then you can access it in the address "http://192.168.1.1:8081" supposing your router ip is "192.168.1.1"

Remember: You must start your router with the flash disk inserted in one of the available usb ports.

--

Atenção

Após efectuar o upgrade do firmware e extrair o pacote "harddisk.tar.gz" para a sua flash
terá um novo menu na página de administração do router.

"USB Application -> Services"

Este menu permite controlar alguns serviços pré-definidos entre os quais a interface de controle para o
ctorrent, "Yodctcs".

Após activar este serviço poderá aceder-lhe através do endereço "http://192.168.1.1:8081" supondo que o ip do seu router é "192.168.1.1"

Lembre-se que terá que iniciar o seu router com a flash introduzida em uma das portas disponíveis no router.

Latest firmware Annex A: http://www.rn-design.net/WL-600gA-080808_1809.zip

Latest firmware Annex B: http://www.rn-design.net/WL-600gB-080806_2257.zip

(Last edited by fullbanner on 11 Aug 2008, 01:55)

fullbanner wrote:
oscyp wrote:

I have encountered the following problem while using torrents:

http://www.oscyp.x.pl/pen.jpg

PenDrive have 1,92GB Capacity indeed but it has 1,8GB FREE SPACE, not used! It is just the other way about! What is more I cannot start the torrent - when I am clicking "start" nothing happens... hmm (probably because it thinks that there is not ebough space to download the files)

What can I do with this?

Please try to format your PenDrive as 'fat' using Slow format 2 times using windows.
Then extract the contents of the archive 'harddisk' to it


Be sure you have this structure

<flashdisk>___asus
                   |
                   |_ torrents
                   |           |____download
                   |
                   |_partilha

The folder 'download' must exist inside the 'torrents' folder
and the folder 'torrents' must be directly in the root of your PenDrive.

The torrent sometimes take about 10 seconds to start.

Select the torrent and click the details button
Check that the torrent does't have a zero size value.
If yes, delete the torrent and upload again.

I have tried in windows uploading with firefox and IE without problems.

One more thing
Ntfs file system in this router is read only.

I have very some problem. Torrent has been to read, has correct length, but dont start. I tested several torrents of different servers. When I click more than one on "start button" router fall off need HW reset. Described procedure wont help.

(Last edited by Falty123 on 11 Aug 2008, 07:21)

Hey Falty123: I did exactly what fullbanner advised me and it helps. Try one more time step by step.

Btw please let me know your opinion about transfers achieved by this router, we can all do some tests and post them here (use DU Meter for example). I will do some charts in the evening

(Last edited by oscyp on 11 Aug 2008, 08:05)

Falty123 wrote:
fullbanner wrote:
oscyp wrote:

I have encountered the following problem while using torrents:

http://www.oscyp.x.pl/pen.jpg

PenDrive have 1,92GB Capacity indeed but it has 1,8GB FREE SPACE, not used! It is just the other way about! What is more I cannot start the torrent - when I am clicking "start" nothing happens... :/ (probably because it thinks that there is not ebough space to download the files)

What can I do with this?

Please try to format your PenDrive as 'fat' using Slow format 2 times using windows.
Then extract the contents of the archive 'harddisk' to it


Be sure you have this structure

<flashdisk>___asus
                   |
                   |_ torrents
                   |           |____download
                   |
                   |_partilha

The folder 'download' must exist inside the 'torrents' folder
and the folder 'torrents' must be directly in the root of your PenDrive.

The torrent sometimes take about 10 seconds to start.

Select the torrent and click the details button
Check that the torrent does't have a zero size value.
If yes, delete the torrent and upload again.

I have tried in windows uploading with firefox and IE without problems.

One more thing
Ntfs file system in this router is read only.

I have very some problem. Torrent has been to read, has correct length, but dont start. I tested several torrents of different servers. When I click more than one on "start button" router fall off need HW reset. Described procedure wont help.

I have tested starting 2 torrents at the same time right now and haven't noticed any problem.


It we place a very high number of connections in the configuration file of "Yodctcs", most of the time the router hangs.

Please change your "Yodctcs" configuration to something like this:

#sample config file with compiled in default values

#change these according to your system
torrent-directory=/var/harddisk/torrents/
download-directory=/var/harddisk/torrents/download/

#change user name and password
user=admin
password=admin

exit-hours=168
exit-ratio=5.6
cache-size=0
restart-torrents=0

download-limit=0
upload-limit=0

check-interval=1

port=8081

#arbitrary arguments to ctorrent
#-M 20 is the maximum number of connections per torrent.
ctorrent-args=-d -M 20
#url to prepend in the details box
detail-url=ftp://192.168.1.1/torrents/download/

#write-stats=1
ctorrent=/var/harddisk/asus/bin/ctorrent
client-host=localhost:15000
htmlroot-directory=/var/harddisk/asus/dctcs/www/darkside.ctcs.gui/

This file is located <your_flash_disk>/asus/dctcs/dctcs.conf

(Last edited by fullbanner on 11 Aug 2008, 12:13)

the router has only 16MB of RAM onboard. There is high probability that router will crash with no error message due to lack of free memory
Look from those 16MB i have normaly free is only 600K (not counting cache & buffers).  I Would really like to see how much memory is free for real.

# cat /proc/meminfo
Using fallback suid method
MemTotal:        13800 kB
MemFree:           596 kB
Buffers:           688 kB
Cached:           4976 kB
SwapCached:          0 kB
Active:           4140 kB
Inactive:         3600 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:        13800 kB
LowFree:           596 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:               0 kB
Writeback:           0 kB
Mapped:           3812 kB
Slab:             3120 kB
Committed_AS:     6344 kB
PageTables:        412 kB
VmallocTotal:  1048560 kB
VmallocUsed:      1588 kB
VmallocChunk:  1046796 kB

So I think there is definitely a need to create a swap partition on then usb disk (at lest 16MB). 
You'll need mkswap and swapon binaries from busybox and if you want to create partitions under router also fdisk.

for example i'm using

# cat /proc/partitions
Using fallback suid method
major minor  #blocks  name

  31     0       2688 mtdblock0
   8     0    1964032 sda
   8     1    1855553 sda1
   8     2     108465 sda2

# mkswap /dev/scsi/host0/bus0/target0/lun0/part2
Using fallback suid method
Setting up swapspace version 1, size = 111063040 bytes
# swapon /dev/scsi/host0/bus0/target0/lun0/part2
Using fallback suid method
# free
Using fallback suid method
              total         used         free       shared      buffers
  Mem:        13800        12732         1068            0          568
 Swap:       108456            0       108456
Total:       122256        12732       109524
# cat /proc/meminfo
Using fallback suid method
MemTotal:        13800 kB
MemFree:          1056 kB
Buffers:           568 kB
Cached:           4492 kB
SwapCached:          0 kB
Active:           4220 kB
Inactive:         2920 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:        13800 kB
LowFree:          1056 kB
SwapTotal:      108456 kB
SwapFree:       108456 kB
Dirty:               0 kB
Writeback:           0 kB
Mapped:           3820 kB
Slab:             3196 kB
Committed_AS:     6348 kB
PageTables:        412 kB
VmallocTotal:  1048560 kB
VmallocUsed:      1656 kB
VmallocChunk:  1046736 kB

And also i'm not sure if swap support is enabled in broadcom's default kernel config but it should be. No chance to test it now.

(Last edited by metyl on 11 Aug 2008, 15:25)

Thanks fullbanner, torrents works fine but i don´t have a box "Download with wget" like appear here what i have to do?

Continue the good work smile