<div dir="ltr">I remember a discussion in IRC about how to modify obmc-console for multiple vuarts, etc. I asked then if it made sense to entirely define the vuart in the dts (specify sirq and lpc_addr) instead of having obmc-console do it. If we need to setup vuart aliases in the dts anyway, that seems to make even more sense.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 16, 2016 at 5:15 PM, Joel Stanley <span dir="ltr"><<a href="mailto:joel@jms.id.au" target="_blank">joel@jms.id.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Xo,<br>
<span class=""><br>
On Wed, Aug 17, 2016 at 9:55 AM, Xo Wang <<a href="mailto:xow@google.com">xow@google.com</a>> wrote:<br>
><br>
>> We need to use a mechanism to tell userspace which device is the<br>
>> vuart. udev? systemd?<br>
><br>
> I think that's covered by this userspace configuration file:<br>
> <a href="https://github.com/openbmc/openbmc/blob/master/meta-phosphor/common/recipes-phosphor/obmc-console/obmc-console/obmc-console.conf" rel="noreferrer" target="_blank">https://github.com/openbmc/<wbr>openbmc/blob/master/meta-<wbr>phosphor/common/recipes-<wbr>phosphor/obmc-console/obmc-<wbr>console/obmc-console.conf</a><br>
<br>
</span>Yeah. Ideally we would have systemd/udev populate this configuration<br>
file. There has been some work in this area; I think there are a few<br>
prerequisites from our systemd setup to land before we can turn that<br>
on.<br>
<span class=""><br>
> It specifies the VUART console device as ttyS5, which doesn't exist using<br>
> our current DTS for the EVB.<br>
><br>
>> $ ls /sys/devices/platform/ahb/ahb:<wbr>apb/1e787000.vuart/tty<br>
>> ttyS0<br>
>><br>
>> We could also set an alias in the device tree?<br>
><br>
> That's how I did my testing for AST2500 EVB connected to an LPC host. This<br>
> enabled and aliased the vuart for me (please note s/uart6/vuart/g for<br>
> dev-4.7):<br>
<br>
</span>I had a similar idea. If we can't think of a better solution then I<br>
will commit a patch to this effect today.<br>
<br>
Cheers,<br>
<br>
Joel<br>
<div class="HOEnZb"><div class="h5"><br>
> diff --git a/arch/arm/boot/dts/aspeed-<wbr>ast2500-evb.dts<br>
> b/arch/arm/boot/dts/aspeed-<wbr>ast2500-evb.dts<br>
> index 28b0045..51b032d 100644<br>
> --- a/arch/arm/boot/dts/aspeed-<wbr>ast2500-evb.dts<br>
> +++ b/arch/arm/boot/dts/aspeed-<wbr>ast2500-evb.dts<br>
> @@ -8,6 +8,7 @@<br>
><br>
> aliases {<br>
> serial4 = &uart5;<br>
> + serial5 = &uart6;<br>
> };<br>
><br>
> chosen {<br>
> @@ -39,6 +40,10 @@<br>
> status = "okay";<br>
> };<br>
><br>
> +&uart6 {<br>
> + status = "okay";<br>
> +};<br>
> +<br>
> &mac0 {<br>
> status = "okay";<br>
> };<br>
><br>
><br>
><br>
><br>
> cheers<br>
> xo<br>
><br>
> ______________________________<wbr>_________________<br>
> openbmc mailing list<br>
> <a href="mailto:openbmc@lists.ozlabs.org">openbmc@lists.ozlabs.org</a><br>
> <a href="https://lists.ozlabs.org/listinfo/openbmc" rel="noreferrer" target="_blank">https://lists.ozlabs.org/<wbr>listinfo/openbmc</a><br>
______________________________<wbr>_________________<br>
openbmc mailing list<br>
<a href="mailto:openbmc@lists.ozlabs.org">openbmc@lists.ozlabs.org</a><br>
<a href="https://lists.ozlabs.org/listinfo/openbmc" rel="noreferrer" target="_blank">https://lists.ozlabs.org/<wbr>listinfo/openbmc</a><br>
</div></div></blockquote></div><br></div>