<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi <span style="caret-color: rgb(32, 31, 30); color: rgb(32, 31, 30); font-family: "Microsoft Yahei UI", Verdana, Simsun, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255); display: inline !important">Andrew, </span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(32, 31, 30); color: rgb(32, 31, 30); font-family: "Microsoft Yahei UI", Verdana, Simsun, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255); display: inline !important"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(32, 31, 30); color: rgb(32, 31, 30); font-family: "Microsoft Yahei UI", Verdana, Simsun, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255); display: inline !important">
Thank you very much for your guidance!</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(32, 31, 30); color: rgb(32, 31, 30); font-family: "Microsoft Yahei UI", Verdana, Simsun, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255); display: inline !important"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(32, 31, 30); color: rgb(32, 31, 30); font-family: "Microsoft Yahei UI", Verdana, Simsun, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255); display: inline !important">
I have modified the <span style="caret-color: rgb(50, 49, 48); color: rgb(50, 49, 48); font-family: "Microsoft Yahei UI", Verdana, Simsun, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; background-color: rgb(255, 255, 255); display: inline !important">
${MACHINE}.</span>conf file and recompiled u-boot,I will debug it on the board tomorrow.</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(32, 31, 30); color: rgb(32, 31, 30); font-family: "Microsoft Yahei UI", Verdana, Simsun, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255); display: inline !important"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(32, 31, 30); color: rgb(32, 31, 30); font-family: "Microsoft Yahei UI", Verdana, Simsun, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255); display: inline !important">
According to your guidance, I found the correspondence between the recipes specified in the
<span style="caret-color: rgb(50, 49, 48); color: rgb(50, 49, 48); font-family: "Microsoft Yahei UI", Verdana, Simsun, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; background-color: rgb(255, 255, 255); display: inline !important">
${MACHINE}</span>.conf file and the pn-buildlist.</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(32, 31, 30); color: rgb(32, 31, 30); font-family: "Microsoft Yahei UI", Verdana, Simsun, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255); display: inline !important"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(32, 31, 30); color: rgb(32, 31, 30); font-family: "Microsoft Yahei UI", Verdana, Simsun, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255); display: inline !important">
In the compilation directory of obmc-op-control-power,as follows:</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(32, 31, 30); color: rgb(32, 31, 30); font-family: "Microsoft Yahei UI", Verdana, Simsun, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255); display: inline !important"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(32, 31, 30); color: rgb(32, 31, 30); font-family: "Microsoft Yahei UI", Verdana, Simsun, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255); display: inline !important">
[<span>work/arm1176jzs-openbmc-linux-gnueabi/obmc-op-control-power/1.0+gitAUTOINC+1146f8c6e5-r1/image/usr/sbin]$ ls </span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(32, 31, 30); color: rgb(32, 31, 30); font-family: "Microsoft Yahei UI", Verdana, Simsun, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255); display: inline !important"><span>
pgood_wait power_control.exe</span></span></div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
The .exe file should be the executable file of windows, how can it appear in the linux system?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>发件人:</b> Andrew Jeffery <andrew@aj.id.au><br>
<b>发送时间:</b> 2020年4月19日 12:30<br>
<b>收件人:</b> zhouyuanqing8@outlook.com <zhouyuanqing8@outlook.com>; openbmc@lists.ozlabs.org <openbmc@lists.ozlabs.org><br>
<b>抄送:</b> uperic@163.com <uperic@163.com>; shinerocky@yahoo.com <shinerocky@yahoo.com><br>
<b>主题:</b> Re: About RGMII mode setting of MAC0</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Hi Harley<br>
<br>
On Sat, 18 Apr 2020, at 20:44, zhouyuanqing8@outlook.com wrote:<br>
> <br>
> Hi, <br>
> <br>
> My name is Harley, I am currently developing an openbmc project based <br>
> on the AST2500 chip. There are a few questions that need to be <br>
> consulted. Please help me to answer them. Thank you very much!<br>
> <br>
> 1、About RGMII mode setting of MAC0<br>
> The current openbmc project and uboot code support 2 modes: MAC0 uses <br>
> NCSI, MAC2 uses RGMII, but my board uses MAC0 RGMII. How can I simply <br>
> configure this to complete this work, or do I have to modify <br>
> aspeednic.c and add the new patch file under the directory <br>
> meta-phosphor/aspeed-layer/recipes-bsp/u-boot/files ?<br>
<br>
The way to select NCSI vs PHY is via the u-boot config files. Here are some<br>
examples of different platforms selecting between different configs:<br>
<br>
```<br>
$ git grep 'UBOOT_MACHINE =' | head<br>
meta-aspeed/conf/machine/evb-ast2500.conf:UBOOT_MACHINE = "ast_g5_phy_config"<br>
meta-aspeed/conf/machine/evb-ast2600.conf:UBOOT_MACHINE = "ast2600_openbmc_defconfig"<br>
meta-evb/meta-evb-aspeed/meta-evb-ast2500/conf/machine/evb-ast2500.conf:UBOOT_MACHINE = "ast_g5_phy_config"<br>
meta-evb/meta-evb-enclustra/meta-evb-zx3-pm3/conf/machine/evb-zx3-pm3.conf:UBOOT_MACHINE = "zynq_zc702_config"<br>
meta-facebook/meta-tiogapass/conf/machine/tiogapass.conf:UBOOT_MACHINE = "ast_g5_ncsi_config"<br>
meta-facebook/meta-yosemitev2/conf/machine/yosemitev2.conf:UBOOT_MACHINE = "ast_g5_ncsi_config"<br>
```<br>
<br>
Essentially, you want to configure your platform (i.e. in ${MACHINE}.conf) with:<br>
<br>
```<br>
UBOOT_MACHINE = "ast_g5_phy_config"<br>
```<br>
<br>
> <br>
> 2、There are lot of recipes under directory meta-phosphor, How does <br>
> bitbake choose specific recipes? I read the manual of bitbake and the <br>
> project of openbmc, and I didn't find a way to choose. openbmc has many <br>
> recipes, we can't use them all。<br>
<br>
This is handled by variously by packagegroups, DISTRO_FEATURES,<br>
MACHINE_FEATURES and IMAGE_INSTALL. Additionally if we look at<br>
e.g. meta-ibm/meta-witherspoon/conf/machine/witherspoon.conf, we find:<br>
<br>
```<br>
require conf/machine/include/ast2500.inc<br>
require conf/machine/include/obmc-bsp-common.inc<br>
require conf/machine/include/openpower.inc<br>
require conf/machine/include/p9.inc<br>
```<br>
<br>
If we drill down through these files we find things like<br>
meta-aspeed/conf/machine/include/aspeed.inc:<br>
<br>
MACHINE_EXTRA_RRECOMMENDS += "udev-aspeed-vuart udev-aspeed-mtd-partitions"<br>
<br>
So if recommended packages are to be installed, then these two packages<br>
will be installed on ASPEED-based images.<br>
<br>
The hierarchy of `require` directives helps build up the set of packages to be<br>
installed in the image via at least the variables I mentioned above.<br>
<br>
> <br>
> 3、There are many common recipes under openbmc / meta-phosphor, is <br>
> there any documentation about the architecture and detailed <br>
> implementation principles of each recipe? For example, chassis power <br>
> control.<br>
<br>
Less so documentation of the recipes themselves, but you'll find design<br>
discussions, cheatsheets and guides in the docs repository:<br>
<br>
<a href="https://github.com/openbmc/docs/">https://github.com/openbmc/docs/</a><br>
<br>
Hope that helps.<br>
<br>
Andrew<br>
</div>
</span></font></div>
</div>
</body>
</html>