Skip to content

Testing Model Detection #1

Description

@oblaser

I don't have each and every model. So if you have one of the listed Models, feel free to run the test as described here and post an answer with the results.

Models

  • 2B before rev 1.2
  • 2B rev 1.2
  • CM3
  • CM3+
  • CM4
  • CM4S
  • 5
  • 500
  • CM5

Print /proc info

First run this one liner:

echo "###" ; uname -a ; echo "###" ; cat /boot/issue.txt ; echo "###" ; cat /proc/device-tree/compatible | tr '\0' '\n' ; echo "###" ; cat /proc/device-tree/model | tr '\0' '\n' ; echo "###" ; cat /proc/cpuinfo | grep -E "Hardware|Revision|Serial|Model" --color=never

Download and run rpihal-system-test

Only the detected model is printed, no hardware related code is executed (can be run on any Pi with any hardware configuration).

git clone --recurse-submodules https://github.com/oblaser/rpihal-system-test.git
cd rpihal-system-test/build
./build.sh cmake make run

Result

Please also add some information printed to board. At least model, revision and year: 3 Model B+ 2017 (the revision is not always printed to the board).

Template:

Board: 3 Model B V1.2 2015

/proc info:

###
Linux bookworm-2024-03-15 6.6.51+rpt-rpi-v7 #1 SMP Raspbian 1:6.6.51-1+rpt3 (2024-10-08) armv7l GNU/Linux
###
Raspberry Pi reference 2024-03-15
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 11096428148f0f2be3985ef3126ee71f99c7f1c2, stage4
###
raspberrypi,3-model-b
brcm,bcm2837
###
Raspberry Pi 3 Model B Rev 1.2
###
Hardware        : BCM2835
Revision        : a02082
Serial          : 00000000bf337d49
Model           : Raspberry Pi 3 Model B Rev 1.2

rpihal-system-test:

  --=====#   build rpihal-system-test - run   #=====--
device tree compatible: raspberrypi,3-model-b,brcm,bcm2837
device tree model:      Raspberry Pi 3 Model B Rev 1.2

detected model:         3B
  --=====#   build rpihal-system-test - OK   #=====--

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions