PDA

Bekijk de volledige versie : OlegFW: Upgrade busybox



wengi
22-03-2007, 10:00
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
[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:

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

oleo
22-03-2007, 13:43
Somebody should update busybox with update-alternatives command.

Could you provide this for busybox-links?
For example procps postinst file looks like:

#!/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/browser/trunk/make/busybox.mk
and http://trac.nslu2-linux.org/optware/browser/trunk/sources/busybox

wengi
22-03-2007, 15:02
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

oleo
22-03-2007, 15:18
Just checked and

/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.

wengi
23-03-2007, 07:44
Still having some problems installing coreutils. ipkg seems to have a prob.

[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

wengi
30-03-2007, 11:54
Damn. I don't get it... :mad:

Still the errors above.
busybox-links is _not_ installed at all!

[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

oleo
30-03-2007, 12:42
/opt/lib/ipkg/status

wengi
30-03-2007, 14:26
Yup. Thats it! :D :D

[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 :)

WLAN-Fan
11-04-2008, 08:45
Hi,

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


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

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

By.

al37919
11-04-2008, 09:24
the same.
Actually, Oleg explained why he don't want to bump the version of busybox up --- due to broken support of e2fsprogs library.