balena-raspberrypi icon indicating copy to clipboard operation
balena-raspberrypi copied to clipboard

RPI4 /proc/cpuinfo missing revision / hardware / model name

Open pdcastro opened this issue 5 years ago • 5 comments

As reported in this forum thread: https://forums.balena.io/t/rpi4-proc-cpuinfo-missing-hardware-and-model-name/29080

pdcastro avatar Sep 02 '19 18:09 pdcastro

As commented in the forums: it’s different for 64-bit kernels. See /sys/firmware/devicetree/base/serial-number and /sys/firmware/devicetree/base/model instead.

pwt avatar Sep 02 '19 18:09 pwt

[pdcastro] This issue has attached support thread https://jel.ly.fish/#/support-thread~23011640-c9e1-4318-a2a3-d622ffc81381

balena-ci avatar Sep 02 '19 19:09 balena-ci

My Balena experience is currently paused by this. Trying to use a Raspberry Pi 4, Node.js and node-rpio. The related issue is this one. Are there any news - or ideas for a possible fix?

alexbjorlig avatar Oct 11 '19 15:10 alexbjorlig

The problem actually runs deeper. /proc/device-tree is a symlink to /sys/firmware/devicetree/base, and the latter is not visible from within Docker containers. We need some way to readonly mount that host path into the container.

jeff-hiner avatar Dec 02 '19 18:12 jeff-hiner

We need some way to readonly mount that host path into the container

Indeed. This directory is pretty important for 64-bit. I think more and more software will (and should) rely on being able to read it.

I wasn't able to find any combination of mount, bind, volume, etc. that worked. But --privileged automatically mounts it. Pity to have to use it, but is the only way I've found at the moment.

hraftery avatar Mar 24 '22 11:03 hraftery