WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Logitech Media Server (LMS) on TC.7  (Read 49861 times)

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #45 on: January 24, 2016, 04:39:58 AM »
Béla,
I'll try to build the perl 5.20.3 from git to support the armv6 and arm-linux-gnueabihf-thread-multi-64int.
What to set up to have it working?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Logitech Media Server (LMS) on TC.7
« Reply #46 on: January 24, 2016, 04:46:09 AM »
-march=armv6 -mcpu=arm1176jzf-s -mfpu=vfp

in CFLAGS and CXXFLAGS

These flags are used to build piCore.

« Last Edit: January 24, 2016, 04:51:49 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #47 on: January 24, 2016, 05:18:09 AM »
Add this to the config generation?
Code: (bash) [Select]
./Configure -des -Dprefix=$HOME/localperl -march=armv6 -mcpu=arm1176jzf-s -mfpu=vfp

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #48 on: January 24, 2016, 05:45:07 AM »
Sorry to disturb again, but the config refuse to define flags CFLAGS and CXXFLAGS.
How to define them? Where are they located?

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: Logitech Media Server (LMS) on TC.7
« Reply #49 on: January 24, 2016, 06:01:33 AM »
Something like:
Code: [Select]
sh Configure -des -Dcc="gcc -march=i486 -mtune=i686 -Os -pipe" -Dprefix=/usr/local...
(Adjusted for armv6 obviously)

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #50 on: January 24, 2016, 07:05:56 AM »
Hence seems that the flags are important, may be this will work:
Code: (bash) [Select]
sudo ./Configure -des -Dprefix=/mnt/mmcblk0p2/localperl -A CFLAGS="-march=armv6 -mcpu=arm1176jzf-s -mfpu=vfp" -A CXXFLAGS="-march=armv6 -mcpu=arm1176jzf-s -mfpu=vfp"

Béla, is that correct?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Logitech Media Server (LMS) on TC.7
« Reply #51 on: January 24, 2016, 08:19:57 AM »
Do not know, never used -A switch. I adviced few times to check how stock version built. Information is available in the repo.

http://tinycorelinux.net/7.x/armv6/tcz/src/perl5/
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1243
Re: Logitech Media Server (LMS) on TC.7
« Reply #52 on: January 24, 2016, 08:38:01 AM »
That doesn't work Bela.   Perl's Configure script, nor the makefile honor a standard CFLAGS environment variables or command line switches.

I built perl natively on a rpi model B.....it is built and passes all tests.    It gets the same Illegal Operation Error.  I don't think this is a base perl problem, but a binary within slimserver.   I'm still looking
« Last Edit: January 24, 2016, 09:04:38 AM by Paul_123 »

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1243
Re: Logitech Media Server (LMS) on TC.7
« Reply #53 on: January 24, 2016, 08:58:41 AM »
I even tried going back to perl 5.14.4, which is what I'm running on my wandboard LMS server.... That is the version on LMS specifically built for the rpi over a year ago.

And I'm getting errors in perl module Errno not exporting the right signals.   Strange. 

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Logitech Media Server (LMS) on TC.7
« Reply #54 on: January 24, 2016, 09:28:32 AM »

That doesn't work Bela.   Perl's Configure script, nor the makefile honor a standard CFLAGS environment variables or command line switches.

I built perl natively on a rpi model B.....it is built and passes all tests.    It gets the same Illegal Operation Error.  I don't think this is a base perl problem, but a binary within slimserver.   I'm still looking

Paul

What are you excuting to get illegal instruction, how can I reproduce it?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #55 on: January 24, 2016, 09:32:26 AM »
Paul,

I'm afraid that it's not related to the slimserver, because the same version works on the Rasbian Jessie well.
Wondering how to extract the perl from there, but it's located on may different places.

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #56 on: January 24, 2016, 09:43:01 AM »
Béla,

Install the perl-5.20.3.tcz and slimserver.tcz provided by the Paul on B, or B+ board and run
Code: (bash) [Select]
/usr/local/slimserver/slimserver.pl --d_startup
you'll get the full startup report.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1243
Re: Logitech Media Server (LMS) on TC.7
« Reply #57 on: January 24, 2016, 10:06:10 AM »
Paul,

I'm afraid that it's not related to the slimserver, because the same version works on the Rasbian Jessie well.
Wondering how to extract the perl from there, but it's located on may different places.

What version of Perl are they running on Jesse?  And I would not assume it is the same slimserver, have you done a 100% file compare?  Debian packages are maintained separately from the git source.

And if Perl is passing it's internal tests, then it is probably not the base perl.  There are compiled perl modules as a part of slimserver.....more than likely that is teh problem. 

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #58 on: January 24, 2016, 10:30:46 AM »
Jessie uses 5.20.2 and the files I'm using are 100% same, because I'm using the .deb source, not git one to the st on the piCore.
You may test it, I've provided the link in this thread some days ago.
There are CPAN modules in the slimserver directory and we need to use them, otherwise we need to install them again from the perl.

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #59 on: January 24, 2016, 11:28:22 AM »
Question is about the configuration. Which one is correct?
Code: (bash) [Select]
./Configure -des -Dprefix=/mnt/mmcblk0p2/perl5.20.3 -A CFLAGS="-march=armv6 -mcpu=arm1176jzf-s -mfpu=vfp" -A CXXFLAGS="-march=armv6 -mcpu=arm1176jzf-s -mfpu=vfp"
or
Code: (bash) [Select]
./Configure -des -Dprefix=/mnt/mmcblk0p2/perl5.20.3 -Dcc="gcc -march=armv6 -mcpu=arm1176jzf-s -mfpu=vfp"