From patchwork Fri Jun 20 02:25:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 898289 Delivered-To: patch@linaro.org Received: by 2002:a5d:5f54:0:b0:3a4:ee3f:8f15 with SMTP id cm20csp1105736wrb; Thu, 19 Jun 2025 19:26:06 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWTWpmMzmQ0JGX/HTpkE0JCkFRr1EzmDjjqCG3zmT6lPkKSmYTMZzxqLKplLoXgQG0kToQQpQ==@linaro.org X-Google-Smtp-Source: AGHT+IFRZTwLh07F1x7PsLW8SRHi4rvinhK444Oe5swURnioyLzRCOHN6s76V6JEl+06JkI8Ri0Y X-Received: by 2002:a05:620a:6603:b0:7ca:f37a:2b4e with SMTP id af79cd13be357-7d3f98f3d0amr200654985a.23.1750386365645; Thu, 19 Jun 2025 19:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1750386365; cv=none; d=google.com; s=arc-20240605; b=QWY6xO/EdwCtqMF06XEVcixXvcqz1UhtPCX3uw47+KQ0iTySFOoLvlIE6E29MIb0d7 mWm1AEPAJVjz/Rrn/hu6VSQCFuJEogW+BqzNSPfllpfqnQLdDAKG/C3cghwosJZUMtAd xJ27/k/CMQq9ERur6HnZEsGPpNrsHrloGu8PQdKvdPvEQ/HjGiRHoNjqCNdKL5RM0B36 IbGjjQNXjnYcRai0m7Yan12DzOg/7tQj0ra3CE8wI88sVtLDkd1nEvPNzW/dTFUuiQ4N IqOvpf4z55Hb5A4SnfY+ifuRXr0UHIQITfmCbPd+g8fq1gBy4N1co1yQeXFloOyhWsRu X0HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xsNJfwr2fJiSrXwNpDjvOnZDK2i4Yf3k1Rg19bpt+yA=; fh=JdfNlZd8qwCXyPTgVyZceOHrtHGg5QjQAUAOyxv2bgk=; b=XmZyE3D9rOkEax9EV+XlGd+GJQeJs/121DDRKJF3tz0N6boxUbDpPIet03jZCx0c3w jyqBtHckfvNOVc1fkUQBoPyytyjQ4dREU4FBeWIZzd3Q2fW+U92vfhCcVml+sRqQk0ek qnflJqyKG+j3InkXoIti829bg2g2iG+BgI1GknginP21PdhKYrcgF3IvgVIwmpg7JpMo LY9XVFksoY0gw231T6nn9qfZ9d0XXazBzQTRjBADX/nXFxg91LwCjQZrRDIz5/x2NgSy CtaC8bYloFJEGZqjg7rB/ONQvexaBPCX0OH7LF+mPwIJ2gB/EnxyRkK5d8UMDRIs1rb0 f0tg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YlDqt+pT; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id af79cd13be357-7d3f999ead5si87605985a.30.2025.06.19.19.26.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jun 2025 19:26:05 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YlDqt+pT; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8578C82CDF; Fri, 20 Jun 2025 04:26:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="YlDqt+pT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6EE3082D4A; Fri, 20 Jun 2025 04:26:02 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) (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 165C682CFA for ; Fri, 20 Jun 2025 04:26:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=semen.protsenko@linaro.org Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-2da73155e91so396068fac.0 for ; Thu, 19 Jun 2025 19:26:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1750386359; x=1750991159; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xsNJfwr2fJiSrXwNpDjvOnZDK2i4Yf3k1Rg19bpt+yA=; b=YlDqt+pTL9KVkT6vcNm6BrNDX22M0y2+ZMjULyg0j0EmX6xmJzUPUFy7L/bSWr/xh/ 5triXK4QfDu6NUcjKo4CS6wiP8kp4ym2CLsj9NacdT7Bm2o6/plUi4Sc/XhYd+y2mI1q Ez6VwF7vQ/M1TjJJGsV7KroKweNcJAEINiA0t7KT3OJGYGBXp7OeEox6SFhPC/swzAte zdbdMzw8vf7LAOk856sEYmipPwHNlfTwndz0cSuB5qsTf4AZd1wsn8D66ZFOEQQ/3ihO WLwhziHQ0+deYjE8rTvWBFu301mxCwd3qG2tUAn5Imo0L9cJnoVn/XzmnByTQpVDsBq9 CP4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750386359; x=1750991159; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xsNJfwr2fJiSrXwNpDjvOnZDK2i4Yf3k1Rg19bpt+yA=; b=E2uXpK1BBgkfhJUK0nqDzIX7zZlEPLZ8BJ+7S0mft37ag0+pVRxaaWWmMX3bAsk/rT 9wuCcGxOk50s7u/+4JM3Ay3ZbGcWGcBqSiFcNFZ4SOqzWOaKTemgnc4mXPkBQqXrh/FW 9t7U1ERngcADOBDDs0YnQ3CtGgjJyWucnLTZNSx8tu3j09W68ZTRXNBrWfe48iuNNarl X2Ih+JIDTNr9XwcgQymQ9J1dhMYMHMXxyxFAM6uhc6aElluIgWZuVtq1ucEf27Geu8mC aLwuiHXEj4R/Fmag2rY6QqNoOCHFpUhg1EiJtF0TX9waeVYKNGPJEY9mrTc/lQQqQrtq 4rIA== X-Forwarded-Encrypted: i=1; AJvYcCUL9Apb1mpaLS6pDuAd9z7hd70Wdg82kufd4xpOxSO0zTW7iG295quEc/w5UUnJs/mp7fGr9wo=@lists.denx.de X-Gm-Message-State: AOJu0YyNm2yAG5Qh5Mj3I1L/pzUD6mB/8xpGanYl/KNd0M1MtX2ClAs/ UGKjt+KaaitUOUP5eyf+hsD8qzqG7/79XwL3466hWmltNoPhh8KxpWKu/Fb60kZ7LgE= X-Gm-Gg: ASbGnct8wvzSxbwp30iv7UFWAlf8RcWVCMjACL6v0QN3DEEvXt66kbxASPlDloShmOZ htmKUG182XsvRPjewb40zJ1RECydflAMC7ZsQxDBlgO3e0hyLuQM76T8Zru8reqiN2TA1z6gk1l WR0T3ZcGEkdcf2uF946G/nNNJZ7rqXwx3SoIGmXgR5ODn77aJ+dKCHSTrO6XT7ZByB9k+KM10wD swkHa6SqKzL6jAYMw+gtv4Nfb7JER5//Naa7pp5Z0fMn3G1zlMq+wvJXlVzKoY4fqxL8HkcEISg 2MbKguvwtTS/ULXhRfKm9BgBJH6blZxcbY9Dr6k/KEft6QCZVlwdbOftYVKkoaJ02NfYHyLv X-Received: by 2002:a05:6870:8196:b0:2d5:1232:b081 with SMTP id 586e51a60fabf-2eeee573ca2mr1028523fac.29.1750386358792; Thu, 19 Jun 2025 19:25:58 -0700 (PDT) Received: from localhost ([2605:a601:a0f4:b000:264b:feff:fe59:d7f7]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2ee665ae530sm195324fac.20.2025.06.19.19.25.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jun 2025 19:25:58 -0700 (PDT) From: Sam Protsenko To: Tom Rini , Minkyu Kang Cc: Minkyu Kang , Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Jerome Forissier , u-boot@lists.denx.de Subject: [PATCH 1/2] configs: e850-96: Enable BOARD_LATE_INIT Date: Thu, 19 Jun 2025 21:25:55 -0500 Message-Id: <20250620022556.10363-2-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250620022556.10363-1-semen.protsenko@linaro.org> References: <20250620022556.10363-1-semen.protsenko@linaro.org> MIME-Version: 1.0 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 LDFW firmware should be loaded in board_late_init() when MMC driver is already probed and initialized. Doing so in board_init() causes MMC driver to be probed earlier, which leads to EFI disk objects not being created. Enable CONFIG_BOARD_LATE_INIT to make that possible. Signed-off-by: Sam Protsenko --- configs/e850-96_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/e850-96_defconfig b/configs/e850-96_defconfig index 5facd418260c..e4c6aa28e0b7 100644 --- a/configs/e850-96_defconfig +++ b/configs/e850-96_defconfig @@ -19,6 +19,7 @@ CONFIG_ANDROID_BOOT_IMAGE=y CONFIG_BOOTSTD_FULL=y CONFIG_DEFAULT_FDT_FILE="exynos850-e850-96.dtb" # CONFIG_DISPLAY_CPUINFO is not set +CONFIG_BOARD_LATE_INIT=y CONFIG_CMD_BOOTEFI_SELFTEST=y CONFIG_CMD_ABOOTIMG=y CONFIG_CMD_NVEDIT_EFI=y From patchwork Fri Jun 20 02:25:56 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 898291 Delivered-To: patch@linaro.org Received: by 2002:a5d:5f54:0:b0:3a4:ee3f:8f15 with SMTP id cm20csp1105848wrb; Thu, 19 Jun 2025 19:26:25 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWbxDJVQ6imrcdohq7uNA1+SdzN57WlPInM4d7bdKyeIsLFkgADzrPapCyPYWdGDzgH8YTeOQ==@linaro.org X-Google-Smtp-Source: AGHT+IGBJeAp16nveSiIb0ugdvxtQWJ3F11Dr/bxwVjWcFHM88UVCu5P1jQ7ucYB8NxrcUrtBFAi X-Received: by 2002:a05:6214:20a8:b0:6e1:715f:cdf5 with SMTP id 6a1803df08f44-6fd0c969fd3mr10615836d6.15.1750386384938; Thu, 19 Jun 2025 19:26:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1750386384; cv=none; d=google.com; s=arc-20240605; b=i+pxUASfHyLhnng5WYCdLJUsLYOCtliN2IIIllQR/6iZd1T+oYq4HQzWHp1CXR8U0E 8NJQCyDjhVT9QuGaJP0IfuXUev0s2KP0he0lYjMi5NuczyHl1jlkMjP7QOA/pbWR2luL rhc/GvOHXitN6k6jiubT2sEzYuevGqJD25kRhXGyF6fTRqjb2tvbg5wXFnmZWUPQg0wU jt8KIGqmIZlULTKRub7ctXOJBRBwnhAJpuIxnhgJZyheH/KYQBNnABZxL8wEjhfFW8dZ 9p85x6Btf/8nyBhbRbYvPvsJGPbr4+m+W+LmLaY/npzLB0eIFyDND6NmeeydqczacNGa 7XgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=j8fqpV8p75oQjigV1jTWftiIvxgkaLTFyd9SIkmgReY=; fh=2E0Qzkb2W0//Ea2h1i8Z3OYntt1ZLJwiVKRFTBWfi6o=; b=I3bcP0OmLsGQBIHhUnoeVPmfYrwrnVs2JEETYVdXnPPdslJRsDpvko6E22h7K3BEr2 xMPBcvQaTBNlDf0VnQHOS0M5Epz2rNhVThfdsUewiY9I0FtZ9hfVe3K9u1prwImxVAHD LtQ4gUUKDBlidkeb54S5AaqI0RXyi2UePisficum7uN2Ms+gBQZHXKqANm2wXSyPCJm7 btFf8p85vnwLt2YW6v9mB1+nlWxpasSV3bw0oSLcxYUFAndWcvb0R1Vy4Zu1m3xWcGa8 mcDkvhG/HLdPYJiyIyclhXNlV4kA+CAJ9Q4N9yrsFP939sc4/7FiqaFXThXDXl2LQ19+ 9mYA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UY3dFSZs; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 6a1803df08f44-6fd095327dasi11648746d6.140.2025.06.19.19.26.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jun 2025 19:26:24 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UY3dFSZs; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2D32E82D39; Fri, 20 Jun 2025 04:26:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="UY3dFSZs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A417E82D88; Fri, 20 Jun 2025 04:26:04 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 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 1B3B782D34 for ; Fri, 20 Jun 2025 04:26:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=semen.protsenko@linaro.org Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-72bc3987a05so830234a34.1 for ; Thu, 19 Jun 2025 19:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1750386360; x=1750991160; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=j8fqpV8p75oQjigV1jTWftiIvxgkaLTFyd9SIkmgReY=; b=UY3dFSZsD7LTkUL/E1Mmpy86UOmzPmX7fApXaKrDEw5csIpoOyyLobEG2nXGWfiGZB F6tcaSDFKt81QUBmQixrave/+ZtxcGMbVbx7r2S1DqKEQLb1X59m4daqCGx5HtowliFf W2HYEc41nV5QqtUdjGjTBKf1BMMFNMLqU7j6KW4VcQR26DuSyDTTM75luIPu3Htxhzk7 0Jo+d8Edf+qQMi1k7anm6W23+RCX9iagukfWrJhh+QJ18fYJp2ZXzEoVgu5uFdHuKg+h LCKaYcC5/SYUsb232GiNWHnqDaIk/dwg+EUF5UGKaB8leQiMGFyE/Kj0ub/02pwL28oJ j6NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750386360; x=1750991160; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j8fqpV8p75oQjigV1jTWftiIvxgkaLTFyd9SIkmgReY=; b=aVjt0j7ocUs5fhxc5iTIooY2RsQn+PDNAKRg1+vSl4zepBIYZQAuB2i3sRGqVlzMn/ 76nXyvTOXiMJLfOyCGcEpLuItEE3NogvreRFyM2NKvwiXUjuO5iL1AJtF4stN5xv7eiM plx44fpRSJNh5ia23FjFhz6o0IANuQ/hAf4x/EgWFyYph2LbdmAdaaWONN942ssx2KkL eNh9S0JvCobu9TcIj7QwCfhVhUk372AlSUeZX9tUa+QIGWKxVvh2/CASSyHSxYDK91RE KpE75TbYp6WnSqvfdxch73Cu39N9+eJ/K7j1LmtF7QtEjRY+G3GeJSBV8+4RUyqgBLHL P1qA== X-Forwarded-Encrypted: i=1; AJvYcCXZlkNUKue+2QRgD/Z7jbTFH5vpZ420UQmEmsqfxqnbV++Ou+GyCh7B8RRzU2o+6yfy4KcShzA=@lists.denx.de X-Gm-Message-State: AOJu0YwSR6TJEzgybKU1IX+3OXJzrUb53AuBDJN0TxtzH6Rszsoj3U2Q uixj/24tljlE/0SpYfJHc2zrIUc5O1+MSf18/SBI+8QlfqnlmpjzZS88EdmLE7KOamE= X-Gm-Gg: ASbGncvRU2gS+JTpxVsJ6tJvBaNju4kgGMbPmfX3zh3mnfHySECGKXECfBVSSq5dyUM oL9Y25pk5VjR0To2Q7Ipf0+r43860N+K86LDJjz8yoEKXU2/yF96AHbdUTyu6Lvyj28+fjMYV7W rH/LPHhjprkvdRSDEZdSE0uAen6uQFYN6gZ6ksskllt5/MDHiZILD2Zdako4EGxxD00ptHnmJBY iftv7xh+xpK+HmdH1/sMuNk4wFRurUNT3xPMIE7xnvMWCzN75USPJd9XnPTNr6ZlhWxOhXICpEO kIdl0dl99ZJfn8LzoiR2RrxIlaypNgZGT3wFkynFGsVTMNP12//u7SkP/zQ6+hi1bAYcanhW X-Received: by 2002:a05:6830:719c:b0:72b:9422:aec with SMTP id 46e09a7af769-73a930498b6mr563774a34.8.1750386359783; Thu, 19 Jun 2025 19:25:59 -0700 (PDT) Received: from localhost ([2605:a601:a0f4:b000:264b:feff:fe59:d7f7]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-73a90cbb5ccsm157060a34.58.2025.06.19.19.25.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jun 2025 19:25:59 -0700 (PDT) From: Sam Protsenko To: Tom Rini , Minkyu Kang Cc: Minkyu Kang , Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Jerome Forissier , u-boot@lists.denx.de Subject: [PATCH 2/2] board: samsung: e850-96: Load LDFW in board_late_init() Date: Thu, 19 Jun 2025 21:25:56 -0500 Message-Id: <20250620022556.10363-3-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250620022556.10363-1-semen.protsenko@linaro.org> References: <20250620022556.10363-1-semen.protsenko@linaro.org> MIME-Version: 1.0 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 As stated in 5e847f7729b3 ("efi_loader: call efi_init_early() earlier"): efi_init_early() creates an event hook for block device probing. It has to be called before any block device is probed. Indeed, efi_bl_init() registers EVT_DM_POST_PROBE event, which calls efi_disk_probe() whenever any block device is probed. And to make that hook work, the initialization of all block devices was put after efi_init_early() in initcall_run_r(): INITCALL(efi_init_early); INITCALL(initr_nand); INITCALL(initr_onenand); INITCALL(initr_mmc); Because LDFW firmware is being read from MMC, attempt to load LDFW in board_init() causes MMC driver to be probed. And because board_init() is executed before efi_init_early(), the hook mentioned above won't work for MMC devices anymore. So EFI disk objects won't be created, which in turn makes the EFI subsystem non-functional, showing next symptoms: - 'efidebug dh' output is empty - attempt to add boot devices in 'eficonfig' shows this message: "No block device found!" - 'bootefi selftest $fdtcontroladdr' shows this warning: "Cannot persist EFI variables without system partition" - booting GRUB with 'bootefi' runs minimal GRUB shell which doesn't see any block devices as well, probably because EFI vars weren't passed Load LDFW in board_late_init() instead, as it's called after efi_init_early(). This fixes the described problem and makes it possible to run EFI apps like GRUB correctly, add entries in 'eficonfig', and makes 'efivar --list' command in Linux rootfs actually show EFI variables. The only user of LDFW at the moment is the TRNG driver, and it's probed later, only when it's going to be used (e.g. on "rng" command). So it's fine to load LDFW in board_late_init(). Now the corresponding call order will look like this: efi_init_early() initr_mmc() mmc_probe() EVT_DM_POST_PROBE -> efi_disk_probe() board_late_init() load_ldfw() -> fs_read(), blk_dread() exynos_trng_probe() Fixes: ccfd8de541a8 ("board: samsung: e850-96: Report LDFW loading failures") Fixes: f04e58cc9788 ("board: samsung: e850-96: Load LDFW firmware on board init") Signed-off-by: Sam Protsenko --- board/samsung/e850-96/e850-96.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/board/samsung/e850-96/e850-96.c b/board/samsung/e850-96/e850-96.c index 0bef68d2fb20..3bbd95201b5f 100644 --- a/board/samsung/e850-96/e850-96.c +++ b/board/samsung/e850-96/e850-96.c @@ -18,9 +18,18 @@ int dram_init_banksize(void) } int board_init(void) +{ + return 0; +} + +int board_late_init(void) { int err; + /* + * Do this in board_late_init() to make sure MMC is not probed before + * efi_init_early(). + */ err = load_ldfw(); if (err) printf("ERROR: LDFW loading failed (%d)\n", err);