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 18A03C433F5 for ; Fri, 27 May 2022 16:56:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E1C3984363; Fri, 27 May 2022 18:56:01 +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="HaUbUYxi"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6B14B8436A; Fri, 27 May 2022 18:55:58 +0200 (CEST) Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (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 D08C484354 for ; Fri, 27 May 2022 18:55:54 +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=alpernebiyasak@gmail.com Received: by mail-ej1-x62c.google.com with SMTP id i27so9797200ejd.9 for ; Fri, 27 May 2022 09:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:from:subject:to:cc :references:content-language:in-reply-to:content-transfer-encoding; bh=GzTmnZwDRqon4iIVPt0ZZkwXLJA2ANGo+K3JBrWncDc=; b=HaUbUYxiqbIOm1F5tjfVDMzVcF286+AQawt53sBBfmMJdcpVOD7OdTooVxN1zUWNR2 lDNzpj5BnnGY0P6fs1ZR8ZD7w7yKgdO4ll4xIF1xYp4T6TjmVvOGuSkBGhez94mxQJZo uWcsTnzQFeia8Kg6XqM2DE1Kpy2z910HJrK0ClPRWXV8jN2SuLKnd9XS5s3FHVuYtXkP ZP0XXlXUhhbVvSsQh9wx23+LQvS4labN2lHTdLxvhnYXIYGZZ2ctZ0EfnKlmlJ3e6sBF qOkqeh6/wsTQVgMUE/Pf3NVCjFWtpno8R6kJf/LcgkJ7OuIq8NLUx08x05H8a7b7BfX/ JNNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:to:cc:references:content-language:in-reply-to :content-transfer-encoding; bh=GzTmnZwDRqon4iIVPt0ZZkwXLJA2ANGo+K3JBrWncDc=; b=3dLejK6rv6hRU4p6AdRcu3O5Jb5B0hLBOAv1EMfoCzkanse9h3M8mxpP7euA4miY99 fAQm/lVnZ0YQDoUoLJWDlZ/F7Z28yerTnguW0C4UHH6yMABspb4i2lw7eE7DjoLN1q90 4QbPAn+7edEgXVF18dCn1f+al+V8lriiE46VF4O9jWoQey90PsHzVtTbIUUzJQFsfZOz OsesuTBXXPV2c4/jIi1ojDGVrsUGPNgDTZOAiqd1NAZ8oE+Zk9ff6qfvEV9AsirymYDG ZAg/r9M49glRlJeBdPLQSKJ9LqUCe7PT3q3S0lx0k+g6bD6zrNUL/ppjX2ZMRU6/7ohE 5amA== X-Gm-Message-State: AOAM532uug+cwmNRlKHQZbKnhaaAUhP6KmUdJGXryVMSfRehKsCkInzu UDRj7PyXKAfFYFsejUKZm3o= X-Google-Smtp-Source: ABdhPJyGRZ+NgZtZJnuZ1qYhl42E4WqENt2MlLceJaR1afmtpvABzt+8y2u1PM1HYlH+GB+ZGkzrJA== X-Received: by 2002:a17:906:a10e:b0:6f3:e70b:b572 with SMTP id t14-20020a170906a10e00b006f3e70bb572mr37979383ejy.546.1653670554668; Fri, 27 May 2022 09:55:54 -0700 (PDT) Received: from [192.168.0.74] ([178.233.178.185]) by smtp.gmail.com with ESMTPSA id a9-20020a170906190900b006fec3b388edsm1607560eje.95.2022.05.27.09.55.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 May 2022 09:55:54 -0700 (PDT) Message-ID: <72bbd59c-14db-de8c-24b6-a4e410e53a40@gmail.com> Date: Fri, 27 May 2022 19:54:35 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 From: Alper Nebi Yasak Subject: Re: [PATCH V5 4/9] binman: introduce no-u-boot-any property To: "Peng Fan (OSS)" Cc: u-boot@lists.denx.de, Peng Fan , sbabic@denx.de, festevam@gmail.com, trini@konsulko.com, Simon Glass References: <20220524080040.28653-1-peng.fan@oss.nxp.com> <20220524080040.28653-5-peng.fan@oss.nxp.com> Content-Language: en-US In-Reply-To: <20220524080040.28653-5-peng.fan@oss.nxp.com> Content-Type: text/plain; charset=UTF-8 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.5 at phobos.denx.de X-Virus-Status: Clean On 24/05/2022 11:00, Peng Fan (OSS) wrote: > By default when BINMAN_SYMBOLS is enabled, common/spl/spl.c has a code > piece `binman_sym_declare(ulong, u_boot_any, image_pos);` which requires > u-boot* node in device tree binman node section. But some > platforms(i.MX8M) not need it. To avoid build break with BINMAN_SYMBOLS, > introduce a no-u-boot-any property. This is just a hacky workaround, I don't think it's OK. Anyway, turns out you don't need this patch (and 5/9) either. I tried a few things and found CONFIG_SPL_RAW_IMAGE_SUPPORT (enabled on most imx8m) and CONFIG_SPL_RAM_DEVICE (enabled on imx8mm_data_modul_edm_sbc) are using the 'u_boot_any' symbols. Disable them and the symbols get optimized away and the error disappears. I also found some relevant discussions from a while back, see [1], [2]. [1] using binman fails boot https://lore.kernel.org/u-boot/CAJ+vNU0BZDr2q0ZPQkoQBP1eBhbYmQfJMYraSgOvWXwZ=yFReQ@mail.gmail.com/T/#u [2] imx8: ls1028a: Drop raw image support https://lore.kernel.org/u-boot/20210801205951.2202789-1-sjg@chromium.org/T/#u