Skip to content

4.9 | /proc/cpuinfo always shows Hardware = BCM2835 #2008

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

Closed
Fourdee opened this issue May 13, 2017 · 4 comments
Closed

4.9 | /proc/cpuinfo always shows Hardware = BCM2835 #2008

Fourdee opened this issue May 13, 2017 · 4 comments

Comments

@Fourdee
Copy link

Fourdee commented May 13, 2017

As title, in 4.9.27, /proc/cpuinfo always shows BCM2835 for Hardware info. Confirmed with:

  • RPi 3
  • RPi Zero
  • RPi Zero W

In 4.4.50

This is an issue for us, as we use the that information to determine which RPi is actually running, and, how we optimize for those devices (minus cpu core detection $(nproc --all) for software installs such as php-fpm thread count).
https://github.com/Fourdee/DietPi/issues/936#issuecomment-301055299

Any chance we could see a possible fix for correct Hardware information, reported in /proc/cpuinfo?

Revision codes do seem to be correct in 4.9.27: https://github.com/Fourdee/DietPi/blob/master/dietpi/misc/rpi_boardinfo

@clivem
Copy link

clivem commented May 13, 2017

#1725

@pelwell
Copy link
Contributor

pelwell commented May 13, 2017

This is an unintended but unavoidable consequence of using less downstream, Pi-specific code in newer kernels. I suggest you use /proc/device-tree/model (human readable) or extract the information you need from the Revision field of /proc/cpuinfo. There is a bit in the revision number indicating that it's in the new format: if it's set then the CPU type is in another group of bits, otherwise it must be a 2708.

@Fourdee
Copy link
Author

Fourdee commented May 14, 2017

@pelwell

Thanks for the info 👍

I've made the switch to using revision codes for board detection:
https://github.com/Fourdee/DietPi/blob/testing/dietpi/dietpi-obtain_hw_model#L125-L364

I'll mark as closed, [dupe] of raspberrypi/firmware#705

@karu2003
Copy link

popcornmix
Thank you!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants