-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
port to bcm2835 #13
base: master
Are you sure you want to change the base?
port to bcm2835 #13
Conversation
Thanks for recreating the pull request. I notice that libbcm2835 is licensed under GPL3, which would require that I relicense this project under GPL3. I prefer to keep it under a BSD-like license. |
I don't see a conflict... you just use it as a library... You should be able to maintain free-bsd licence. |
I'm still trying to understand GPLv3, but according to https://tldrlegal.com/license/gnu-general-public-license-v3-(gpl-3) it says that https://softwarefreedom.org/resources/2007/gpl-non-gpl-collaboration.html says that I can distribute parts of it under BSD, but the project as a whole needs to be GPLv3. We can work around the sudo requirement by checking for /dev/gpiomem, which is traditionally available to other users, and using that if it exists. |
You are right... it seems that at rest it can be MIT but not once you link. This would require you to get a commercial license from airy space. |
I am not a lawyer and you should get legal advice about legal questions. My understanding is the following. You can keep fomu-flash under MIT license as it is GPLv3 compatible. When you distribute a combined work that result needs to comply with the GPLv3 terms. To explicitly state things;
|
That's my understanding of GPLv2, but for GPLv3 it seems like the entire work must be GPLv3. Specifically:
It's all very fiddly and ambiguous, though... |
@xobs - What that is saying is when you distribute a work (IE fomu-flash linking against BCM2835 library) then you are required to provide anyone with a copy of the complete fomu-flash + BCM2835 source code under the GPLv3 license. That doesn't prevent you from provide fomu-flash to the receiver under the less restrictive terms of MIT at the same time. See the last key bit;
|
New pull request in single commit
The only thing that breaks is the function gpiohardware revision.
You use it to get the correct pins for different versions of the raspberry.
In BCM2835 you simply need to give the right pin as defined in enum RPiGPIOPin
With regards to your questions;
Additionally, do you have any information on how to use the library? For example, what is needed to run it on something like Fedberry? Are there packages to install?
This is how it is installed. I have only tested on Raspbian and Ubuntu, not fedberry.
This is how you use it to blink a LED, see also webpage with extensive docs.
As a final note, I use a custom FPGA board to control a laser scanner, see Hackaday