All of lore.kernel.org
 help / color / mirror / Atom feed
* how to change debug uart from uart5 to uart1 on ast2500 romulus?
@ 2020-07-23  9:54 不语
  2020-07-24  2:38 ` chunhui.jia
  0 siblings, 1 reply; 4+ messages in thread
From: 不语 @ 2020-07-23  9:54 UTC (permalink / raw)
  To: openbmc

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

Dear opembmcer,

I am green to openbmc and I want to learn something about ast2500.Now I have one board ast2500 and 

use openbmc code romulus.I know the default debug uart is uart5 and I want to change it to uart1,because

on my board, uart1 is rs232.I have tried these ,but not effective.

(1) set the hardware strap register bit29 0 on ast-g5.c

(2) set CONFIG_SYS_NS16550_COM1 from 0x1E784000 to 0x1E783000




Any addvice will be appricated.

                                             Thanks,

                                             JunHeng

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

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

* Re: how to change debug uart from uart5 to uart1 on ast2500 romulus?
  2020-07-23  9:54 how to change debug uart from uart5 to uart1 on ast2500 romulus? 不语
@ 2020-07-24  2:38 ` chunhui.jia
  2020-07-24  7:43   ` 不语
  0 siblings, 1 reply; 4+ messages in thread
From: chunhui.jia @ 2020-07-24  2:38 UTC (permalink / raw)
  To: 不语, openbmc

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

Is it AST2500-EVB?

2020-07-24 

chunhui.jia 



发件人:不语 <junhengdi@163.com>
发送时间:2020-07-23 17:54
主题:how to change debug uart from uart5 to uart1 on ast2500 romulus?
收件人:"openbmc"<openbmc@lists.ozlabs.org>
抄送:

Dear opembmcer,
I am green to openbmc and I want to learn something about ast2500.Now I have one board ast2500 and 
use openbmc code romulus.I know the default debug uart is uart5 and I want to change it to uart1,because
on my board, uart1 is rs232.I have tried these ,but not effective.
(1) set the hardware strap register bit29 0 on ast-g5.c
(2) set CONFIG_SYS_NS16550_COM1 from 0x1E784000 to 0x1E783000


Any addvice will be appricated.
                                             Thanks,
                                             JunHeng

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

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

* Re:Re:  how to change debug uart from uart5 to uart1 on ast2500 romulus?
  2020-07-24  2:38 ` chunhui.jia
@ 2020-07-24  7:43   ` 不语
  2020-09-03  4:17     ` Andrew Jeffery
  0 siblings, 1 reply; 4+ messages in thread
From: 不语 @ 2020-07-24  7:43 UTC (permalink / raw)
  To: chunhui.jia; +Cc: openbmc

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

Dear openbmcer,

 Thank you for your quick reply.

 My code is based on openbmc meta-ibm/meta-romulus.I think it is similar to ast2500.evb. I tried to change debug console uart5(ttl) to uart1(rs232) on uboot and kernel linux.

 I read the ast2500 manual,find we can set Hardware Strap gpio or Hardware Strap register bit29 to changedebug console between uart5 and uart1 but not effective.

 I also tried these:

 (1) modify CONFIG_BOOTARGS to "console=ttyS0,115200n8 root=/dev/ram rw" on uboot ast-g5.c

 (2) modify stdout-path = &uart1; bootargs = "console=ttyS0,115200 earlyprintk";  on kernel aspeed-bmc-opp-romulus.dts

 

 Any advice will be appreciated.

Thanks,

JunHeng
















At 2020-07-24 10:38:30, "chunhui.jia" <chunhui.jia@linux.intel.com> wrote:

Is it AST2500-EVB?
 
2020-07-24
chunhui.jia
发件人:不语 <junhengdi@163.com>
发送时间:2020-07-23 17:54
主题:how to change debug uart from uart5 to uart1 on ast2500 romulus?
收件人:"openbmc"<openbmc@lists.ozlabs.org>
抄送:
 

Dear opembmcer,

I am green to openbmc and I want to learn something about ast2500.Now I have one board ast2500 and 

use openbmc code romulus.I know the default debug uart is uart5 and I want to change it to uart1,because

on my board, uart1 is rs232.I have tried these ,but not effective.

(1) set the hardware strap register bit29 0 on ast-g5.c

(2) set CONFIG_SYS_NS16550_COM1 from 0x1E784000 to 0x1E783000




Any addvice will be appricated.

                                             Thanks,

                                             JunHeng





 

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

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

* Re: how to change debug uart from uart5 to uart1 on ast2500 romulus?
  2020-07-24  7:43   ` 不语
@ 2020-09-03  4:17     ` Andrew Jeffery
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Jeffery @ 2020-09-03  4:17 UTC (permalink / raw)
  To: openbmc



On Fri, 24 Jul 2020, at 17:13, 不语 wrote:
> Dear openbmcer,
> 
>  Thank you for your quick reply.
> 
>  My code is based on openbmc meta-ibm/meta-romulus.I think it is 
> similar to ast2500.evb. I tried to change debug console uart5(ttl) to 
> uart1(rs232) on uboot and kernel linux.
> 
>  I read the ast2500 manual,find we can set Hardware Strap gpio or 
> Hardware Strap register bit29 to changedebug console between uart5 and 
> uart1 but not effective.
> 
>  I also tried these:
> 
>  (1) modify CONFIG_BOOTARGS to "console=ttyS0,115200n8 root=/dev/ram 
> rw" on uboot ast-g5.c
> 
>  (2) modify stdout-path = &uart1; bootargs = "console=ttyS0,115200 
> earlyprintk";  on kernel aspeed-bmc-opp-romulus.dts
> 
>  
> 
>  Any advice will be appreciated.

Just to be clear here, the "Debug UART" is not the same as the BMC serial port. 
The debug UART is a feature of the Aspeed BMC's that allow for emergency 
recovery in the event of flash corruption; it's a shell implemented in hardware 
that has a small command-set for doing MMIOs that has no dependency on valid 
firmware existing on the flash.

The strapping bit you mention affects which physical serial IO exposes the 
Debug UART functionality, not which IO is used for the BMC console.

The BMC console's UART is typically UART5 (ttyS4), though you could always 
arrange for Linux and u-boot to use UART1. UARTs 1-4 can be plumbed through to 
the host processor for its own purposes. Typically the BMC console (UART5) is 
not exposed outside the system enclosure, so for the purpose of BMC recovery 
the debug UART function can be switched to UART1 (which typically is exposed 
for the purpose of providing a physical host console).

It sounds like you're just trying to expose the BMC console on UART1, so the 
strapping bit is irrelevant. Changing bootargs as you have should be enough to 
get kernel boot messages, but you may need further changes to make 
userspace expose a getty on ttyS0.

Hope that helps.

Andrew

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

end of thread, other threads:[~2020-09-03  4:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-23  9:54 how to change debug uart from uart5 to uart1 on ast2500 romulus? 不语
2020-07-24  2:38 ` chunhui.jia
2020-07-24  7:43   ` 不语
2020-09-03  4:17     ` Andrew Jeffery

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.