-
Notifications
You must be signed in to change notification settings - Fork 448
Hardware : BCM2835 error on RaspberryPi B+ #319
Comments
Also seeing this on a Zero and a B+. It was previously working on the B+.
|
It looks like this was a change as of Kernel v4.8. WiringPi did add support for this change in December. See this commit: Pi4J/wiringPi@b1dfc18#diff-672071e4cd5d0146a80fb586c87c38e1R723 Can you please try Pi4J Version 1.2-SNAPSHOT to see if its working on your systems? The SNAPSHOT builds are compiled against the latest WiringPi builds. Maybe we need to go back and produce a new release of v1.1 source base compiled with the latest WiringPi? Thanks, Robert |
One other option if you need to use the existing v1.1 release of Pi4J is to use the dynamic linking option where Pi4J is dynamically linked to WiringPi rather than the default static linking. Build and install the latest WiringPi on your system. Now when starting your Java app, you need to set the system property of " Here is an example command line where I'm defining the system property via command line: Note that I also define the system property of My output looks something like this:
Thanks, Robert |
Both the snapshot version and the dynamic linking on 1.1 worked for me. |
Thanks for the update and glad to hear both alternate options are working! |
Hi, I use the static option because is more portable for me Any other sugestion ? Regards |
Static + 1.2-SNAPSHOT should be working! Please make sure to download the latest 1.2-SNAPSHOT build here: Thanks, Robert |
I re built all the project again with the 1.2 snapshot version, I am sure that the j4pi is the 1.2 the result Unable to determine hardware version. I see: Hardware : BCM2835
Same result. Any sugestions. Regards |
I use the core.jar and device.jar if it helps Regards |
any answer please |
I have not had a chance to test it here locally yet to confirm. Which Pi model are you working with? |
Hi I've tested pi4j 1.2 snapshot, and it works fine on raspi B+! |
1.2 snapshot works on raspi 3. |
UsingRaspberry Pi 3 - Model B ProblemLooks like I'm getting the same problem now. It literally just started happening after a Raspberry Pi reboot. I'm using the Raspberry Pi 3 - Model B. The only difference I can think of between reboots is that I disabled some interfaces in Raspbery Pi Configuration (disabled Camera, I2C, and Serial). I don't really see how disabling those interfaces would mess up my hardware version. Edit 30 April 2017I just installed a fresh installation of Raspbian and now I have no problems running my project on Pi4J 1.1. Pretty weird. I still have no idea what could be causing it, but I also suspect that it may be a bug in wiringPi and not Pi4J. I'd also like to point out that running the command "cat /proc/cpuinfo" echoes the hardware version near the bottom of the dialog. After a fresh installation of Raspbian, it reads BCM2709, the way Pi4J/wiringPi likes it. After doing a "sudo apt-get update" and "sudo apt-get upgrade" and restarting the device, the hardware version reads BCM2835. |
Problem still persists on Raspberry Pi 3 (B) with the Pi4J 1.2 Snapshot. |
After updating my rpi couple of days ago - i have this hardware version now But the problem still persists. |
The only reasonable solution so far is to downgrade the kernel to v.4.4.49. Can be found here: |
Thanks to savageautomate, |
I also had a same issue with raspberry pi 3, pi4j 1.1, and 4.9.24-v7 linux kernel version.
After upgrading to pi4j 1.2-SNAPSHOT this problem disappeared. When will be available 1.2 as a release? |
Thanks to the team. |
Hi, noob needing some help please. pi@piname:~ $ gpio -g write 4 1
It is a rea pi. pi@study:~ $ cat /proc/cpuinfo Hardware : BCM2835 I upgraded pi4j, as mentioned above, no effect. pi@study:~ $ dpkg -l | grep pi4j I am using a straightforward php page, to issue the gpio command. Not sure how to go forward with this. |
Ahh got it, re installed wiringPi. . All sorted now. |
The only thing that worked for me is the solution provided by neuralassembly here: https://github.com/WiringPi/WiringPi-Python/issues/47 |
Using a fresh install 2017-04-10-raspbian-jessie-lite.img followed by "apt-get update" and "apt-get upgrade" all I have to do is switching to pi4j 1.2-SNAPSHOT. Without pi4j 1.1 I get the "Unable to determine hardware version. I see: Hardware : BCM2835" error. pi@raspberrypi:/app $ cat /proc/cpuinfo processor : 1 processor : 2 processor : 3 Hardware : BCM2835 |
Using the snapshot fixed this issue for me. |
I get a filesystem error (EXT4-fs error) and hangs raspberry when i use PWM and SPI |
Is your app running as root? Sadly PWM needs root access otherwise it hangs. |
Running as ROOT worked... thanks |
I have had some conversations with Jacobs of JMRI and there seems a lot of forgotten history. Does not remember telling the community that you must be logged into as root for the Raspberry Pi gpio to work. So now you do not log in as root.
Currently since JMRI that came out in 2017 major changes to the Pi's OS has also changed. The program for accessing the gpio is being distributed by the Pi foundation. This has happen because Pi4j is dead as can be. No one is supporting it and JMRI needs it badly. So how to make it work. It seems the OS is on your side.
Log in as normal.
Install new JMRI
don't bother with being root (no pi4j not needed)
add the patch to default setting as per JMRI. (this tells the java to search elsewhere for gpio dynamically)
make sure if a launcher icon is used that sudo is missing. If it finds sudo it will not use the patch.
When JMRI opens it will use the patch setting and the OS will find Gordon's closed minded open source software, version 2.44, that works on he Pi with BCM2835 coded even if the core is BCM2837. and gpio is restored to JMRI.
If this seems like a little bitterness, It took longer than I like and to get a response and to find people from Egypt living on the river of denial filled with political bias was not what I wanted to find. The Pi is still a year and a half from 2g of RAM and the Orange, Pine, and a few other have it. It will mean much more when Panel Pro runs.
By the way. DCC++ is working with digital IO (direct turnout control) and is now a $40 full DCC system with JMRI. I spent over $400.00 for mine without turnout control or sensors. The JMRI found a bug that some one reported as fixed and it wasn't.
… On March 8, 2018 at 10:08 PM Ricardo JL Rufino ***@***.***> wrote:
> >
> Is your app running as root? Sadly PWM needs root access otherwise it hangs.
>
> >
Running as ROOT worked... thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/Pi4J/pi4j/issues/319#issuecomment-371699623 , or mute the thread https://github.com/notifications/unsubscribe-auth/Ae3l72um_C-6s2p0sfyRdyAn_cNqaW1uks5tcfIogaJpZM4MLiZl .
|
The snapshot version is a developmental release and many people prefer not to bind software to it because of stability.
Since pi4j version 1.2 is not being released the question is "Has Raspberry Foundation given enough to the community to give you those missing functions?" GPIO is included with the new distribution and Java static makes software look inside of itself that causes an old GPIO function to be found that results in the error. Switching to dynamic Java looks to the bin folder where if finds the new GPIO that does work. For this reason it is sometimes not nessacery to install pi4j.
New Python works well but older software is not compatible.
… On February 25, 2018 at 2:58 PM SamOrozco ***@***.***> wrote:
Using the snapshot fixed this issue for me.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/Pi4J/pi4j/issues/319#issuecomment-368339345 , or mute the thread https://github.com/notifications/unsubscribe-auth/Ae3l7xINUNRj5naTEBcdLBOO_lMa-Ttiks5tYbtJgaJpZM4MLiZl .
|
How can I get 1.2-SNAPSHOT from Gradle repository? |
I am facing same issue with Pi4J1.1. Unable to determine hardware version. I see: Hardware : BCM2835 expecting BCM2708 or BCM2709. As suggested on forum I tried to execute program with to Pi4J 1.2-SNAPSHOT. Error went away but GPIO output not working. Can somebody suggest some other approach. |
@hemantmandge |
Hi, I even tried to use sample provided with pi4j 1.2 snapshot zip. The program did not give any error as such but failed to operate GPIO pin. Just to give further input, I tried python program and it is working perfectly fine. |
Have you tried the wiringPi utility? Is it working with it? |
Thanks is now available with apt-get:
2- Install wiringpi
|
I'm having the "I see: Hardware: BCM2835 - expecting BCM2708 or BCM2709" issue. I've tried the same boot SD in a pi2, pi3 B, and pi3B+. All exactly the same problem. $ gpio readall $ gpio -v Raspberry Pi Details:
$ pi4j -v
VERSION : 1.2-SNAPSHOT
|
Had fixed this by changing the Kernel from 4.9.xx to 4.4.47. Is it fixed by newer Kernel Version? |
Solution that worked for me: I am using Netbeans, so I right-clicked in the project's name >> properties >> Categories: Run >> VM options: -Dpi4j.debug -Dpi4j.linking=dynamic -classpath .:classes:/opt/pi4j/lib/'*' |
Without this dependency the pi4j library did not work on my Raspberry Pi Model 3 B+. Unfortunately there is another issue Pi4J/pi4j-v1#319 which can be resolved by updating to pi4j release 1.2 (not yet released). Also-by: Michael Rumpf <michael@rumpfonline.de> (github: mrumpf) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Without this dependency the pi4j library did not work on my Raspberry Pi Model 3 B+. Unfortunately there is another issue Pi4J/pi4j-v1#319 which can be resolved by updating to pi4j release 1.2 (not yet released). Also-by: Michael Rumpf <michael@rumpfonline.de> (github: mrumpf) Also-by: Wouter Born <github@maindrain.net> Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Without this dependency the pi4j library did not work on my Raspberry Pi Model 3 B+. Unfortunately there is another issue Pi4J/pi4j-v1#319 which can be resolved by updating to pi4j release 1.2 (not yet released). Also-by: Michael Rumpf <michael@rumpfonline.de> (github: mrumpf) Also-by: Wouter Born <github@maindrain.net> Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> Signed-off-by: Pshatsillo <pshatsillo@gmail.com>
Without this dependency the pi4j library did not work on my Raspberry Pi Model 3 B+. Unfortunately there is another issue Pi4J/pi4j-v1#319 which can be resolved by updating to pi4j release 1.2 (not yet released). Also-by: Michael Rumpf <michael@rumpfonline.de> (github: mrumpf) Also-by: Wouter Born <github@maindrain.net> Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> Signed-off-by: Maximilian Hess <mail@ne0h.de>
Would this dynamic linking work with PI4J v1.0 as well? |
No, unfortunately not. And the custom library loader does not appear to have any logic to load alternate libs. |
Thank you. My question btw was prompted by some migration issues going from 1.0 to 2.0, so I was trying to avoid it entirely!
|
Would it make sense to add a writeln(String msg) method in V2 to the IODataWriter? https://github.com/Pi4J/pi4j-v2/blob/master/pi4j-core/src/main/java/com/pi4j/io/IODataWriter.java |
Closed. Original issue resolved in v1.2. Please report any Pi4J v2 issues to the Pi4J V2 repository. |
Unable to determine hardware version. I see: Hardware : BCM2835
,
If this is a genuine Raspberry Pi then please report this
to projects@drogon.net. If this is not a Raspberry Pi then you
are on your own as wiringPi is designed to support the
Raspberry Pi ONLY.
I use a RaspberryPi B+.
The text was updated successfully, but these errors were encountered: