Flashing Oleg's Firmware in WL HDD
Hello everybody. I'm a proud new owner of a Wl HDD. I have the hope to make a kind of Wl 500g in a smaller shape, with the fast access to HD.
In the "how to save current firmware" tread, Antiloop tryed to flash Oleg's firmware in the Wl-HDD
Quote:
Originally Posted by Antiloop
to add some points..
the WL-HDD is able to serve as printserver too
i just flashed a 1.8.1.7pre3 into it and the thing booted normally but ofcourse acted as an wl500g but the ethernet port is the WAN port then so you have to login wirelessy otherwise you can't access it because of the firewall
some thinking of me, perhaps it's possible to remove the FTP from the firmware and put a firmware on the HDD itselve
this should enable us (ofcourse memory use is still a point!) to implement bigger packages
As far as I understand, I will have the following steps to take:
1) format a partition using ext3fs using a tool that I would have to copy in the temp directory from the web admin page on a usb key or on the HD
2) copy all files from the latest Oleg firmware root fs to this partition (should I take special methods as I'm working under Windows system?)
3) change the nvram setting to boot from this partition using something like :
nvram set boot_dev="/dev/scsi/host0/bus0/target0/lun0/part1"
nvram commit
If I understand correctly, if the WLHDD cannot find the system on the USB drive or HDD, then it will boot the normal system from internal memory, so I have a rollback by removing the drive and reformating it?
Can I do all this from the web interface, or I need telnet access? I couldn't start telnet until now as busybox doesn't give me any output (I'm using the one from Oleg's firmware)
Can anybody tell me if my asumption are correct and correct them if needed?
Thanks a lot
PS: As Antiloop tryed it, is it a viable solution to work with Oleg's firmware, if I'm ready to access the WL HDD from wireless and let the lan port be a wan port?
How to get access to root system via ftp on WL HDD
You can get access to the hard drive partition in /tmp/harddrive/part1 or partx. For the purpose of this setup, I've created 2 partitions using the web interface. One is the minimum 100 Mb, the other is the remaining space. They will be formated in ext2fs, so it allow us to work seemlesly on this partition and on the system.
First you have to go to the "secret" admin page:
http://wl-hdd/Main_AdmStatus_Content.asp
From there, if you type the ls command then click on refresh, you see that there are a lot of pages available, but they only set up nvram parameters, as they are probably missing the firewall or ppoe files.
First, copy your stupid ftp conf file from this page:
Code:
cp /tmp/stupid-ftpd.conf /tmp/harddisk/part1/stupid-ftpd.conf
if you are ready to copy it on you first partition (add subfolders if needed)
Then you need to edit your stupid-ftp.conf using a good editor that keeps the unix formating (like ultraedit, not notepad if you are working under windows)
As it is on your first hard drive partition, you can fetch the file using ftp or normal network access on the root of your first partition.
Find the line starting with serverroot=/tmp/harddisk/part1 and replace it by serverroot=/
save your file, and go back the the "secret admin" page
type:
Code:
cp /tmp/harddisk/part1/stupid-ftpd.conf /tmp/stupid-ftpd.conf
and hit refresh
now you have to kill the old ftp deamon. Probably that a killall would have a lot more options, but my simple method (i'm rusty on linux) is to use ps -aux in the admin page, find the stupid ftp line, get the PID (the first number in the row) then type kill -9 xx where xx is the number
EDIT: a
Code:
killall stupid-ftpd
do the whole trick
all this must be typed then followed by the refresh button, not enter.
to finish, type
Code:
/bin/stupid-ftpd /tmp/stupid-ftpd.conf
and hit refresh.
Et voila, you have an access to the whole system if you ftp your wl-hdd
As a side note, it seems the process wont use a conf file located anywere else than on the tmp folder.
Feel free to correct me, as I said I'm rusty on Linux, but I'll go back on track very quickly ;)
To get access using telnet to your WL HDD
To get access using telnet to your Wl HDD, you first have to get the telnetd file here:
http://files.wl500g.info/asus/wl500g/telnetd/telnetd
Be sure to get a 324 k file, not a 20 k file. Be sure to use left click, and to let it save on the HD
Copy this file on your first WL HDD partition. It probably have to be formated with ext2fs, so you might have to create a smaller partition to store your system files
Use normal ftp or samba access to save this file
Using the web admin interface:
http://wl-hdd/Main_AdmStatus_Content.asp
type
chmod a+x /tmp/harddisk/part1/telnetd
if you have located the telnetd file on the first partitioon of your wl-hdd
and hit refresh button
then just type /tmp/harddisk/part1/telnetd -d -l /bin/sh &
and hit refresh
You can use telnet wl-hdd and start exploring your device.
EDIT: You don't have to format ext2fs, you can also copy the telnetd file to your tmp directory and chmod it from there
EDIT2: you can click here if you have chmoded the telnetd in the first partition of your hd:
http://wl-hdd/apply.cgi?current_page...tion=+Refresh+