Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2016 15:25:55 -0300
From:      Luiz Otavio O Souza <lists.br@gmail.com>
To:        bob prohaska <fbsd@www.zefox.net>
Cc:        Paul Mather <paul@gromit.dlib.vt.edu>, freebsd-arm <freebsd-arm@freebsd.org>, Ian Lepore <ian@freebsd.org>
Subject:   Re: Bizarre clone attempt failures on Raspberry Pi2...
Message-ID:  <CAB=2f8zyoMZdH8eEynA2iwPD9QeEf2K0-cNH6Z48_X8KZkgR=Q@mail.gmail.com>
In-Reply-To: <20160715172754.GG33486@www.zefox.net>
References:  <398ae56c-8893-f188-c210-cf7f19ccf433@denninger.net> <1468518953.72182.219.camel@freebsd.org> <7a91fc79-1c85-fac8-aa3f-db90592f3f44@denninger.net> <bec46aff-a4d5-9c4d-49d0-78534b13f719@denninger.net> <E01579F5-9562-4E51-9CFB-EA510460A4C8@gromit.dlib.vt.edu> <60b6e156-981e-9fbd-b68c-0daae1961286@denninger.net> <04391154-A38E-46CD-B570-B2BECFD19022@gromit.dlib.vt.edu> <d1aba096-e645-04df-dfda-5a9284250960@denninger.net> <1468597885.72182.286.camel@freebsd.org> <D9A9D485-4564-4F58-8B6D-564D4C86229E@gromit.dlib.vt.edu> <20160715172754.GG33486@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 15 July 2016 at 14:27, bob prohaska wrote:
> On Fri, Jul 15, 2016 at 12:33:14PM -0400, Paul Mather wrote:
>>
>> Incidentally, does setting console="vidconsole" in /boot/loader.conf fix the problem of a lack of /etc/rc messages for those who are using an HDMI monitor as their primary/only console?
>
> Not with that particular syntax. It just produces a message about "bad definition". HDMI
> output ends with the kernel probe, resuming with a login prompt.

No, setting console to vidconsole doesn't work.

See conscontrol(8), the first high level console is always used and in
this case, it is the serial console as the vt console comes too late
in boot (there is another kind of driver that implements the vt_early
support to cope with that, but I can't say if that is a doable
solution for RPi - IIRC I once thought it was possible...).

That said, I have this _hack_ that changes the high level console to
vt once it is attached (not a real solution, just quick test for debug
purposes):

Index: sys/dev/vt/vt_core.c
===================================================================
--- sys/dev/vt/vt_core.c        (revision 279665)
+++ sys/dev/vt/vt_core.c        (working copy)
@@ -2686,6 +2686,7 @@
         * it.
         */
        termcn_cnregister(vd->vd_windows[VT_CONSWINDOW]->vw_terminal);
+       cnselect(vd->vd_windows[VT_CONSWINDOW]->vw_terminal->consdev);
 }

 static void


After the boot you can always change your console device back and
forth with the sysctl kern.console.

The real solution is implement what Warner said, a real multiple
device support for high level console.


Luiz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB=2f8zyoMZdH8eEynA2iwPD9QeEf2K0-cNH6Z48_X8KZkgR=Q>