xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

ARM Cortex-A72 CPU All In One

ARM Cortex-A72 CPU All In One

Raspberry Pi 4B, BCM2711 4 核心 1.5GHz 64 位 CPU / Raspberry Pi 4B, BCM2711 4 核心 1.8GHz 64 位 CPU

image

$ pinout

Pi Model 4B  V1.5
Revision           : d03115
SoC                : BCM2711
RAM                : 8GB
Storage            : MicroSD
USB ports          : 4 (of which 2 USB3)
Ethernet ports     : 1 (1000Mbps max. speed)
Wi-fi              : True
Bluetooth          : True
Camera ports (CSI) : 1
Display ports (DSI): 1

https://pinout.xyz/

$ 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	: d03115
Serial		: 1000000052e87fab
Model		: Raspberry Pi 4 Model B Rev 1.5

BCM2835

image

# $ cat /sys/firmware/devicetree/base/mode ❌
$ ls /sys/firmware/devicetree/base

$ cat /sys/firmware/devicetree/base/model
Raspberry Pi 4 Model B Rev 1.5

image

Cortex-A72

image

https://developer.arm.com/Processors/Cortex-A72

image

https://developer.arm.com/documentation/100095/0003/Introduction/About-the-Cortex-A72-processor?lang=en

image

https://www.anandtech.com/show/9184/arm-reveals-cortex-a72-architecture-details

https://www.anandtech.com/show/8957/arm-announces-cortex-a72

CPU 性能分析

https://www.cpubenchmark.net/cpu.php?cpu=ARM+Cortex-A72+4+Core+1500+MHz&id=3917

Raspberry Pi 4B

https://www.raspberrypi.com/news/raspberry-pi-4-on-sale-now-from-35/

https://www.raspberrypi.com/news/8gb-raspberry-pi-4-on-sale-now-at-75/

1.5GHz => 1.8GHz 超频 🚀

# config.txt
arm_freq=1800

image

https://www.raspberrypi.com/news/bullseye-bonus-1-8ghz-raspberry-pi-4/

$ cat /proc/cpuinfo

$ cat /sys/firmware/devicetree/base/model
# Raspberry Pi 3 Model B Rev 1.2

image

$ cat /proc/cpuinfo

$ cat /sys/firmware/devicetree/base/model
# Raspberry Pi 4 Model B Rev 1.5

image

# Raspberry Pi 4B
Hardware	: BCM2835
Revision	: d03115
Serial		: 1000000052e87fab
Model		: Raspberry Pi 4 Model B Rev 1.5

https://img2023.cnblogs.com/blog/740516/202305/740516-20230528005708732-1710477091.png

# Raspberry Pi 3B
Hardware	: BCM2835
Revision	: a22082
Serial		: 0000000095bf9be6
Model		: Raspberry Pi 3 Model B Rev 1.2
#include <stdio.h>
#include <stdlib.h>

int main( int argc, char *argv[] )
{
  FILE *fp;
  char revcode[32];

  fp = popen("cat /proc/cpuinfo | awk '/Revision/ {print $3}'", "r");
  if (fp == NULL)
    exit(1);
  fgets(revcode, sizeof(revcode), fp);
  pclose(fp);

  int code = strtol(revcode, NULL, 16);
  int new = (code >> 23) & 0x1;
  int model = (code >> 4) & 0xff;
  int mem = (code >> 20) & 0x7;

  if (new && model == 0x11 && mem >= 3)  // Note, 3 in the mem field is 2GB
     printf("We are a 4B with at least 2GB of RAM!\n" );

  return 0;
}
import subprocess

cmd = "cat /proc/cpuinfo | awk '/Revision/ {print $3}'"
revcode = subprocess.check_output(cmd, shell=True)

code = int(revcode, 16)
new = (code >> 23) & 0x1
model = (code >> 4) & 0xff
mem = (code >> 20) & 0x7

if new and model == 0x11 and mem >= 3 : # Note, 3 in the mem field is 2GB
    print("We are a 4B with at least 2GB RAM!")

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-revision-codes

BCM2711 vs BCM2837 / BCM2837B0

image

image

https://en.wikipedia.org/wiki/Raspberry_Pi

demos

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

refs

https://en.wikipedia.org/wiki/ARM_Cortex-A72

如何解决树莓派 SSH 待机一段时间后自动断开 bug All In One

https://www.cnblogs.com/xgqfrms/p/16481735.html

Raspberry Pi 4 Model B Product Information Portal All In One

https://www.cnblogs.com/xgqfrms/p/17428351.html



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2023-05-27 08:55  xgqfrms  阅读(152)  评论(0编辑  收藏  举报