{"id":8049,"date":"2024-04-21T18:01:01","date_gmt":"2024-04-21T10:01:01","guid":{"rendered":""},"modified":"2024-04-21T18:01:01","modified_gmt":"2024-04-21T10:01:01","slug":"Open BMC\u5f00\u53d1\u7cfb\u5217\uff08\u56db\uff09\u589e\u52a0\u5bf9peci\u7684\u652f\u6301","status":"publish","type":"post","link":"https:\/\/mushiming.com\/8049.html","title":{"rendered":"Open BMC\u5f00\u53d1\u7cfb\u5217\uff08\u56db\uff09\u589e\u52a0\u5bf9peci\u7684\u652f\u6301"},"content":{"rendered":"
\u5b89\u88c5openbmc \u7248\u672cV2.9.0\uff0c\u786e\u4fddlinux-aspeed\u5185\u6838\u7248\u672c\u4e2d\u6709PECI\u7ec4\u4ef6\u3002V2.11-dev\u7248\u672c\u4e2d\u6ca1\u6709\u5bf9\u5e94\u7684\u7ec4\u4ef6\u3002<\/p>\n
\u4fee\u6539\u6587\u4ef6packagegroup-op-apps.bb<\/p>\n
<\/p>\n<\/p>\n
\n
Vi packagegroup-op-apps.bb\uff0c\u589e\u52a0peci-pcie \\\u8fd9\u6837\u4e00\u884c\u3002<\/p>\n
<\/p>\n<\/p>\n
\n
Cd .\/meta-ibm\/meta-romulus\/<\/p>\n
mkdir recipes-core<\/p>\n
cp meta-intel-openbmc\/meta-common\/recipes-core\/libpeci\/<\/p>\n
meta-ibm\/meta-romulus\/recipes-core<\/p>\n
\n
\u76ee\u5f55\u8def\u5f84\uff1a<\/p>\n
~\/openbmc\/build\/workspace\/sources\/linux-aspeed\/arch\/arm\/boot\/dts\/aspeed-bmc-opp-romulus.dts<\/p>\n
\u589e\u52a0peci\u7684\u914d\u7f6e<\/p>\n
&peci0 {
\n <\/p>\n
status = \"okay\";<\/p>\n
peci-client@30 {
\n <\/p>\n
compatible = \"intel, peci-client\";<\/p>\n
reg = <0x30>;<\/p>\n
};<\/p>\n
};<\/p>\n
\u5982\u56fe\uff1a<\/p>\n
<\/p>\n<\/p>\n
\n
\u5728\u547d\u4ee4\u884c\u8f93\u5165\u547d\u4ee4\uff1abitbake -c menuconfig linux-aspeed<\/p>\n
<\/p>\n<\/p>\n
\n
\u8fd9\u4e00\u6b65\u5982\u679c\u4f60\u662f\u4f7f\u7528\u7684xshell\u7ec8\u7aef\uff0c\u5219\u9700\u8981\u5b89\u88c5xmanage\u7ec4\u4ef6\uff0c\u8fd9\u4e2a\u4f1a\u63d0\u9192\u5b89\u88c5\uff0c\u5b89\u88c5\u5b8c\u4e4b\u540e\u91cd\u65b0\u6267\u884c\uff0c\u5c31\u80fd\u770b\u5230\u754c\u9762\u4e86\u3002\u4f7f\u7528\u65b9\u5411\u952e\u8fdb\u884c\u9009\u62e9\uff0c\u56de\u8f66\u9009\u4e2d\uff0c\u5b57\u6bcdY\u7ed9\u9009\u9879\u7684\u62ec\u53f7\u5185\u6253\u2018*\u2019\u3002<\/p>\n
\u9996\u5c42\u76ee\u5f55\u9009\u4e2dDevice Drivers, \u627e\u5230PECI support\uff0c\u56de\u8f66\u9009\u4e2d\u3002<\/p>\n
<\/p>\n<\/p>\n
\n
\u9009\u4e2d\u540e\uff0c\u628a\u5bf9\u5e94\u7684peci\u7684\u90fd\u6807\u8bb0*\uff0c\u5373\u90fd\u9009\u4e0a\u3002\u5982\u679c\u4f60\u53ea\u770b\u4e00\u4e2a\uff0c\u522b\u7740\u6025\uff0c\u6807\u8bb0*\u540e\uff0c\u4e0b\u9762\u7684\u81ea\u52a8\u5f39\u51fa\u6765\u3002\u5982\u56fe\uff0c\u8bbe\u7f6e\u5b8c\u6210\u540e\u4fdd\u5b58\u53c2\u6570\u3002<\/p>\n
<\/p>\n<\/p>\n
\n
\u9996\u5c42\u76ee\u5f55\u9009\u4e2dDevice Drivers\uff0c\u627e\u5230character Device\uff0c\u56de\u8f66\u9009\u4e2d\uff0c\u6309\u7167\u4e0b\u56fe\u8fdb\u884c\u914d\u7f6e\uff0c\u914d\u7f6e\u5b8c\u6210\u540e\u4fdd\u5b58\u3002<\/p>\n
<\/p>\n<\/p>\n
\n
\u4e0b\u8f7d\u547d\u4ee4\uff1a devtool modify peci-pcie<\/p>\n
\u5230peci-peic\u76ee\u5f55\u4e0b\uff0c\u4fee\u6539CMakeLists.txt \u53bb\u6389\u5bf9\u5e94\u7f16\u8bd1\u7f16\u8bd1\u9009\u9879\uff1afro-tti\uff0c\u5426\u5219\u4f1a\u5bfc\u81f4\u7f16\u8bd1\u5931\u8d25\u3002<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n<\/p>\n
\n
\n
\n
\u67e5\u770b\u7f16\u8bd1\u524d\u7684\u5305<\/p>\n
<\/p>\n<\/p>\n
\n
\n
\u7f16\u8bd1\uff1a<\/p>\n
export TEMPLATECONF=meta-ibm\/meta-romulus\/conf<\/p>\n
. openbmc-env<\/p>\n
rm -rf build\/conf<\/p>\n
bitbake obmc-phosphor-image<\/p>\n
\n
\u7f16\u8bd1\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u67e5\u770b\u7f16\u8bd1\u540e\u7684\u5305\u662f\u5426\u5b58\u5728libpeci\u7684\u5305\u3002<\/p>\n
<\/p>\n<\/p>\n
\n
\u5237\u4e0a\u955c\u50cf\u540e\uff0c\u5728bmc\u4e0a\u8f93\u5165peci_cmd\u547d\u4ee4\uff0c\u5982\u679c\u547d\u4ee4\u751f\u6548\uff0c\u8868\u660epeci\u7684\u5305\u751f\u6548\u4e86\u3002<\/p>\n
\n
<\/p>\n<\/p>\n
\u6700\u540e\uff1a\u70b9\u8d5e\u662f\u7f8e\u5fb7\uff0c\u5173\u6ce8\u662f\u7f18\u5206\uff0c\u6536\u85cf\u662f\u80af\u5b9a\uff0c\u6253\u8d4f\u4f60\u968f\u610f\uff0c\u4f60\u7684\u9f13\u52b1\u662f\u6211\u4e16\u754c\u5584\u7684\u4e00\u90e8\u5206\uff0c\u7231\u4f60\u4eec\uff01<\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"Open BMC\u5f00\u53d1\u7cfb\u5217\uff08\u56db\uff09\u589e\u52a0\u5bf9peci\u7684\u652f\u6301PECI\u6a21\u5757\u914d\u7f6e\u4fee\u6539\u786e\u8ba4openbmc\u7248\u672c\u4e2d\u80fdget\u5230peci\u7684\u9a71\u52a8\u7ec4\u4ef6","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8049"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=8049"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8049\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=8049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=8049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=8049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}