PDA

Bekijk de volledige versie : Clone package for WL500gP by Thira



mee0093
15-11-2007, 09:26
Hello all asus users.
My name is mee. I come from http://wl500gp.sirikasedpan.com , Thailand forum of WL500gP.

English is not my mother tongue, so please be patient.

This clone project is produced by Thira. The objective of this project is to help new user who don't have skills in Linux command and english language (we are Thai).

Now this clone is work, so we want to share this project for other guys.

************************************************** ***

This package consists of 4 files

- http://oleg.wl500g.info/1.9.2.7-8/ The lastest Firmware (15/11/2007 = date of this post, not date of firmware).
- WL500g.Premium.CFG (http://www.scmmodels.com/test/WL500g.Premium.CFG.rar) for nvram
- WL500g.Premium.tar.gz (http://www.scmmodels.com/test/WL500g.Premium.tar.gz) for flashfs (this file don't need to extract)
- opt.tar (http://www.scmmodels.com/test/opt.tar.rar) for /opt


The system after installation

- 500gP will work in Access Point mode
- User = admin Password = admin (change them ASAP)
- IP Config --> LAN (no WAN due to it works in Access Point mode)

Host Name = 500GP
IP Address = 192.168.1.21
Subnet Mask = 255.255.255.0
Default Gateway = 192.168.1.1- Wireless --> Interface

SSID = 500GP
WEP Encryption = WEP-64bits
WEP Key 1 = CED02350C7
WEP Key 2 = 1BE36F9284
WEP Key 3 = 8A1412F4AE
WEP Key 4 = 902855DE46
- Wireless --> Advanced
Hide SSID = Yes
- Advanced Services Configuration
Enable WaveServer = No
- Application ( dropbear is not enable in startup, but Thira lets it can be enabled by man_ps.cgi)
transmission 0.82-3 (infact Thira prefers 0.7+r2474-1, however it is gone T_T)
enhanced-ctorrent 2.2-6
sctcs 0.85-b ( downloaded files are store at /tmp/harddisk/sctcs)
samba 3.0.26a-1
- workgroup = WORKGROUP
- /tmp/harddisk/torrent (for transmission)
- /tmp/harddisk/sctcs (for sctcs)
- /tmp/harddisk/pub (for stupid ftp)
- /tmp/harddisk/share (normal share)
man_ps.cgi (script to manage stupid ftp, dropbear, telnet, sctcs, cron and samba)
mc_4.6.1-3 (Mid-night Commander)
nano 2.0.6-1
cron 4.1-7
xinetd 2.3.14-7


to use Application
- Asus web setup = http://192.168.1.21
- SCTCS = http://192.168.1.21:8008
- transmission = http://192.168.1.21:8008/cgi-bin/transmission.cgi
- man_ps.cgi = http://192.168.1.21:8008/cgi-bin/man_ps.cgi


remark
- if only sctcs is used, cron disable is recommend
- if transmission is used, cron must enable

mee0093
15-11-2007, 09:57
preparation

- PuTTY http://www.tartarus.org/~simon/putty-snapshots/x86/putty.exe
- Flash drive or Card reader(with mem card ) at least 128 Mbs
- copy opt.tar into Flash drive or Card reader at root
- adsl mogem router setup (Not asus)
work in router mode with Lan IP = 192.168.1.1, Subnet Mask = 255.255.255.0
set DHCP Server and pool in 192.168.1.30 - 192.168.1.254


installation

1. Upgrade Firmware


1.1 setup your PC IP =192.168.1.20, Gateway=192.168.1.1, DNS Server=192.168.1.1
1.2 cannect PC Lan to Lan 500gP, then power on wl500gP(do not connect to modem)
1.3 open asus web setup (narmally http://192.168.1.1 , username= admin, password=admin)
1.4 goto System Setup --> Firmware Upgrade and then upgrade firmware
1.5 wait until webpage is reappear
1.6 Reset 500gP by press Restore Button until power LED wink



2. WL500g.Premium.CFG


2.1 goto web setup of 500gP
2.2 System Setup --> Setting Management --> Load From a File, then load WL500g.Premium.CFG
2.3 the webpage will hang, wail until it say "no page can be loaded". Now Asus IP is changed to 192.168.1.21


3. WL500g.Premium.tar.gz


3.1 goto web setup (http://192.168.1.21)
3.2 System Setup --> Flashfs Management --> Load From a File, and load WL500g.Premium.tar.gz

mee0093
15-11-2007, 10:30
4. harddisk preparation, we need 3 partitions ;part1 for swap=512Mbs, part2 for opt ext3=1024Mbs, part3 ext3=the rest of free space


4.1 connect your usb harddisk into 500gP

4.2 open PuTTY with
Host Name(or IP address)=192.168.1.21
Port = 23
Protocol=Telnet

then press Open and do login with username=admin, password=admin

4.3 type


mount

4.4 if it shows that you have some mount points at /tmp/harddisk , /tmp/harddisk/part1 or others, type below code (start with greater number)
example



umount /tmp/harddisk/part2
umount /tmp/harddisk/part1
umount /tmp/harddisk

4.5 if no mount point at /tmp/harddisk


insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s

4.6 if you already create parttion by other programs (such as Partition Magic )goto mount step (step No 5).

4.7 create partition

fdisk /dev/discs/disc0/disc

instruction
press d for delete partition, if you have only 1 partition, no partition number is required.

press number to delete specific partition (1 for partition1) repeat this step until no partition is found.

press p to list current partition, now we must have no partition, if some still remain delete it.

press n to create new partition.

press p to create primary one.

press 1 for partition 1.

press 1 (again) to accept default value of first cylinder

enter +512M to create 512 MB of partition

press t to specific type of partition.

enter 82 for swap

press n to create new partition.

press p to create primary one.

press 2 for partition 2.

press 1 to accept default value of first cylinder

enter +1024M to create 1024 MB of partition

press t to specific type of partition.

press 2 for specific partition2

enter 83 for Linux

press n to create new partition.

press p to create primary one.

press 3 for partition 3

press enter 2 times for default setting.

press t to specific type of partition.

press 3 for specific partition3

enter 83 for Linux

press p to list partition, now we must have 3 partitions

press w to writeall config to harddisk, the exit fdisk


4.8 type
halt to stop WL500gP when putty is disappeared turn off 500gP and remove your USB HDD.


4.9 turn on 500gP, wait for a while. repeat 4.1 to 4.5

mee0093
15-11-2007, 10:35
5 creat file system in harddisk and mount


mkswap /dev/discs/disc0/part1
swapon /dev/discs/disc0/part1
mke2fs -j /dev/discs/disc0/part2
mount /dev/discs/disc0/part2 /opt
mke2fs -j /dev/discs/disc0/part3
mount /dev/discs/disc0/part3 /tmp/harddisk

6. creat all necessary folders


cd /tmp/harddisk
mkdir sctcs
mkdir sctcs/download
mkdir sctcs/torrent
chmod a+w sctcs
chmod a+w sctcs/download
chmod a+w sctcs/torrent
mkdir torrent
mkdir torrent/source
mkdir torrent/target
mkdir torrent/work
chmod a+w torrent
chmod a+w torrent/source
chmod a+w torrent/target
chmod a+w torrent/work
mkdir share
mkdir pub
chmod a+w share
chmod a+w pub

7 load /opt

plug your Flash drive into 500gP and mount (see below) then type

cd /opt
tar -xvf /tmp/mystorage/opt.tar
umount /tmp/mystorage

unplug your flash drive

8 reboot 500gP

9 connect 500pG WAN to your ADSL modem router

10 config PC IP =auto, DNS Server=auto

mee0093
15-11-2007, 10:52
recommendation


- change your password .
- change name of man_ps.cgi

mv /opt/share/www/cgi-bin/man_ps.cgi /opt/share/www/cgi-bin/new_name.cgi
- change WEP Encryption and WEP Key

-------------------------------------------------------------------------

Checking that your usb storage is found by 500gP

connect usb storage (flash drive or usb hd box) then type


fdisk -l

you should see something like this

http://www.scmmodels.com/test/fdisk.gif

notice look at host1. Number 1 is the number of usb storage that will be used with disc1 in next step (number maybe changed, depend on amount of your drive)


How to mount partition for usb storage



creat folder for mount point (if this folder is exist, an error will occur. let ignor it)


mkdir /tmp/mystorage

mounting

the number of disk (disk1) may be changed as above


mount /dev/discs/disc1/part1 /tmp/mystorage





Let enjoy your 500gP

Oleg
15-11-2007, 10:58
Does WL500gp-1.9.2.7-8.trx is MY original firmware?

thE_29
15-11-2007, 11:01
If it is yours and yours is under GPL they have to release the source (if modified ;))

Oleg
15-11-2007, 11:07
It looks like just a repackaged version of my firmware - they use rar instead of zip. Bu I've no idea, why it is dated 15/11/2007.

mee0093
15-11-2007, 13:25
It looks like just a repackaged version of my firmware - they use rar instead of zip. Bu I've no idea, why it is dated 15/11/2007.

Sorry for my mistake.

15/11/2007 is mean date that i post this message, not date of firmware.

I will edit my message to prevent misunderstand.

for your question about version of firmware, i will ask Thira and will reply later.
but i can tell you that Thira did not modify your firmware.

Oleg
15-11-2007, 13:38
It's stronly advised not to repackage firmware but put a direct link to original file location or provide whole source tarball on your site too...

mee0093
15-11-2007, 14:19
It's stronly advised not to repackage firmware but put a direct link to original file location or provide whole source tarball on your site too...

I change url of firmware to your original file location.

about tarball Thira only tar his /opt/ directory and zip it after install some packages such as sctcs, transmission.

thira
15-11-2007, 16:12
It is Absolutely Original Oleg's firmware.
I'm very sorry, that thing I do make you unhappy.
At 500gp.sirikasedpan web site, I alway told that, I used Oleg's firmware and only Oleg's firmware can do this.
I use rar because after I unzip your firmware, I was deleted original zip file and there isn't zip program in my pc.
It's my mistake, I was not make firmware download's link to your web site. I'm apologize.
The main point I do this project is how to make installation process easiest to new user.