All of lore.kernel.org
 help / color / mirror / Atom feed
* How to change the default output serial
@ 2020-09-20  7:31 =?gb18030?B?yL3RqQ==?=
  2020-10-07 19:52 ` Anton Kachalov
  0 siblings, 1 reply; 3+ messages in thread
From: =?gb18030?B?yL3RqQ==?= @ 2020-09-20  7:31 UTC (permalink / raw)
  To: =?gb18030?B?b3BlbmJtYw==?=

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 566 bytes --]

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 CONFIG_SYS_NS16550_COM1 AST_UART2_BASE(whice is AST_UART0_BASE).
Am I doing something wrong? Do you have any suggestion?
Thanks!!
sgc.

[-- Attachment #2: Type: text/html, Size: 711 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to change the default output serial
  2020-09-20  7:31 How to change the default output serial =?gb18030?B?yL3RqQ==?=
@ 2020-10-07 19:52 ` Anton Kachalov
  0 siblings, 0 replies; 3+ messages in thread
From: Anton Kachalov @ 2020-10-07 19:52 UTC (permalink / raw)
  To: 冉雪; +Cc: openbmc

[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]

Hello, sgc.

You should also enable the uart2 in DTS:

arch/arm/boot/dts/aspeed-bmc-opp-romulus.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:

#define CONFIG_CONS_INDEX 2
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@qq.com> 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
> CONFIG_SYS_NS16550_COM1 AST_UART2_BASE(whice is AST_UART0_BASE).
> Am I doing something wrong? Do you have any suggestion?
> Thanks!!
> sgc.
>

[-- Attachment #2: Type: text/html, Size: 1683 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* How to change the default output serial
@ 2020-09-19 12:28 =?gb18030?B?wOa7qNTC?=
  0 siblings, 0 replies; 3+ messages in thread
From: =?gb18030?B?wOa7qNTC?= @ 2020-09-19 12:28 UTC (permalink / raw)
  To: =?gb18030?B?b3BlbmJtYw==?=

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 568 bytes --]

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=&amp;uart2,bootargs = "console = ttyS1" in chosen.
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).
Am I doing something wrong? Do you have any suggestion?

Thanks!!
sgc.

[-- Attachment #2: Type: text/html, Size: 915 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-07 19:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-20  7:31 How to change the default output serial =?gb18030?B?yL3RqQ==?=
2020-10-07 19:52 ` Anton Kachalov
  -- strict thread matches above, loose matches on Subject: below --
2020-09-19 12:28 =?gb18030?B?wOa7qNTC?=

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.