DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-09-11 15:06:27

badbob
Member
Registered: 2007-03-04
Posts: 5

Walkthrough guide for slim center

Is there a walk through guide on how to install slim center for the DNS-323? From the beginning (stock firmware) to the end, where everything works

Offline

 

#2 2008-09-11 15:10:07

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Walkthrough guide for slim center

I have slimserver working (at least it seems to work) on my dns323. I still need some time to test and package stuff, though.

Offline

 

#3 2008-09-11 15:11:18

knireis
Member
Registered: 2007-12-10
Posts: 231

Re: Walkthrough guide for slim center

fonz wrote:

I have slimserver working (at least it seems to work) on my dns323. I still need some time to test and package stuff, though.

Which version?

Offline

 

#4 2008-09-11 15:23:28

badbob
Member
Registered: 2007-03-04
Posts: 5

Re: Walkthrough guide for slim center

Would everything be installed to flash or to the HD? That way if I install it, and remove the two 320GB and fit two 1TB- if it's flash then just setup discs and continue (like DNS-323 stock firmware) but if it's like Buffalo the firmware is on the HD- you can't just bung in a new HD as you'll need to clone the partitions/disc then recover the system from a clone image.

Offline

 

#5 2008-09-11 15:25:58

knireis
Member
Registered: 2007-12-10
Posts: 231

Re: Walkthrough guide for slim center

badbob wrote:

Is there a walk through guide on how to install slim center for the DNS-323? From the beginning (stock firmware) to the end, where everything works

I gave up on slimserver or squeezecenter on my CH3SNAS. I got 6.3 running but it is already slow, latest versions need even more memory. After almost every input with the remote control I had to wait at least 1-2 seconds, sometimes even more. I have about 25000 musicfiles, maybe with less it will respond faster.

In the end I found a nice solution in getting a cheap used HP thinclient (T5720) from ebay. It has 512mb memory and 1GB flash (you can also use a usb stick). I installed a minimal debian etch system (just follow the instructions on install CD) and then the install of squeezecenter is just a few mouseclicks away. I mounted my CHS3NAS share (with the music files) onto the thinclient and ready to go. Now squeezecenter responds very snappy, remote control inputs are executed immediately. The thinclient works with WOL and takes only 10 watts of power.

And the best of all, I can use the new Squeezebox boom:
 
http://www.logitech.com/index.cfm/speak … p;cl=us,en

By the way, also the duet needs at least squeezecenter/slimserver version 7

Last edited by knireis (2008-09-11 15:27:08)

Offline

 

#6 2008-09-11 15:28:49

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Walkthrough guide for slim center

knireis wrote:

Which version?

7.2

Offline

 

#7 2008-09-11 15:29:25

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Walkthrough guide for slim center

badbob wrote:

Would everything be installed to flash or to the HD?

HD

Offline

 

#8 2008-09-11 15:48:00

knireis
Member
Registered: 2007-12-10
Posts: 231

Re: Walkthrough guide for slim center

fonz wrote:

knireis wrote:

Which version?

7.2

would be interesting to see the performance of this setup

Offline

 

#9 2008-09-11 17:01:25

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Walkthrough guide for slim center

knireis wrote:

would be interesting to see the performance of this setup

I can confirm that it's fast enough to stream music to at least one player wink

Apart from that, slimserver.pl needs about 90MB RAM, plus scanner.pl, plus min 15MB for mysql. So, with slimserver alone it's already swapping. Web interface response times are... hmmmm.

This is with perl 5.10, and according to the release announcement, it's "faster with a smaller memory footprint": http://dev.perl.org/perl5/news/2007/perl-5.10.0.html

Offline

 

#10 2008-09-11 18:12:50

badbob
Member
Registered: 2007-03-04
Posts: 5

Re: Walkthrough guide for slim center

ok installed ffp, the ffp directory is now about 800MB but what do I do now?

Offline

 

#11 2008-09-12 10:43:04

knireis
Member
Registered: 2007-12-10
Posts: 231

Re: Walkthrough guide for slim center

badbob wrote:

ok installed ffp, the ffp directory is now about 800MB but what do I do now?

Depends, if you need version 7 (for the duet and boom) you wait till Fonz releases his package (if he intends to do so). Or when you have a squeezebox classic then you can follow my instructions somewhere in this forum to install version 6.3.

Offline

 

#12 2008-09-12 20:27:41

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: Walkthrough guide for slim center

Another option for squeezecenter 7.2 is optware.
See http://dns323.kood.org/howto:optware and http://forums.slimdevices.com/showthread.php?t=52466

Offline

 

#13 2008-09-16 03:05:40

yannick
New member
Registered: 2008-09-02
Posts: 3

Re: Walkthrough guide for slim center

I've posted the steps I used to install SC7.2 on my DNS-323 using ffp 0.5 there:
http://forums.slimdevices.com/showthread.php?t=52664

Maybe it can help you...

Yannick

Offline

 

#14 2008-09-16 15:38:11

zeroday
Member
Registered: 2007-07-01
Posts: 136
Website

Re: Walkthrough guide for slim center

yannick wrote:

I've posted the steps I used to install SC7.2 on my DNS-323 using ffp 0.5 there:
http://forums.slimdevices.com/showthread.php?t=52664

Maybe it can help you...

Yannick

tried it, but here it stops

4.2.3) Download and install DBD::mysql
/mnt/HD_a2/ffp/tmp # wget http://search.cpan.org/CPAN/authors/...l-4.008.tar.gz
/mnt/HD_a2/ffp/tmp # tar xfz DBD-mysql-4.008.tar.gz
/mnt/HD_a2/ffp/tmp # cd DBD-mysql-4.008/
/mnt/HD_a2/ffp/tmp/DBD-mysql-4.008 # perl Makefile.PL
/mnt/HD_a2/ffp/tmp/DBD-mysql-4.008 # make
/mnt/HD_a2/ffp/tmp/DBD-mysql-4.008 # make install
/mnt/HD_a2/ffp/tmp/DBD-mysql-4.008 # cd ..

when using make ..

/ffp/bin/ld: ERROR: /usr/lib/libssl.so uses hardware FP, whereas blib/arch/auto/                                          DBD/mysql/mysql.so uses software FP
/ffp/bin/ld: failed to merge target specific data of file /usr/lib/libssl.so
/ffp/bin/ld: ERROR: /usr/lib/libcrypto.so uses hardware FP, whereas blib/arch/au                                          to/DBD/mysql/mysql.so uses software FP
/ffp/bin/ld: failed to merge target specific data of file /usr/lib/libcrypto.so
/ffp/bin/ld: ERROR: /usr/lib/libgcc_s.so uses hardware FP, whereas blib/arch/aut                                          o/DBD/mysql/mysql.so uses software FP
/ffp/bin/ld: failed to merge target specific data of file /usr/lib/libgcc_s.so
/ffp/bin/ld: ERROR: /usr/lib/libgcc_s.so uses hardware FP, whereas blib/arch/aut                                          o/DBD/mysql/mysql.so uses software FP
/ffp/bin/ld: failed to merge target specific data of file /usr/lib/libgcc_s.so
collect2: ld returned 1 exit status
distcc[1295] ERROR: compile (null) on localhost failed
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1

so no idea how to solve that the rest of the installation of the packages seems to go ok

Offline

 

#15 2008-09-16 15:45:45

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Walkthrough guide for slim center

zeroday wrote:

/ffp/bin/ld: ERROR: /usr/lib/libssl.so uses hardware FP, whereas blib/arch/auto/                                          DBD/mysql/mysql.so uses software FP
/ffp/bin/ld: failed to merge target specific data of file /usr/lib/libssl.so

You're mixing ffp and firmware libs. Try setting LDFLAGS before compiling packages:

Code:

export LDFLAGS="-Wl,-rpath -Wl,/ffp/lib"

Offline

 

#16 2008-09-16 16:19:26

zeroday
Member
Registered: 2007-07-01
Posts: 136
Website

Re: Walkthrough guide for slim center

fonz wrote:

zeroday wrote:

/ffp/bin/ld: ERROR: /usr/lib/libssl.so uses hardware FP, whereas blib/arch/auto/                                          DBD/mysql/mysql.so uses software FP
/ffp/bin/ld: failed to merge target specific data of file /usr/lib/libssl.so

You're mixing ffp and firmware libs. Try setting LDFLAGS before compiling packages:

Code:

export LDFLAGS="-Wl,-rpath -Wl,/ffp/lib"

tried that
get this

libs          (mysql_config) = -Wl,-rpath -Wl,/ffp/lib -rdynamic -L/ffp/lib/my                                                                                                                               sql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto
  mysql_config  (guessed     ) = mysql_config
  nocatchstderr (default     ) = 0
  nofoundrows   (default     ) = 0
  ssl           (guessed     ) = 1
  testdb        (default     ) = test
  testhost      (default     ) =
  testpassword  (default     ) =
  testsocket    (default     ) =
Use of uninitialized value in printf at Makefile.PL line 175, <PIPE> line 93.
  testuser      (            ) = root

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Checking if your kit is complete...
Looks good
Unrecognized argument in LIBS ignored: '-Wl,-rpath'
Unrecognized argument in LIBS ignored: '-Wl,/ffp/lib'
Unrecognized argument in LIBS ignored: '-rdynamic'
Using DBI 1.607 (for perl 5.010000 on arm-linux-thread-multi) installed in /ffp/                                                                                                                               lib/perl5/site_perl/5.10.0/arm-linux-thread-multi/auto/DBI/
Writing Makefile for DBD::mysql

Offline

 

#17 2008-09-16 16:29:45

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Walkthrough guide for slim center

zeroday wrote:

tried that
get this

Yes, run 'make' now.

Offline

 

#18 2008-09-16 16:38:32

zeroday
Member
Registered: 2007-07-01
Posts: 136
Website

Re: Walkthrough guide for slim center

fonz wrote:

zeroday wrote:

tried that
get this

Yes, run 'make' now.

/mnt/HD_a2/ffp/tmp/DBD-mysql-4.008 # make
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
distcc -c  -I/ffp/lib/perl5/site_perl/5.10.0/arm-linux-thread-multi/auto/DBI -I/ffp/include/mysql  -pipe -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -O2 -pipe -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"4.008\" -DXS_VERSION=\"4.008\" -fPIC "-I/ffp/lib/perl5/5.10.0/arm-linux-thread-multi/CORE"   dbdimp.c
distcc[3927] ERROR: nonblocking connect to 127.0.0.1:3632 failed: Connection refused
distcc[3927] Warning: failed to distribute dbdimp.c to 127.0.0.1, running locally instead
/ffp/bin/perl -p -e "s/~DRIVER~/mysql/g" /ffp/lib/perl5/site_perl/5.10.0/arm-linux-thread-multi/auto/DBI/Driver.xst > mysql.xsi
/ffp/bin/perl /ffp/lib/perl5/5.10.0/ExtUtils/xsubpp  -typemap /ffp/lib/perl5/5.10.0/ExtUtils/typemap  mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 225
Warning: duplicate function definition 'rows' detected in mysql.xs, line 650
distcc -c  -I/ffp/lib/perl5/site_perl/5.10.0/arm-linux-thread-multi/auto/DBI -I/ffp/include/mysql  -pipe -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -O2 -pipe -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"4.008\" -DXS_VERSION=\"4.008\" -fPIC "-I/ffp/lib/perl5/5.10.0/arm-linux-thread-multi/CORE"   mysql.c
distcc[3968] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/ffp/lib/mysql:/ffp/lib:/usr/lib" /ffp/bin/perl myld distcc  -shared  -Wl,-rpath -Wl,/ffp/lib -O2 dbdimp.o mysql.o  -o blib/arch/auto/DBD/mysql/mysql.so   \
           -L/ffp/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto       \

/ffp/bin/ld: ERROR: /usr/lib/libssl.so uses hardware FP, whereas blib/arch/auto/DBD/mysql/mysql.so uses software FP
/ffp/bin/ld: failed to merge target specific data of file /usr/lib/libssl.so
/ffp/bin/ld: ERROR: /usr/lib/libcrypto.so uses hardware FP, whereas blib/arch/auto/DBD/mysql/mysql.so uses software FP
/ffp/bin/ld: failed to merge target specific data of file /usr/lib/libcrypto.so
/ffp/bin/ld: ERROR: /usr/lib/libgcc_s.so uses hardware FP, whereas blib/arch/auto/DBD/mysql/mysql.so uses software FP
/ffp/bin/ld: failed to merge target specific data of file /usr/lib/libgcc_s.so
/ffp/bin/ld: ERROR: /usr/lib/libgcc_s.so uses hardware FP, whereas blib/arch/auto/DBD/mysql/mysql.so uses software FP
/ffp/bin/ld: failed to merge target specific data of file /usr/lib/libgcc_s.so
collect2: ld returned 1 exit status
distcc[3999] ERROR: compile (null) on localhost failed
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1


set
HISTFILE='/.ash_history'
HOME='/'
IFS='
'
LDFLAGS='-Wl,-rpath -Wl,/ffp/lib'
OLDPWD='/ffp/tmp'
OPTIND='1'
PATH='/ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin'
PPID='1667'
PS1='\w \$ '
PS2='> '
PS4='+ '
PWD='/ffp/tmp/DBD-mysql-4.008'
SHELL='/bin/sh'
TERM='vt102'
USER='root'
_='make'

Offline

 

#19 2008-09-16 16:49:00

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Walkthrough guide for slim center

zeroday wrote:

LD_RUN_PATH="... -L/usr/lib -lssl -lcrypto

This is still wrong, I don't have '-L/usr/lib' in there.

What mysql package are you using? Check output of

Code:

readelf -d /ffp/lib/libmysqlclient.so
...
0x0000000f (RPATH)                      Library rpath: [/ffp/lib]

Offline

 

#20 2008-09-16 16:53:16

zeroday
Member
Registered: 2007-07-01
Posts: 136
Website

Re: Walkthrough guide for slim center

fonz wrote:

zeroday wrote:

LD_RUN_PATH="... -L/usr/lib -lssl -lcrypto

This is still wrong, I don't have '-L/usr/lib' in there.

What mysql package are you using? Check output of

Code:

readelf -d /ffp/lib/libmysqlclient.so
...
0x0000000f (RPATH)                      Library rpath: [/ffp/lib]

it's a CH3SNAS with latest firmware completely fresh, fun_plug package 0.5

/mnt/HD_a2/ffp/tmp/DBD-mysql-4.008 # readelf -d /ffp/lib/libmysqlclient.so

Dynamic section at offset 0x117cb0 contains 28 entries:
  Tag        Type                         Name/Value
0x00000001 (NEEDED)                     Shared library: [libcrypt.so.0]
0x00000001 (NEEDED)                     Shared library: [libnsl.so.0]
0x00000001 (NEEDED)                     Shared library: [libm.so.0]
0x00000001 (NEEDED)                     Shared library: [libssl.so.0.9.8]
0x00000001 (NEEDED)                     Shared library: [libcrypto.so.0.9.8]
0x00000001 (NEEDED)                     Shared library: [libz.so.1]
0x00000001 (NEEDED)                     Shared library: [libc.so.0]
0x0000000e (SONAME)                     Library soname: [libmysqlclient.so.15]
0x0000000f (RPATH)                      Library rpath: [/ffp/lib]
0x0000000c (INIT)                       0xdd78
0x0000000d (FINI)                       0x47fe4
0x00000004 (HASH)                       0xb4
0x00000005 (STRTAB)                     0x54e4
0x00000006 (SYMTAB)                     0x1814
0x0000000a (STRSZ)                      15728 (bytes)
0x0000000b (SYMENT)                     16 (bytes)
0x00000003 (PLTGOT)                     0x11fdb0
0x00000002 (PLTRELSZ)                   3048 (bytes)
0x00000014 (PLTREL)                     REL
0x00000017 (JMPREL)                     0xd190
0x00000011 (REL)                        0x9a28
0x00000012 (RELSZ)                      14184 (bytes)
0x00000013 (RELENT)                     8 (bytes)
0x6ffffffc (VERDEF)                     0x99f0
0x6ffffffd (VERDEFNUM)                  2
0x6ffffff0 (VERSYM)                     0x9254
0x6ffffffa (RELCOUNT)                   850
0x00000000 (NULL)                       0x0

(note: all other perl packages compiled perfectly, only this one has this behaviour)

Last edited by zeroday (2008-09-16 16:56:47)

Offline

 

#21 2008-09-16 17:04:46

zeroday
Member
Registered: 2007-07-01
Posts: 136
Website

Re: Walkthrough guide for slim center

when I did this

perl Makefile.PL --libs="-L/ffp/lib"

it compiled without issue .. but no idea if that is ok

cause then finally starting slimserver gives

/ffp/bin/perl: can't resolve symbol 'mysql_init'

Last edited by zeroday (2008-09-16 17:25:22)

Offline

 

#22 2008-09-17 22:52:16

superkikim
Member
Registered: 2008-09-17
Posts: 8

Re: Walkthrough guide for slim center

try with

Code:

perl Makefile.PL --libs="-Wl,-rpath -Wl,/ffp/lib -rdynamic -L/ffp/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/ffp/lib -lssl -lcrypto"

worked for me. And now I have squeezecenter 7.2 working on my Zyxel NAS :-)

Last edited by superkikim (2008-09-18 01:35:47)

Offline

 

#23 2008-09-18 13:57:00

zeroday
Member
Registered: 2007-07-01
Posts: 136
Website

Re: Walkthrough guide for slim center

superkikim wrote:

try with

Code:

perl Makefile.PL --libs="-Wl,-rpath -Wl,/ffp/lib -rdynamic -L/ffp/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/ffp/lib -lssl -lcrypto"

worked for me. And now I have squeezecenter 7.2 working on my Zyxel NAS :-)

I can confirm that this rule is also valid for the CH3SNAS

squeezecenter 7.2 is working at one of my many CH3SNAS systems ;-)

Offline

 

#24 2008-09-21 15:46:14

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Walkthrough guide for slim center

As promised, here's my first attempt on the slimserver packages:
  http://www.inreto.de/dns323/squeezecenter-packages/

The README file contains the steps needed to get it started.

A big thanks goes to Yannick for the tutorial at the slimserver forum. I largely followed your tutorial, with a few exceptions:

- Compress::Raw::Zlib, IO::Compress::Base, IO::Compress::ZLib are core packages and already present. You don't need to recompile them if you chose the matching version of Compress::Zlib
- In addition to GD, DBI, DBD::mysql, Encode::Detect, Template and Compress::Zlib, I compiled HTML::Tagset, HTML::Parser, and XML::Parser as separate perl packages.
- You don't need to set LD_LIBRARY_PATH if all ELF files have the RPATH set.
- You can avoid the start/chown/start again/... pain if you manually create the prefs, Logs, Cache directories with correct permissions, and then do 'su slimserver' before starting slimserver.pl.


Have fun.

Offline

 

#25 2008-09-30 10:37:36

zeroday
Member
Registered: 2007-07-01
Posts: 136
Website

Re: Walkthrough guide for slim center

fonz wrote:

As promised, here's my first attempt on the slimserver packages:
  http://www.inreto.de/dns323/squeezecenter-packages/

The README file contains the steps needed to get it started.

A big thanks goes to Yannick for the tutorial at the slimserver forum. I largely followed your tutorial, with a few exceptions:

- Compress::Raw::Zlib, IO::Compress::Base, IO::Compress::ZLib are core packages and already present. You don't need to recompile them if you chose the matching version of Compress::Zlib
- In addition to GD, DBI, DBD::mysql, Encode::Detect, Template and Compress::Zlib, I compiled HTML::Tagset, HTML::Parser, and XML::Parser as separate perl packages.
- You don't need to set LD_LIBRARY_PATH if all ELF files have the RPATH set.
- You can avoid the start/chown/start again/... pain if you manually create the prefs, Logs, Cache directories with correct permissions, and then do 'su slimserver' before starting slimserver.pl.


Have fun.

very wierd
1 device (CH3SNAS) ok

2nd gives this error
/mnt/HD_a2/ffp/start # sh /ffp/start/slimserver.sh start
Adding slimserver user
useradd: invalid numeric argument 'slimserver'
su: unknown id: slimserver
/mnt/HD_a2/ffp/start #

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB