Page 5 of 19 FirstFirst ... 3456715 ... LastLast
Results 61 to 75 of 273

Thread: New 1.0.4.6 based custom firmware

  1. #61

    Exclamation rc.local not loading and some other questions

    first of all, thanks for improving the 700ge, it really needs some love.

    anyways, I have some problems getting the brick to load rc.local at bootup.

    I've ofcourse updated the firmware, it says it's successful, but I do not know how to check this. (tried both the way you've described and the 'ASUS' way)

    I have then uploaded the first rc.local via ftp to the web folder, but when I reboot I still don't have telnet access. I can telnet into the box if I put '/apps/bin/utelnetd -i br0 &' in showmessage.cgi in the web folder. (it brings up the login screen where you type 'root') I've then tried to follow the rest of the instructions and moved the rc.local and it is still not loading. I can install all the different packages, but it is frustrating that I have to manually edit showmessages.cgi, then type in:

    export PATH=/opt/bin:${PATH}
    and
    export LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}
    when I want to enter the 700ge
    and last but not least: manually start my services :-/


    besides the rc.local I have these problems:
    in 5.3 I get an error at "chown /opt/home/<username> <username>"
    but apparently it succeeds if I type "chown <username> /opt/home/<username>" (it gives no reply)

    I also have a problem installing dropbear. I'm logged in as root, but it gives me:
    mkdir: cannot create directory '/root': (Operation not permitted)

    lastly I'm stuck at 5.6, I cannot find .profiles (tried find . name "*profiles*")
    EDIT:
    I found 'profile' but only after I installed 'Bash' which is not explained in the tutorial


    Hope you guys can help me out
    /regards
    Henrik
    Last edited by n00ben; 06-12-2006 at 21:46.

  2. #62
    I've ofcourse updated the firmware, it says it's successful, but I do not know how to check this.
    The easy way to check is to cat /apps/bin/rcex and see if it contains the parts which execute rc.local at the end. Also, make sure you flashed the "02a" image because the initial "02" release had a bug which kept rc.local from executing in the web location.
    in 5.3 I get an error at "chown /opt/home/<username> <username>"
    Yep, documentation problem. Your second way is correct. Will fix, thanks.
    in 5.4 I'm not sure were to edit:
    I'll add an example passwd file to the web page.
    Lastly I'm stuck at 5.6, I cannot find .profiles (tried find . name "*profiles*")
    Since Asus never expected you to log in, you won't find a .profile on your system. You must add it to your user account. I put a sample .profile on the web page. You'll have to rename it from profile to .profile.

    - K.C.

  3. #63

    thanks

    I am using the 02a image, and it IS successfully installed (checked with cat /apps/bin/rcex)

    I have my rc.local in shares/MYVOLUME1/

    and it is exactly the same as the 1st on the webpage...

    you just answered while I was editing my last post , but anyways I figured out some of the things and now I'm having problems with dropbear, see my last post

    thx for the fast response,

    /regards
    Henrik
    Last edited by n00ben; 06-12-2006 at 21:57. Reason: spelling

  4. #64
    I'm in a real pickle here. I was lovin' all the great things that came from your recent firmware. Unfortunately after messing around with it, I rebooted it because dropbear wouldn't let me log in as root (even though i set a root pw and all, so I figured what the heck) and now the damn thing is in a constant state of reboot and never comes up. I've tried every trick listed in this forum for reflashing the firmware with the latest one from Asus. The firmware restoration tool appears to do it's job, but unfortunately that's not enough for it to come back up. I think it may have to do with my rc.local file, but I have no way of accessing the hard drive to remove it, since it's rebooting all the time.

    My next question is...Since it's formatted with reiserfs, which linux distro will read the FS? My thought is to remove the HD, plug it into my PC, and attempt to mount the disk and remove the offending file(s). Another possibility I'm considering is dropping a different HD in it temporarily to get it back up and running, and hope doing the firmware restoration will get the drive up and running.

    Any help would be appreciated, I'm very angry right now.

  5. #65
    Quote Originally Posted by n00ben View Post
    I am using the 02a image, and it IS successfully installed (checked with cat /apps/bin/rcex)

    I have my rc.local in shares/MYVOLUME1/
    The script prefers the rc.local in /shares/MYVOLUME1 over the one located in the web directory. However, it's more picky about this one. Make sure rc.local has the execute bits set (chmod 755 rc.local). If the x bits aren't set, the script won't be executed. Maybe this is your problem?

    - K.C.

  6. #66
    Quote Originally Posted by fireflash View Post
    The firmware restoration tool appears to do it's job, but unfortunately that's not enough for it to come back up. I think it may have to do with my rc.local file, but I have no way of accessing the hard drive to remove it, since it's rebooting all the time.
    Yikes! I had a similar problem with one of my scripts where the HDD was thrashing around and the router wouldn't boot past my script.

    To fix it, I simply reflashed back to the stock Asus firmware. Since it knows nothing about rc.local, it started right up. I had to redo the telnet hack to get back in and fix things, but that was it.

    One thing to try (it's a long shot)... I've found the boot-up behavior between using the switch on the front and actually unplugging the device from the wall is slightly different. One time, the only way I could get the router to boot properly was to cold-boot the router by yanking the power, holding the ez-setup button, reapplying power, then reflashing the Asus firmwar€e.

    Please let us know how you progress.

    - K.C.

  7. #67
    Quote Originally Posted by kfurge View Post
    Yikes! I had a similar problem with one of my scripts where the HDD was thrashing around and the router wouldn't boot past my script.

    To fix it, I simply reflashed back to the stock Asus firmware. Since it knows nothing about rc.local, it started right up. I had to redo the telnet hack to get back in and fix things, but that was it.

    One thing to try (it's a long shot)... I've found the boot-up behavior between using the switch on the front and actually unplugging the device from the wall is slightly different. One time, the only way I could get the router to boot properly was to cold-boot the router by yanking the power, holding the ez-setup button, reapplying power, then reflashing the Asus firmwar€e.

    Please let us know how you progress.

    - K.C.
    I've tried that at least twice. still no luck. I'll take another stab at it.

    I've got a 40 gig HD i can slap in it if I get real desperate and try that route until I can plug the 160 into my PC and see if I can mount the drive and remove the rc.local (and probably some other stuff). If all hope seems lost and I can get another HD to work in it, I'll trash the partition on the 160 and start from scratch.

    Now that it's been unplugged for a while maybe it's feeling lonely and is more willing to cooperate now.

  8. #68
    Quote Originally Posted by kfurge View Post
    I've posted firmware image #2 at:

    http://home.comcast.net/~kfurge/wl700g.html

    Same caveats as before... Use at your own risk!

    - K.C.
    I followed the instructions (more or less) and I have the following to report:

    (1) At first, login as normal user via telnet did not work for me. I checked /opt/home/<username> , I checked .profile within that directory, I checked /etc/passwd ... all looked OK. Eventually I fixed this by running "ipkg install bash" ... which doesn't appear in your instructions but is a required step befor user logins will work with the rest of your instructions.

    (2) I did install dropbear, but I am unable to connect yet via ssh.

    (3) programs man,less, mc and nano all install but seem to have problems with my terminal program (I'm running Konsole from KDE 3.5.5 under PCLinuxOS). I did install ncurses, ncursesw and termcap.

    I am now going to install ctorrent and enhanced-ctorrent and see how that goes.

    Later:

    I got less and nano working partly OK. I edited my user .profile to read as follows:

    Code:
    #
    # Bash initialization script
    #
    
    PS1="[\u@\h \W]$ "
    PATH=/opt/sbin:/opt/bin:/sbin:/bin:/usr/sbin:/usr/bin
    LD_LIBRARY_PATH=/opt/lib:/shares/lib
    
    export PS1 PATH LD_LIBRARY_PATH
    export TERMINFO=/opt/share/terminfo
    export TERM=vt100
    mc still does not work. I get the following messages on startup:
    Code:
    Warning: file /opt/lib/mc/extfs/extfs.ini not found
    Warning: file /opt/lib/mc/extfs/sfs.ini not found
    ... later still: I got mc working. I just needed to be patient.

    ssh is still not connecting to dropbear.

    when I login as a normal user via telnet, and I type "ps -aux", I can see that dropbear is running:
    Code:
      590 root        464 S   /opt/sbin/dropbear
    ... but I cannot connect to that process from another machine on the LAN.

    Does it need to be done via the WAN? Is there a setup file somewhere to configure this?

    Later still:

    I am trying a torrent download, via the web interface. I think this will use the new ctorrent I installed, rather than the one provided by default. I am trying to download the new openSuSe 10.2 DVD, which is a 3.6 GB file. I'll report on how this goes later.

    I do have one suggestion for this router to improve on its "download without a PC" advertised capability, and that would be to get this project running on the router:
    http://aria2.sourceforge.net/

    I'm wondering if someone with some influence can persuade oleg about this?
    Last edited by hal2k1; 07-12-2006 at 13:11.

  9. #69

    #3

    hal2k1: thanks, nano didn't work for me either, until I made those fixes. but can you tell me what you did to make mc work?

    [EDIT]: now I know what you mean about patience.... DOH!
    K.C.
    it seems after all that rc.local IS loaded, telnet didn't work because in your rc.local the command is '/apps/bin/utelnetd -i br0 &' but for me it is '/bin/utelnetd -i br0 &'...

    keep up the good work.

    /regards
    Henrik
    Last edited by n00ben; 08-12-2006 at 13:18.

  10. #70
    Quote Originally Posted by kfurge View Post
    Yikes! I had a similar problem with one of my scripts where the HDD was thrashing around and the router wouldn't boot past my script.

    To fix it, I simply reflashed back to the stock Asus firmware. Since it knows nothing about rc.local, it started right up. I had to redo the telnet hack to get back in and fix things, but that was it.

    One thing to try (it's a long shot)... I've found the boot-up behavior between using the switch on the front and actually unplugging the device from the wall is slightly different. One time, the only way I could get the router to boot properly was to cold-boot the router by yanking the power, holding the ez-setup button, reapplying power, then reflashing the Asus firmwar€e.

    Please let us know how you progress.

    - K.C.

    I had exactly the same problem (constant rebooting) and did what kfurge proposes:

    - always reboot by unplugging the power cord (actually: power down, unplug, replug)
    - flash Asus firmware
    - telnet into router (flashed with Asus firmware) with telnet hack and delete all rc.local files
    - flash kfurge firmware version 02a

    My router works again, like a charm.

    best regards,
    theswissguy

  11. #71
    Quote Originally Posted by theswissguy View Post
    I had exactly the same problem (constant rebooting) and did what kfurge proposes:

    - always reboot by unplugging the power cord (actually: power down, unplug, replug)
    - flash Asus firmware
    - telnet into router (flashed with Asus firmware) with telnet hack and delete all rc.local files
    - flash kfurge firmware version 02a

    My router works again, like a charm.

    best regards,
    theswissguy
    Ok, here's what I've done repeatedly to no avail:

    Assign a static IP to my computer
    Unplug the router
    plug it back in while holding down the EZ-Setup button
    Wait for READY light to come on
    Fire off Firmware Restoration tool with the Asus firmware (1.0.4.6)
    Let it boot as normal afterwards

    At that point it goes right back to going in circles rebooting over and over. I've even gotten it to the stage where I can use TFTP (hold the EZ-Setup button until the READY light starts flashing) with the split-up image file (using AsusExtractor) and flashing it with the flash file, and still nothing. I'm starting to wonder if it's even writing everything it needs to the hard drive properly. Because with the amount of times I've "successfully" flashed the Asus firmware to it, it still insists on constantly rebooting.

    Something of the old configuration is still hanging around as well, even though at this point I should've damn near blitzed the NVRAM with the new image, yet it still hangs on to the IP I assigned the router, and not defaulting back to the old one. I'm guessing that flashing the firmware doesn't touch that part of the NVRAM, which is good otherwise we'd have to redo all our settings each time we flash it.

    I'm at my wits end with it. I'm considering more drastic measures. First maybe to attempt to install another HD into the router, and flash the firmware that way and see if it'll take off. Then, take the HD from the router and plug it into my PC and attempt to mount it under Linux. If I can get it to mount, then I can go in and repair, or otherwise remove the offending file(s), put the HD back into the router and see what it does. Last ditch effort would be to nuke the partition on the router's HD, and force it to start over again. Which I would only do if I could get another HD to play nice with it. But I'm trying to do this without voiding the router's warranty.

    UPDATE:

    IT'S FIXED!!!!!! I did everything I had been doing, but this time I actually held down the RESET button for a good 10-12 seconds, and that apparently causes it to nuke the NVRAM and re-writes the default settings to it, and finally accepts the firmware. I was so happy to see the AIR light flashing, as I knew that was a good sign since I had turned off the radio weeks ago (don't use wireless). So to see it flashing told me it reset to defaults. Plus the IP address is now back to 192.168.1.1. Now that it's working again, it's time to reconfigure it and see WTF went wrong in the first place.
    Last edited by fireflash; 07-12-2006 at 23:05.

  12. #72
    Now that everything is back up and running, I decided to tempt fate twice, and reflashed the kc2a firmware, after doing the telnet hack and replacing the FUBARed rc.local with a brand spankin' new rc.local.

    BTW, for future reference and a word of advice to everyone, DO NOT USE WINDOWS TELNET! I believe this is what screwed me up in the first place. Now everything I do shell related with this router is being done in either OS X, or Fedora (running under Parallels in OS X, necessary when I need to use the blasted INSERT key in vi) But I digress..

    Now I have a mostly functioning rc.local script (using #2 from your website KC), but I've noticed something. I've followed all the directions on the website to get it up and running with /shares/MYVOLUME1/opt and all the ipkg stuff, and that's all working fine. I manually punch in the mount and export commands to get /opt remounted and so on, so thats all working fine. But the problem I seem to be having with the rc.local script is this part:

    Code:
    if [ -e /shares/${pool}/opt ]; then
     mount -o bind /shares/${pool}/opt /opt
     
     cat /proc/mounts > /opt/etc/fstab
     
     ln -s /opt/etc/shells /tmp/shells
     ln -s /opt/etc/fstab /tmp/fstab
     
     export PATH=/opt/bin:/opt/sbin:${PATH}
     export LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}
    fi
    The problem I'm having is this doesn't seem to run. The directory is there, but there's something about it that the 'if' statement isn't seeing, thus it won't run. Everything else about the script is fine, as telnet pops up and all that. So everytime I log in I have to punch in the mount and export commands to bypass all the default Asus/busybox stuff and use the fancy new stuff. I've even replaced '/shares/${pool}/opt' with '/shares/MYVOLUME1/opt' and it still isn't working.

    Although I'm happy to see the router reboot and not get caught in a never-ending loop like before.

    Any ideas what might be causing this? I may remove the 'if' statement from around those commands and make them run anyways. It's nice that it checks for it, but I know the stuff is there, so at this point I don't see why I need the 'if' statement there.

    Awesome work BTW. I'm loving the world of possibilities that has opened up!

    EDIT:

    I've concluded that it is in fact mounting /opt like it's suppose to, but the export PATH and LD_LIBRARY_PATH aren't holding.. So when I telnet into the router, I have to manually run those each time.
    Last edited by fireflash; 08-12-2006 at 01:25.

  13. #73
    Quote Originally Posted by fireflash View Post
    I've concluded that it is in fact mounting /opt like it's suppose to, but the export PATH and LD_LIBRARY_PATH aren't holding.. So when I telnet into the router, I have to manually run those each time.
    Congratulations getting your router back! It would have made a very expensive doorstop! Thanks for posting your solution.

    Regarding PATH and LD_LIBRARY_PATH sticking, yes, you're right, they don't stick from rc.local. They were sticking until I enabled login support. After that, no environment variables were inherited from rc.local. It makes sense from security viewpoint for login to clear the environment.

    I solved the problem by setting both of these within my user account's .profile script and using bash as my login shell. I'll probably add a system wide profile into /etc (symlinked to /opt/etc/profile) in my next release.

    Along those lines, I still need to learn how the filesystem that's packaged with the .nas file is generated. That way I can pre-load some of this stuff into the flash image.

    - K.C.

  14. #74

    Utelnetd and terminal support

    To all who are telneting into their boxes and curious why their terminal support is lousy it's because utelnetd does not properly set the terminal type. No matter what you login from, your TERM environment variable will be set to 'linux' which probably won't work very well.

    To solve this, you can either set it manually (if you know what it should be as demonstrated within hal2k1's .profile example) or login via dropbear with a good ssh client like openssh (linux) or putty (windoze) where it will be set correctly.

    - K.C.

  15. #75
    Quote Originally Posted by hal2k1 View Post
    ...which doesn't appear in your instructions but is a required step befor user logins will work with the rest of your instructions.
    Good point. I'll add it. The whole "Making a better system" was more of a stream of consciousness that a step-by-step how-to. :-)
    Quote Originally Posted by hal2k1 View Post
    (2) I did install dropbear, but I am unable to connect yet via ssh.
    Try a different client. Both openssh and putty work Ok for me, but QVT-Term does not.

    - K.C.

Page 5 of 19 FirstFirst ... 3456715 ... LastLast

Similar Threads

  1. ksoftirqd_CPU0 eating CPU in firmware 1.0.4.6?
    By Hobi in forum WL-700g Firmware Discussion
    Replies: 10
    Last Post: 12-05-2007, 16:04
  2. Custom firmware image: v1.9.4.6 with telnetd re-enabled
    By db90h in forum WL-530g Firmware Releases
    Replies: 2
    Last Post: 29-01-2007, 13:32
  3. custom firmware based on 1.9.5.0 beta?
    By Teddy in forum WL-500g Custom Development
    Replies: 5
    Last Post: 14-05-2006, 20:08
  4. Custom firmware
    By menno in forum Dutch Discussion - Nederlands
    Replies: 0
    Last Post: 02-04-2006, 14:32
  5. Custom Firmware v1.1.2.7
    By JOCKYW2001 in forum WL-HDD Firmware Releases
    Replies: 59
    Last Post: 11-12-2004, 12:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •