I am trying to debug issues I have with our ASI2600MC camera and I ran into a curious situation concerning the ASI driver provided by the libasi package. I am on a Raspberry Pi 4 running Ubuntu Mate 20.04 64 bit:
$> uname -a
Linux mulder 5.4.0-1028-raspi #31-Ubuntu SMP PREEMPT Wed Jan 2011:30:45 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
As you can see I am looking at the package built last night:
$> dpkg -l libasi
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
ii libasi 1.12~202102230338~ubuntu20.04.1 arm64 Library for ASI Cameras, Filter Wheel, Focuser and ST4
When I look at the contents of the libasi package I get this:
Looking into CMakeLists.txt for libasi, the only thing I see is that the .bin file corresponding to the system architecture gets copied to a file with the name ending in .so but that doesn't explain the difference in file size. So my questions are:
Why is there a difference in file size?
Can I simply take the .bin file for my architecture and copy that over the .so file in the /usr/lib/aarch64-linux-gnu directory and will the driver work?
I guess I can try out copying the .bin file after making a backup of the existing .so file but that still doesn't explain the difference in file size.
Wouter van Reeven
ASI6200MM and 7 slot 2" filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro
ASI1600MM-Pro Cooled and 5 slot 1.25" filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
It seems the library in ASI SDK (and thus repository as I've copied those verbatim) has some debug info included, but the one in deb-package has been stripped of those, at least the size matches exactly if I copy libASICamera2.bin to libASICamera2.so and run "strip" (or llvm-strip actually as I tested this on x64 machine and regular strip doesn't recognize aarch64 binaries) on it:
jpaana@thinkpad:~/src/indi-3rdparty/libasi/armv8$ ls -l libASIC*
-rwxrwxr-x 1 jpaana jpaana 2243289 Jan 5 00:47 libASICamera2.bin
-rwxrwxr-x 1 jpaana jpaana 1887712 Feb 24 00:35 libASICamera2.so