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

Linux / m8c fails to start at "INFO: Reset display" / invalid ioctl #20

Closed
laamaa opened this issue Oct 3, 2021 · 1 comment
Closed

Comments

@laamaa
Copy link
Owner

laamaa commented Oct 3, 2021

Some users have reported problems with starting m8c:

pi@retropie:~/code/m8c $ ./m8c
INFO: Looking for USB serial devices.
INFO: Found M8 in /dev/ttyACM1.
INFO: Opening port.
INFO: Enabling and resetting M8 display
INFO: Reset display

and after that, the program returns into terminal.

Sometimes the error might look something like:

INFO: Reading config /home/jonne/.local/share/m8c/config.ini
INFO: Writing config file to /home/jonne/.local/share/m8c/config.ini
INFO: Looking for USB serial devices.
INFO: Found M8 in /dev/ttyACM1.
INFO: Opening port.
ERROR: Error: Failed: Inappropriate ioctl for device

This seems to be a conflict with some Linux kernel versions and libserialport (sigrokproject/libserialport@6f9b03e) and the error can be mitigated by building libserialport from sources:

  1. Remove existing libserialport packages
    for example, on Debian based systems apt-get remove libserialport0 libserialport-dev
  2. Build libserialport from source code according to instructions in https://github.com/sigrokproject/libserialport
  3. Rebuild m8c
@laamaa
Copy link
Owner Author

laamaa commented Dec 25, 2021

If the following appears after building libserialport manually

jonne@jonne-ThinkPad-T440p:~/Code/m8c$ ./m8c 
./m8c: error while loading shared libraries: libserialport.so.0: cannot open shared object file: No such file or directory

You probably need to link the libraries to the correct place

sudo ln -s /usr/local/lib/libserialport.so.0.1.0 /usr/lib/libserialport.so.0.1.0
sudo ln -s /usr/local/lib/libserialport.so.0 /usr/lib/libserialport.so.0

@laamaa laamaa changed the title Linux / m8c fails to start at "INFO: Reset display" Linux / m8c fails to start at "INFO: Reset display" / invalid ioctl Mar 21, 2022
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

1 participant