-
Notifications
You must be signed in to change notification settings - Fork 139
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
Add Support for RPi3/BCM2835 on Raspbian 4.9 #88
Comments
Hi ! I think this could be fixed by changing the "ProcessorName" Function in Board.cs (which belongs to Raspberry.System):
Maybe there should be another addon to add the hardware type BCM2710 for the Pi 3. But it works with 2709, too. regards Dominik |
I have implemented my own fix, but can we please have it fixed in the official NuGet package? |
@michaltalaga |
I ended up changing 2 files: in Raspberry.System/Processor.cs
and in Raspberry.IO.GeneralPurpose/GpioConnectionDriver.cs
|
Hi ! Dominik |
That is the very reason I haven't created a pull request. I'm no expert in this. Did not want to break some other implementations. I just know my RPi3 worked with old 4.4 Kernel and stopped with 4.9. I've nailed it down to a different Processor being reported by the system. I know I did no hardware change in my RPi so I gave it a shot with the simplest thing I could think of: make the library treat BCM2835 the same as BCM2709. |
Maybe I will place my solution as a PR. |
Hit this too. Would be nice to get an update that supports Pi3. Workaround as noted above worked. |
I ended up forking this project and making the fixes here as well as converting the libraries to support netstandard2.0. I'd like to get the changes in to this branch but there doesn't appear to be a lot of activity. https://github.com/petermarcu/Pi |
@Petermarcu This project seems to be dead. I did a fork like you, publishing all the libraries on nuget, and refactoring I2C library now working with start/stop and repeated start conditions https://github.com/JTrotta/raspberry-sharp-io. I would like to support 2.0 netstandard too. Why not working on a common "new" project? |
Appears that way although it's been a good library so far. I was hoping to hear back from the project owner. I don't have the bandwidth to drive an additional project but would be happy to contribute to yours if you want to carry it forward. I had to do a bunch of significant project restructuring/simplification to get to netstandard2.0 and the new sdk style projects. I cut a few corners but those may be worth cutting for the long run anyways. |
Hi JTrotta, Petermarcu,
|
@JTrotta I'm happy to "contribute" the changes I have in my fork towards anything that is "alive" and want's to move this space forward. As I said, I restructured a lot of it to move it to .NET Standard and the new SDK style projects but I turned off a bunch of stuff to make that happen and there would be work to do to bring it back. I don't have time right now to do that but may be able to make slow progress over time. I think since my changes are much more structural around where sources live, it may be easier to to merge the source code bug fixes you have made into my branch. I can then republish some packages. I also merged a couple repo's into one because I didn't see a reason to have System be seperate. Once all the changes are merged together, whoever wants to carry things forward can just take it from there, copy it into whatever repo makes sense and ... |
@Petermarcu |
I'm fine with that or even fine with seeding another repository with what I've got and letting people party away. I don't want to be in the way and will help where I can. |
Ok, I created a new repo and a team where I added you and a few others that have commit rights. Here it is: https://github.com/pi-dotnet/Pi Go ahead and make changes to it to incorporate your work into it. When you are ready, I can build and push an update to NuGet.org from there. |
On Raspbian with Kernel 4.9 the Raspberry.Processor (from Raspberry.System) enum return Unknown.
This makes GpioConnectionSettings.DefaultDriver (from Raspberry.IO.GeneralPurpose) return null.
As far as I was able to tell it's because newest version of Raspbian report the hardware to be BCM2835 instead of BCM2709.
The text was updated successfully, but these errors were encountered: