All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Kerr <jk@ozlabs.org>
To: xiuzhi <1450335857@qq.com>
Cc: openbmc <openbmc@lists.ozlabs.org>
Subject: Re: Re:  SOL,obmc-console-client can't connect to the host OS
Date: Mon, 26 Nov 2018 16:41:06 +0800	[thread overview]
Message-ID: <ae8e1ca665138cf469fc728a0e6568bc719e51a5.camel@ozlabs.org> (raw)
In-Reply-To: <tencent_4DC97888286A14BA6909E22C@qq.com>

HI Xiuzhi,

>    Thank you for your patient explanation extremely . 

No problem!

> Now, 'cat /dev/ttyS3' on AST2500 can read string from the host ttyS0.

OK, great. So ttyS3 is the device that we want obmc-console-server to be
using.

> I also changed or removed  the "local-tty" from ttyS5 to  ttyS3, and
> then
>  systemctl restart obmc-console\@ttyVUART0, It didn't work.
> root@haiguang1:~# strace obmc-console-server --config /etc/obmc-
> console.conf ttyVUART0
> execve("/usr/sbin/obmc-console-server", ["obmc-console-server", "
> --config", "/etc/obmc-console.conf", "ttyVUART0"], 0x7edd0d5c /* 15
> vars */) = 0

You're still passing ttyVUART0 to the obmc-console-server command-line,
so it will try to use this for the connection to the host. In your
system though, you want it to be using ttyS3 for the connection to the
host.

So, you should be running something like this instead:

   obmc-console-server --config /etc/obmc-console.conf ttyS3

And because you're not using the VUART device, you do not need to
specify the LPC address (with the `lpc-address = x`) in obmc-
console.conf. You should be able to remove that line.

We only need on our platforms this configure the VUART to be at the
correct address on the AST2500 LPC bus. Because you're not using that,
you don't need the lpc-address line.

> Why and how to  achieve this link the ttyVUART0 to ttyS3 by modifying
> the compilation configuration ?

No compiled configuration changes are needed - just tell obmc-console-
server to use ttyS3 rather than ttyVUART, by modifying the command-line
argument.

Regards,


Jeremy

      reply	other threads:[~2018-11-26  8:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.13.1542934803.27188.openbmc@lists.ozlabs.org>
2018-11-23  4:48 ` SOL,obmc-console-client can't connect to the host OS =?gb18030?B?eGl1emhp?=
2018-11-23  5:13   ` Jeremy Kerr
2018-11-23  9:39     ` =?gb18030?B?eGl1emhp?=
2018-11-25 10:42       ` Jeremy Kerr
2018-11-26  8:18         ` xiuzhi
2018-11-26  8:41           ` Jeremy Kerr [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ae8e1ca665138cf469fc728a0e6568bc719e51a5.camel@ozlabs.org \
    --to=jk@ozlabs.org \
    --cc=1450335857@qq.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.