From owner-freebsd-arm@freebsd.org Fri Jul 15 18:25:57 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7199AB9999C for ; Fri, 15 Jul 2016 18:25:57 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-yw0-x236.google.com (mail-yw0-x236.google.com [IPv6:2607:f8b0:4002:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2881C1979; Fri, 15 Jul 2016 18:25:57 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: by mail-yw0-x236.google.com with SMTP id i12so108348862ywa.1; Fri, 15 Jul 2016 11:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2gDviQ6ZQrXhgJZX3CO06CWhSbRlGpCnmDxFJAV12ns=; b=dSVKpaB3IE0/cVmszqLlIeyP8ehfyF6KRbPDPB7vuhzXs8SvxaCK4qGCTmdaEEdvBf F4m9FXydLOX3cUYRvWc5JgH+LMl837rLWF70BMgPKvpqJqpkMjXTcPg7UO7uDTQtqkRd oRTVxuf07IQnInN6SIv5cjt1UVMk6wxG7r/viK/qx720nnSJV8DQ+5ZB1rPFOAC8kpZ4 wXMQkGw2nBCoPcrnU8ShCgP7l3wHtwwFuKFh5IEe+2wIY5tcTg1SbaT2wOlxP31lglDg 3TM7pRv1KcX2ZN89ZPeVYgcMU0mjeZggIuPJEDyvvw4BiCePvps/bw6n5L1uX7TVgK8s Xb3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2gDviQ6ZQrXhgJZX3CO06CWhSbRlGpCnmDxFJAV12ns=; b=OHvX/US5e8eCgwr3z0my3SVwFZWKrmyU75ZKNIp28QaG6sP4CLWrPD56239uFpYEXe /zRNoLbet2vEjppj06ARhVU8KI5wJh9UHJq9ZlsS1MjV1fuTR/eaZGumQ5F/JBJ4WCaC Az/NCF52fbmdrtq+4IFUY4Bc2wp39pkb1DnLIGv6ns6zvRZ8llPE+PcFgjozWin1V5Da bcPAkT7nIYJ/N8L7NmAbFuuinWqsC18SQw1NPB+6+5UYqSRX1Hi9xFWTFn3108npe813 e71/3oHzNbtrdWdHGOr1pmRbBUzH4tzXPhnjek007cbNtFmc5Uss0qb33bpOt/CQyWgT yL9A== X-Gm-Message-State: ALyK8tLDjkI5PyTsPBuh1/HIyaDbcgGR3oHoZ5w1PyqXO4+l8Q5Ji/nGZF3IvkxJVynaQNhkKfqUWLMcd4ueoQ== X-Received: by 10.37.230.202 with SMTP id d193mr14820971ybh.111.1468607156283; Fri, 15 Jul 2016 11:25:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.137.3 with HTTP; Fri, 15 Jul 2016 11:25:55 -0700 (PDT) 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> <60b6e156-981e-9fbd-b68c-0daae1961286@denninger.net> <04391154-A38E-46CD-B570-B2BECFD19022@gromit.dlib.vt.edu> <1468597885.72182.286.camel@freebsd.org> <20160715172754.GG33486@www.zefox.net> From: Luiz Otavio O Souza Date: Fri, 15 Jul 2016 15:25:55 -0300 Message-ID: Subject: Re: Bizarre clone attempt failures on Raspberry Pi2... To: bob prohaska Cc: Paul Mather , freebsd-arm , Ian Lepore Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2016 18:25:57 -0000 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