Closed arachnaut closed 2 years ago
raspinfo works for me, and the content of the model property looks correct:
pi@raspberrypi:~ $ od -Ax -tx1 /sys/firmware/devicetree/base/model
000000 52 61 73 70 62 65 72 72 79 20 50 69 20 34 20 4d
000010 6f 64 65 6c 20 42 20 52 65 76 20 31 2e 31 00
00001f
Please run the same command and show the output.
Raspberry Pi Compute Module 4 Rev 1.0
Indeed - that is how strings are represented in Device Tree. raspinfo could be modified to surpress the NUL, but it's not been a problem so far (you are the first to comment).
The line
"cat /sys/firmware/devicetree/base/model"
for Raspian Pi 4 puts out some garbage characters that seem to truncate the tee output
Here is what I see when I comment that line away:
System Information
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)"
Raspberry Pi reference 2019-07-10 Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 175dfb027ffabd4b8d5080097af0e51ed9a4a56c, stage5
Linux raspberrypi 4.19.66-v7l+ #1253 SMP Thu Aug 15 12:02:08 BST 2019 armv7l GNU/Linux Hardware : BCM2835 Revision : c03111 ...
Otherwise it is truncated at the start.