×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

SBIG ST-7XME doesn´t work on Raspberry

  • Posts: 11
  • Thank you received: 0
Hey,
I have installed the indiserver on my Raspberry, but the SBIG driver doesn´t start.
On my laptop everything works fine.
Because I´am a beginner with Linux and Indi maybe someone could help me

Greetings,

Sebastian

Here is the output from the console:

pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 006: ID 0d97:0101 Santa Barbara Instrument Group SBIG Astronomy Camera (with firmware)
Bus 001 Device 004: ID 03c3:120a
pi@raspberrypi ~ $ sudo indiserver -v indi_sbig_ccd
2015-08-22T16:51:33: startup: indiserver -v indi_sbig_ccd
2015-08-22T16:51:33: Driver indi_sbig_ccd: pid=3586 rfd=3 wfd=6 efd=7
2015-08-22T16:51:33: listening to port 7624 on fd 4
2015-08-22T16:51:33: Driver indi_sbig_ccd: stdin EOF
2015-08-22T16:51:33: Driver indi_sbig_ccd: restart #1
2015-08-22T16:51:33: Driver indi_sbig_ccd: pid=3587 rfd=0 wfd=6 efd=7
2015-08-22T16:51:33: Driver indi_sbig_ccd: stdin EOF
2015-08-22T16:51:33: Driver indi_sbig_ccd: restart #2
8 years 7 months ago #4802

Please Log in or Create an account to join the conversation.

You're not suppose to 'sudo indiserver'. What happens when you run 'indiserver -v indi_sbig_ccd' ?
8 years 7 months ago #4807

Please Log in or Create an account to join the conversation.

  • Posts: 11
  • Thank you received: 0
Hey, when I run 'indiserver -v indi_sbig_ccd' without sudo I become the same mistake.
8 years 7 months ago #4821

Please Log in or Create an account to join the conversation.

I tested on SBIG ST-I and it worked fine on the Raspberry PI. Try to run it under debug and send the backtrace (type bt) when it crashes.
gdb --eval-command="set follow-fork-mode child" --args indiserver -v indi_sbig_ccd
8 years 7 months ago #4826

Please Log in or Create an account to join the conversation.

  • Posts: 11
  • Thank you received: 0
I hope i have done the right thinks... :whistle: Here is the output:

pi@raspberrypi ~ $ gdb --eval-command="set follow-fork-mode child" --args indiserver -v indi_sbig_ccd
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/indiserver...Reading symbols from /usr/lib/debug/usr/bin/indiserver...done.
done.
(gdb) r
Starting program: /usr/bin/indiserver -v indi_sbig_ccd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
2015-08-24T10:16:12: startup: /usr/bin/indiserver -v indi_sbig_ccd 
2015-08-24T10:16:12: Driver indi_sbig_ccd: pid=8215 rfd=7 wfd=10 efd=11
2015-08-24T10:16:12: listening to port 7624 on fd 8
[New process 8215]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
process 8215 is executing new program: /usr/bin/indi_sbig_ccd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
 
Program received signal SIGILL, Illegal instruction.
[Switching to Thread 0xb6ffa000 (LWP 8215)]
0xb6af08d8 in ?? () from /usr/lib/libsbigudrv.so
8 years 7 months ago #4827

Please Log in or Create an account to join the conversation.

Are you using the older Raspberry PI 1 or the 2 now?
8 years 7 months ago #4828

Please Log in or Create an account to join the conversation.

  • Posts: 11
  • Thank you received: 0
I am using the new one Raspberry PI 2
8 years 7 months ago #4829

Please Log in or Create an account to join the conversation.

Same here so you should get the same results. Are you using the packages downloaded from the website? compiling from source? There are 3 armv libs for armv6, v7, and v8. The one installed in RPI2 is the armv7 version.

Anyone else getting this issue?
8 years 7 months ago #4830

Please Log in or Create an account to join the conversation.

  • Posts: 11
  • Thank you received: 0
I have using the packages from website, then I have compiled from source with lib for armv7, but with no result. The indiserver doesn´t start.
8 years 7 months ago #4834

Please Log in or Create an account to join the conversation.

  • Posts: 11
  • Thank you received: 0
The EqMod server and the ZWO ASI are ok and work.
8 years 7 months ago #4837

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
I had the same error when running the SBIG driver on a version 1 Raspberry Pi. I solved it by getting the source package for the libsbigudrv package and installing it. The installation just figures out which processor you have and copies the proper version of the ARM binary library to libsbigudrv.so.2.1.0. In my case it used libsbigudrv_arm_v6.bin.

Here are the notes that I created when I did this. I hope this helps.

sudo apt-get source libsbigudrv2
It created a directory named sbig_2.1.0+r23.219~ubuntu14.04.1
So I did the following
cd sbig_2.1.0+r23.219~ubuntu14.04.1
sudo mkdir build
cd build
sudo cmake -DCMAKE_INSTALL_PREFIX=/usr . ../
sudo make install

And that fixed it.
8 years 7 months ago #4918

Please Log in or Create an account to join the conversation.

Well, I would understand if they might not work for Raspberry PI 1 since the packages are getting built on a Raspberry PI 2, but in his case it is RPi2 already.

Here is the part of the CMake file that checks for system architecture. If anyone can spot any problems, let me know.
IF(UNIX AND NOT WIN32 AND NOT APPLE)
 IF (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "armv6l")
    exec_program(cp ARGS ${CMAKE_CURRENT_SOURCE_DIR}/libsbigudrv_arm_v6.bin ${CMAKE_BINARY_DIR}/libsbigudrv.so.${SBIG_VERSION})
 ELSEIF (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "armv7l")
    exec_program(cp ARGS ${CMAKE_CURRENT_SOURCE_DIR}/libsbigudrv_arm_v7.bin ${CMAKE_BINARY_DIR}/libsbigudrv.so.${SBIG_VERSION})
 ELSEIF (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "armv8l")
    exec_program(cp ARGS ${CMAKE_CURRENT_SOURCE_DIR}/libsbigudrv_arm_v8.bin ${CMAKE_BINARY_DIR}/libsbigudrv.so.${SBIG_VERSION})
 ELSEIF(CMAKE_SIZEOF_VOID_P MATCHES "8")
  exec_program(cp ARGS ${CMAKE_CURRENT_SOURCE_DIR}/libsbigudrv64.bin ${CMAKE_BINARY_DIR}/libsbigudrv.so.${SBIG_VERSION})
 ELSE()
  exec_program(cp ARGS ${CMAKE_CURRENT_SOURCE_DIR}/libsbigudrv32.bin ${CMAKE_BINARY_DIR}/libsbigudrv.so.${SBIG_VERSION})
 ENDIF (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "armv6l")
ENDIF(UNIX AND NOT WIN32 AND NOT APPLE)
8 years 7 months ago #4919

Please Log in or Create an account to join the conversation.

Time to create page: 0.905 seconds