From: ed sandberg <ed.sandberg@adventiumlabs.com>
To: Ian Campbell <ian.campbell@citrix.com>, xen-devel@lists.xen.org
Subject: Re: Xen on Arm Arndale Exynos5250
Date: Fri, 06 Nov 2015 08:38:23 -0600 [thread overview]
Message-ID: <563CBB5F.5030507@adventiumlabs.com> (raw)
In-Reply-To: <1446799928.1604.22.camel@citrix.com>
Thanks for the help Ian,
I tried using ttySAC2 in /etc/init/ttySAC2.conf but I still am not
prompted to login on the serial output. I also tried creating
/etc/init/ttyhvc0.conf. I think that is the correct place to start
getty from. There are other similar files in that location and this page:
https://help.ubuntu.com/community/SerialConsoleHowto
says that karmic and newer start console processes from /etc/init/
files. I have also tried using /etc/inittab but that doesn't seem to
help.
The linaro prebuilt image (no xen) boots and I am prompted to log in so
I tried comparing the boot process. I found that the boot.txt file on
the boot partition had the following line:
setenv bootargs "console=tty0 console=ttySAC2,115200n8
drm_kms_helper.edid_firmware=edid-1920x1080.fw
root=UUID=bf05a5f4-06bf-4c99-8729-e20678372aea rootwait ro"
that makes me confident that you are correct about the console name
being ttySAC2. I tried editing my environment variables to be more
similar to this as such:
# setenv xen_bootargs 'console=dtuart dtuart=/serial@12C20000 dom0_mem=512M'
# setenv dom0_bootargs 'console=hvc0 console=ttySAC2,115200n8
ignore_loglevel psci=enable clk_ignore_unused root=/dev/mmcblk1p3'
but that brings me to the same debug console with this instruction:
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch
input to Xen)
I can switch input to Xen and then I can get diagnostic info but that is
a far as I get.
On 11/06/2015 02:52 AM, Ian Campbell wrote:
> On Thu, 2015-11-05 at 12:59 -0600, ed sandberg wrote:
>>
>
>> My initial thought was that I needed to add a getty process on COM3, so
>> that when I switched to Dom0 mode I could login. This page seems to
>> agree with me:
>>
>> http://wiki.xenproject.org/wiki/Xen_Serial_Console
>>
>> I tried to do so by creating a ttyS2.conf file under /etc/init/ that
>> read as follows:
>>
>> start on stopped rc RUNLEVEL=[2345]
>> stop on runlevel [!2345]
>>
>> respawn
>> exec /sbin/getty -8 115200 ttyS2
>>
>> with that in place I was still not prompted to login but it had an
>> effect because the serial connection would become unresponsive after a
>> few minutes.
>
> IIRC Linux's name for the console serial device on Arndale is ttySAC2,
> so that is what you would want when booting natively (unless Linaro
> have done some pretty extreme patching, which I wouldn't expect. I've
> only used mainline on this platform).
>
> If you are running as dom0 under Xen you want to have a getty on
> "/dev/hvc0", the Xen PV console device, since the real UART will be
> owned by Xen (due to the "dtuart=/serial@12C20000" which you will be
> passing on Xen's command line).
>
> I don't think any of the Arndale devices have multiple serial ports
> exposed, but if they did then you could use separate ones for Xen's and
> dom0's console, but the Linux name for dom0 would still be ttySAC<n>
> not ttyS<n>.
>
> When you created /etc/init/ttyS2.conf were there other similar files
> around in that directory? I ask because that sounds like an upstart
> path and I'm unsure if Saucy still uses upstart.
>
> Ian.
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
next prev parent reply other threads:[~2015-11-06 14:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-05 18:59 Xen on Arm Arndale Exynos5250 ed sandberg
2015-11-06 8:52 ` Ian Campbell
2015-11-06 14:38 ` ed sandberg [this message]
2015-11-06 15:34 ` Ian Campbell
2015-11-06 18:51 ` ed sandberg
2015-11-09 12:09 ` Ian Campbell
2015-11-11 13:26 ` ed sandberg
2015-11-11 13:53 ` Ian Campbell
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=563CBB5F.5030507@adventiumlabs.com \
--to=ed.sandberg@adventiumlabs.com \
--cc=ian.campbell@citrix.com \
--cc=xen-devel@lists.xen.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.