Page 1 of 1

/proc/cpuinfo on the raspberry pi 4

Posted: Thu Jun 27, 2019 7:54 pm
by flibble
Could any kind user who already has their Pi 4 post me the output of 'cat /proc/cpuinfo'. Feel free to miss out any serial number if present.

Re: /proc/cpuinfo on the raspberry pi 4

Posted: Thu Jun 27, 2019 7:56 pm
by dickon

Re: /proc/cpuinfo on the raspberry pi 4

Posted: Thu Jun 27, 2019 8:01 pm
by flibble
Many thanks, that was fast :)

Re: /proc/cpuinfo on the raspberry pi 4

Posted: Thu Jun 27, 2019 8:04 pm
by dickon
Slower than it might have been -- I had to install pastebinit, and the machine is currently doing H.264p24...

omxplayer works a treat, which is nice. Next up: get it running as a wifi AP, doing the 1wire temperature stuff I need, and seeing if I can get LibreELEC's Kodi running on Raspbian. Already dumped systemd, of course; what an horrific heap of junk...

Just waiting for an official netboot, as having critical bits like /boot on the sdcard doesn't fill me with confidence.

Re: /proc/cpuinfo on the raspberry pi 4

Posted: Fri Aug 02, 2019 10:16 am
by Nuncio
This is what my cpuinfo shows. I could swear the ARM A72 was supposed to be ARMv8, but I could be wrong.
Also I thought it was Broadcom BCM2711. I've heard the RPi manufacturers can't change this without a lot of hassle, though.

pi@raspberrypi4:~ $ cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 1
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 2
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 3
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

Hardware : BCM2835
Revision : c03111

Re: /proc/cpuinfo on the raspberry pi 4

Posted: Fri Aug 02, 2019 10:31 am
by fruitoftheloom
Nuncio wrote:
Fri Aug 02, 2019 10:16 am
This is what my cpuinfo shows. I could swear the ARM A72 was supposed to be ARMv8, but I could be wrong.
Also I thought it was Broadcom BCM2711. I've heard the RPi manufacturers can't change this without a lot of hassle, though.

pi@raspberrypi4:~ $ cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 1
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 2
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 3
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

Hardware : BCM2835
Revision : c03111

BCM2835 is what the Linux Kernel reports for ALL Raspberry Pi SBC.

Raspbian Buster is ARMHF ARMv7 32bit.

Maybe ?

Code: Select all

lscpu

Re: /proc/cpuinfo on the raspberry pi 4

Posted: Fri Aug 02, 2019 10:34 am
by jamesh
Use the revision code not the hardware line to determine the CPU type. This is an upstream issue, I have no idea why they have decided it's a good idea to display the wrong CPU id, but the amount of questions that come up about it on here is ridiculous, so I think they are wrong.

https://www.raspberrypi.org/documentati ... /README.md

You can also use cat /sys/firmware/devicetree/base/model

Or use raspinfo (a recent addition so may not be on your distro yet) to get a full dump of system data.

Re: /proc/cpuinfo on the raspberry pi 4

Posted: Thu Sep 05, 2019 1:03 am
by arachnaut
When I use

Code: Select all

$ cat /sys/firmware/devicetree/base/model
I see this:
pi@raspberrypi:~ $ cat /sys/firmware/devicetree/base/model
Raspberry Pi 4 Model B Rev 1.1pi@raspberrypi:~ $
Which has no proper new line due to a NUL character in the output.
This affects the output of raspbian 'raspinfo' script making the output text file appear truncated in 'Text Editor' (leafpad).

I fixed the script for me using sed to remove NULs:

Code: Select all

cat /sys/firmware/devicetree/base/model | sed -e "s/[\x0]//g"
The full raspbian script mods I use look like this:

Code: Select all

 
#!/bin/bash
# mod by Jim Hurley
# Aug 28, 2019

# Some of the regex's used in sed
# Catch basic IP6 address   "s/\([0-9a-fA-F]\{1,4\}:\)\{7,7\}[0-9a-fA-F]\{1,4\}/y.y.y.y.y.y.y.y/g"
# Catch y::y.y.y.y          "s/[0-9a-fA-F]\{1,4\}:\(:[0-9a-fA-F]\{1,4\}\)\{1,4\}/y::y.y.y.y/g"
# IP4 d.d.d.d decimal	    "s/\([0-9]\{1,3\}\.\)\{3,3\}[0-9]\{1,3\}/x.x.x.x/g"
# mac address	            "s/\([0-9a-fA-F]\{2,2\}\:\)\{5,5\}[0-9a-fA-F]\{2,2\}/m.m.m.m/g"
# strip NUL characters      "s/[\x0]//g"

OUT=raspinfo.txt

rm -f $OUT

exec > >(tee -ia $OUT)

echo System Information 
echo ------------------
echo

# there is a NUL here
cat /sys/firmware/devicetree/base/model | sed -e "s/[\x0]//g"
echo
echo

cat /etc/os-release | head -4
echo

cat /etc/rpi-issue
echo
uname -a

cat /proc/cpuinfo | tail -3

echo "Throttled flag  : "`vcgencmd get_throttled`
echo "Camera          : "`vcgencmd get_camera`

echo
echo "Videocore information"
echo "---------------------"
echo

vcgencmd version
echo
vcgencmd mem_reloc_stats

echo
echo "Filesystem information"
echo "----------------------"

df
echo
cat /proc/swaps

echo
echo "Package version information"
echo "---------------------------"

apt-cache policy raspberrypi-ui-mods | head -2
apt-cache policy raspberrypi-sys-mods | head -2
apt-cache policy openbox | head -2
apt-cache policy lxpanel | head -2
apt-cache policy pcmanfm | head -2
apt-cache policy rpd-plym-splash | head -2

echo
echo "Networking Information"
echo "----------------------"
echo

ifconfig | sed -e "s/\([0-9a-fA-F]\{1,4\}:\)\{7,7\}[0-9a-fA-F]\{1,4\}/y.y.y.y.y.y.y.y/g" | sed -e "s/[0-9a-fA-F]\{1,4\}:\(:[0-9a-fA-F]\{1,4\}\)\{1,4\}/y::y.y.y.y/g" | sed -e "s/\([0-9]\{1,3\}\.\)\{3,3\}[0-9]\{1,3\}/x.x.x.x/g" | sed -e "s/\([0-9a-fA-F]\{2,2\}\:\)\{5,5\}[0-9a-fA-F]\{2,2\}/m.m.m.m/g"

echo
echo "USB Information"
echo "---------------"
echo

lsusb -t

echo
echo "config.txt"
echo "----------"
echo

#cat /boot/config.txt | egrep -v "^\s*(#|^$)"
vcgencmd get_config int
vcgencmd get_config str


echo
echo "cmdline.txt"
echo "-----------"

cat /proc/cmdline

echo
echo "raspi-gpio settings"
echo "-------------------"
echo

raspi-gpio get

echo
echo "vcdbg log messages"
echo "------------------"
echo

sudo vcdbg log msg 2>&1

echo
echo "dmesg log"
echo "---------"
echo

dmesg | sed -e "s/\([0-9a-fA-F]\{1,4\}:\)\{7,7\}[0-9a-fA-F]\{1,4\}/y.y.y.y.y.y.y.y/g" | sed -e "s/[0-9a-fA-F]\{1,4\}:\(:[0-9a-fA-F]\{1,4\}\)\{1,4\}/y::y.y.y.y/g" | sed -e "s/\([0-9a-fA-F]\{2,2\}\:\)\{5,5\}[0-9a-fA-F]\{2,2\}/m.m.m.m/g"


Re: /proc/cpuinfo on the raspberry pi 4

Posted: Wed Nov 20, 2019 12:07 pm
by anssi_s
Nuncio wrote:
Fri Aug 02, 2019 10:16 am
This is what my cpuinfo shows. I could swear the ARM A72 was supposed to be ARMv8, but I could be wrong.
Also I thought it was Broadcom BCM2711. I've heard the RPi manufacturers can't change this without a lot of hassle, though.
ARMv8 is 64-bits, no? I'd like to see what /proc/cpuinfo shows if the RPi4 is booted to a 64-bit Linux. Especially interested in whether the crypto extensions are present or not which should show in the output.

Re: /proc/cpuinfo on the raspberry pi 4

Posted: Wed Nov 20, 2019 12:11 pm
by jahboater
Also available from:

/proc/device-tree/model

But I see its still NUL terminated.

Re: /proc/cpuinfo on the raspberry pi 4

Posted: Wed Nov 20, 2019 12:27 pm
by dickon
anssi_s wrote:
Wed Nov 20, 2019 12:07 pm
ARMv8 is 64-bits, no? I'd like to see what /proc/cpuinfo shows if the RPi4 is booted to a 64-bit Linux. Especially interested in whether the crypto extensions are present or not which should show in the output.

Code: Select all

root@telly-aarch64:~# 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

Hardware        : BCM2835
Revision        : b03111
Serial          : 10000000b5b897d0
Model           : Raspberry Pi 4 Model B Rev 1.1
root@telly-aarch64:~# 

Re: /proc/cpuinfo on the raspberry pi 4

Posted: Wed Nov 20, 2019 1:51 pm
by jamesh
anssi_s wrote:
Wed Nov 20, 2019 12:07 pm
Nuncio wrote:
Fri Aug 02, 2019 10:16 am
This is what my cpuinfo shows. I could swear the ARM A72 was supposed to be ARMv8, but I could be wrong.
Also I thought it was Broadcom BCM2711. I've heard the RPi manufacturers can't change this without a lot of hassle, though.
ARMv8 is 64-bits, no? I'd like to see what /proc/cpuinfo shows if the RPi4 is booted to a 64-bit Linux. Especially interested in whether the crypto extensions are present or not which should show in the output.
AIUI, Crypto extensions are built in to the HW, so if they are not on the Pi4 in 32bit mode, they won't be in 64bit mode either.