how to change debug uart from uart5 to uart1 on ast2500 romulus?
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
Is it AST2500-EVB?
2020-07-24
chunhui.jia
发件人:不语 <[email protected]>
发送时间:2020-07-23 17:54
主题:how to change debug uart from uart5 to uart1 on ast2500 romulus? 收件人:"openbmc"<[email protected]>
抄送:
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
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" <[email protected]> wrote:
Is it AST2500-EVB?
2020-07-24
chunhui.jia
发件人:不语 <[email protected]>
发送时间:2020-07-23 17:54
主题:how to change debug uart from uart5 to uart1 on ast2500 romulus? 收件人:"openbmc"<[email protected]>
抄送:
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
Quoted 17 lines · 不语
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_BOOTARGSto "console=ttyS0,115200n8 root=/dev/ram
rw" on ubootast-g5.c
Quoted 6 lines
(2) modify stdout-path = &uart1; bootargs = "console=ttyS0,115200
earlyprintk"; on kernelaspeed-bmc-opp-romulus.dtsAny 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