Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flicd is not working on AlpineLinux #69

Open
joker85 opened this issue Jul 29, 2017 · 16 comments
Open

flicd is not working on AlpineLinux #69

joker85 opened this issue Jul 29, 2017 · 16 comments

Comments

@joker85
Copy link

joker85 commented Jul 29, 2017

Hello,

I have a problem to run flicd on my Raspberry Pi 3

0cd90890fd17:/etc/conf.d# cd /root/fliclib-linux-hci-master/bin/armv6l/
0cd90890fd17:/fliclib-linux-hci-master/bin/armv6l# ls
flicd
0cd90890fd17:
/fliclib-linux-hci-master/bin/armv6l# ./flicd -f flic.sqlite3 -l ./flic.out
-ash: ./flicd: not found
0cd90890fd17:/addons/flicd# /bin/bash ./flicd -f pippo
./flicd: ./flicd: cannot execute binary file
0cd90890fd17:~/fliclib-linux-hci-master/bin/armv6l# cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.6.1
PRETTY_NAME="Alpine Linux v3.6"
HOME_URL="http://alpinelinux.org"
BUG_REPORT_URL=“http://bugs.alpinelinux.org”

Is the binary file incompatible with my of version or I'm doing something wrong?

I had this issue with the latest version of home-assistant.

Thanks for your support.

@Emill
Copy link
Collaborator

Emill commented Jul 29, 2017

What does lscpu print?

@joker85
Copy link
Author

joker85 commented Jul 29, 2017

Hi,

lscpu

Architecture: armv7l
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Model name: ARMv7 Processor rev 4 (v7l)
CPU max MHz: 1200.0000
CPU min MHz: 600.0000

@Emill
Copy link
Collaborator

Emill commented Jul 29, 2017

Hmm not really sure why this happens. Could you try use the full path instead of ./

@Emill
Copy link
Collaborator

Emill commented Jul 29, 2017

And Exactly which download did you pick when you downloaded AlpineLinux?

@joker85
Copy link
Author

joker85 commented Jul 29, 2017

I have a build created by home assistant: https://home-assistant.io/hassio/installation/

The build allow me just to run application in docker container, maybe it is necessary to add some specific components in the container.

@joker85 joker85 changed the title dlicd is not working on AlpineLinux flicd is not working on AlpineLinux Jul 29, 2017
@Emill
Copy link
Collaborator

Emill commented Jul 29, 2017

Not sure how easy it is to forward the hci device to the docker environment. Do you really need to use Docker?

@joker85
Copy link
Author

joker85 commented Jul 29, 2017

I have already done the docker container to run it, but I'm not sure if the problem is the Docker container or the OS.

If the software need some specific library or other software to work I can handle it, but i need to know the list.

@Emill
Copy link
Collaborator

Emill commented Jul 29, 2017

It doesn't need anything else than a Linux kernel, libc, network connection and Bluetooth hci device.

Could you run "file /bin/bash" and print the output. Or "file [some other binary]"? It should print a lot of things about the cpu and binary format.

@acarlo79
Copy link

I have the same issue, it looks like that the Raspberry binary is not compatible with this distribution:
The binary is not recognised as such.

here the output requested:

/bin/bash: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-armhf.so.1, stripped, with debug_info

@Emill
Copy link
Collaborator

Emill commented Jul 29, 2017

Maybe it is because that distribution uses musl instead of glibc...

@acarlo79
Copy link

3b0323706b6a:/config# /bin/bash /config/flicd -f db.sql
/config/flicd: /config/flicd: cannot execute binary file
3b0323706b6a:/config# ls -la flicd
-rwxrwxrwx 1 root root 734708 Jul 29 21:53 flicd
3b0323706b6a:/config# file flicd
flicd: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=e080a631d9d667cba75284641c9a01c16cffdc8a, stripped, with debug_info
3b0323706b6a:/config# file /bin/bash
/bin/bash: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-armhf.so.1, stripped, with debug_info
3b0323706b6a:/config#

@acarlo79
Copy link

well, possibly as you said, the only fix is to get a version compiled for using musl.

@Emill
Copy link
Collaborator

Emill commented Jul 29, 2017

Yes but that will take some time. I'm back from holiday in August.

@acarlo79
Copy link

we can just wait :)

@joker85
Copy link
Author

joker85 commented Jul 29, 2017

Yes perfect thanks.

@joker85
Copy link
Author

joker85 commented Aug 22, 2017

Hello,

have you got the time to compile the new binary?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants