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 E9BECC001DB for ; Tue, 8 Aug 2023 12:51:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C4AE9861A8; Tue, 8 Aug 2023 14:51:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="ZOt9gVru"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9A0C08468A; Tue, 8 Aug 2023 04:18:39 +0200 (CEST) Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) (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 2455380717 for ; Tue, 8 Aug 2023 04:18:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=benwolsieffer@gmail.com Received: by mail-qv1-xf35.google.com with SMTP id 6a1803df08f44-63cfd68086dso29225836d6.1 for ; Mon, 07 Aug 2023 19:18:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691461116; x=1692065916; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=I68L6DNtLiWBA2io6/X2Ayt+C8I2MZpEBT5fWJPeRS4=; b=ZOt9gVruHFQnXK/cBpg7YofwV6AzvKLovq5VEGnxu1RupDiHDTYK5k47ubFzOYii5e zxw3PgF9+Xt+JqKZZTphtW18E5j8WkWGI3d3UA9mIPFIwHkBoeaikV2b33k7uMgKjt7l zgnEO/aHHa8uJadMRFFmlkh5QQY8yDsZ/aeFpf29ktaMPYMgQyco7vuQNuF6Vgj/YzA/ 0xsWgBmu2DEOfLQE/9FXsdf/XZ1/7um6Em8R0wyVp5LFzPtywd7/ICtZiH7DXlxHvRl5 eq1P0VlUwaJJnCzWyj1wlj4FTFI8ANUWoJ/HTdKPhT3IGb2XDQeNYy4e3ehtadE7UxMa cW0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691461116; x=1692065916; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=I68L6DNtLiWBA2io6/X2Ayt+C8I2MZpEBT5fWJPeRS4=; b=CMi5bG6t35Eq+bLu51Ekfksnu6ENDTJto0goTuDpGO1aMGtKuet2fK9OQsiLUAWUaD WJyyitR+8JATSfZNI9h37KTadg9YFz2egKNr15AQmfJKwWxHFMH5BqDfze/RTbZpOdyK GMMaXjsXSWsLn1MaLVqqxFzppn1bIh3e55LY2G+DjQk5M5K6pndSSjNrHu0gfobQ8sye PSlhlzOEXc1msmclVW2nivm/i4b7xwegJdkxP8DrbqTNvrgk2rgzKUyfpj0i6+ujOf1G 6AsGxdBuHJuA9pTaN8P2hWA7ztO96X2EcvNX/2mHe1OvXl45xAiMFX3Fwj73VsbNgIsU a6KA== X-Gm-Message-State: AOJu0Yxv7udL3vRJZjUUoOCLgjEKlmb1ldQkwVFiX7g782hhDH74VfHV fJQOrTAeTkqQbITXukcn0KHMHfhJavw= X-Google-Smtp-Source: AGHT+IHVCaaP6c47Q16VU0vMyghdchcmW7k0l3y6uY/QFFP4MipYJT1K3NTcS+wcm2KJwK7Egg3aAA== X-Received: by 2002:a0c:f5cd:0:b0:635:3892:a2b0 with SMTP id q13-20020a0cf5cd000000b006353892a2b0mr10824399qvm.15.1691461115715; Mon, 07 Aug 2023 19:18:35 -0700 (PDT) Received: from Dell-Inspiron-15 ([2601:18c:8380:74b0:e8e5:f40c:d741:8f07]) by smtp.gmail.com with ESMTPSA id o15-20020a05620a110f00b0076d08d5f93asm1103351qkk.60.2023.08.07.19.18.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 19:18:35 -0700 (PDT) Date: Mon, 7 Aug 2023 22:18:33 -0400 From: Ben Wolsieffer To: Tom Rini Cc: u-boot@lists.denx.de, Gabriel Hojda Subject: Re: [PATCH] odroid_xu3: Fix board environment variable Message-ID: References: <20220608183014.1417881-1-trini@konsulko.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220608183014.1417881-1-trini@konsulko.com> X-Mailman-Approved-At: Tue, 08 Aug 2023 14:51:08 +0200 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.8 at phobos.denx.de X-Virus-Status: Clean On Wed, Jun 08, 2022 at 02:30:14PM -0400, Tom Rini wrote: > When migrating CONFIG_CONS_INDEX to Kconfig, on this platform we changed > what "board" evaluated to in the environment. This in turn meant that > we would no longer try and find the correct fdtfile via the normal > distro boot logic. Fix this by overriding board in the default > environment, as done on other platforms where CONFIG_SYS_BOARD is not > what we want to be in the board environment variable. > > Fixes: f76750d11133 ("Convert CONFIG_CONS_INDEX et al to Kconfig") > Reported-by: Gabriel Hojda > Tested-by: Gabriel Hojda > Signed-off-by: Tom Rini > --- > include/configs/odroid_xu3.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/configs/odroid_xu3.h b/include/configs/odroid_xu3.h > index eb35d7b4ae2d..360815bc03ee 100644 > --- a/include/configs/odroid_xu3.h > +++ b/include/configs/odroid_xu3.h > @@ -86,6 +86,7 @@ > "rootfstype=ext4\0" \ > "console=console=ttySAC2,115200n8\0" \ > "fdtfile=exynos5422-odroidxu3.dtb\0" \ > + "board=odroid\0" \ > "board_name=odroidxu3\0" \ > "mmcbootdev=0\0" \ > "mmcrootdev=0\0" \ > -- > 2.25.1 > Hi Tom, This patch doesn't appear to have fixed the issue. There is a report from Debian of it occuring even after this patch was applied [1], and I ran into it today as well with 2023.07.02. I looked into it a bit, and the problem seems to be that set_board_info() constructs the fdtfile variable using CONFIG_SYS_BOARD, so setting the correct value of the board variable has no effect. I think either set_board_info() needs to construct fdtfile differently, or things need to be restructured to allow CONFIG_SYS_BOARD to be set as "odroid". I would submit a patch, but I'm not sure of the right approach to take, and I would appreciate your help. Thanks, Ben [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012269