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 DB07CC636D6 for ; Wed, 22 Feb 2023 18:57:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 46A5A85A58; Wed, 22 Feb 2023 19:56:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kwiboo.se header.i=@kwiboo.se header.b="LRiBeeyH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DEDC985A58; Wed, 22 Feb 2023 19:56:57 +0100 (CET) Received: from xtrwkhkk.outbound-mail.sendgrid.net (xtrwkhkk.outbound-mail.sendgrid.net [167.89.16.17]) (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 52D5085A5C for ; Wed, 22 Feb 2023 19:56:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=mime-version:subject:references:from:in-reply-to:to:cc:content-type: content-transfer-encoding:cc:content-type:from:subject:to; s=s1; bh=oZsENUI1VFbiQOfTHCL5JOX5yICjWl6NhHhUOxM06wA=; b=LRiBeeyH6ZKH92ihItPjBk8IwjNASeL2VRaMD1aAgoP0y/Uyhex7aPLRFuGLbGSwLYb1 d8EiKlLphu5/Yutzkl9AnzQF0diHoNxOlFaMv3xESbMUZs9wBTnhj6tp42DwmSRDfacJwr 6ig/wGXUvUNTmMAPPNUIB2k8S3j5/gC+SsB4xNaaMs8dmmHrOMqnZGfV70tZ8MRh4o/dbs MpFIWueZibJ2TUdFdzEci051Vew1TTrZvfg88ZNDVu4SWPvZ6+N5crUImfBDuuPbNm60Yk /d0pp46ljhWwTavHF7ZcvXGG78P1a46XAi+hXUaMO4kJ/qDAKLoWUBjEl6XuryVg== Received: by filterdrecv-68f8d557c9-cd8xt with SMTP id filterdrecv-68f8d557c9-cd8xt-1-63F66574-2D 2023-02-22 18:56:52.791222224 +0000 UTC m=+69865.309724538 Received: from [192.168.1.50] (unknown) by geopod-ismtpd-6-1 (SG) with ESMTP id 7GglUjbKSvyJFfqzxXD1-w Wed, 22 Feb 2023 18:56:52.474 +0000 (UTC) Message-ID: Date: Wed, 22 Feb 2023 18:56:52 +0000 (UTC) MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: [PATCH 2/3] rockchip: Disable DISTRO_DEFAULTS for rockpro64 Content-Language: en-US References: <20230221193920.3546499-1-sjg@chromium.org> <20230221193920.3546499-2-sjg@chromium.org> <875ybur3zm.fsf@contorta> <877cw9y354.fsf@contorta> From: Jonas Karlman In-Reply-To: X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0h0WVvSTfZpcImSyaw?= =?us-ascii?Q?kzuQ=2FPtsBuLDhGm1xfKCnegwPbF+5N7dZA3JhlG?= =?us-ascii?Q?Q2Tre2GG7+BXawjUHa4e+lEjtORIKnqWJTWzko1?= =?us-ascii?Q?MoNvJHdsekYJdK8rygcKaj=2FFrBcBSQ7dVyzjdLr?= =?us-ascii?Q?SMYDWTt1nHuEiJ4vnK+KaXBc929oZrmcWxXt2Y?= To: Tom Rini , Vagrant Cascadian , Simon Glass Cc: U-Boot Mailing List , huang lin , Jeffy Chen , Kever Yang , Akash Gajjar , Jagan Teki X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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.6 at phobos.denx.de X-Virus-Status: Clean On 2023-02-22 19:24, Tom Rini wrote: > On Wed, Feb 22, 2023 at 10:19:03AM -0800, Vagrant Cascadian wrote: >> On 2023-02-21, Vagrant Cascadian wrote: >>> On 2023-02-21, Simon Glass wrote: >>>> This board has moved to standard boot but the old 'distro_bootcmd' >>>> command is still active. Disable DISTRO_DEFAULTS to fix this. >>> >>> Works for booting rockpro64-rk3399, thanks! >> >> I can also confirm that applying a very similar patch for >> pinebook-pro-rk3399 works booting with bootstd. >> >> Seems worth adding if there is a v2 of the patch series. >> >> Alternately, rather than doing this on a board-by-board basis, is there >> some way to disable CONFIG_DISTRO_DEFAULTS when a board is using >> BOOTSTD? > > I think that's possibly a bit dangerous? DISTRO_DEFAULTS and > BOOTSTD_DEFAULTS need to be reconciled to a single new symbol, and the > DISTRO_DEFAULTS method of select not imply for most things is also I > suspect the right path. > Another option would be to set BOOTSTD_BOOTCOMMAND=y, this is the main issue with rk3399 at the moment, distro_bootcmd got removed from env, yet bootcmd is still "run distro_bootcmd" due to DISTRO_DEFAULTS=y. config BOOTCOMMAND default "bootflow scan -lb" if BOOTSTD_BOOTCOMMAND && CMD_BOOTFLOW_FULL default "bootflow scan" if BOOTSTD_BOOTCOMMAND && !CMD_BOOTFLOW_FULL default "run distro_bootcmd" if !BOOTSTD_BOOTCOMMAND && DISTRO_DEFAULTS config BOOTSTD_BOOTCOMMAND default y if !DISTRO_DEFAULTS Regards, Jonas