關於樹莓派3B+ CPU是BCM2835 還是BCM2837的問題
阿新 • • 發佈:2018-12-19
最近買了樹莓派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:
[email protected]:~ $ cat /proc/device-tree/model
Raspberry Pi 3 Model B Rev 1.2
谷歌翻譯:
正如6by9所指出的那樣,這是因為上游ARM核心只允許我們為裝置設定單個值。如果我們想要有多個不同的值,則需要我們編輯程式碼(通常我們不希望這樣做,因為它在從上游整合更改時會給我們帶來問題)。
我已經要求Phil改變它而不是返回“BCM28xx”來表示該核心專門用於BCM2805 / 6/7晶片。
如果你想找出計算機的型號,你應該使用裝置樹而不是la:
我的樹莓派輸出結果是這樣的,好吧,姑且認為這個就是3B+吧:
[email protected]:~ $ cat /proc/device-tree/model
Raspberry Pi 3 Model B Plus Rev 1.3
原文地址:
https://www.raspberrypi.org/forums/viewtopic.php?p=1190349