-
Notifications
You must be signed in to change notification settings - Fork 219
Make BBIO 4.1+ kernel friendly #96
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
Conversation
TODO: PWM
|
Awesome! Thank you for the PR... Now hopefully Adafruit will merge it. |
|
Hi! Thank you for the pull request. We'll review and test it as soon as possible and get it merged in. |
|
I'm testing backwards compatibility of pr/96 with Debian 7.9 image with Linux 3.8.13-bone79: I have run into this odd error in TestPwmSetup.test_stop_pwm while running the tests: I'm looking into it further and will update here. |
|
Testing Pull Request 96 branch with BeagleBoard.org Debian Image 2016-01-24:
The Python tests run into several errors: I'm looking into the errors and will report back. |
|
@PeteLawler What image are you running that this worked on? I used: ADC example fails with:
Details here: I'm going to try some changes but just wanted to check what your experience was. |
|
Oh hmmm seems I'm running my code on a 4.4.9-ti-r26 BeagleBoard.org Debian Image 2016-04-25 |
|
The trouble I'm having seems to be that BBBVERSION41 is not being defined on 4.1.17-ti-rt-r46 due to the value of LINUX_VERSION_CODE: It appears to be a problem with the headers that I have installed: Gist: https://gist.github.com/pdp7/193cb6252440850926297ac79ed39acc |
|
@PeteLawler The situation I'm seeing with Debian Jessie is that linux-libc-dev package is 3.16.7-ckt25-2. I'm going to check with Robert C. Nelson if he has any ideas of how to make LINUX_VERSION_CODE reflect the actual installed kernel. |
|
@pdp7 I've not been ignoring you :) Just haven't had much to say. I see the thread on the BeagleBone mail list and Robert's reply. He's basically saying that it comes down to an issue fixable although not in a nice way.
Not a fan of overrides myself, but hey. Basically I hacked this up to try and get something happening, though I am also not a fan of it being compile time setting. I think it should really be runtime to allow for kernel upgrades. All in all, I believe this means the pull request should be rejected in the current form on the grounds that Robert describes, and that community effort should be put into a compile time override and/or runtime setting. Whether those solutions are based off this request is immaterial. |
|
@PeteLawler I made a change to setup.py to define BBBVERSION41 based on platform.release() which does reflect the correct kernel version. I've opened a Pull Request for your adafruit-beaglebone-io-python repo: |
Refer to discussion in this pull request: adafruit#96 (comment) and mailing list thread: https://groups.google.com/forum/#!search/peter$20bbio/beagleboard/Vx5U15tcwlw/e2Gjj-rwBAAJ
Define BBBVERSION41 in setup.py
|
@pdp7 yeah you know that spare BBB I mentioned earlier that I was getting for testing out of development production? Received it in good working order. Then managed in a moment of distinct lack of clarity to put 5v down AIN1.... Needless to say, I'm getting another organised. I'm hoping to have the development box out of its test in the next few days anyway so I'll have that back anyway. |
|
@PeteLawler I was able to test the Adafruit_BBIO.ADC okay with both Linux 3.8, 4.1 and 4.4: |
|
@jwcooper @ladyada @tdicola: I think this PR should be merged. I have tested Adafruit_BBIO.ADC okay with Linux 3.8, 4.1 and 4.4: https://gist.github.com/pdp7/cf5551d2e925ac3d8f703d0f0e0f9f43 |
|
Thanks @pdp7, @PeteLawler and everyone else that have been helping out. |
|
thank you everyone! |
|
Thank you @PeteLawler, @grizmio, and @SimplicityGuy! |
|
Yay! Very happy to see this merged! Thank you @PeteLawler, @pdp7, @grizmio, @jwcooper, @ladyada! |
I've taken Grizmio's patch and added some macro checks in so that at compile time the correct routines should be used.
Notes:
. Switching between kernels requires recompilation
. I have no idea what the status is on kernels between 3.8 and 4.1, I have nothing to test with and I'm way too lazy to go read the documentation - far as I know there's no recommended kernels in use from that era anyway.