Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Fri Aug 01, 2014 6:44 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: Thu Jan 18, 2007 3:34 am 
Offline
Newbie
User avatar

Joined: Thu Dec 14, 2006 9:24 pm
Posts: 46
Location: United States of America
Can Busybox be replaced on the Mipsel? I noticed that my LS has version 1.0 and it has not many commands, which may be keeping me from making ImageMagick and byRequest work.

Would the "busybox_1.2.1_enhanced_static_v1" from http://buffalo.nas-central.org/download/terastation/uploads/ work on the LS 2?


Top
 Profile  
 
PostPosted: Thu Jan 18, 2007 3:56 am 
Offline
Moderator
User avatar

Joined: Tue Jul 26, 2005 5:22 pm
Posts: 1123
Location: United Kingdom
Manny wrote:
Would the "busybox_1.2.1_enhanced_static_v1" from http://buffalo.nas-central.org/download/terastation/uploads/ work on the LS 2?

No - that version is PPC based and is specifically targetted at work being done on the TeraStation.


Top
 Profile  
 
PostPosted: Thu Jan 18, 2007 11:18 am 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7702
Location: Austria, Vienna
itimpi is right.
i would have compiled it already for the mipsel but i do not have an LS2....

BUT: compiling busybox isn`t that hard...it is more the options you are using that make it take it longer.

you just need to install the development tools...then you are able to compile ("make") on your system.

the you follow
http://buffalo.nas-central.org/index.php?title=Create_a_package_%28tarball%29_for_distribution
until you are at the ./configure-part.

then follow this here:
instead of executing configure you execute "make menuconfig"
you will see a "graphical", ncurses-based menu...there you can just choose what you need...
(if you are confused because all of this just do make "defconfig" instead of "make menuconfig", then i think all commands without special additions are configured...for testing....etherwake and such stuff)

if you think you configured all commands do a make.

if everything went right you will see 2 new files, busybox and busybox_stripped.

just try them with ./busybox (or ./busybox_stripped) to see which commands you built into the busybox.

you might learn a little about linux if you really try to compile busybox....if you manage to compile busybox you at least now the basic way of compiling (downloading the source, untaring it somewhere, configuring it, and making it)...busybox is different to other software because it has this "graphical" menu....but the kernel for example uses a similar menu....so you now how to look at the kernel config...just out of interest of course..

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
 Profile  
 
PostPosted: Fri Jan 19, 2007 1:54 am 
Offline
Newbie
User avatar

Joined: Thu Dec 14, 2006 9:24 pm
Posts: 46
Location: United States of America
I tried, but I get some errors after make:

Code:
LINKSTA:root /mnt/hda/share/busybox-1.3.1>make
  SPLIT   include/autoconf.h -> include/config/*
  GEN     include/bbconfigopts.h
  HOSTCC  applets/usage
  GEN     include/usage_compressed.h
/mnt/hda/share/busybox-1.3.1/applets/usage_compressed: bzip2: command not found
od: invalid option -- t
BusyBox v1.00 (2005.08.06-22:16+0000) multi-call binary
 
Usage: od [-aBbcDdeFfHhIiLlOovXx] [FILE]
 
Write an unambiguous representation, octal bytes by default, of FILE
to standard output.  With no FILE, or when FILE is -, read standard input.
 
  CC      applets/applets.o
In file included from applets/applets.c:390:
include/usage_compressed.h:2: error: syntax error before ';' token
make[1]: *** [applets/applets.o] Error 1
make: *** [applets] Error 2
LINKSTA:root /mnt/hda/share/busybox-1.3.1>


What am I doing wrong? do I need to remove busybox 1.00 before make?


Top
 Profile  
 
PostPosted: Fri Jan 19, 2007 2:52 am 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7702
Location: Austria, Vienna
don`t try to compile 1.3.1.....they changed really many things so it does compile on my LS1 either.

i compiled the busybox 1.2.1 on purpose as it compiles...the later ones aren`t.

also you obviously need a full od for now. i opened a mipsel debian package with 7-zip and extracted it for you from the coreutils.

do

Code:
cd /usr/bin
wget http://buffalo.nas-central.org/download/uploads/LS2/od
chmod 755 od


and try to compile it again.

possibly you might have more fun if you use this config:
http://buffalo.nas-central.org/download/terastation/uploads/busybox_enhanced_config

inside the busybox directory do
Code:
wget http://buffalo.nas-central.org/download/terastation/uploads/busybox_enhanced_config
cp busybox_enhanced_config .config
make oldconfig
make


please tell us if you managed to compile it...i sent you the needed info to upload it

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
 Profile  
 
PostPosted: Fri Jan 19, 2007 4:51 am 
Offline
Newbie
User avatar

Joined: Thu Dec 14, 2006 9:24 pm
Posts: 46
Location: United States of America
Thanks mindbender! It worked! I tried uploading both files to the upload folder but I couldn't login by FTP.

BTW: why there is no bashrc in OpenLink? can i create it?


Top
 Profile  
 
PostPosted: Fri Jan 19, 2007 11:10 am 
Offline
Regular Member
User avatar

Joined: Tue Dec 12, 2006 2:32 pm
Posts: 104
Location: Germany
I did on my LS2 (I'm not shure about .kshrc or .bashrc) adding a line
set -o vi
and $HOME/.profile (export modified (extented) PATH, alias for ls etc.), too.

Be careful and keep logic simple!
I don't know what may happen if these scripts fail (e.g. empty PATH, nonsense aliases etc.).

_________________
LS2, mipsel OpenLink 0.52b, dev. tools-2_1, busybox_1.4.1_patched+revised_static_v4.1, killproc-2.11, bzip2-1.0.4, ggrab-0.22a, groff-1.19.2, man-1.6e, inetutils-1.5, mtools-3.9.10-20070305, nano-2.0, openssh-4.3p2, psmisc-22.2, pstree-2.27


Top
 Profile  
 
PostPosted: Fri Jan 19, 2007 3:22 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7702
Location: Austria, Vienna
thx for uploading. the binary can be found here:
http://buffalo.nas-central.org/download/uploads/LS2/busybox

as it uses the same config as my busybox it should have this commands compiled in:
Code:
bash-2.05a# busybox
BusyBox v1.2.1 (2006.08.09-00:14+0000) multi-call binary
 
Usage: busybox [function] [arguments]...
   or: [function] [arguments]...
 
        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as!
 
Currently defined functions:
        [, [[, arping, bbconfig, bunzip2, busybox, bzcat, chroot, chvt,
        cksum, clear, comm, cpio, dd, deallocvt, dirname, dmesg, dnsd,
        dos2unix, dpkg, dpkg-deb, [b]ether-wake[/b], fakeidentd, false, fold,
        [b]ftpget[/b], [b]ftpput[/b], fuser, gunzip, hexdump, ip, ipaddr, iplink, iproute,
        iptunnel, last, less, lzmacat, md5sum, mknod, more, mountpoint,
        [b]nc[/b], [b]nice[/b], [b]nohup[/b], [b]nslookup[/b], openvt, patch, ping6, pipe_progress,
        pivot_root, pwd, readlink, realpath, [b]renice[/b], reset, route, rpm,
        rpm2cpio, sha1sum, sort, stat, strings, tee,[b] telnet[/b], test, [b]tftp[/b],
        time, [b]traceroute[/b], true, uncompress, uniq, unix2dos, unlzma, uudecode,
        uuencode, vi, who, whoami, yes, zcat, zcip

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
 Profile  
 
PostPosted: Tue Jan 30, 2007 6:17 pm 
Offline
Regular Member
User avatar

Joined: Tue Dec 12, 2006 2:32 pm
Posts: 104
Location: Germany
This vi of BusyBox 1.2.1 solved my display problems (had always to press Ctrl-L bevore)

However for some of the utilities help function outputs a strange line about a decompression failure (as for vi):

root@HD-HLAN541:~# /usr/local/bin/vi --help
vi: Decompression failed
BusyBox v1.2.1 (2007.01.19-04:49+0000) multi-call binary

Usage: vi

Of course, solving the display problem is more important than this cosmetic thing :)

Thanks for your great work!

_________________
LS2, mipsel OpenLink 0.52b, dev. tools-2_1, busybox_1.4.1_patched+revised_static_v4.1, killproc-2.11, bzip2-1.0.4, ggrab-0.22a, groff-1.19.2, man-1.6e, inetutils-1.5, mtools-3.9.10-20070305, nano-2.0, openssh-4.3p2, psmisc-22.2, pstree-2.27


Top
 Profile  
 
PostPosted: Tue Jan 30, 2007 7:07 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7702
Location: Austria, Vienna
at the moment compiling the latest busybox with applied patches works.

maybe we should compile it for mipsel as well.....who volunteers?

i can give instructions how to apply the patches Cool

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
 Profile  
 
PostPosted: Tue Jan 30, 2007 7:16 pm 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
In the immortal words of Mr Humphries - "I'm free!"


Top
 Profile  
 
PostPosted: Thu Feb 01, 2007 9:57 am 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
Maybe I should have just said, go on then give me the instructions and I'll do it on mine


Top
 Profile  
 
PostPosted: Thu Feb 01, 2007 10:19 am 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7702
Location: Austria, Vienna
haha. good.

1) change to your compiling folder
2) wget http://busybox.net/downloads/busybox-1.4.0.tar.bz2
3) tar -xjvf busybox-1.4.0.tar.bz2
4) cd busybox-1.4.0
5) get the patches:
wget http://busybox.net/downloads/fixes-1.4.0/busybox-1.4.0-conf.patch
wget http://busybox.net/downloads/fixes-1.4.0/busybox-1.4.0-libnetlink.patch
wget http://busybox.net/downloads/fixes-1.4.0/busybox-1.4.0-parse_config_file.patch
wget http://busybox.net/downloads/fixes-1.4.0/busybox-1.4.0-syslogd-n.patch
wget http://busybox.net/downloads/fixes-1.4.0/busybox-1.4.0-tar.patch
6) apply the patches ( always forget how to use patch myself..i always google for "using patch" then)
patch -Np1 < busybox-1.4.0-conf.patch
patch -Np1 < busybox-1.4.0-libnetlink.patch
patch -Np1 < busybox-1.4.0-parse_config_file.patch
patch -Np1 < busybox-1.4.0-syslogd-n.patch
patch -Np1 < busybox-1.4.0-tar.patch

hopefully you get no errors.
7) choose your config...i uploaded you one

wget http://buffalo.nas-central.org/download/terastation/uploads/busybox_1.4.0_enhanced_v3_config
cp busybox_1.4.0_enhanced_v3_config .config

(in fact it is the same as the static one there....but you do not need to care about shared + static as there are no other mipsel linkstations out there)

Cool make

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
 Profile  
 
PostPosted: Thu Feb 01, 2007 11:26 am 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
busybox:

Currently defined functions:
[, [[, addgroup, adduser, adjtimex, ar, arping, ash, basename,
bbconfig, bunzip2, bzcat, cal, cat, catv, chgrp, chmod,
chown, chroot, chvt, cksum, clear, cmp, comm, cp, cpio,
crond, crontab, cut, date, dc, dd, deallocvt, delgroup,
deluser, df, diff, dirname, dmesg, dnsd, dos2unix, dpkg,
dpkg-deb, du, dumpkmap, echo, eject, env, ether-wake,
expr, fakeidentd, false, fdisk, fold, free, freeramdisk,
ftpget, ftpput, fuser, getopt, getty, head, hexdump, hostid,
hostname, httpd, id, ifconfig, ifdown, ifup, install,
ipcalc, ipcrm, ipcs, last, length, less, ln, loadfont,
loadkmap, logname, losetup, ls, lzmacat, makedevs, md5sum,
mesg, mkdir, mkfifo, mknod, mkswap, mktemp, more, mount,
mountpoint, mv, nameif, nc, netstat, nice, nohup, nslookup,
od, openvt, patch, pidof, ping, ping6, pipe_progress,
pivot_root, printenv, printf, ps, pwd, rdate, readlink,
readprofile, realpath, renice, reset, resize, rm, rmdir,
route, rpm, rpm2cpio, run-parts, rx, sed, seq, setconsole,
setkeycodes, setlogcons, setsid, sha1sum, sleep, sort,
start-stop-daemon, stat, strings, su, sulogin, sum, swapoff,
swapon, switch_root, sync, tail, taskset, tee, telnet,
telnetd, test, tftp, time, top, touch, tr, traceroute,
true, tty, umount, uname, uncompress, uniq, unix2dos,
unlzma, unzip, uptime, usleep, uudecode, uuencode, vi,
vlock, watch, watchdog, wc, wget, which, who, whoami,
xargs, yes, zcip


./busybox_unstripped:

Currently defined functions:
[, [[, addgroup, adduser, adjtimex, ar, arping, ash, basename,
bbconfig, bunzip2, bzcat, cal, cat, catv, chgrp, chmod,
chown, chroot, chvt, cksum, clear, cmp, comm, cp, cpio,
crond, crontab, cut, date, dc, dd, deallocvt, delgroup,
deluser, df, diff, dirname, dmesg, dnsd, dos2unix, dpkg,
dpkg-deb, du, dumpkmap, echo, eject, env, ether-wake,
expr, fakeidentd, false, fdisk, fold, free, freeramdisk,
ftpget, ftpput, fuser, getopt, getty, head, hexdump, hostid,
hostname, httpd, id, ifconfig, ifdown, ifup, install,
ipcalc, ipcrm, ipcs, last, length, less, ln, loadfont,
loadkmap, logname, losetup, ls, lzmacat, makedevs, md5sum,
mesg, mkdir, mkfifo, mknod, mkswap, mktemp, more, mount,
mountpoint, mv, nameif, nc, netstat, nice, nohup, nslookup,
od, openvt, patch, pidof, ping, ping6, pipe_progress,
pivot_root, printenv, printf, ps, pwd, rdate, readlink,
readprofile, realpath, renice, reset, resize, rm, rmdir,
route, rpm, rpm2cpio, run-parts, rx, sed, seq, setconsole,
setkeycodes, setlogcons, setsid, sha1sum, sleep, sort,
start-stop-daemon, stat, strings, su, sulogin, sum, swapoff,
swapon, switch_root, sync, tail, taskset, tee, telnet,
telnetd, test, tftp, time, top, touch, tr, traceroute,
true, tty, umount, uname, uncompress, uniq, unix2dos,
unlzma, unzip, uptime, usleep, uudecode, uuencode, vi,
vlock, watch, watchdog, wc, wget, which, who, whoami,
xargs, yes, zcip


Is that about right?


Top
 Profile  
 
PostPosted: Thu Feb 01, 2007 11:41 am 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7702
Location: Austria, Vienna
looks good to me. we do not need the unstripped binaries besides. they are just bigger...thats all.

get it uploaded to http://buffalo.nas-central.org/download/uploads/LS2/

please rename the current busybox + busybox_unstripped there to

busybox_1.2.1_enhanced_static_v1_LS2
busybox_1.2.1_enhanced_static_v1_LS2_unstripped

and name yours
busybox_1.4.0_patched_enhanced_static_v3_LS2
busybox_1.4.0_patched_enhanced_static_v3_LS2_unstripped

we could use itimpis script for creating all the symlinks.

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Protected by Anti-Spam ACP
Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group