Results 1 to 15 of 958

Thread: [HowTo] Install and configure Oleg's firmware

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    part1 swap is not mounting, no /opt partition

    Quote Originally Posted by wengi View Post
    Use swapon / swapoff:
    Code:
    [admin@blechbuechse root]$ swapoff /dev/discs/disc0/part1
    [admin@blechbuechse root]$ free
                 total       used       free     shared    buffers     cached
    Mem:         13964      13448        516          0       1548       7336
    -/+ buffers/cache:       4564       9400
    Swap:            0          0          0
    [admin@blechbuechse root]$ swapon /dev/discs/disc0/part1
    [admin@blechbuechse root]$ free
                 total       used       free     shared    buffers     cached
    Mem:         13964      13696        268          0       1548       7336
    -/+ buffers/cache:       4812       9152
    Swap:       500432          0     500432
    wengi
    Hi,

    I am back, as the problem persists.
    My router No.1 worked fine , Olegs firmware,
    applications installed on usb 4GB stick
    and part2 /opt mounted regularly, part1 was on.

    I reflashed it with Koppel for cellular modem support.
    And part1 stopped to be swap-on, /opt directory is empty

    I insert the same usb stick into my No.2 router
    and part1 swap is on, /part2 /opt is mounted and I can run applications.

    I can swapon on router No.1 and it works.
    Unfortunately /opt directory is empty, so no preinstalled applications to run.

    I discover the problem with putty when
    ssh telnet session is closed immediately for router No.1

    As I use the same system hdd stick on both routers,
    what can be done to have
    part1 swap-on and part2 /opt mounted on router No.1 on boot ?

    As you can see, swap was off
    so I followed your great tutorial
    mkswap
    swapon

    Code:
    [admin@aa /opt]$ free
                  total         used         free       shared      buffers
      Mem:        30324        14264        16060            0         1772
     Swap:            0            0            0
    Total:        30324        14264        16060
    [admin@aa /opt]$ mkswap /dev/discs/disc0/part1
    Setting up swapspace version 1, size = 534499328 bytes
    [admin@aa /opt]$ free
                  total         used         free       shared      buffers
      Mem:        30324        14272        16052            0         1772
     Swap:            0            0            0
    Total:        30324        14272        16052
    [admin@aa /opt]$ swapon /dev/discs/disc0/part1
    [admin@aa /opt]$ free
                  total         used         free       shared      buffers
      Mem:        30324        14532        15792            0         1772
     Swap:       521968            0       521968
    Total:       552292        14532       537760
    [admin@aa /opt]$ free
                  total         used         free       shared      buffers
      Mem:        30324        14532        15792            0         1772
     Swap:       521968            0       521968
    Total:       552292        14532       537760
    [admin@aa /opt]$


    Code:
    [admin@aa root]$ ls
    [admin@aa root]$ cd /
    [admin@aa /]$ cd /opt
    [admin@aa /opt]$ ls
    [admin@aa /opt]$ mount
    /dev/root on / type squashfs (ro)
    none on /dev type devfs (rw)
    proc on /proc type proc (rw)
    ramfs on /tmp type ramfs (rw)
    usbfs on /proc/bus/usb type usbfs (rw)
    /dev/discs/disc0/part2 on /tmp/mnt/disc0_2 type ext3 (rw,noatime)
    /dev/discs/disc0/part3 on /tmp/mnt/disc0_3 type ext3 (rw,noatime)
    [admin@aa /opt]$ free
                  total         used         free       shared      buffers
      Mem:        30324        14256        16068            0         1772
     Swap:            0            0            0
    Total:        30324        14256        16068
    [admin@aa /opt]$ fdisk -l
    
    Disk /dev/scsi/host0/bus0/target0/lun0/disc: 4009 MB, 4009754624 bytes
    145 heads, 48 sectors/track, 1125 cylinders
    Units = cylinders of 6960 * 512 = 3563520 bytes
    
                                     Device Boot    Start       End    Blocks   Id  System
    /dev/scsi/host0/bus0/target0/lun0/part1               1         150      521976   82  Linux swap
    /dev/scsi/host0/bus0/target0/lun0/part2             151         500     1218000   83  Linux
    /dev/scsi/host0/bus0/target0/lun0/part3             501        1125     2175000   83  Linux
    [admin@aa /opt]$ df -l
    df: illegal option -- l
    BusyBox v1.1.3 (2008.04.25-08:17+0000) multi-call binary
    
    Usage: df [-hmk] [FILESYSTEM ...]
    
    [admin@aa /opt]$ df -l
    df: illegal option -- l
    BusyBox v1.1.3 (2008.04.25-08:17+0000) multi-call binary
    
    Usage: df [-hmk] [FILESYSTEM ...]
    edited once again (was empty)

    vi /etc/fstab

    echo "/etc/fstab" >> /usr/local/.files

    edited pre-mount

    vi /usr/local/sbin/pre-mount

    and on reboot

    flashfs save && flashfs commit && flashfs enable && reboot

    ======
    Code:
    [admin@aa root]$ mount
    /dev/root on / type squashfs (ro)
    none on /dev type devfs (rw)
    proc on /proc type proc (rw)
    ramfs on /tmp type ramfs (rw)
    usbfs on /proc/bus/usb type usbfs (rw)
    /dev/discs/disc0/part2 on /opt type ext3 (rw,noatime)
    /dev/discs/disc0/part3 on /tmp/mnt/disc0_3 type ext3 (rw,noatime)
    [admin@aa root]$ free
                 total       used       free     shared    buffers     cached
    Mem:         30324      17492      12832          0       1864       8476
    -/+ buffers/cache:       7152      23172
    Swap:       521968          0     521968
    [admin@aa root]$
    So it works fine.

    run mc
    and clicking on arrow keys generates the following

    AAAABBBBAAAAACCCCCDDDDAABBDDCCCDDABBBBBBBBACCDABD B

    Ok. Closed putty session as there was no other way to press F10 for
    mc exit
    and get command line back

    Opened new putty session
    and arrows don't work in mc
    so no way to use mc.

    Any idea, any solution ?

    Darius

  2. #2
    Quote Originally Posted by darius View Post
    Hi,

    Any idea, any solution ?

    Darius
    Have you tried firmware from here: http://code.google.com/p/wl500g/ ? This firmware has been compiled on 15-Mar-2009 and seems to be very stable. I installed it yesterday and I din't found no bugs till now. So, it seems that swap space has got some improvements in this firmware. Give it a try!

    from Wengi tutorial:

    Some settings are necessary for MC to run properly.
    Code:

    Code:
    echo "export TERMINFO=/opt/share/terminfo">>/opt/etc/profile
    echo "alias mc=\"mc -c\"">>/opt/etc/profile
    make profile executable:
    Code:

    Code:
    chmod +x /opt/etc/profile
    By the way .... have you tried to work with WinSCP (Opensource)? It's possible after that you do not work with MC anymore
    Last edited by adrianio; 25-03-2009 at 08:57.
    Router ASUS WL500GPv2 with Oleg WL500gpv2-1.9.2.7-d-r1222.trx

  3. #3
    Till now, in any firmware I tried, I have connected with WinSCP without any problem. Now, I connect OK through WinSCP, but when I want to edit a file (example: man.conf), I obtain the following message:
    Code:
    Received error message from remote side: 'scp: man.conf: not a regular file'
    And after that the file I want to edit (or simply view) opens empty.
    This behavior does not apply to every file. There are some files that I can open/view. I cannot find a rule for that files opens or not.

    I can copy remote files to local directory and I can rename remote files that I cannot open.

    I respond now to myself: I installed bash and it installed profile under /opt/etc and export LD_LIBRARY_PATH=/opt/lib. It seems that my error came from here...
    Last edited by adrianio; 25-03-2009 at 19:23.
    Router ASUS WL500GPv2 with Oleg WL500gpv2-1.9.2.7-d-r1222.trx

  4. #4
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Is it the same behaviour if you try to edit / view these files on command line?

    wengi
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

  5. #5
    Quote Originally Posted by wengi View Post
    Is it the same behaviour if you try to edit / view these files on command line?

    wengi
    Yes Wengi, after posting I found that the behavior is the same on command line. But I solve it, by simply renaming "/opt/etc/profile" file who was replaced by "ipkg install bash"! The error has came from exporting LD_LIBRARY_PATH=/opt/lib (ipkg and wget has stopped working too).
    I think that it is possible to work with LD_LIBRARY_PATH set, but after installing optware packages for wget and busybox. But it is possible that another original package to be affected by this ...
    Last edited by adrianio; 26-03-2009 at 08:24.
    Router ASUS WL500GPv2 with Oleg WL500gpv2-1.9.2.7-d-r1222.trx

  6. #6
    how can i instal and config a graph for wl-500gp V2??

  7. #7
    Quote Originally Posted by TheCrow View Post
    how can i instal and config a graph for wl-500gp V2??
    Could you please specify what kind of graph do you need?

Similar Threads

  1. [Howto] Install DLNA media servers for Oleg firmware
    By ecaddict in forum WL-500gP Tutorials
    Replies: 18
    Last Post: 06-06-2017, 07:40
  2. Replies: 24
    Last Post: 05-05-2015, 07:42
  3. Replies: 28
    Last Post: 02-06-2013, 20:58
  4. Replies: 6
    Last Post: 21-09-2012, 17:06
  5. [Howto] Install kernel modules for Oleg firmware
    By ecaddict in forum WL-500gP Tutorials
    Replies: 0
    Last Post: 05-12-2011, 16:18

Tags for this Thread

Posting Permissions

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