关于树莓派3B+ CPU是BCM2835 还是BCM2837的问题

最近买了树莓派3B+玩,查看cpu信息是发现竟然是 BCM2835,ARMv7 :

$ cat /proc/cpuinfo| grep Hardware
Hardware        : BCM2835
model name      : ARMv7 Processor rev 4 (v7l)

可是X宝和X东明明标着是BCM2837,ARMV8的啊,莫非买到假货了。
百度一顿搜,发现官网有如下解释:

this, as 6by9 indicated, is due to the fact that the upstream ARM kernel only allows us to set a single value for our devices. 
If we wanted to have multiple different values it would require that we edit the code (which in general we prefer not to do 
because is causes problems for us wen integrating changes from upstream).

i've asked Phil to change this to instead return "BCM28xx" to indicate that the kernel is specifically for the BCM2805/6/7 silicon.

if you'd like to find out the model of the computer you should use the device tree instead a la:
pi@raspberrypi:~ $ cat /proc/device-tree/model
Raspberry Pi 3 Model B Rev 1.2

谷歌翻译:
正如6by9所指出的那样,这是因为上游ARM内核只允许我们为设备设置单个值。如果我们想要有多个不同的值,则需要我们编辑代码(通常我们不希望这样做,因为它在从上游集成更改时会给我们带来问题)。

我已经要求Phil改变它而不是返回“BCM28xx”来表示该内核专门用于BCM2805 / 6/7芯片。

如果你想找出计算机的型号,你应该使用设备树而不是la:

我的树莓派输出结果是这样的,好吧,姑且认为这个就是3B+吧:

pi@raspberrypi:~ $ cat /proc/device-tree/model
Raspberry Pi 3 Model B Plus Rev 1.3

原文地址:
https://www.raspberrypi.org/forums/viewtopic.php?p=1190349

你可能感兴趣的:(树莓派)