Damn, I tried this one and somehow messed my root-password :( Any way to reset it? I only can log in with my new user account, which has no access to all the folders...
Printable View
Try to install kfurge his first custom firmware. The root account in that one did not uses a pass. So this might work to recover.
Sollie.
And with this, all problems are resolved !
Thanks Kfurge for the great help to this community.
A work without interest, it's a thing very rare this days and should be appreciated.
:)
Take a look at this
http://pugio.net/
Strange things happen - if I set it the way you describe, the hdd goes standby in few minutes (i hear the sound of going standby and hdparm -C /dev/... says suspend) and i hear the same when I wake it up.
I have downloaded the datasheet, but there are some strange characters in the equations and honestly I don't get the idea of the two parameters y1 and y2 and if there is any relation to the fact that you are issuieng two commands to the device.
In any case the hdparm -I /dev/ide... says APM is enabled but unknown setting (AdvancedPM level: unknown setting (0x00a4)).
I even turned the device off and on again to be sure that I issue the right commands (if clearing it with 0 ir 255 does not work), but same issue there.
My HDD is Hitachi HDT722516DLAT80.
Anyone else trying KF's second approach who had (overcame) similar issues?
Thanks!
Regarding the APM modes in the Toshiba HDD:
The "click" you hear after 5 minutes is the drive entering low power idle mode. The platter is still spinning at near full speed, but the heads are parked. That's the click you hear. The drive can recover from this mode very quickly since it only needs to unpark the heads, and relock the platter servo.
After an hour, the platter will slow down to about 40% speed. It's very difficult to hear the drive spin in this mode, but you still can if you listen carefully. Since the heads are already parked, this mode is sliently entered. The drive runs very cool in this mode, but spin-up is faster.
The equations are indeed confusing, but to engage both Y1 and Y2, you need to set Y1 first. If you only set Y2, Y1 will be set to the default value of 120 seconds. Either Y1 or Y2 are set depending on the range of the value being written. Writes between 80h-BFh (128d-191d) set Y1 and 01h-7Fh (1d-127d) set Y2. It requires two writes to set both.
So according to the datasheet,
Y1=(x-80h)*5+120 = (x-128d)*5+120 = (164-128)*5+120 = 300 sec
Y2=(x-40h)*60+600 = (x-64d)*60+600 = (114-64)*60+600 = 3600 sec
One final thing, make sure you don't call "hdparm -S". Also, I use the latest hdparm ipkg, not the one already installed on the router (note the full path to /opt/sbin/hdparm) though I don't think it's required.
- K.C.
I notice when trying to install openssh, sudo and even dropbear, as the root user, that the package install scripts complain about...
The ipkg-web package complains about...Code:mkdir: Cannot create directory `/root': Operation not permitted
I tried using the ipkg -d and -dest args to force the installation inside the writtable /opt area but being an ipkg and optware novice this didn't seem to work. Anyone have some suggestions how to work around this problem ?Code:ipkg: extract_archive: /home/: Operation not permitted
How about adding mkdir root and home to rootprep.sh and then we could mount -o bind them, like /opt, so they can become real dirs on the hard drive ? Or at least for only /home and add a link from /root to what could become /home/root on the hard drive. With a real /home we could have multiple persistent user accounts on the hard drive in some kind of standard place. Perhaps some fancy linking could make them usable from the various web/ftp/cifs servers.
On a similar related note, would you, or anyone out there, be interested in cooperating with the ASUS code pushed into a subversion repository, and also using a wiki for notes ?
I suspect if a few of us could coop on the same codebase then we could accelerate development. I've managed to build the ASUS codebase and I hope to try it out today. I think at least 2 other users have built the codebase too so there could be 1/2 folks that could build the firmware and test the results.
Here's an example error I've bumped into with a few packages...
Trying the update-alternatives command on it's own gives...Code:# ipkg configure
Configuring procps
+update-alternatives --install /opt/bin/kill kill /opt/bin/procps-kill 80
syntax error
+update-alternatives --install /opt/bin/uptime uptime /opt/bin/procps-uptime 80
syntax error
postinst script returned status 255
ERROR: procps.postinst returned 255
Nothing to be done
An error ocurred, return value: 255.
A simple workaround to make sure the packages are otherwise successfully installed is to comment out the updates-alternative lines in the /opt/lib/ipkg/info/*.postinst files.Code:# update-alternatives --install /opt/bin/uptime uptime /opt/bin/procps
syntax error
FWIWCode:#!/bin/sh
set -x
#update-alternatives --install /opt/bin/kill kill /opt/bin/procps-kill 80
#update-alternatives --install /opt/bin/uptime uptime /opt/bin/procps-uptime 80
Maybe someone will find this script handz for installing fundamental packages:
Code:#!/bin/sh
#
# Optware pre-installation script, Leon Kos 2006
#
REPOSITORY=http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
TMP=/tmp
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin
install_package()
{
PACKAGE=$1
echo "Installing package ${PACKAGE} ..."
wget -O ${TMP}/${PACKAGE} ${REPOSITORY}/${PACKAGE}
cd ${TMP}
tar xzf ${TMP}/${PACKAGE}
tar xzf ${TMP}/control.tar.gz
cd /
if [ -f ${TMP}/preinst ] ; then
sh ${TMP}/preinst
rm -f ${TMP}/preints
fi
tar xzf ${TMP}/data.tar.gz
if [ -f ${TMP}/postinst ] ; then
sh ${TMP}/postinst
rm -f ${TMP}/postinst
fi
rm -f ${TMP}/data.tar.gz
rm -f ${TMP}/control.tar.gz
rm -f ${TMP}/control
rm -f ${TMP}/${PACKAGE}
}
_install_package uclibc-opt_0.9.28-12_mipsel.ipk
_install_package ipkg-opt_0.99.163-9_mipsel.ipk
/opt/sbin/ldconfig
/opt/bin/ipkg update
/opt/bin/ipkg install -force-reinstall uclibc-opt
/opt/bin/ipkg install -force-reinstall ipkg-opt
is it possible to install the linux version of hamachi on the WL700ge?
That's what I ended up doing.
I've been working towards a similar goal since my list of diffs against the original source is starting to pile up. I've pruned the source tree to about 180M and have eliminated some of the time consuming redundancy in the makefile. I'm well down the path of putting the entire tree into version control on my local machine, but it's been absolute torture getting the build to succeed with the source files read-only. I now have it building, but I'm very nervous about the resulting binary. Confirming nothing is broken will be difficult...
If you've got a good place to host the source, I'd be more than happy to post it up there.
- K.C.
Kfurge i have made the quick installation guide website and i have posted it for you at this adress :
http://wl500g.info/showthread.php?t=7701&page=2
Regards
Jerome
Thank you. I expect to have another binary at the end of February. One of my co-workers recently bought a 700gE and has graciously offered to let me use it for a little while to confirm some of the more risky elements of this image.
I'd like to use your guide as the basis for the installation section for the new image.
- K.C.
I install
Installing the new firmware image
Step #5, Making a better system
11.Disable telnet by removing it from rc.local to completely eliminate any chance of root logins
mkdir -p /opt/etc/dropbear
dropbear -t dss -f /opt/etc/dropbear_dss_host_key
dropbear -t rsa -f /opt/etc/dropbear_ rsa_ host_key
add to rc.local
# Start dropbear ssh server
if [ -x /opt/etc/init.d/S51dropbear ]; then
/opt/etc/init.d/S51dropbear
fi
fi
I not disable Telnet.
From the reboot router always till boot in led ready not blinking.
From the hard reset router work
Router work if Manager-Workgroup member-password mode-User Based Share Access (UBSA) disabled.
How i can use this UBSA mode now? :(
respect all
@Amlet1
i had got the same problem... my problems where solved with one of these solutions (with telnet onto the router):
http://www.wl500g.info/showthread.ph...highlight=ubsa
http://www.wl500g.info/showthread.ph...highlight=ubsa
maybe that helps!
grat182
Big Thanks :)
The primary new feature will be the ability to hook into the system binaries. For starters, I'll be redirecting rc, rc.asus, busybox, and sh/ash and their assorted symlinks. For each binary or symlink, you'll have the ability to pre-exec and/or post-exec a user script. You'll also be able to choose whether or not you want the Asus binary to run at all.
This will allow us to add more flexibility to the stock firmware at runtime similar to what we have at startup with rc.local.
It will also help clear up some quirks with optware packages expecting certain versions of certain binaries to reside in bin.
I'll also be adding some more stub directories like /root.
- K.C.
While using the custom 1.0.4.6 firmware i got to a point where i got stuck with a device that does not mount the HDD anymore.
In the beginning everything worked fine by following the instructions of the tutorial. I flashed the custom firmware using the routers webpage. Then i was able to make ipkg work, installed dropbear, users, etc. Rebooting was not a problem, everything worked smooth.
Then in a final step I added two things to the rc.local:
1. Start TwonkyMusic
2. Added the 3 suggested lines for HDD spin down
Then I did a reboot. Now apparently something was wrong, the device would not boot in the beginning. I heard the HDD working for 6 seconds, and then a "spin down"-noise. This repeated several times (about 10 Minutes). During that time i could not ping, sometimes i saw a strange "default" WLAN SSID.
After the 10 minutes, I could log in again, but VOLUME1 was not mounted anymore :-(. If i go to "Disk Managment" on the routers page it says: Type: "raw" and Status: "unmounted" !?
Telnet, FTP and CFIS does not work because of this. So i am essentially locked out of the router. The initial telnet trick via CGI also does not work anymore because of this :-(
When i go to "Applications - Basic Config" it says: "Applications is disabled temporarily for building system mirror." !?!?
-----------
I think i may have created a corrupt rc.local. Either the start of the TwonkyServer does hold the script, or more likely the "spin-down" commands do unmount the HDD (since a remount is involved, btw. I have the 250GB version of the WL-700g)
Question 1: when is the rc.local executed? I am wondering how this could affect the boot behaviour?
Question 2: Can anyone suggest a recovery procedure? The most obvious for me was to install the original firmware, which should just ignore the rc.local and boot up fine. However, this did not work: i flashed using the webpage, got only a blank page as result, rebooted after 4 Minutes, but nothing changed.
Question 3: I dont even know how to check if i now have the custom or the original firmware installed :-( Any easy way to see this, e.g. on the routers webpage?
Flashing using the Asus Tools is not possible for me, since i am on MacosX. I will try playing with tftp now.
Any help is highly appreciated :-)
Stefan
@stefan
do you have rested the router already?
grat182
Thanks gratitude182.
The solution was indeed to hold the reset button until the ready light blinks.
After that all settings were reset and the hdd was mounted again. Then i could use the cgi trick to telnet in again, edit the rc.local, and install the custom firmware again.
I think I could even reproduce the error: it happened again, when i switched on the "User Management" and then rebooted...
So i will leave the user management switched off for now - which means the box will be wide open.
Anyway, TwonkyMusic is now running nicely and I am happy for now...
@Stefan
i think this one helped for me:
http://www.wl500g.info/showthread.ph...highlight=ubsa
grat182
Does the custom firmware (which still rocks BTW) have the same QOS modules in the kernel as the original firmware??? I ask as I'm having a terrible time trying to layer some bandwidth management on the wl-700ge. I've been running the 1.0.4.6 2a firmware for a few months and want to cap the FTP outbound so my network doesn't become saturated when ftp transfers are going on.
I've tried the GUI interface for the bandwidth shaping (couldn't find any difference)
I've also tried suggestions from other posts (including wondershaper from the 500g section in reference to their own custom firmware). I made progress with wondershaper but even using the default syntax (eg an already functioning script on the 500g) there are errors that come up with invalid arguments in the qdisc syntax (these don't seem to be mentioned as issues for users in the 500g section). These errors made me think about the QOS modules and how they might be different or missing (in part) on the custom firmware kernel for the 700ge series. If they are different from the original firmware this might explain why the GUI bandwidth util doesn't (at least for me) seem to do anything.
Can anyone comment on this???
(I apologise in advance if this question is silly as my Linux knowledge is meager compared to the resident gurus here)
As always, thanx in advance.
In my dealings with oleo (to get a working pure-ftpd in the oleg ipkg which he has almost finished!), he suggested this (the above message). Granted this is over my head (for now at least) but it might be something you'd be interested in?Quote:
Originally Posted by oleo
Hi,
When I try to follow the steps of the HowTo, i can easily flash and get to telnet. But when i try to untar the packet's i downloaded i get something like this:
# tar xvzf data.tar.gz
#
.
./opt
./opt/bin/busybox
tar: ./opt/bin/busybox: Input/Output error
so i got no write access on that path, altough i'm quite sure i did everything as i should have (tried it several times without success...)
when i do "mount" there are the following entry's in the end:
/dev/se/2 on /shares/MYVOLUME1 type reiserfs (rw)
/dev/se/2 on /opt type reiserfs (rw)
/dev/se/2 on /opt type reiserfs (rw)
it looks quite wrong, but i don't know how to go on =( any ideas?
thanks
Rafael
Input/Output errors usually indicate something very wrong at the device level. Is the HDD ok?
To help debug, please post the last few lines from the output of the 'dmesg' and 'logread' commands to see if the kernel logged any errors.
FWIW, I just configured a new router from scratch and, besides the uclibc package name changing to uclibc-opt, I had no problems.
- K.C.
Thanks for your help! I tried restarting it after flashing without success.
This is the output of logread
The dmesg command does not exist. (?)Code:Mar 7 10:10:34 printd[379]: Startup
Mar 7 10:10:34 printd[379]: Opened server descriptor 4
Mar 7 10:10:34 printd[381]: Create print queue OfficeJet-G55 device /dev/usb/lp0
Mar 7 10:10:45 utelnetd[573]: utelnetd (port: 23, ifname: br0, login: /bin/login) startup succeeded
Mar 7 10:10:53 utelnetd: connection from: 192.168.1.50
Mar 7 10:10:55 login[578]: root login on `pts/0'
Mar 7 10:11:53 printd[594]: Startup
Mar 7 10:11:53 printd[594]: bind: Address already in use
if found this in /tmp/var/log/samba.log (proably of no help, but i'm getting desperate)
edit2:Quote:
[2007/03/07 09:10:07, 0] smbd/qos.c:qos_init(143)
QoS is disabled
[2007/03/07 09:10:07, 0] smbd/server.c:main(784)
standard input is not a socket, assuming -D option
[2007/03/07 09:10:08, 0] printing/nt_printing.c:nt_printing_init(298)
nt_printing_init: Failed to open nt drivers database /usr/local/samba/var/lock
s/ntdrivers.tdb (No such file or directory)
there really seems to be something seriously wrong. i can't create users via the webinterface, i can't remove a share i addet (getting an input/output error), i can't access the share via smb or nfs (anymore, this worked in the beginning), printer doesn't work either (i could add it on my computer from the network place but it wouldn't print) ...
i guess i'll have to return it to the vendor ... :(
Maybee not the exact place to ask this but I have been following this thread, upgrading the software on my wl700ge. I have apart from one issue had compleat sucess.
It has been a steep learning curve for me but it was fun.
My one remaining problem is when, using putty to log on via dropbear to the root I do not know the default password. Or how to change it. I get the message telling me my key or my password is wrong.
How do I change the password and where do I put the authorized_keys file obtained from puttygen? And will it work, what are the files in opt/etc/dropbear/dropbear_dss_host_key and dropbear_rsa_host_key?
I have tried all the user guids, FAQ etc but still no luck
TIA Chris.
The default password for root is empty. That's why you can telnet in as root without any difficulty. I'm pretty sure dropbear will not allow root logins at all. I'm even more sure it won't allow a root login if the account does not have a password.
You'll need to add a user account, use that to log in, then use 'su' to switch to root when needed. This is the best way anyway.
How you add the account depends on your router's configuration. In particular whether your in AP or Gateway mode and whether or not you've enabled UBA mode (user based authentication). Please post your configuration.
The ipkg installation should have configured everything you need. The first connection from a client will exchange the keys and confirm your trust level. Once trust has been established, the client machine will confirm the keys every time you log in behind the scenes. If the keys change, your client will tell you so.
- K.C.
While I was testing my mt-daapd configuration, I removed the user that was authenticated for MYSHARE1. Then I re-entered the same user to restore my previous configuration. I had rebooted the asus many times before with the reset-buttton (very fast), so I did again. But this time it did not reach the Ready-state anymore, but showed just the same mad behaviour that others have experienced.
Only resetting to factory defaults helped.
But applying UBSA mode got the system mad again and again.
So, finally I was saved by this lovely forum: I removed __pdc\passwd
It's definitely a BUG from Asus that causes this idiot behaviour. :eek: Remember never to delete a user and reentering it. I did not test a different username.
Marc
Hi KC,
I would like to do the same like you did but my harddisk model is HDT722516DLAT80 (HITACHI Deskstar T7K250). I've checked the datasheet from Hitachi and it says the following which I do not know how I should set the parameters for hdparm:
10.14 Advanced Power Management feature set (APM)
This feature allows the host to select an advanced power management level. The advanced power management level
is a scale from the lowest power consumption setting of 01h to the maximum performance level of FEh. Device
performance may increase with increasing advanced power management levels. Device power consumption may
increase with increasing advanced power management levels. The advanced power management levels contain
discrete bands described in the section of SET FEATURES command in detail. This feature set uses the following
functions:
• A SET FEATURES subcommand to enable Advanced Power Management
• A SET FEATURES subcommand to disable Advanced Power Management
Advanced Power Management is independent of the Standby timer setting. If both Advanced Power Management
and the Standby timer are set, the device will go to the Standby state when the timer times out or the device's
Advanced Power Management algorithm indicates that the Standby state should be entered.
The IDENTIFY DEVICE response word 83, bit 3 indicates that Advanced Power Management feature is supported
if set. Word 86, bit 3 indicates that Advanced Power Management is enabled if set. Word 91, bits 7-0 contains the
current Advanced Power Management level if it is enabled.
I read from your reply to dophine who is using the same Hitachi HD at http://wl500g.info/showthread.php?t=...light=spindown -- do you mean i can use the same settings like you did?
/opt/sbin/hdparm -B 164 ${internal_hdd}
/opt/sbin/hdparm -B 114 ${internal_hdd}
Could you kindly advise? I'm using "hdparm -S 180 ${internal_hdd}" now which spinsdown the harddisk, not the best option from the advice you had given.
Btw, i noticed that S.M.A.R.T. is not enabled when i look at the admin page for the harddisk details. It doesn't look right to me, am i missing something?
Many thanks for your help!
cheers,
Patrick
Sure. From section 12.39.3 of d7k250p_spv1.8.pdf it looks like the timing equations for your HDD are the same as mine. Therefore, the values should work OK for you too. That section contains everything you need to adjust the timing to meet your needs.
I've been running with the 5min/1hr timing for a few months now and it works pretty well for me.
Unfortunately, SMART has to be disabled to allow the drive to enter low power modes. This is because the httpd process (yes, the same one that serves up the web configuration interface) regularly polls the SMART status from the HDD. With my drive, this kept it from entering any of the low power modes.
- K.C.
OK, now what I need ssh access for is to replace Telnet when I dissable it from rs.local. I can now see how I can log in to root with no password. However, I am sure I must be doing something wrong as I can not log into any of my user accounts via telnet either. Only the root. I have three user accounts created by the web interface. The wl700ge is set up as a Gateway and I am using USBA. If I was able to access any of my user accounts by telnet I may be able to sort the rest out, but right now I am lost for an answer.
Chris.