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 X-Spam-Level: X-Spam-Status: No, score=-6.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61B97C49EA5 for ; Sat, 26 Jun 2021 18:31:58 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D6CC861C29 for ; Sat, 26 Jun 2021 18:31:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D6CC861C29 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1CFAE82C7A; Sat, 26 Jun 2021 20:31:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="c7zJcph+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D2C1E82C55; Sat, 26 Jun 2021 20:30:42 +0200 (CEST) Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) (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 7F4AF82C4E for ; Sat, 26 Jun 2021 20:30:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-ot1-x32c.google.com with SMTP id g19-20020a9d12930000b0290457fde18ad0so13238949otg.1 for ; Sat, 26 Jun 2021 11:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qGZQPsacFXFqIoD6HC9rNQyUgE8kSam+w2ZimJ0sPoc=; b=c7zJcph+48x88feUsEjUxJp/a5QfM+NFo5bYpmwo4Z1z2RwbR9cttMrcMos5wcTtrQ ZoILlPD6blpcnnddflFMhvxfyJXHBmunz9st0uW41w/o8sYfaA251LBC6d9vrNQ3LanN +46UOMMUUXIz0FQoGMn0Lzl8LZ0h29LApqefI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qGZQPsacFXFqIoD6HC9rNQyUgE8kSam+w2ZimJ0sPoc=; b=s2j8UgyZHRrNyLuTFUBX3Oc/oGUZx9eYwthWfYlrAMc3/lc/9PiMdYygkr4mUsmn7p 6Czl2A916EzStAGcTopR/OLsFvvxmivoyfnifLAJ/XKZLMrEzJY0YgkS/H7eU/HqhswY tO7s/pOAmyqnf17/0pATPe6V7Q/ulwQJGFNcDP5V/FI50RstKDx8Cnz7qy/d6KaXkG7e G/74cTpzjuXhHyIXDqf7ROuZbqTdzMiopErNO17/Ukf0wGlc9LDCF7CZk+bwZKWQNs8d wUKRMksTEqc9aMlCE0n0FagbSj4Uim9PYPMxOgY6w+kxG1hsMrnqpx5ix2bN2LVv1EU0 xgjA== X-Gm-Message-State: AOAM53171iTPh9KpcuXlez1F+xZ5gxdH3/CJ1oRqbW73n8wq1GsD3++0 jwa3P1dhkRW4AOxtjMRYX5Q4yupcdQLZuQ4Ic7tkUKY/AeQ= X-Google-Smtp-Source: ABdhPJwLiHxcd5WxLWOw0gzx2PeIjsGwyDiVRO5GLsDBWkdIJ/ggf1rqTF5D021o4s94VNiFyGspSs7/c++UlJJonM8= X-Received: by 2002:a9d:2dc2:: with SMTP id g60mr14874704otb.54.1624732235925; Sat, 26 Jun 2021 11:30:35 -0700 (PDT) MIME-Version: 1.0 References: <01397dc0-b124-ee64-ee42-d7ac9900a0d8@xilinx.com> In-Reply-To: <01397dc0-b124-ee64-ee42-d7ac9900a0d8@xilinx.com> From: Simon Glass Date: Sat, 26 Jun 2021 12:30:24 -0600 Message-ID: Subject: Re: DTB_RESELECT/MULTI DTB with SPL flow To: Michal Simek Cc: U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Hi Michal, On Fri, 11 Jun 2021 at 07:56, Michal Simek wrote: > > Hi, > > I am just trying to wrap my head around DTB_RESELECT feature. Did you intend to cc the author of that? Does doc/README.multi-dtb-fit help? > ZynqMP is using u-boot.itb which is u-boot/atf + a lot of DT files. > As of now SPL should pick the right one load it predefined location > which U-Boot proper pickup. > Others DTBs are not loaded at all. > This is working fine and I expect it should work like this even with > DTB_RESELECT enabled because you need to have base DTB for being able to > do platform detection. > I have hookup platform detection in embedded_dtb_select and I know which > board revision I am running at and struggling how to tell u-boot what to do. > > What should be the right flow for changing DTB at run time? > Where they should be stored? I would expect that I need to have FIT > image in memory for all board revisions and u-boot should be calling > board_fit_config_name_match() which will decide which DT is correct > based on board detection done in embedded_dtb_select(). Yes you can use a FIT to hold the DTs. You can also use binman I suppose (the 'files' entry type perhaps). Regards, Simon