Buffalo NAS-Central Forums
http://forum.buffalo.nas-central.org/

optware/mssii ipkg feed up - shared feed for arm9 boxes!
http://forum.buffalo.nas-central.org/viewtopic.php?f=19&t=4075
Page 1 of 10

Author:  bzhou [ Mon Oct 01, 2007 11:40 pm ]
Post subject:  optware/mssii ipkg feed up - shared feed for arm9 boxes!

See http://www.nslu2-linux.org/wiki/MSSII/HomePage for bootstrap instruction.

See http://ipkg.nslu2-linux.org/feeds/optwa ... ss/stable/ for the actual feed.

If you want to use this feed for other NAS, you may also do manual bootstrap by adapting instruction on
http://www.nslu2-linux.org/wiki/Optware/Slugosbe

Cheers,

-Brian Zhou

Author:  mindbender [ Mon Oct 15, 2007 10:56 am ]
Post subject:  Re: optware/mssii ipkg feed up

thx to bzhou who implemented my suggested changes there are even the bootstrap files for Linkstation Pro/Linkstation Live and the Tera Pro v2/Tera Live available now.

LATEST NEWS:

24.9.08: Optware feed tested on LS-HGL and LS-LGL. Read about the easy fix for the DNS-issues below.
29.4.08: Optware feed might work on the Linkstation Mini. Tests needed.
10.4.08: DNS issues were reported for the Linkstation EZ aka LS-LGL. This might be a kernel issue.
15.1.08: Installation of the optware feed on the Linkstation EZ aka LS-LGL is possible by downloading and executing the lspro-bootstrap_1.0-9_arm.xsh script. The reason for that is that it also mounts the data partition to /mnt/disky1 (like the LSPro v1 & v2 / LS Live v1 & v2) and that it again is based on a similar development board by Marvell. There are some hardware differences, but this should not be a problem so far. We might need to add some kernel feeds for all boxes though.
13.1.08: You can install the optware feed on the Linkstation Pro DUO by downloading and executing the teraprov2-bootstrap_1.0-9_arm.xsh script. The reason for that is that it also mounts the raid-array to /mnt/array1 (like on the terastation pro v2/terastation live) and that it again is based on the same development board by Marvell.

BOOTSTRAP TESTS NEEDED FOR:
Linkstation Mini: missing

BOOTSTRAP TESTED ON:
Linkstation Pro/Linkstation Live: tested & working
TerastationPro v2/Terastation Live: tested & working
Linkstation Pro DUO: tested & working
Linkstation EX aka LS-LGL: tested & working (DNS issues, see fix below)
LS-HGL: tested & working

If you use jtymod (LS pro/LS Live only):
jtymod has the addons.tar-package already installed. directly proceed with bootstrapping.
if you use the stock firmware:
all stock boxes suffer the problem that no wget-binary is available. so we cannot download the bootstrap-files.

SOLUTIONS for missing WGET
In case you still have the "share"-share active
download the latest version of acp_commander v3.3 from here:
http://buffalo.nas-central.org/download ... mander.jar
http://buffalo.nas-central.org/download ... DER/README
it now is able to download and install a package from the internet...the option -addons will download the addons.tar from http://buffalo.nas-central.org/download ... addons.tar, copy it to //<LS-IP>/share/ and then untar it to /.

1) so just simply use
Code:
java -jar acp_commander -t <linkstation-ip/terastation-ip> -o -addons

when spawning telnet + clearing root ("-o"-option).
2) proceed with bootstrapping.

In case you do not have the "share"-share anymore
1) Use acp_commander to spwan telnet & clear the root password
2) download http://buffalo.nas-central.org/download ... addons.tar
3) move it to your favorite share on your box
4) telnet in, change dir to /mnt/{disk1,array1}/<yourshare>
5) untar the package with
Code:
tar -C / -xzvf addons.tar

6) proceed with bootstrapping

Also note that there are no kernel modules or kernels in the feed. this will change by adding a new feed specificly for the kernel & kernel modules later. bzhou had to divide the kernel stuff from the rest so we can use the same feed on several boxes.

SOLUTION for DNS Issues on LS-LGL/LS-HGL
On a LS-LGL or LS-HGL execute this to fix the DNS issues:
Code:
echo "hosts: files dns" >/etc/nsswitch.conf


BOOTSTRAPPING

Linkstation Pro/Linkstation Live/Linkstation EX @ stock like firmware (stock or jtymod)

Code:
mkdir /mnt/disk1/tmp
cd /mnt/disk1/tmp
wget http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/lspro-bootstrap_1.2-5_arm.xsh
sh lspro-bootstrap_1.2-5_arm.xsh


Linkstation Pro DUO/Terastation Pro v2/Terastation Live/Linkstation Mini @ stock like firmware

Code:
mkdir /mnt/array1/tmp
cd /mnt/array1/tmp
wget http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/teraprov2-bootstrap_1.2-5_arm.xsh
sh teraprov2-bootstrap_1.2-5_arm.xsh


Whats happening when bootstrapping?
1) /mnt/disk1/opt or /mnt/array1/opt is created....and it gets mounted to /opt from now on.
2) in /opt several folders are created
3) ipkg gets installed to /opt/bin/ipkg and the config with the selected feeds gets created at /opt/etc/ipkg.conf
4) "PATH=/opt/bin:/opt/sbin:$PATH" gets added at last line in /etc/profile....which means you can use the binaries installed via ipkg as if they were normally installed.
5) "# Optware setup
[ -x /etc/init.d/rc.optware ] && /etc/init.d/rc.optware start"
is added to /etc/init.d/rcS at the end...which has the effect that everything in /opt/etc/init.d gets started on bootup.


USAGE

after bootstrapping i recommend to reconnect via a new ssh/telnet session so the updated $PATH-variable is working.

then you can update the ipkg-list and install any app via:
Code:
ipkg update
ipkg upgrade
ipkg install <appname>


Here is the full list of the currently available packages:
http://ipkg.nslu2-linux.org/feeds/optwa ... e/Packages

ENJOY!

Changelog:
30.11.08: Fixed Typo
24.9.08: Added latest news about LS-LGL & LS-HGL
22.9.08: Fixed links to bootstrap-scripts (1.2.5) and added solution for DNS issues.
21.6.08: Fixed links to bootstrap-scripts (1.2.2)
14.2.08: Fixed links to bootstrap-scripts (1.1.1)
15.1.08: ADDED new info about Linkstation EZ
13.1.08: ADDED new info about Linkstation Pro DUO

Author:  r0m [ Mon Oct 15, 2007 12:40 pm ]
Post subject:  Re: optware/mssii ipkg feed up - shared feed for arm9 boxes!

Works for me on a TS-HTGL !!

Here is the script output text :

root@TS-HTGLB69:/mnt/array1/tmp# sh teraprov2-bootstrap_1.0-4_arm.xsh
Optware Bootstrap for teraprov2.
Extracting archive... please wait
bootstrap
bootstrap/optware-bootstrap.ipk
bootstrap/ipkg.ipk
bootstrap/openssl.ipk
bootstrap/wget-ssl.ipk
4502+1 records in
4502+1 records out
bootstrap/bootstrap.sh
bootstrap/ipkg.sh
Creating temporary ipkg repository...
Installing optware-bootstrap package...
Unpacking optware-bootstrap.ipk...Done.
Configuring optware-bootstrap.ipk...Setting up ipkg arch-file
Modifying /etc/init.d/rcS
Done.
Installing ipkg...
Unpacking ipkg.ipk...Done.
Configuring ipkg.ipk...Done.
Removing temporary ipkg repository...
Installing OpenSSL...
Installing openssl (0.9.7m-3) to root...
Configuring openssl
Successfully terminated.
Installing wget...
Installing wget-ssl (1.10.2-4) to root...
Configuring wget-ssl
Successfully terminated.
Creating /opt/etc/ipkg/cross-feed.conf...
Setup complete.

Then,

root@TS-HTGLB69:/mnt/array1# ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optwa ... ackages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optwa ... ackages.gz
Updated list of available packages in /opt/lib/ipkg/lists/cross
Successfully terminated.

I installed Asterisk14 package and it seems to work correcty.
The only problem i had is with wget who is not installed by default on TS-HTGL :)

Thanks a lot for your great work !

Author:  mindbender [ Mon Oct 15, 2007 1:53 pm ]
Post subject:  Re: optware/mssii ipkg feed up - shared feed for arm9 boxes!

edited previous post with instructions how to get wget on the box on stock firmwares.

now everyone should be able to follow the guide.

Author:  mindbender [ Mon Oct 15, 2007 2:29 pm ]
Post subject:  Re: optware/mssii ipkg feed up - shared feed for arm9 boxes!

r0m
please check if the /mnt/array1/opt is existing and if all files get installed there!

if yes then it is really working.

Author:  r0m [ Mon Oct 15, 2007 3:01 pm ]
Post subject:  Re: optware/mssii ipkg feed up - shared feed for arm9 boxes!

/mnt/array1/opt is not present.

root@TS-HTGLB69:/mnt/array1# ls -la
drwxr-xr-x 5 root root 60 Oct 15 13:21 .
drwxrwxrwx 14 root root 4096 Aug 22 15:53 ..
-rw-r--r-- 1 root root 0 Oct 15 15:56 .accesstest
drwxr-xr-x 11 root root 103 Oct 15 13:42 .optware
drwxrwxrwx 3 root root 17 Oct 15 13:18 test

in .optware :

root@TS-HTGLB69:/mnt/array1# ls -la .optware/
drwxr-xr-x 11 root root 103 Oct 15 13:42 .
drwxr-xr-x 5 root root 60 Oct 15 13:21 ..
drwxr-xr-x 2 root root 4096 Oct 15 13:42 bin
drwxr-xr-x 4 root root 92 Oct 15 13:42 etc
drwxr-xr-x 4 root root 105 Oct 15 13:42 include
drwxr-xr-x 5 root root 4096 Oct 15 13:42 lib
drwxr-xr-x 3 root root 17 Oct 15 13:23 man
drwxr-xr-x 2 root root 4096 Oct 15 13:42 sbin
drwxr-xr-x 8 root root 80 Oct 12 14:35 share
drwxr-xr-t 2 root root 6 Oct 15 09:00 tmp
drwxr-xr-x 6 root root 48 Oct 15 13:42 var


I don't know who really works ipkg, so, for me it was okay... is there a problem ?

Author:  mindbender [ Mon Oct 15, 2007 3:17 pm ]
Post subject:  Re: optware/mssii ipkg feed up - shared feed for arm9 boxes!

just checked. same here on my LS Pro.

no problem at all...just use it!

have fun!

Author:  r0m [ Mon Oct 15, 2007 3:22 pm ]
Post subject:  Re: optware/mssii ipkg feed up - shared feed for arm9 boxes!

yes, /opt is symlinked to /mnt/array1/.optware, so the default packages config (for exemple asterisk.conf) uses /opt so, effectively no problem :)

Thanks again :biglol:

Author:  fcisler [ Wed Oct 17, 2007 2:43 pm ]
Post subject:  Re: optware/mssii ipkg feed up - shared feed for arm9 boxes!

Always nice to see more work done with these NAS units!

I'm just a little confused...is ipkg/optware targeted more at the "stock" firmware, or for something like Debian? I find that apt-get has plenty of the packages that I need....so would there be any benefit in me trying this?

Author:  bzhou [ Wed Oct 17, 2007 3:18 pm ]
Post subject:  Re: optware/mssii ipkg feed up - shared feed for arm9 boxes!

fcisler wrote:
Always nice to see more work done with these NAS units!

I'm just a little confused...is ipkg/optware targeted more at the "stock" firmware, or for something like Debian? I find that apt-get has plenty of the packages that I need....so would there be any benefit in me trying this?


Yes, it's more targeted at the "stock" firmware.

Author:  mindbender [ Wed Oct 17, 2007 4:31 pm ]
Post subject:  Re: optware/mssii ipkg feed up - shared feed for arm9 boxes!

its for those who want to enhance the stock firmware...those who do not want to loose the webinterface for administration.

Author:  arteqw [ Sat Oct 20, 2007 7:55 am ]
Post subject:  Re: optware/mssii ipkg feed up - shared feed for arm9 boxes!

the rtorrent package don't work corectly

Author:  Kaiten [ Sat Oct 20, 2007 8:50 am ]
Post subject:  Re: optware/mssii ipkg feed up - shared feed for arm9 boxes!

arteqw wrote:
the rtorrent package don't work corectly
Can you expand on your comment.. What doesn't work about it?
If you want help or want to help others you need to give more then that.

Author:  arteqw [ Sat Oct 20, 2007 1:03 pm ]
Post subject:  Re: optware/mssii ipkg feed up - shared feed for arm9 boxes!

more info:
1)instalation - without any problems
2)when start rtorrent with command line like:

Code:
rtorrent -d /mnt/disk1/share /mnt/disk1/torrent.torrent 


i go an error

Code:
rtorrent: symbol lookup error: /opt/lib/libtorrent.so.10: undefined symbol: _ZN7torrent14TrackerManagerC1Ev

Author:  mindbender [ Sat Oct 20, 2007 2:54 pm ]
Post subject:  Re: optware/mssii ipkg feed up - shared feed for arm9 boxes!

Code:
(13:46:44) Using 'select' based polling.
(13:46:44) Could not read resource file: ~/.rtorrent.rc
[Throttle off/off KB] [Rate   0.0/  0.0 KB] [Port: 2001] [U 0/0] [D 0/0] [H 0/3rtorrent: symbol lookup error: /opt/lib/libtorrent.so.10: undefined symbol: _ZN7torrent14TrackerManagerC1Ev


confirmed.

i am now installing "transmission" (transmissioncli) and "enhanced-ctorrent"/"ctcs"...

Page 1 of 10 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/