09-15-2024, 10:39 PM
(This post was last modified: 09-15-2024, 10:42 PM by Tim Curtis.
Edit Reason: fix line endings
)
(09-15-2024, 10:23 PM)TheOldPresbyope Wrote:(09-15-2024, 04:52 PM)Tim Curtis Wrote: Looking at the code I don't think &0x17 may be a bug and is not actually needed.
Having now had a chance to read both the code and the RPF documentation, I agree. The bit masking should be unnecessary...but it's up to @Prince to confirm. I have no early models to test with
Regards,
Kent
You can simulate the codes using the python cli but I actually tested earlier today using my Pi-1B and no issues :-)
Code:
pi@moode32bit:~ $ cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 697.95
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
Hardware : BCM2835
Revision : 000e
Serial : 00000000fcf9f81d
Model : Raspberry Pi Model B Rev 2
# As-is with 0x17 mask
pi@moode32bit:~ $ /var/www/util/pirev.py
0xe B 2.0 256MB Egoman ?
# Actual RAM
pi@moode32bit:~ $ vcgencmd get_mem arm
arm=448M
pi@moode32bit:~ $ vcgencmd get_mem gpu
gpu=64M
# Samsung DRAM chip part number on this Pi-1B
K4P4G324EB-AGC1
https://www.datasheets.com/part-details/k4p4g324eb-agc1-samsung-electronics-53733965
# Without 0x17 mask
pi@moode32bit:~ $ /var/www/util/pirev.py
0xe B 2.0 512MB Sony UK ?