From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 53E79C433EF for ; Tue, 7 Jun 2022 16:49:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E4FBA843BC; Tue, 7 Jun 2022 18:47:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="r9Bi3hnx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 207948439D; Tue, 7 Jun 2022 18:47:46 +0200 (CEST) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BA144843BA for ; Tue, 7 Jun 2022 18:47:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x735.google.com with SMTP id k6so10591020qkf.4 for ; Tue, 07 Jun 2022 09:47:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=59ZcQeM3kAZBO/iUgM1bqU1Eg15dppg4Ss//+ZedxX4=; b=r9Bi3hnxhjqzXZdgRl0SDDbpv71FOpR2GrGQIwgGc6KvlgSUOdsx6UpOhzjiYDCbYa h6arBBX3lvWyP/Kl0yReeedxtf8veFiIQApFrbEXyZ7B3faw1FaCqoTQ5hf5oNvReGYI 55uWODj3gey152+AvdefU297krnwteimNslko= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=59ZcQeM3kAZBO/iUgM1bqU1Eg15dppg4Ss//+ZedxX4=; b=BEWsG5xK12SXyAVl4pAzmGf+Xln/1G58tNy1/GpKYolMKKzXg7/fe1Su5WQEae5F5z FMn5El7g59N0BZwShpWUixUqwuBUI6z+YiV2kn8UNMIueUeHNBQa4+1st8P5Eql2Mqoq 5/uxGmDW+cyK7R7dK2IIyUcX/sF7XxeYxYwwmUCslfwsAgs1KIPv8JTy8C0M+FoDftKY FAWnpNb15gKCslBnkv2IXCLSdyPWVfgbI3UqBsdpbHGLn/Z+Pc1MP1mOxm6RfPYpUr33 F6PFFMt7u8pDV1r6TeW3uXO13eQEzwnAVCC6JED7E02vvhowa9ydq3sWg40lwLwnIXjM 4dBg== X-Gm-Message-State: AOAM531u3z9NQwvkInnOgcFDQuZEV3SskEHqiK/HliCNbD37Oi32nuV/ qPW9+Mj6+PrId8Omsz//MX36Lg== X-Google-Smtp-Source: ABdhPJzJJsTEBKdwGwnSzs4sF7x9/P+otoCijLyUquUtY8Q6uXrk8M0QUrR/GENvzYHJ17zZh+MPBA== X-Received: by 2002:a05:620a:d83:b0:6a6:69d8:d772 with SMTP id q3-20020a05620a0d8300b006a669d8d772mr20741704qkl.136.1654620460519; Tue, 07 Jun 2022 09:47:40 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id h9-20020ac85e09000000b002f93c5444e3sm13573624qtx.52.2022.06.07.09.47.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 09:47:39 -0700 (PDT) Date: Tue, 7 Jun 2022 12:47:37 -0400 From: Tom Rini To: Sean Anderson Cc: Simon Glass , u-boot@lists.denx.de Subject: Re: [PATCH] bootm: Fix Linux silent console on newer kernels Message-ID: <20220607164737.GT2484912@bill-the-cat> References: <20220519222605.2380731-1-sean.anderson@seco.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WVXkb2QE2eH0aWe4" Content-Disposition: inline In-Reply-To: <20220519222605.2380731-1-sean.anderson@seco.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean --WVXkb2QE2eH0aWe4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 19, 2022 at 06:26:05PM -0400, Sean Anderson wrote: > Linux determines its console based on several sources: >=20 > 1. the console command line parameter > 2. device tree (e.g. /chosen/stdout-path) > 3. various other board- and arch-specific sources >=20 > If the console parameter specifies a real console (e.g. ttyS0) then that = is > used as /dev/console. However, if it does not specify a real console (e.g. > ttyDoesntExist) then *nothing* will be used as /dev/console. > Reading/writing it will return ENODEV. Additionally, no other source will > be used as a console source. >=20 > Linux commit ab4af56ae250 ("printk/console: Allow to disable console outp= ut > by using console=3D"" or console=3Dnull") recently changed the semantics = of the > parameter. Previously, specifying console=3D"" would be treated like > specifying some other bad console. This commit changed things so that it > added /dev/ttynull as a console (if available). However, it also allows > for other console sources. If the device tree specifies a console (such as > if U-Boot and Linux share a device tree), then it will be used in addition > to /dev/ttynull. This can result in a non-silent console. >=20 > To avoid this, explicitly set ttynull as the console. This will disable > other console sources. If CONFIG_NULL_TTY is disabled, then this will have > the same behavior as in the past (no output, and writing /dev/console > returns ENODEV). >=20 > [1] and [2] have additional background on this kernel change. >=20 > [1] https://lore.kernel.org/all/20201006025935.GA597@jagdpanzerIV.localdo= main/ > [2] https://lore.kernel.org/all/20201111135450.11214-1-pmladek@suse.com/ >=20 > Signed-off-by: Sean Anderson Applied to u-boot/next, thanks! --=20 Tom --WVXkb2QE2eH0aWe4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmKfgSkACgkQFHw5/5Y0 tywMXgv/W2YeJPwAK7N5BHZm5yIAmgBJPtgL4tKGzDyiZJO5kVsYsiLk+9X4/TB7 Vf0ob4GRwJVcBnU4Mg1QQx4tf0RgoWJ6d24zAJ6Eorf/o++WRXwrP5GL1dphlCG3 CQMQo2iXzK+ElosojrJFIyNQsxMRsvBWDVLRtxvdHE9nw54IfmDQsrPPrMZE1Zpb mS0okWi2G3U/McU+GE+XnMSs+KDHAfjvRbI7PHDyzGybv1MZ/lCFMjRi3nqbrwDc b6gbd+QiW8rSKOjRb2AlxG+2ZBvrZSTbj1Gti5OL6rbJPDNqK2+tOHM3QarDHxX4 zuPMoPiST7n0hY1NjfOY+j0/t/0vxeMan7HhNWYxdEJqk5dnNEmMuWfcfn+KiXlA jKPr8NK/ekS5+Qcece1Ql/fDTSXAWTPzH0LF7DklM/8JyLS+1RvK0VhmzTpM3Tbc Z9jB3Of2w2yCMQwiI6MircVxhSklmQt2F1vtXAqZFM/CjHDoXmHZdzq0XQBd9bAz 25gBDLRb =PDd2 -----END PGP SIGNATURE----- --WVXkb2QE2eH0aWe4--