Skip to content
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

[BUG] Raspberry Pi CPU name is incorrect #1528

Closed
1 task done
CTRL-panino opened this issue Jan 26, 2025 · 23 comments
Closed
1 task done

[BUG] Raspberry Pi CPU name is incorrect #1528

CTRL-panino opened this issue Jan 26, 2025 · 23 comments
Labels
bug Something isn't working

Comments

@CTRL-panino
Copy link

CTRL-panino commented Jan 26, 2025

Read the FAQ first

  • I have checked the FAQ but the issue is not covered

Description

After the 2.35.0 update, the CPU name of my Raspberry Pi (model 4) is incorrect.
It shows "BCM2835" when it should display "BCM2711".
Source: https://www.raspberrypi.com/documentation/computers/processors.html
Also, in 2.35.0 it shows "ARM" while in the other versions it displayed "Broadcom" but I don't know if this is correct or not.
I'm using the latest DietPi version.
Thanks for your help

Version used

2.35.0

Bug prevalence

Always

Regression

Yes

Installation

GitHub Releases

Package manager

No response

Screenshots

No response

Configuration

       {
          "type": "cpu",
          "key": "├ CPU   ",
          "keyColor": "yellow",
          "format": "{2} {1} - {5} core @ {7} - {8}",
          "temp": true
       },

System information

{
    "type": "CPU",
    "result": {
      "cpu": "BCM2835",
      "vendor": "ARM",
      "packages": null,
      "cores": {
        "physical": 4,
        "logical": 4,
        "online": 4
      },
      "frequency": {
        "base": 0,
        "max": 1500
      },
      "coreTypes": [
        {
          "count": 4,
          "freq": 1500
        }
      ],
      "temperature": 31.641
    },
    "stat": 0.8846118450164795
  },

Features built-in

threads
vulkan
wayland
xcb-randr
xrandr
drm
drm_amdgpu
gio
dconf
dbus
imagemagick6
zlib
xfconf
sqlite3
egl
glx
osmesa
opencl
libpulse
libelf
libzfs
Directx Headers
linux/videodev2
linux/wireless
@CTRL-panino CTRL-panino added the bug Something isn't working label Jan 26, 2025
@CarterLi
Copy link
Member

Hello. Can you upload the files /proc/cpuinfo and /proc/device-tree/compatible for debugging? You may need to rename it to .txt

@CTRL-panino
Copy link
Author

@CarterLi
Copy link
Member

cpuinfo and device-tree.zip

cpuinfo is empty

@CTRL-panino
Copy link
Author

CTRL-panino commented Jan 26, 2025

Hi @CarterLi
I’m sorry that the file is empty, I copied it using SSH on my computer, so I don’t know what it went wrong.
Any suggestions about why it’s empty and how to solve this problem?
Or maybe is /proc/device-tree/compatible enough for debugging?

@CarterLi
Copy link
Member

Try copying /proc/cpuinfo somewhere else first.

@CTRL-panino
Copy link
Author

CTRL-panino commented Jan 26, 2025

Ok, done it :)

processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

Hardware : BCM2835
Revision : c03112
Serial : ###
Model : Raspberry Pi 4 Model B Rev 1.2

@CarterLi
Copy link
Member

Do you know why it reports BCM2835?

@CTRL-panino
Copy link
Author

@CarterLi no, I don't know why.
"BCM2835" is the name of the Raspberry Pi 1 and Raspberry Pi Zero CPU, not the Pi 4.
Also, as far as I noticed, until the previous Fastfetch version, Fastfetch was correctly displaying "Broadcom BCM2711"

@CarterLi
Copy link
Member

As requested in #1510, we now prefer the CPU name reported in cpuinfo

@CTRL-panino
Copy link
Author

CTRL-panino commented Jan 26, 2025

Ok, thank you for the clarification.
But, since “BCM2835” is not correct, how would it be possible to solve the problem?

@Guiorgy
Copy link
Contributor

Guiorgy commented Jan 27, 2025

If only there was a standard way to get this info on the system smh

@CarterLi
Copy link
Member

Did a fix. Can you test the dev build?

@CTRL-panino
Copy link
Author

Hi @CarterLi
Yes, it works! Now it displays "Broadcom BCM2711" as it did before.
Thank you for your great work, as always :)

@XhmikosR
Copy link
Contributor

XhmikosR commented Jan 27, 2025

On Raspberry Pi 4 I get BCM2711 (and GPU too) with v2.35.0.

pi@rpi4:~ $  fastfetch
        _,met$$$$$gg.          pi@rpi4
     ,g$$$$$$$$$$$$$$$P.       -------
   ,g$$P""       """Y$$.".     OS: Debian GNU/Linux 12 (bookworm) aarch64
  ,$$P'              `$$$.     Host: Raspberry Pi 4 Model B Rev 1.1
',$$P       ,ggs.     `$$b:    Kernel: Linux 6.6.62+rpt-rpi-v8
`d$$'     ,$P"'   .    $$$     Uptime: 19 hours, 8 mins
 $$P      d$'     ,    $$P     Packages: 647 (dpkg)
 $$:      $$.   -    ,d$$'     Shell: bash 5.2.15
 $$;      Y$b._   _,d$P'       Terminal: /dev/pts/0
 Y$$.    `.`"Y$$$$P"'          CPU: BCM2711 (4) @ 1.50 GHz
 `$$b      "-.__               GPU: Broadcom bcm2711-vc5 [Integrated]
  `Y$$b                        Memory: 251.54 MiB / 3.70 GiB (7%)
   `Y$$.                       Swap: 0 B / 2.50 GiB (0%)
     `$$b.                     Disk (/): 2.85 GiB / 58.01 GiB (5%) - ext4
       `Y$$b.                  Disk (/var/log): 66.49 MiB / 223.73 MiB (30%) - ext4
         `"Y$b._               Local IP (eth0): 192.168.178.28/24
             `""""             Locale: en_US.UTF-8

pi@rpi4:~ $  cat /proc/cpuinfo
processor       : 0
BogoMIPS        : 108.00
Features        : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

processor       : 1
BogoMIPS        : 108.00
Features        : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

processor       : 2
BogoMIPS        : 108.00
Features        : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

processor       : 3
BogoMIPS        : 108.00
Features        : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

Revision        : c03111
Serial          : XXX
Model           : Raspberry Pi 4 Model B Rev 1.1

I also have a Raspberry Pi Zero 2 W which is reported correctly as BCM2837 and its GPU as Broadcom bcm2835-vc4.

pi@rpi0-2w:~ $  fastfetch
        _,met$$$$$gg.          pi@rpi0-2w
     ,g$$$$$$$$$$$$$$$P.       ----------
   ,g$$P""       """Y$$.".     OS: Debian GNU/Linux 12 (bookworm) aarch64
  ,$$P'              `$$$.     Host: Raspberry Pi Zero 2 W Rev 1.0
',$$P       ,ggs.     `$$b:    Kernel: Linux 6.6.62+rpt-rpi-v8
`d$$'     ,$P"'   .    $$$     Uptime: 1 hour, 29 mins
 $$P      d$'     ,    $$P     Packages: 639 (dpkg)
 $$:      $$.   -    ,d$$'     Shell: bash 5.2.15
 $$;      Y$b._   _,d$P'       Terminal: /dev/pts/0
 Y$$.    `.`"Y$$$$P"'          CPU: BCM2837 (4) @ 1.00 GHz
 `$$b      "-.__               GPU: Broadcom bcm2835-vc4 [Integrated]
  `Y$$b                        Memory: 159.71 MiB / 416.93 MiB (38%)
   `Y$$.                       Swap: 31.00 MiB / 767.99 MiB (4%)
     `$$b.                     Disk (/): 2.72 GiB / 28.53 GiB (10%) - ext4
       `Y$$b.                  Disk (/var/log): 18.72 MiB / 223.73 MiB (8%) - ext4
         `"Y$b._               Local IP (eth0): 192.168.178.30/24
             `""""             Locale: en_US.UTF-8

pi@rpi0-2w:~ $  cat /proc/cpuinfo
processor       : 0
BogoMIPS        : 38.40
Features        : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 1
BogoMIPS        : 38.40
Features        : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 2
BogoMIPS        : 38.40
Features        : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 3
BogoMIPS        : 38.40
Features        : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

Revision        : 902120
Serial          : XXX
Model           : Raspberry Pi Zero 2 W Rev 1.0

Using the dev build I still get BCM2711 on Raspberry Pi 4, so not sure but I couldn't reproduce the issue here.

@CTRL-panino
Copy link
Author

Hi @XhmikosR ,
I am using DietPi, are you using it as well?
Perhaps I am encountering the bug because of that

@XhmikosR
Copy link
Contributor

No, I'm using Raspberry Pi OS 64-bit on both and I don't hit the issue, so the OS must affect something in your case.

@CTRL-panino
Copy link
Author

Also, as far as I noticed, the CPU name is displayed in your Fastfetch output but not in your /proc/cpuinfo output.
While in my /proc/cpuinfo output there's the (wrong) CPU name

@XhmikosR
Copy link
Contributor

XhmikosR commented Jan 27, 2025 via email

@CTRL-panino
Copy link
Author

And, as you were pointing out, your GPU is displayed, too! While on my system it's not displayed.
Weird, it probably has something to do with DietPi

@XhmikosR
Copy link
Contributor

XhmikosR commented Jan 27, 2025 via email

@CTRL-panino
Copy link
Author

CTRL-panino commented Jan 27, 2025

Yes, you're probably right about drivers.
Since I didn't install any DE, maybe DietPi disables / doesn't load GPU drivers.
But I'm not sure about it, it's just an assumption.

Anyway, in general I agree with you about sticking with official OSes.
But I prefer using DietPi because:

  • apparently it preserves the SD card a little bit more logging on RAM
  • I like their scripts for making life easier for users like me that don't use any DE
  • At the end of the day DietPi is Debian, so nothing too different from Raspberry Pi OS

@XhmikosR
Copy link
Contributor

XhmikosR commented Jan 27, 2025 via email

@CTRL-panino
Copy link
Author

I didn't know about Log2ram and zram-generator, thank you for the suggestion :) I'll give it a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants