Skip to content

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

Closed

Description

@Fourdee

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

Activity

  1. clivem commented on May 13, 2017

    @clivem
  2. pelwell commented on May 13, 2017

    @pelwell
    Contributor

    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.

  3. Fourdee commented on May 14, 2017

    @Fourdee
    Author

    @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

  4. karu2003 commented on Jul 22, 2017

    @karu2003

    popcornmix
    Thank you!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions