How to change the default output serial

Anton Kachalov rnouse at
Thu Oct 8 06:52:25 AEDT 2020

Hello, sgc.

You should also enable the uart2 in DTS:


There is a code like:

&uart5 {
    status = "okay";

Change it to uart2 as well.

About the u-boot changes, it might be better to set:

and define CONFIG_SYS_NS16550_COM2 value instead.

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.

On Mon, 21 Sep 2020 at 01:27, 冉雪 <869883681 at> wrote:

> Hello there
> 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?
> 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.
> Then, I modified the include/config/ast-common.h file in uboot , #define
> Am I doing something wrong? Do you have any suggestion?
> Thanks!!
> sgc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the openbmc mailing list