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

Pop!_OS serial ioctl #23

Closed
JeffAlyanak opened this issue Oct 5, 2021 · 4 comments
Closed

Pop!_OS serial ioctl #23

JeffAlyanak opened this issue Oct 5, 2021 · 4 comments

Comments

@JeffAlyanak
Copy link
Contributor

I've seen a couple people have this issue with Pop_OS, which must be doing something a bit differently than Debian in its serial setup.

I can confirm that the device is readable and writeable by the user, since screen and minicom work fine.

Debug is as follows:

INFO: Opening port.
sp: sp_open(0x55bf311d1b30, 0x3) called.
sp: Opening port /dev/ttyACM0.
sp: get_config(0x55bf311d1b30, 0x7fff7e9c83e0, 0x7fff7e9c83b0) called.
sp: Getting configuration for port /dev/ttyACM0.
sp: get_flow(3, 0x7fff7e9c83e0) called.
sp: Getting advanced flow control.
sp: sp_last_error_message() called.
sp: sp_last_error_message returning Inappropriate ioctl for device.
sp: get_flow returning SP_ERR_FAIL: Getting termiox failed: Inappropriate ioctl for device.
sp: sp_free_error_message(Inappropriate ioctl for device) called.
sp: sp_free_error_message returning.
sp: get_config returning SP_ERR_FAIL.
sp: sp_close(0x55bf311d1b30) called.
sp: Closing port /dev/ttyACM0.
sp: sp_close returning SP_OK.
sp: sp_open returning SP_ERR_FAIL.
sp: sp_last_error_message() called.
sp: sp_last_error_message returning Inappropriate ioctl for device.
sp: sp_free_error_message(Inappropriate ioctl for device) called.
sp: sp_free_error_message returning.
Aborted (core dumped)

I'll investigate and look towards implementing a fix.

@JeffAlyanak
Copy link
Contributor Author

Btw, I suspect this issue will affect all systems using systemd-boot.

@JeffAlyanak JeffAlyanak changed the title Pop OS serial ioctl Pop!_OS serial ioctl Oct 5, 2021
@laamaa
Copy link
Owner

laamaa commented Oct 5, 2021

Sounds like a duplicate of #20

@JeffAlyanak
Copy link
Contributor Author

Ah, it is. Sorry.

@laamaa
Copy link
Owner

laamaa commented Oct 5, 2021

No worries :) it might be a good idea to add a FAQ section to readme at some point and have the issue mentioned there, since most distros don't seem to have updated packages...

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

2 participants