Results 1 to 10 of 10

Thread: OlegFW: Upgrade busybox

  1. #1
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548

    OlegFW: Upgrade busybox

    hi all,

    i want to upgrade the busybox.
    oleg has 1.1.3 built in. This version e.g. does not know 'df -h'
    Optware has 1.1.3-3. This version knows 'df -h'

    I installed busybox-base via IPKG. So far so good.

    Installing busybox-links results in
    Code:
    [admin@blechbuechse /]$ ipkg install busybox-links
    Installing busybox-links (1.1.3-3) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/busybox-links_1.1.3-3_mipsel.ipk
    An error ocurred, return value: 9.
    Collected errors:
    Package busybox-links wants to install file /opt/bin/cmp
            But that file is already provided by package diffutils
    Package busybox-links wants to install file /opt/bin/xargs
            But that file is already provided by package findutils
    Package busybox-links wants to install file /opt/bin/bzcat
            But that file is already provided by package bzip2
    Package busybox-links wants to install file /opt/bin/find
            But that file is already provided by package findutils
    Package busybox-links wants to install file /opt/bin/free
            But that file is already provided by package procps
    Package busybox-links wants to install file /opt/bin/reset
            But that file is already provided by package ncurses
    Package busybox-links wants to install file /opt/bin/clear
            But that file is already provided by package ncurses
    Package busybox-links wants to install file /opt/bin/top
            But that file is already provided by package procps
    Package busybox-links wants to install file /opt/bin/ps
            But that file is already provided by package procps
    [admin@blechbuechse /]$
    Ok. there is a conflict with previous installed packages.

    The manual way for df:
    Code:
    ln -s /opt/bin/busybox /opt/bin/df
    This should work, because the path in /etc/profile is:
    export PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    But executing df -h still results in
    [admin@blechbuechse /]$ df -h
    df: illegal option -- h
    BusyBox v1.1.3 (2006.06.29-17:07+0000) multi-call binary

    Usage: df [-k] [FILESYSTEM ...]
    While this works:
    [admin@blechbuechse /]$ /opt/bin/df -h
    Filesystem Size Used Available Use% Mounted on
    /dev/root 2.9M 2.9M 0 100% /
    /dev/discs/disc0/part2 961.6M 125.7M 787.1M 14% /opt
    /dev/discs/disc0/part3 72.0G 45.2G 23.1G 66% /tmp/harddisk
    Question: What did i do wrong?

    Thanks
    wengi

    PS: It should work regarding to http://www.nslu2-linux.org/wiki/Optware/BusyBox
    Last edited by wengi; 22-03-2007 at 10:10.

  2. #2
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    Somebody should update busybox with update-alternatives command.

    Could you provide this for busybox-links?
    For example procps postinst file looks like:
    Code:
    #!/bin/sh
    
    update-alternatives --install /opt/bin/kill kill /opt/bin/procps-kill 80
    update-alternatives --install /opt/bin/uptime uptime /opt/bin/procps-uptime 80
    Human readable output is configurable busybox option. I can enable this for you if you will provide
    postinst. See http://trac.nslu2-linux.org/optware/...ake/busybox.mk
    and http://trac.nslu2-linux.org/optware/...ources/busybox
    Last edited by oleo; 22-03-2007 at 13:48. Reason: links

  3. #3
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Hi oleo,

    i would like to help, but i dont understand abolutely nothing of your post.
    i am to stupid

    And i guess there is no step-by-step HowTo..
    I am sorry but not a programmer...

    wengi

  4. #4
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    Just checked and
    Code:
    /opt/bin/busybox df -h
    works for me!

    You could also use coreutils instead of busybox. They are fat brother of busybox.

    So no busybox change needed.

  5. #5
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Still having some problems installing coreutils. ipkg seems to have a prob.
    Code:
    [admin@blechbuechse /opt]$ ipkg install coreutils
    Installing coreutils (6.7-3) to /opt/...
    Nothing to be done
    An error ocurred, return value: 1.
    Collected errors:
    ERROR: The following packages conflict with coreutils:
             busybox-links
    [admin@blechbuechse /opt]$ ipkg remove busybox-links
    No packages removed.
    Nothing to be done
    Successfully terminated.
    [admin@blechbuechse /opt]$
    busybox-links did not install because of errors and is _not_ installed at all...
    ipkg flag does not work either.

    i have to fix this prior to test coreutils.

    But anyway. Thanks for the hint
    wengi

  6. #6
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Damn. I don't get it...

    Still the errors above.
    busybox-links is _not_ installed at all!
    Code:
    [admin@blechbuechse /]$ ipkg info busybox-links
    Package: busybox-links
    Version: 1.1.3-3
    Depends: busybox-base (= 1.1.3-3)
    Status: install user not-installed
    Architecture: mipsel
    
    Package: busybox-links
    Version: 1.5.0-1
    Depends: busybox-base (= 1.5.0-1)
    Status: install user not-installed
    Section: core
    Architecture: mipsel
    maintainer: NSLU2 Linux <nslu2-linux@yahoogroups.com>
    MD5Sum: 820ee545ad87fb6b663fa449e5b89f73
    Size: 2502
    Filename: busybox-links_1.5.0-1_mipsel.ipk
    Source: http://www.busybox.net/downloads/busybox-1.5.0.tar.bz2
    Description: A userland replacement for embedded systems.
    
    Successfully terminated.
    [admin@blechbuechse /]$
    Where is the database of ipkg if there is any?
    Anybody a hint how to resolve this?

    Thanks
    wengi

  7. #7
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    /opt/lib/ipkg/status

  8. #8
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Yup. Thats it!
    Code:
    [admin@blechbuechse ipkg]$ ipkg install coreutils
    Installing coreutils (6.7-3) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/coreutils_6.7-3_mipsel.ipk
    Configuring coreutils
    update-alternatives: Linking //opt/bin/kill to /opt/bin/procps-kill
    update-alternatives: Linking //opt/bin/uptime to /opt/bin/procps-uptime
    update-alternatives: Linking //opt/bin/su to /opt/bin/coreutils-su
    Successfully terminated.
    I had to delete the entries of busybox-links in /opt/lib/ipkg/status.
    Seems to be a bug in ipkg or the package.

    Thanks once more to oleo

  9. #9
    Join Date
    Nov 2005
    Location
    Germany
    Posts
    423

    What for Version of BusyBox is now in Oleg FirmWare included?

    Hi,

    what for Version of BusyBox is now in Oleg FirmWare included?

    PHP Code:
    time
    BusyBox v1.1.3 
    (2007.01.01-14:37+0000multi-call binary

    Usage
    time [OPTION]... COMMAND [ARGS...] 
    By.

  10. #10
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    the same.
    Actually, Oleg explained why he don't want to bump the version of busybox up --- due to broken support of e2fsprogs library.

Similar Threads

  1. Unable to upgrade to 1.9.2.7-7f
    By bubieyehyeh in forum WL-HDD Q&A
    Replies: 1
    Last Post: 07-12-2006, 22:02
  2. did anyone succeded to replace Busybox with newest version?
    By MoD in forum WL-700g Firmware Discussion
    Replies: 4
    Last Post: 19-11-2006, 12:57
  3. mtdutil and firmware upgrade from USB
    By Tamadite in forum WL-500g Q&A
    Replies: 3
    Last Post: 01-10-2006, 18:14
  4. WL-500g Delux, Nahc Upgrade nur noch ???? am Web-Interface
    By colalight890 in forum German Discussion - Deutsch (DE)
    Replies: 1
    Last Post: 09-01-2006, 19:50
  5. Failed to upgrade firmware on WL-500g Deluxe
    By olas in forum WL-500g Q&A
    Replies: 6
    Last Post: 27-12-2005, 11:17

Posting Permissions

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