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=-12.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 548B9C4338F for ; Fri, 23 Jul 2021 03:08:21 +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 B924860EB2 for ; Fri, 23 Jul 2021 03:08:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B924860EB2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3103082C65; Fri, 23 Jul 2021 05:08:14 +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="kTwubPDm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E561182C65; Fri, 23 Jul 2021 05:08:00 +0200 (CEST) Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) (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 90743829F9 for ; Fri, 23 Jul 2021 05:07:57 +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-wm1-x331.google.com with SMTP id p9so2344101wmq.5 for ; Thu, 22 Jul 2021 20:07:57 -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=tCBvixO/fI2UlNZD+Dt9RDfcIAcqPfVKfJ96b+W+eW0=; b=kTwubPDmY5zFSJt8bj4IEpplyNzbkS11D/N0c9CbPWOqrDTAS42/hUhkcmiVc8fSAs RZT3o08hU0wUHqGCqqqCi3TTIMLBGLx8KeyD3mRPvzs6qtyvdDM3AkItPTksM9GDXLFB mo4dyXOnNP704EWKE8EowzvNiAIYAR3blAtXg= 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=tCBvixO/fI2UlNZD+Dt9RDfcIAcqPfVKfJ96b+W+eW0=; b=F9iYCYyUTCpjqZ3zPaj8Sl9vE5dNg+E/2qaUJty2DoubhFNZaACc8OD2jmDRtk3axd evvy9YSTy/G6g2x48UxOtlbST/zj23jzKpYWUsgvysdIRgC0lfAQfZm4ZDqgALRu6RpR 1bnkCvZzq3wYBtVIiTx4JoPwaN9m/CIxN9WVW8sWix1BLcylSOGl9xptr5EXTmNPUlg5 DozjycAPP/9rX6h9h0ieVPSeakCQo4d8Cfc2fDtlsw3dBzrwtZlfLWFxjz5iZtMlQRik dfqG1XuRz9bjCDncpn0X5rN6Dc0urnUxsO20HIA6Rv8NdxcpnNKfXKZ33bDonDiiSakI jNEQ== X-Gm-Message-State: AOAM533oQ67NRd9BY+m+zk/ldif+7w9c/faDitbNE5Bbeo/N9iD9DKOp /mND4mO03WIlw4ddiV2pWRdKGaKKB+/tZz9ftAd28Tpph09mhw== X-Google-Smtp-Source: ABdhPJyEZIUgmey7OYZUrRfaq58cyZIoeeNQBgRxGrXeRS1rysAF/thS4U09DVfyd8XQ43TiDzLNvsXFMlrEbVdVu3Y= X-Received: by 2002:a7b:c24e:: with SMTP id b14mr506750wmj.74.1627009676825; Thu, 22 Jul 2021 20:07:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Simon Glass Date: Thu, 22 Jul 2021 21:07:43 -0600 Message-ID: Subject: Re: using binman fails boot To: Tim Harvey Cc: u-boot 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 Tim, On Mon, 19 Jul 2021 at 17:23, Tim Harvey wrote: > > On Sat, Jul 17, 2021 at 7:22 PM Simon Glass wrote: > > [..] > > > But isn't blob-ext@4 a correct name? I can't use 'blob-ext-4' as > > > that's an unknown entry type. > > > > Well you can use any name and specify the type: > > > > my-name { > > type = "blob-ext"; > > }; > > > > Ok - I understand. > > > > > > > > > > > > If you can push your tree somewhere (with this problem) I'll see if I > > > > can figure out why. > > > > > > > > > > Sure, I pushed it to > > > https://github.com/Gateworks/uboot-venice/tree/WIP-venice-binman > > > make imx8mm_venice_defconfig > > > make > > > > OK > > > > > > > > > > > > > > > BINMAN_VERBOSE=4 indeed prints out a tone of stuff but I'm not seeing > > > > > anything for 'blob' below that would seem to indicate one node name vs > > > > > another: > > > > > > > > Oops you need BINMAN_VERBOSE=5 - see elf.py LookupAndWriteSymbols() > > > > which has tout.Debug() which is level 5. > > > > > > > > > > LookupAndWriteSymbols ends up doing nothing because > > > syms.get('__image_copy_start') returns None. > > > > Well that is likely the problem. I sent a patch to make binman report this as an error. I pushed the resulting tree to: https://github.com/sjg20/u-boot/tree/try-tim Now the error is: binman: Section '/binman/u-boot-spl-ddr': Symbol '_binman_u_boot_any_prop_image_pos' in entry '/binman/u-boot-spl-ddr/u-boot-spl/u-boot-spl-nodtb': Entry 'u-boot-any' not found in list (u-boot-spl-nodtb,u-boot-spl-dtb,u-boot-spl,blob-ext@1,blob-ext@2,blob-ext@3,blob-ext@4,main-section) The problem seems to be that you are asking binman to generate three independent images. U-Boot is in a FIT which is not in the same image as SPL. So it is not possible to locate the flash offset of U-Boot (with in the FIT). Can you give me a bit more info about your intent here? Is it to load U-Boot from the FIT? I so, I suppose it is possible to make binman access an independent image, if it is told where it starts. But why is everything not in one image? Regards, Simon