From nobody Sun Jan 30 20:58:04 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7D4B4199CDF4 for ; Sun, 30 Jan 2022 20:58:06 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jn3SG37hyz4cNh; Sun, 30 Jan 2022 20:58:06 +0000 (UTC) (envelope-from jsm@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643576286; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W0/q5/v2+1w8oggw8BmTb9M0EuSLbnxzjKRw0J10SNo=; b=CvGZ5rWZfN1zxeAuDlQOhFHWfDyLwFXwzBeiqEdzDcIcUt592VKutDQW0HpG2RG27G5jTK bMYq7/VGnPXZEf/B0Shks2JbXZgJuo90qrlKzM3xC1xZ3QJwODWe5csOkTOBEmciNgKneB EOyfnoCnw0DNjjj6vlvZgJIW/Q37f1oCimIgE0HIIh3SD6/QmuZgDPTwRwRUdHgxqsW1vh K8C/uu03789YfqSPTXvIsJL8C3DTgDKIzU9IEIBXK5go6s867KceSAeSCuUqorHilwNg55 JJV/jc76KLR4rcEt+pNQ3ZcX3iQAw/rQIOeIGqnET6ETz7mJUUWJSufOvDChUQ== Received: from [192.168.1.5] (mail.northatlanticmusicsupplies.com [212.237.182.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jsm) by smtp.freebsd.org (Postfix) with ESMTPSA id D80C69931; Sun, 30 Jan 2022 20:58:05 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Message-ID: Date: Sun, 30 Jan 2022 21:58:04 +0100 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: pinebook pro video console not active Content-Language: en-US From: Jesper Schmitz Mouridsen To: Emmanuel Vadot Cc: freebsd-arm@freebsd.org, Warner Losh References: <4d738da2-28f0-6af2-4213-934244cc95f2@FreeBSD.org> <20220126115453.255661b2e55f946d11eba1e9@bidouilliste.com> <66042fd4-31fa-408a-3ec8-b911118750ef@FreeBSD.org> In-Reply-To: <66042fd4-31fa-408a-3ec8-b911118750ef@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643576286; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W0/q5/v2+1w8oggw8BmTb9M0EuSLbnxzjKRw0J10SNo=; b=MsO1zP5aI78kjBF0pQSFWHdFREbdlLKPBEdsYDnBIukwcMjjEWKLNppYm/0m7qodxW6S4o bCHztm/zC0bBHY+7WIMzMFtvEQGHryUG01iDt1VcoQsCJM4ph5FB0/PJzWdJYA7/jyCXah WihZHHYmay6pTZguLoWb1iRPgd8WLVBWrta+Xq7u7GyjcSxfH6GWAnMwPRfn/6mhiuxjfL xOvpN7n4wUSKXUHy2sDQWUSxe3ELthHUDtWsxuWOD9PORyy6yT1OH0IA3H0rbZ7Dz80NI8 pf0ZfKFWGL1lp1nec/Fu1uXggk3Ve4Pos0LPVtqWSUUNv4e+yNGol815v9qsnw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643576286; a=rsa-sha256; cv=none; b=VKznN0DDViY0j/TthrTh2Ez1wVPLXrehjL4PXwxvu6zRkPs4g2cgVl4fUJYhmMXIMMxrNX 8m9rU9g5Y3cMyIbKhOC8cqSaMM6s5RqDnytlbU3A4/p+GM42dfYi2ZSvBBbWseVWznu39i nsLSRkufUVt18lO51IiK2Ky5hcmIGL6P19LiRfzQKYIwcJbBIn2K9aDD7zMz10UpkWYRhF VyiNV0YUhrDEcwHNIOjyNr0CWZmU5NsGQYZEo3SmaZSqjwH2IGx0Rj+qR2sxUE4Lez6mZT ETUXZdl9RCPfLr1OpOBmA72jTpG1GMdYa0tmRWWu9JZ5u7JZGcGcFtp3VQEsTQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 26.01.2022 12.35, Jesper Schmitz Mouridsen wrote: > Hi > > On 26.01.2022 11.54, Emmanuel Vadot wrote: >> On Wed, 26 Jan 2022 00:44:33 +0100 >> Jesper Schmitz Mouridsen wrote: >> >>> Hi >>> >>> On Pinebook Pro 14-current with console="efi,comconsole" in >>> /boot/loader.conf >>> vidcontrol -i active < /dev/console is not working because serial stays >>> primary. Reverting 123b5b8763778e83b6816ad9db62a9b956055c32 fixes that >>> for me. Can someone share some light on why that is? >>   You also need boot_multicons=YES in loader.conf for this to work (at >> least on amd64). >>   Maybe imp@ knows more about this behavior. >> > Yes I have that set as well, my loader.conf is > > hw.regulator.disable_unused="0" > boot_multicons="YES" > console="efi,comconsole" > beastie_disable="NO" > loader_color="YES" > ums_load=YES > >>> console kit relies on /dev/console beeing active so it is an annoying >>> bug.. >>> the original review is here https://reviews.freebsd.org/D32992 >>> >>> >>> Thanks >>> /jsm >>> >> > A little more information, with above with with frame_style ascii and 123b5b8763778e83b6816ad9db62a9b956055c32 reverted, I see both on efi and audio jack serial printing "console comconsole failed to initialize." From line 268.. 263 if (active != 0) { 264 /* 265 * If no consoles have initialised we 266 * wouldn't see this. 267 */ 268 printf("console %s failed to initialize\n", 269 consoles[cons]->c_name); 270 } in efi/loader/efiserialio.c line 489 comc_port->sio is NULL in my testing. My u-boot is from freebsd ports unmodified. I have not read all the code but could it be an explanation that comconsole fails and falls back to efi, but that serial is actually initial primary despite the setting console="efi,comconsole"...? when reverted the commit does set comconsole as console... Just thinking out loud, not sure it makes sense... efiserialio.c: comc_setup(void) { EFI_STATUS status; UINT32 control; /* port is not usable */ if (comc_port->sio == NULL Thanks /jsm