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

native library does not work on raspberry pi #1

Closed
rm5248 opened this issue Dec 24, 2015 · 2 comments

Comments

@rm5248
Copy link
Owner

commented Dec 24, 2015

The native code for Linux ARM does not work on the raspberry pi. It fails with a SIGILL. Probably because the arch was set to be a v7 ARM processor, while the pi appears to only be v6 compatible.

@rm5248 rm5248 self-assigned this Dec 24, 2015
@rm5248

This comment has been minimized.

Copy link
Owner Author

commented Jan 1, 2016

Upon further investigation, this is only a problem with the RPi 1. The RPi 2 does not have the same issue, the native ARM library loads and works on it. Simple solution: add a new environment variable to load the RPi-specific library. Probably com.rm5248.javaserial.arm.library=rpi1, so we can add in more ARM-specific libraries later if we need to.

@rm5248

This comment has been minimized.

Copy link
Owner Author

commented Mar 5, 2016

Fixed with 0.7. Set the following Java property: -Dcom.rm5248.javaserial.lib.name=libjavaserial-rpi1.so

@rm5248 rm5248 closed this Mar 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.