flibble
Posts: 7
Joined: Sat Sep 10, 2011 2:30 pm

/proc/cpuinfo on the raspberry pi 4

Thu Jun 27, 2019 7:54 pm

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.

User avatar
dickon
Posts: 1799
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, just outside Reading

Re: /proc/cpuinfo on the raspberry pi 4

Thu Jun 27, 2019 7:56 pm


flibble
Posts: 7
Joined: Sat Sep 10, 2011 2:30 pm

Re: /proc/cpuinfo on the raspberry pi 4

Thu Jun 27, 2019 8:01 pm

Many thanks, that was fast :)

User avatar
dickon
Posts: 1799
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, just outside Reading

Re: /proc/cpuinfo on the raspberry pi 4

Thu Jun 27, 2019 8:04 pm

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.

User avatar
Nuncio
Posts: 12
Joined: Fri Apr 12, 2013 11:04 am
Location: Reading, MA, USA

Re: /proc/cpuinfo on the raspberry pi 4

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

fruitoftheloom
Posts: 24462
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: /proc/cpuinfo on the raspberry pi 4

Fri Aug 02, 2019 10:31 am

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
Last edited by fruitoftheloom on Fri Aug 02, 2019 10:35 am, edited 1 time in total.
Thinking outside the box is better than burying your head in the sand...

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 27398
Joined: Sat Jul 30, 2011 7:41 pm

Re: /proc/cpuinfo on the raspberry pi 4

Fri Aug 02, 2019 10:34 am

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.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

User avatar
arachnaut
Posts: 2
Joined: Thu Sep 05, 2019 12:37 am
Location: Sunnyvale, CA

Re: /proc/cpuinfo on the raspberry pi 4

Thu Sep 05, 2019 1:03 am

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"

--
Jim Hurley

anssi_s
Posts: 2
Joined: Wed Sep 26, 2018 9:43 am

Re: /proc/cpuinfo on the raspberry pi 4

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.

User avatar
jahboater
Posts: 6270
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

Re: /proc/cpuinfo on the raspberry pi 4

Wed Nov 20, 2019 12:11 pm

Also available from:

/proc/device-tree/model

But I see its still NUL terminated.

User avatar
dickon
Posts: 1799
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, just outside Reading

Re: /proc/cpuinfo on the raspberry pi 4

Wed Nov 20, 2019 12:27 pm

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:~# 

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 27398
Joined: Sat Jul 30, 2011 7:41 pm

Re: /proc/cpuinfo on the raspberry pi 4

Wed Nov 20, 2019 1:51 pm

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.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

Return to “General discussion”