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 F22B6C433EF for ; Wed, 8 Jun 2022 11:57:53 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F0FDC84337; Wed, 8 Jun 2022 13:57:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=yo2urs.ro Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 14C6584303; Wed, 8 Jun 2022 10:51:26 +0200 (CEST) Received: from mail.yo2urs.ro (yo2urs.ro [86.126.81.149]) by phobos.denx.de (Postfix) with ESMTP id 458EA842FC for ; Wed, 8 Jun 2022 10:51:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=yo2urs.ro Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=ghojda@yo2urs.ro Received: by mail.yo2urs.ro (Postfix, from userid 124) id C31B8377F; Wed, 8 Jun 2022 11:51:22 +0300 (EEST) Received: from www.yo2urs.ro (localhost [127.0.0.1]) by mail.yo2urs.ro (Postfix) with ESMTP id 1319D3439; Wed, 8 Jun 2022 11:51:21 +0300 (EEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 08 Jun 2022 11:51:20 +0300 From: Gabriel Hojda To: Tom Rini Cc: u-boot@lists.denx.de Subject: Re: BUG in u-boot for ODROID-XU3/XU4/HC1/HC2 In-Reply-To: <20220607161400.GA2411890@bill-the-cat> References: <9f0e091322de234ea331e498ecea1f1f@yo2urs.ro> <20220607161400.GA2411890@bill-the-cat> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <2c8805a2697188e53e3e1d43ef92a3f6@yo2urs.ro> X-Sender: ghojda@yo2urs.ro X-Mailman-Approved-At: Wed, 08 Jun 2022 13:57:31 +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.5 at phobos.denx.de X-Virus-Status: Clean hi, finally got around to do it: added "board=ordoid" to CONFIG_EXTRA_ENV_SETTINGS in include/configs/odroid_xu3.h using following patch, rebuild the rpm locally, updated u-boot on the sdcard for my local odroid-hc2 and booted with the new u-boot ... so adding board to CONFIG_EXTRA_ENV_SETTINGS fixes the problem. Gabriel ----------------------------------------------------------------------------- diff -u -r u-boot-2021.10/include/configs/odroid_xu3.h u-boot-2021.10-mod/include/configs/odroid_xu3.h --- u-boot-2021.10/include/configs/odroid_xu3.h 2022-06-08 10:56:19.361113780 +0300 +++ u-boot-2021.10-mod/include/configs/odroid_xu3.h 2022-06-08 10:53:10.834233375 +0300 @@ -94,6 +94,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" \ ----------------------------------------------------------------------------- On 2022-06-07 19:14, Tom Rini wrote: > On Sat, May 28, 2022 at 03:10:51AM +0300, Gabriel Hojda wrote: > >> hi, >> >> i've recently tried u-boot 2022.04 (u-boot-v2022.04.tar.bz2) and my >> odroid-hc2 didn't boot with uefi (default since Fedora 35) but worked >> when i >> used exlinux.conf >> >> trying to track down the problem, i've found that in the default >> u-boot >> environment the "board" and "boardname" variables were "smdk5420" and >> not >> "odroid" (like before) ... and thus the "fdtfile" variable was >> "exynos5422-smdk5420hc1.dtb" and not "exynos5422-odroidhc1.dtb". >> >> continuing i've made a diff between the u-boot-v2021.10.tar.bz2 and >> u-boot-v2022.04.tar.bz2 ... and long story short, i've found the >> culprit in >> commit f76750d1 "Convert CONFIG_CONS_INDEX et al to Kconfig" : > > Thanks for the report. Can you please try updating > include/configs/odroid_xu3.h to override "board" in > CONFIG_EXTRA_ENV_SETTINGS and see if the auto-detection works as > expected? We can't change CONFIG_SYS_BOARD as that would then change > wht we look for in board/samsung/ to build.