Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

50%
+0 −0
Q&A How to determine compute module model over rpiBoot

Hi, i need to setup a script to validate the raspberry hardware connected to a desktop PC, and im not sure how to go about it. We are in an environment where we need to flash an OS + some goodies ...

0 answers  ·  posted 12d ago by hest‭

Question raspbian filesystem
#1: Initial revision by user avatar hest‭ · 2024-11-22T19:35:25Z (12 days ago)
How to determine compute module model over rpiBoot
Hi, i need to setup a script to validate the raspberry hardware connected to a desktop PC, and im not sure how to go about it.

We are in an environment where we need to flash an OS + some goodies to a RPI module, and currently this is done using rpiBoot.

the current setup is:

    start rpiboot - waiting for bcm...

    plug in rpi over usb connection

    mount the disk

    configure/validate some partitioning

    write our software to pi

    validate

    complete

Up until recently we have only worked with CM3 modules, so no need to double check the compute module type, but i want to be certain of the device hardware during this process, preferable between steps 3 and 4.

i have been doing some experiments myself, but all information online points to using feature that are not available without the raspberry actually running such as:

cat /sys/firmware/devicetree/base/model

cat /proc/cpuinfo

And looking around in the /boot folder doesn't provide me any obvious solution, since that seems to contain bcm... files for multiple version, as far as i can tell, so im not sure i can go by that somehow.

So "all" i need is a way to tell if the device mounted is a CM3, CM4, CM4S ( or CM5 in the future )

Any tips would be appreciated :)