All of lore.kernel.org
 help / color / mirror / Atom feed
* STEPS FOR CHANGING THE DEFAULT SERIAL CONSOLE TO UART2
@ 2020-11-16 20:30 Radhika Pradeep
  2020-11-16 21:42 ` Joseph Reynolds
  0 siblings, 1 reply; 6+ messages in thread
From: Radhika Pradeep @ 2020-11-16 20:30 UTC (permalink / raw)
  To: openbmc

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

Hi ,

We have a BMC board based on the AST2520 with UART2 set as serial
console.We are using the openbmc codebase based on ast2500 with aspeed-g5.

Since the default uart console is set to uart5 we are not able to get the
serial console output.

We just got a "mw" command used in uboot to change the register for UART5
TO IO2 routing which can only be done temporarily.

Because we have the console connected to UART2 only. So we need to get the
console output at UART2 each time the board boots up.

Could you please provide us with the information on how to change routing
permanently or the information about  the file which can be modified to
change the register values permanently to get the uart2 console output.?


Thanks and Regards,

Radhika

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

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

* Re: STEPS FOR CHANGING THE DEFAULT SERIAL CONSOLE TO UART2
  2020-11-16 20:30 STEPS FOR CHANGING THE DEFAULT SERIAL CONSOLE TO UART2 Radhika Pradeep
@ 2020-11-16 21:42 ` Joseph Reynolds
  2020-11-16 23:29   ` Andrew Jeffery
  0 siblings, 1 reply; 6+ messages in thread
From: Joseph Reynolds @ 2020-11-16 21:42 UTC (permalink / raw)
  To: openbmc, Radhika Pradeep

On 11/16/20 2:30 PM, Radhika Pradeep wrote:
> Hi , We have a BMC board based on the AST2520 with UART2 set as serial...
> This Message Is From an External Sender
> This message came from outside your organization.
>
> Hi ,
>
> We have a BMC board based on the AST2520 with UART2 set as serial 
> console.We are using the openbmc codebase based on ast2500 with aspeed-g5.
>
> Since the default uart console is set to uart5 we are not able to get 
> the serial console output.
>
> We just got a "mw" command used in uboot to change the register for 
> UART5 TO IO2 routing which can only be done temporarily.
>
> Because we have the console connected to UART2 only. So we need to get 
> the console output at UART2 each time the board boots up.
>
> Could you please provide us with the information on how to change 
> routing permanently or the information about  the file which can be 
> modified to change the register values permanently to get the uart2 
> console output.?
>

Did you see UARTs described here? 
https://github.com/openbmc/docs/blob/master/architecture/interface-overview.md
Which links to this?  https://github.com/openbmc/obmc-console

- Joseph

>
> Thanks and Regards,
>
> Radhika
>
>


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

* Re: STEPS FOR CHANGING THE DEFAULT SERIAL CONSOLE TO UART2
  2020-11-16 21:42 ` Joseph Reynolds
@ 2020-11-16 23:29   ` Andrew Jeffery
  2020-11-17 14:31     ` Joseph Reynolds
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Jeffery @ 2020-11-16 23:29 UTC (permalink / raw)
  To: Joseph Reynolds, openbmc, Radhika Pradeep



On Tue, 17 Nov 2020, at 08:12, Joseph Reynolds wrote:
> On 11/16/20 2:30 PM, Radhika Pradeep wrote:
> > Hi , We have a BMC board based on the AST2520 with UART2 set as serial...
> > This Message Is From an External Sender
> > This message came from outside your organization.
> >
> > Hi ,
> >
> > We have a BMC board based on the AST2520 with UART2 set as serial 
> > console.We are using the openbmc codebase based on ast2500 with aspeed-g5.
> >
> > Since the default uart console is set to uart5 we are not able to get 
> > the serial console output.
> >
> > We just got a "mw" command used in uboot to change the register for 
> > UART5 TO IO2 routing which can only be done temporarily.
> >
> > Because we have the console connected to UART2 only. So we need to get 
> > the console output at UART2 each time the board boots up.
> >
> > Could you please provide us with the information on how to change 
> > routing permanently or the information about  the file which can be 
> > modified to change the register values permanently to get the uart2 
> > console output.?
> >
> 
> Did you see UARTs described here? 
> https://github.com/openbmc/docs/blob/master/architecture/interface-overview.md
> Which links to this?  https://github.com/openbmc/obmc-console
> 

The query is about the BMC console, not the host console, so obmc-console and 
the related documentation is not relevant here.

Andrew

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

* Re: STEPS FOR CHANGING THE DEFAULT SERIAL CONSOLE TO UART2
  2020-11-16 23:29   ` Andrew Jeffery
@ 2020-11-17 14:31     ` Joseph Reynolds
  2020-11-17 16:40       ` Patrick Williams
  0 siblings, 1 reply; 6+ messages in thread
From: Joseph Reynolds @ 2020-11-17 14:31 UTC (permalink / raw)
  To: Andrew Jeffery, openbmc, Radhika Pradeep

On 11/16/20 5:29 PM, Andrew Jeffery wrote:
>
> On Tue, 17 Nov 2020, at 08:12, Joseph Reynolds wrote:
>> On 11/16/20 2:30 PM, Radhika Pradeep wrote:
>>> Hi , We have a BMC board based on the AST2520 with UART2 set as serial...
>>> This Message Is From an External Sender
>>> This message came from outside your organization.
>>>
>>> Hi ,
>>>
>>> We have a BMC board based on the AST2520 with UART2 set as serial
>>> console.We are using the openbmc codebase based on ast2500 with aspeed-g5.
>>>
>>> Since the default uart console is set to uart5 we are not able to get
>>> the serial console output.
>>>
>>> We just got a "mw" command used in uboot to change the register for
>>> UART5 TO IO2 routing which can only be done temporarily.
>>>
>>> Because we have the console connected to UART2 only. So we need to get
>>> the console output at UART2 each time the board boots up.
>>>
>>> Could you please provide us with the information on how to change
>>> routing permanently or the information about  the file which can be
>>> modified to change the register values permanently to get the uart2
>>> console output.?
>>>
>> Did you see UARTs described here?
>> https://github.com/openbmc/docs/blob/master/architecture/interface-overview.md
>> Which links to this?  https://github.com/openbmc/obmc-console
>>
> The query is about the BMC console, not the host console, so obmc-console and
> the related documentation is not relevant here.

Thanks for clarifying.  In that case, see 
https://github.com/openbmc/docs/blob/master/architecture/interface-overview.md#bmc-serial
which unfortunately does not yet have any details.  :-(

Is the BMC's console configured in the machine config file using the 
Yocyo/poky SERIAL_CONSOLE or SERIAL_CONSOLES bitbake variable?
For example, here 
https://github.com/openbmc/openbmc/blob/master/meta-aspeed/conf/machine/evb-ast2500.conf

- Joseph

>
> Andrew


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

* Re: STEPS FOR CHANGING THE DEFAULT SERIAL CONSOLE TO UART2
  2020-11-17 14:31     ` Joseph Reynolds
@ 2020-11-17 16:40       ` Patrick Williams
  2020-11-17 19:30         ` Joseph Reynolds
  0 siblings, 1 reply; 6+ messages in thread
From: Patrick Williams @ 2020-11-17 16:40 UTC (permalink / raw)
  To: Joseph Reynolds; +Cc: Andrew Jeffery, openbmc, Radhika Pradeep

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

On Tue, Nov 17, 2020 at 08:31:35AM -0600, Joseph Reynolds wrote:
> On 11/16/20 5:29 PM, Andrew Jeffery wrote:
> > On Tue, 17 Nov 2020, at 08:12, Joseph Reynolds wrote:
> >> On 11/16/20 2:30 PM, Radhika Pradeep wrote:

> Thanks for clarifying.  In that case, see 
> https://github.com/openbmc/docs/blob/master/architecture/interface-overview.md#bmc-serial
> which unfortunately does not yet have any details.  :-(
> 
> Is the BMC's console configured in the machine config file using the 
> Yocyo/poky SERIAL_CONSOLE or SERIAL_CONSOLES bitbake variable?
> For example, here 
> https://github.com/openbmc/openbmc/blob/master/meta-aspeed/conf/machine/evb-ast2500.conf
> 

I think there are three places that the BMC UART needs to be updated:

- Kernel command line
    - This comes from U-boot since that is what launches the kernel and
      passes along the command line to the kernel.
    - In U-boot v2016.07-aspeed-openbmc this was in ast-common.h, but I
      don't know where it went in v2019.04-aspeed-openbmc.
- U-boot itself
    - I think this is in the same ast-common.h under CONFIG_CONS_INDEX.
- Userspace via SERIAL_CONSOLE.
    - This is the config you pointed to above.

-- 
Patrick Williams

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: STEPS FOR CHANGING THE DEFAULT SERIAL CONSOLE TO UART2
  2020-11-17 16:40       ` Patrick Williams
@ 2020-11-17 19:30         ` Joseph Reynolds
  0 siblings, 0 replies; 6+ messages in thread
From: Joseph Reynolds @ 2020-11-17 19:30 UTC (permalink / raw)
  To: Patrick Williams; +Cc: Andrew Jeffery, openbmc, Radhika Pradeep

On 11/17/20 10:40 AM, Patrick Williams wrote:
> On Tue, Nov 17, 2020 at 08:31:35AM -0600, Joseph Reynolds wrote:
>> On 11/16/20 5:29 PM, Andrew Jeffery wrote:
>>> On Tue, 17 Nov 2020, at 08:12, Joseph Reynolds wrote:
>>>> On 11/16/20 2:30 PM, Radhika Pradeep wrote:
>> Thanks for clarifying.  In that case, see
>> https://github.com/openbmc/docs/blob/master/architecture/interface-overview.md#bmc-serial
>> which unfortunately does not yet have any details.  :-(
>>
>> Is the BMC's console configured in the machine config file using the
>> Yocyo/poky SERIAL_CONSOLE or SERIAL_CONSOLES bitbake variable?
>> For example, here
>> https://github.com/openbmc/openbmc/blob/master/meta-aspeed/conf/machine/evb-ast2500.conf
>>
> I think there are three places that the BMC UART needs to be updated:
>
> - Kernel command line
>      - This comes from U-boot since that is what launches the kernel and
>        passes along the command line to the kernel.
>      - In U-boot v2016.07-aspeed-openbmc this was in ast-common.h, but I
>        don't know where it went in v2019.04-aspeed-openbmc.
> - U-boot itself
>      - I think this is in the same ast-common.h under CONFIG_CONS_INDEX.
> - Userspace via SERIAL_CONSOLE.
>      - This is the config you pointed to above.

Patrick,

Thanks for the details.  I've massaged them into our nascent 
configuration guide:
https://github.com/openbmc/openbmc/wiki/Configuration-guide#bmc-console-shell-access

- Joseph


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

end of thread, other threads:[~2020-11-17 19:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-16 20:30 STEPS FOR CHANGING THE DEFAULT SERIAL CONSOLE TO UART2 Radhika Pradeep
2020-11-16 21:42 ` Joseph Reynolds
2020-11-16 23:29   ` Andrew Jeffery
2020-11-17 14:31     ` Joseph Reynolds
2020-11-17 16:40       ` Patrick Williams
2020-11-17 19:30         ` Joseph Reynolds

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.