<div dir="ltr">Hello, sgc.<div><br></div><div>You should also enable the uart2 in DTS:</div><div><br></div><div>arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts <br></div><div><br></div><div>There is a code like:</div><div><br></div><div>&uart5 {<br>    status = "okay";<br>};<br></div><div><br></div><div>Change it to uart2 as well.</div><div><br></div><div>About the u-boot changes, it might be better to set:</div><div><br></div><div>#define CONFIG_CONS_INDEX 2<br></div><div>and define CONFIG_SYS_NS16550_COM2 value instead.</div><div><br></div><div>Which u-boot branch do you use? I've checked with v2016.05, there is only include/configs/ast-g5.h and no ast-common.h at all.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 21 Sep 2020 at 01:27, 冉雪 <<a href="mailto:869883681@qq.com">869883681@qq.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>Hello there</div><div>I am trying to use openbmc recently. The board uses uart2 as the output of BMC. How can I change the default uart from uart5 to uart2?</div><div>The image I compiled on the basis of romulus, first I modified aspeed-bmc-opp-romulus.dts, I opened the uart2 serial port in dts, and modified stdout-path=&uart2,bootargs = "console = ttyS1" in chosen.</div><div>Then, I modified the include/config/ast-common.h file in uboot , #define CONFIG_SYS_NS16550_COM1 AST_UART2_BASE(whice is AST_UART0_BASE).</div><div>Am I doing something wrong? Do you have any suggestion?</div><div>Thanks!!</div><div>sgc.</div></div></blockquote></div>