Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Try to use MediaTomb on SMCNAS02

Thomas1970
2009-10-16
2013-05-30
  • Thomas1970
    Thomas1970
    2009-10-16

    I am trying to run MediaTomb on my SMC TigerStore SMCNAS02.  This is a NAS with an ARM processor in it, so I tried the ARMv4 static build.

    At least this binary is executable on this machine… When I start MediaTomb via the ./mediatomb.sh script, the following log is printed in the shell:

        MediaTomb UPnP Server version 0.11.0 - http://mediatomb.cc/
       
        ===============================================================================
        Copyright 2005-2008 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
        MediaTomb is free software, covered by the GNU General Public License version 2
       
        2009-10-16 20:45:05    INFO: Loading configuration from: /usr/local/mediatomb/config/config.xml
        2009-10-16 20:45:05    INFO: Checking configuration…
        2009-10-16 20:45:06    INFO: Setting filesystem import charset to ASCII
        2009-10-16 20:45:06    INFO: Setting metadata import charset to ASCII
        2009-10-16 20:45:06    INFO: Setting playlist charset to ASCII
        2009-10-16 20:45:06    INFO: Configuration check succeeded.
        2009-10-16 20:45:06   ERROR: main: upnp error -117
        2009-10-16 20:45:06   ERROR: upnp_cleanup: UpnpUnRegisterRootDevice failed

    What's wrong? What can I do to correctly start the server?
    Any help is appreciated!  Thank you very much!

     
  • Thomas1970
    Thomas1970
    2009-10-19

    Thank you very much for your VERY quick reply.

    From how I understood the referenced bug 212441, I first found out that /etc/network/interfaces is configured as described. Then I added the multicast route and and started again the *static* build of MediaTomb using the mediatomb.sh script from the archive.

    I got the same message as above printed into my shell. So, this didn't really help…

     
  • Thomas1970
    Thomas1970
    2009-10-19

    Okay, tonight I played a bit further, but I'm still not through it. I extracted the init-script from one of the distri-rpm's and adapted it for my system.

    Now I get the following log:

        2009-10-19 19:59:59    INFO: Loading configuration from: /usr/local/mediatomb//config/config.xml
        2009-10-19 19:59:59    INFO: Checking configuration…
        2009-10-19 19:59:59    INFO: Setting filesystem import charset to ASCII
        2009-10-19 19:59:59    INFO: Setting metadata import charset to ASCII
        2009-10-19 19:59:59    INFO: Setting playlist charset to ASCII
        2009-10-19 19:59:59    INFO: Configuration check succeeded.
        2009-10-19 20:00:00   ERROR: main: upnp error -205
        2009-10-19 20:00:00   ERROR: upnp_cleanup: UpnpUnRegisterRootDevice failed

    So, what does this mean?
    What do I have to do to correct it?
    `#define UPNP_E_OUTOF_SOCKET     -205`
    Thanks for any help!

     
  • Jin
    Jin
    2009-12-03

    Try looking up what interfaces are available using ifconfig, then try to specify the interface explicitly either via command line or via config.xml.

    I can't say for sure if this will help, but it may do the trick…

     
  • Thomas1970
    Thomas1970
    2009-12-03

    No, it didn't help…  can you give me further hints?

    This is the output of ifconfig:

        root@SMCNAS02:/usr/local/mediatomb# ifconfig -a
        eth0      Link encap:Ethernet  HWaddr 00:13:F7:DC:29:A4 
              inet addr:192.168.56.133  Bcast:192.168.56.255  Mask:255.255.255.0
              inet6 addr: fe80::213:f7ff:fedc:29a4/64 Scope:Link
              UP BROADCAST NOTRAILERS RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1
              RX packets:1523338808 errors:275264811 dropped:2462380371 overruns:0 frame:0
              TX packets:33671432 errors:911056993 dropped:171607634 overruns:0 carrier:0
              collisions:2906943509 txqueuelen:1000
              RX bytes:1023112750 (975.7 MiB)  TX bytes:92505683 (88.2 MiB)
              Interrupt:14

        gre0      Link encap:UNSPEC  HWaddr 00-00-00-00-31-33-3A-66-00-00-00-00-00-00-00-00 
              NOARP  MTU:1476  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

        lo        Link encap:Local Loopback 
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:367 errors:0 dropped:0 overruns:0 frame:0
              TX packets:367 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:55880 (54.5 KiB)  TX bytes:55880 (54.5 KiB)

        sit0      Link encap:IPv6-in-IPv4 
              NOARP  MTU:1480  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

        tunl0     Link encap:IPIP Tunnel  HWaddr  
              NOARP  MTU:1480  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

    This is my commandline:

        root@SMCNAS02:/usr/local/mediatomb# /usr/local/mediatomb/usr/bin/mediatomb -m /usr/local/mediatomb -f config -i 192.168.56.133

    And still this is same same output of mediatomb:

        MediaTomb UPnP Server version 0.11.0 - http://mediatomb.cc/

        ===============================================================================
        Copyright 2005-2008 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
        MediaTomb is free software, covered by the GNU General Public License version 2
       
        2009-12-03 19:21:04    INFO: Loading configuration from: /usr/local/mediatomb/config/config.xml
        2009-12-03 19:21:04    INFO: Checking configuration…
        2009-12-03 19:21:05    INFO: Setting filesystem import charset to ASCII
        2009-12-03 19:21:05    INFO: Setting metadata import charset to ASCII
        2009-12-03 19:21:05    INFO: Setting playlist charset to ASCII
        2009-12-03 19:21:05    INFO: Configuration check succeeded.
        2009-12-03 19:21:06   ERROR: main: upnp error -205
        2009-12-03 19:21:06   ERROR: upnp_cleanup: UpnpUnRegisterRootDevice failed

     
  • Jin
    Jin
    2009-12-04

    I assume there is no difference if you do -e eth0 ?

    In this case - I don't know,  I encountered some embedded devices that showed the same problem. When trying to debug it, it came down to some failing system call (don't remember exactly what it was anymore), it just returned an error for no apparent reason.

    A solution might be to rebuild MediaTomb using the toolchain that is provided by the vendor, it is possible that they have some extra hacks and patches in glibc/kernel/whatever and that my prebuilt "stock" version does not work because of that.

     
  • Thomas1970
    Thomas1970
    2009-12-05

    Well, the error is a bit different:

        root@SMCNAS02:/usr/local/mediatomb# /usr/local/mediatomb/usr/bin/mediatomb -m /usr/local/mediatomb -f config -e eth0
       
        MediaTomb UPnP Server version 0.11.0 - http://mediatomb.cc/
       
        ===============================================================================
        Copyright 2005-2008 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
        MediaTomb is free software, covered by the GNU General Public License version 2
       
        2009-12-05 19:40:28    INFO: Loading configuration from: /usr/local/mediatomb/config/config.xml
        2009-12-05 19:40:28    INFO: Checking configuration…
        2009-12-05 19:40:28    INFO: Setting filesystem import charset to ASCII
        2009-12-05 19:40:29    INFO: Setting metadata import charset to ASCII
        2009-12-05 19:40:30    INFO: Setting playlist charset to ASCII
        2009-12-05 19:40:30    INFO: Configuration check succeeded.
        2009-12-05 19:40:30   ERROR: Could not create local socket
        2009-12-05 19:40:31   ERROR: Could not find interface: eth0

    Unfortunately, I never have set up a cross compilation toolchain. And I guess the vendor, SMC, will not provide me their toolchain and their kernel hacks.

    It was not easy to make them giving me the root password :-)

    Maybe you could tell me how to set up your toolchain. Then I could copy the system libs from the NAS and try to make the toolchain using these libs.  Do you think that could work?

     
  • Thomas1970
    Thomas1970
    2009-12-05

    This is an excerpt from the NAS' /var/log/messages written at startup:

        Dec  4 17:31:10 SMCNAS02 kernel: Linux version 2.6.10_mvl401_AG_NAS_V2.1 (root@localhost.localdomain) (gcc version 3.4.3 (MontaVista 3.4.3-25.0.100.0600729 2006-05-26)) #36 Sat Jul 12 21:12:32 CST 2008
        Dec  4 17:31:10 SMCNAS02 kernel: CPU: ARM926EJ-Sid(wb)  revision 5 (ARMv5TEJ)

    Maybe this gives you a hint for special compilre settings…