From patchwork Thu Jan 16 23:01:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 857932 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:cc8:b0:385:e875:8a9e with SMTP id dq8csp441556wrb; Thu, 16 Jan 2025 15:01:39 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWrNOZuHvS7oLw6bUvoITx2wjpfUs/ve/RTIIcdGouAFVV3kP66Jcnulvx66kzb5x9JnMexxQ==@linaro.org X-Google-Smtp-Source: AGHT+IHVu9qj3m9kaPsJu92q7wJmGQbNBXthc00rxx3Fs7TcQ+MGeTUmm5lnmHg3jaAGzYk1c+dQ X-Received: by 2002:a17:907:6d1b:b0:aa6:8600:24f3 with SMTP id a640c23a62f3a-ab38b162cefmr48226166b.25.1737068499614; Thu, 16 Jan 2025 15:01:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737068499; cv=none; d=google.com; s=arc-20240605; b=daFLg7R63clG7Oj+1HJJ4MAX8En3hsj1pnneZOn6H6R/CZYeUbvCyHYYRglqte0t5l s4iST0WurhKNW66UmH7c4j3wnCaYIOhv/YDx2RCl/cnr3p2s87lr9z+pYXKizztxSTSZ fRk+d1fxBwElZnaJJYEeGoLFc24niH/dRo1oVcIGd2EiOorP/c5KAOZ6FaUbeqM57jXe E4D9fhX5ToTgYjTo3jb+KnS+YQX7ngDY8ffP3g/3SSXMvbAGFZRRrFhYOD71EImc+AQQ Q5lob7GcF9apzaE94LCbmJN+TFJcZsm4rxprJtJYXNllTiDm4/ZVBPEnrkS0m9anNKbk wILg== 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=EpsYxKOZtZvw4QcRQyOhSzssllEy/xoROUXq6Ygrmnk=; fh=F2fv7PvK+WxWLC2Bw3pOO41kCpjdSrtiqmBnFeV/CQk=; b=COI7ZYVFVBrOELspr6jqRp6sEu7D1zJMr0rm+IYytPEsqC8npSZHRsNNg60Nnl3V47 1EUrlseTTM24rEfZJVknIkC56jl4fKEAihP3NwXeZLY8p1gE7h0sKy2Cn2wES0TWaviR jQJ1EkHHk3KvwRtzDRqgOk+48iNsVf8cLG14f+iQLdLhDTc59jzWLkAga1S3TijbSCIW FGkHL96f6mwIf/k5vUm5r9OFbLsS3gdGF4wCfcM3GPDgbIqdag14qaWarsz6b/vhZKgx QjSDrTytxykBdW0Y6LymfN1UuJ2dVu1zkCk9+Ho0TyYG3iKeJC33DxLvTlSqaASYCVFI Tdcw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WQErDItU; 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 a640c23a62f3a-ab385261fecsi62043166b.774.2025.01.16.15.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 15:01:39 -0800 (PST) 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=WQErDItU; 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 34ED080719; Fri, 17 Jan 2025 00:01:38 +0100 (CET) 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="WQErDItU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C89E280717; Fri, 17 Jan 2025 00:01:37 +0100 (CET) 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-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) (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 903528022B for ; Fri, 17 Jan 2025 00:01:35 +0100 (CET) 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-oi1-x22a.google.com with SMTP id 5614622812f47-3eb7ecc3c54so966404b6e.0 for ; Thu, 16 Jan 2025 15:01:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737068494; x=1737673294; 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=EpsYxKOZtZvw4QcRQyOhSzssllEy/xoROUXq6Ygrmnk=; b=WQErDItUC+1EhZd9bIAZ+6lvkivuDVt6nMIONYDk03aHZA3hEif2qWOmhBZ3vbANqy uigGCLkyl8i6aQ//M/wwCypopz2BDjEBuCVW0GvWQiHrvop4/2KakAHtgo1j7euK1n3v 38G5NX0s+x/p0MZ7vaZd0FvepRyneI+nGqOUfnR0yhzF+apCQ1FsZ722DiqdSIbOznMW 7zguhJOwcVb65NAY3K8g1Q8D1ilFRFve/lp4kSTyE0VS3fDT3B7rQgFRIklbw2gYfWYA /NykzT7f+3zFWy6L33Kb1yYiQcfb/TZUZapps7d9KkPifs7TrQJQ3JFisTUHDtePgWPD x+GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737068494; x=1737673294; 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=EpsYxKOZtZvw4QcRQyOhSzssllEy/xoROUXq6Ygrmnk=; b=uEmjcqNxWlaYiuOq6gN/vAfPRqpTz5Nj/eDv2aZA79JdXhjA2Z7poQBmK173UNLhuA alhPzcTO8j7naJDcwNmzSyM/JlYtftrphpiW1uvxRZUtIvRQmqLiJJRq/mjsYwgZjRpS DdJmDR/rnbBK+oopZn79G4DqKHtPahT7tkjITZEMhM1XsIAaTuYeaoNpKMh0JXDpG1/9 Wl2T04ycpyKSgiM8wl2FcS0vCGHOlst7Bgvnb/FpBAH6ErBIOYE5SZ0SQcYpgwTYI51Y dX2nJu8q3HW+cBYaA8Q0EXYUTAVFTvnNMMeJSQtLSE51JlAMRTLmoZdQPNE7WuQUs24W 8rgA== X-Forwarded-Encrypted: i=1; AJvYcCVqb2m8wHAz/w9OVyDxlq4w8wb1clgoIdkb08ILsJpi9qo+HexEFAXLQ+6bxPBF1bGzaWBk4FM=@lists.denx.de X-Gm-Message-State: AOJu0Yze0WKuMGPJiQcEarwyvsF9S4C/IZEGGtLLzGwES5SdfzGVlybK NCmNrFxT+bIEIt59mONX+/qmSF0iG6mrMbf2tVI2Ewvs7XyyJU3jvpUNBNcupC8= X-Gm-Gg: ASbGncvr633WOxePw+MZygMmwxbmVfd6xPVxXIqF7QqQR106M5WQwogD9NkPdXib20P Lev+Gu5jXUB6lk+ZZ8sIvMwOaPSGO699WKEDxUkOsbBSD8B9JJzZdzhAdavFInbBE4QYNN1escd S6FJ2Rozrb0H/KZka2ZOA2E6ZVVtQN4X7G0LWJmPBeUT4Xh+6d1OOOg/DCut3sLYOfF6BkJlxR2 Jl/BzkxaEdqoAIFZ/D4r4yv21woqjktGK4KTZwF8PxjGvntXBx+zfOTzRTwgw5MycU= X-Received: by 2002:a05:6870:2f05:b0:29e:2cd6:4d1d with SMTP id 586e51a60fabf-2b1c08bfd8amr423354fac.9.1737068494370; Thu, 16 Jan 2025 15:01:34 -0800 (PST) Received: from localhost ([2605:a601:a0f4:b000:264b:feff:fe59:d7f7]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2b1b8ceff9bsm578510fac.18.2025.01.16.15.01.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 15:01:33 -0800 (PST) From: Sam Protsenko To: Tom Rini , Minkyu Kang Cc: Ilias Apalodimas , Sumit Garg , Simon Glass , Heinrich Schuchardt , u-boot@lists.denx.de Subject: [PATCH 1/7] configs: e850-96: Enable options for updated env Date: Thu, 16 Jan 2025 17:01:24 -0600 Message-Id: <20250116230130.3337-2-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250116230130.3337-1-semen.protsenko@linaro.org> References: <20250116230130.3337-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 The E850-96 default environment is going to be updated soon, requiring next config options to be enabled: - CONFIG_DEFAULT_FDT_FILE: $fdtfile will use this value - CONFIG_PARTITION_TYPE_GUID: $partitions will rely on "type" feature Signed-off-by: Sam Protsenko --- configs/e850-96_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/e850-96_defconfig b/configs/e850-96_defconfig index c36196c510c5..b1b3510d691d 100644 --- a/configs/e850-96_defconfig +++ b/configs/e850-96_defconfig @@ -13,6 +13,7 @@ CONFIG_SYS_LOAD_ADDR=0x80000000 # CONFIG_PSCI_RESET is not set CONFIG_ANDROID_BOOT_IMAGE=y # CONFIG_AUTOBOOT is not set +CONFIG_DEFAULT_FDT_FILE="exynos850-e850-96.dtb" # CONFIG_DISPLAY_CPUINFO is not set CONFIG_HUSH_PARSER=y CONFIG_CMD_ABOOTIMG=y @@ -22,6 +23,7 @@ CONFIG_CMD_MMC=y CONFIG_CMD_PART=y CONFIG_CMD_TIME=y CONFIG_CMD_RNG=y +CONFIG_PARTITION_TYPE_GUID=y CONFIG_NO_NET=y CONFIG_CLK_EXYNOS850=y CONFIG_MMC_DW=y From patchwork Thu Jan 16 23:01:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 857934 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:cc8:b0:385:e875:8a9e with SMTP id dq8csp441731wrb; Thu, 16 Jan 2025 15:01:56 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXHCQfhZ1/S3RPx20yfPYe1nHaYrtyMs9f1Hd449Yjk7tkUqP+uUjke6k9PKio1j0tOk4vpmg==@linaro.org X-Google-Smtp-Source: AGHT+IGSkDQ0rWg7aaCbj1GpknPm+crcVmnnetxJpeuzx5JDrG9MkJ/n2G9FrOkDfUgX2JJoqiE+ X-Received: by 2002:a17:907:9694:b0:aab:f014:fc9a with SMTP id a640c23a62f3a-ab38b10f4c6mr55544666b.22.1737068516527; Thu, 16 Jan 2025 15:01:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737068516; cv=none; d=google.com; s=arc-20240605; b=MQIR5gzkrzOrMT8bqFqMphsaN3TE5xd/dmLSQxzGNVV6ac2fhqZR6/QalLubdsW9ZR JzNravEFDqrTSlc8LTns99J1dpgzuxJVrnAA9g6eXA+9yGSgScNk4KaWM2ifpnTBSLRj TDJZHDw2Kgd/3cQZbqguEYiAFtUcctU8iFxq5VE13OlSEYnaXw71ex1hyBo8XBY2dtuK vI1WjKO+XYmc6tstuNcRhVHD5Zx1I8Ozox/aQ4T5lIZ+dMasnlZLsKqYgSVyhSZ+2WnC iEDtvxX+ufkW91wRzq/ONOMvKDYQEgncG0IlQoDi0M8pDeq+jxX0k5xnU00++nZaeSie bi2w== 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=SPkZAeZDqazXZtjFU/k1Yiley/PHe8k4qR4R+Lz6nEo=; fh=mV3VSRPN7DHTtCY2zYqtcqFi8/bygx7+6209Q+kB4YA=; b=M9prTNH8J7SO5paFknBAwPmxLvk5VfmO47pCFaM4OSYBWob3scF1kItOOiFb2F9INz akWBa/d2b9p7ZafAKYFph9fR+qOCnokFS2RFmvd97hKcr8gkSdD4uwzupDAz4S9r1NC4 yrsp05bTvmxCwAYlU6gixrf5hzzClFK506jCdhTqIDk+0VsRnz4uytjatcMd6WSkkSJ3 DNOV7TQ2oZ3M1G8p7oeL8B2SYhunEhk0j63Xpok19gia9kfIuop4nQkUtXYH+BsCbMMO hWvk/colt7g5yKLnMNc81dy8edNW2tZ2uPe//Gg2N4FOtOW2loqlqOBCEesPSuuuCqZ4 ErZA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WaaeCOU9; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a640c23a62f3a-ab38520718bsi62121866b.640.2025.01.16.15.01.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 15:01:56 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WaaeCOU9; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 C75ED80763; Fri, 17 Jan 2025 00:01:42 +0100 (CET) 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="WaaeCOU9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B8ABD80757; Fri, 17 Jan 2025 00:01:39 +0100 (CET) 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-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) (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 9B2FE80713 for ; Fri, 17 Jan 2025 00:01:36 +0100 (CET) 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-oi1-x22a.google.com with SMTP id 5614622812f47-3eba559611aso525313b6e.0 for ; Thu, 16 Jan 2025 15:01:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737068495; x=1737673295; 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=SPkZAeZDqazXZtjFU/k1Yiley/PHe8k4qR4R+Lz6nEo=; b=WaaeCOU9iBOcDeTJ5z/CLGRZb32lmat8rOaOxa53bp1Tv+QYkaGfr+D23obn/6Ws2A w0Sm6dOnJC5ps5/fiSPjc1TjRhLJuOkuXs//9GB3iTGjsTnwaXdxFI8e5Pn/tayd0HJf 40dRAXs9zTRarxGZLuzQq3jYVE99MgDo4lhUHBEcYh/QKmuc6FE2Yrk8ic4X6AbHO27E V0740EHsxhox/PiUF5AvPcIFzCVwh08MZoW5omUnAqCPixHo3x/F5Ig7a1SDBL3il3pK AhakIvbo618xpdfutmiPS3p94nmhWM8mHS1he9cMjKZnOunzmvE/cp5Vt1ZVdNKBuZW7 dRVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737068495; x=1737673295; 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=SPkZAeZDqazXZtjFU/k1Yiley/PHe8k4qR4R+Lz6nEo=; b=K9ktpKsVuDhD4MD6VNsvkZfJzHEVRr4XTim1Vf86x7d7FvPinh3/aBp3QvkpR+q8tz 4optdq2PVKpY1Wx/dFRuchDEt2DKp2NgkjC2Ky1Mz2tfwjtOarRYdv7tt5y2bJNArHon 2359WIsKUMIS+KYkX7dhP1kTz0lPpCu1y2s5O/rwlxY5wAU+VBqxjjgPPJiYgj1zuOVR q+aBHdcLjtmQqVCN+hFl+EcuauLuKkcrihKekUyo2k+WOODmDVs4ZvngVdPhz7y1rmg/ iJih1elZCJZLyqnSWMakDC9mckKazUF81Ph9lGZUwmOF/Y2eN4mmNi4YoFVUmBbT7MkG tuuw== X-Forwarded-Encrypted: i=1; AJvYcCVaxB96kn0GOm4BP701MZ/fLXaUK8Z4qBQIpquz8tHVAfRNjaDdQvrzCLItaEKHGHC64TJdqec=@lists.denx.de X-Gm-Message-State: AOJu0Ywq2J49kK5dKtZPiLYkAPSS8pU7dAxDRKl5L0HPC9VPEgbOo+02 uh2YttvETdwY+LmzWzDlrqB250WqDL4iogQpRI2UufY7n8osxLPP8+6s8Ocsom4= X-Gm-Gg: ASbGnctiN2jeBiJVdaaZqetyX1AWzmeN8El08Hdi/lAGUhct8MQWClfLKLxaw8UUprk CcPUNsTGguXYzn5PbA6mkJD2Pm2UCZtjGZbf44HOgaL/4FjD6r5TvZ4nYvX/UtiPWcFtpVGfZqI Qz7w2wwOmaM/vWhLnQXGGlhHuuxqAvPFcfUWS/qK/fIoqGv2VgCRZVrH6JJvnLGhj6/gZq/eWXm OAgtUXdfhqpSN+hac1ivJVyCWB5sDylK2FqS1WZPqIwr8mvgPpNVx0VonCr+Oa0sPw= X-Received: by 2002:a05:6808:4494:b0:3e6:3a82:f790 with SMTP id 5614622812f47-3f19fc534cemr474758b6e.6.1737068495399; Thu, 16 Jan 2025 15:01:35 -0800 (PST) Received: from localhost ([2605:a601:a0f4:b000:264b:feff:fe59:d7f7]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3f19db9f6casm410832b6e.50.2025.01.16.15.01.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 15:01:35 -0800 (PST) From: Sam Protsenko To: Tom Rini , Minkyu Kang Cc: Ilias Apalodimas , Sumit Garg , Simon Glass , Heinrich Schuchardt , u-boot@lists.denx.de Subject: [PATCH 2/7] configs: e850-96: Enable U-Boot environment on eMMC Date: Thu, 16 Jan 2025 17:01:25 -0600 Message-Id: <20250116230130.3337-3-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250116230130.3337-1-semen.protsenko@linaro.org> References: <20250116230130.3337-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 Store U-Boot environment in BOOT2 HW area of eMMC (/dev/mmcblk0boot1), as it's currently unused. BOOT1 area will be probably used for storing low-level bootloaders further, so let's not touch it. Both primary and redundant environments work fine: => env default -f -a ## Resetting to default environment => env save Saving Environment to MMC... Writing to redundant MMC(0)... OK Signed-off-by: Sam Protsenko --- configs/e850-96_defconfig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configs/e850-96_defconfig b/configs/e850-96_defconfig index b1b3510d691d..d287018ec632 100644 --- a/configs/e850-96_defconfig +++ b/configs/e850-96_defconfig @@ -8,8 +8,11 @@ CONFIG_SYS_MALLOC_F_LEN=0x4000 CONFIG_ARCH_EXYNOS9=y CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xf8c00000 +CONFIG_ENV_SIZE=0x10000 +CONFIG_ENV_OFFSET=0x0 CONFIG_DEFAULT_DEVICE_TREE="exynos/exynos850-e850-96" CONFIG_SYS_LOAD_ADDR=0x80000000 +CONFIG_ENV_OFFSET_REDUND=0x10000 # CONFIG_PSCI_RESET is not set CONFIG_ANDROID_BOOT_IMAGE=y # CONFIG_AUTOBOOT is not set @@ -24,8 +27,14 @@ CONFIG_CMD_PART=y CONFIG_CMD_TIME=y CONFIG_CMD_RNG=y CONFIG_PARTITION_TYPE_GUID=y +CONFIG_ENV_OVERWRITE=y +CONFIG_ENV_IS_IN_MMC=y +CONFIG_SYS_REDUNDAND_ENVIRONMENT=y +CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_SYS_MMC_ENV_PART=2 CONFIG_NO_NET=y CONFIG_CLK_EXYNOS850=y +CONFIG_SUPPORT_EMMC_BOOT=y CONFIG_MMC_DW=y CONFIG_SOC_SAMSUNG=y CONFIG_EXYNOS_PMU=y From patchwork Thu Jan 16 23:01:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 857935 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:cc8:b0:385:e875:8a9e with SMTP id dq8csp441796wrb; Thu, 16 Jan 2025 15:02:05 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWasgp/pB4x0r47myf5jr9a+v58/WX0fvIIebnMQhnJnJDjvjoNfCk5sBCGygbosI99+yBnKg==@linaro.org X-Google-Smtp-Source: AGHT+IFons7OyP+orasCnj+XpDCg3NLR1bo7ruiK8xHoj8UyC0IfxZZfqX3OKozVgXB8T37V0r6H X-Received: by 2002:a17:907:7b9e:b0:aa6:75e1:1864 with SMTP id a640c23a62f3a-ab38b0ba2aamr59564666b.4.1737068525185; Thu, 16 Jan 2025 15:02:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737068525; cv=none; d=google.com; s=arc-20240605; b=edUOCVsS781R4Qm4oMorGVVjhJgSivifAlDsUzmEoTaObXmkK1UrpNrzAEpctRKTvv etQYRrANjJ8oF1SnjCiBEk4xmGGcxu2gkOBzZPpPNv9WBLIo7HCY3ThlpCvrv3hQRMUj +CcPD9plxSJHmSoP1KpZgGWFrRhjrWc8YKlJPDdHk7z5zrVgb1HwP9k/lLJ6tK89qLAi k/vwBEcTaSJm0w53soL4ktG2wPsE/zT2obLPCgYhi1SsEefgwOpuwAl+/aWlVz5jMB3j Xi98VCk0+QR+0OdyxZFXrTsWYVHf3P/6lfaIvWxPm7uTdQzf9MnfZwy610p+Vw55pvf4 9cvg== 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=EeIWRehaDvJW3klYrgdOiErw+8LPdGBx2RHkuWpcIL4=; fh=rKHMOrguZchp+vxOpPJ0rNkRy5ZK50vtjQtTOZGO5Us=; b=Q5ItTGq0LOSoLM+yrjEjd5lefhtpCxG7kVwUK1OrwRnvXKa0gwJCHz2SmFxAgnkRIJ WneOOhKVpDcYiPT0gs8wvRnFkexy/4edO0l6zwtf/+fd0otkTK/m6/Hye2RsY7dUr5qO 2nin1C/1eei2eRULYkp0FKnYDs6hABxnB1vo2ICadO6EhXDBhpzFurrOIewTQ2b0fMXE JIh/YroqLV/MVG8fa1BccqObQSUIbxajvW6gRp5CfKKzy5AcRuBvzUNb1aJtuBISvPXH T1mJjQCmVX3SCHqYAKrbtZk49w8ycknXuL0CqpK8eHf7y3PPZjQxbFsv2PmWv0vbDTyo zd/Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qVSC8Hm4; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a640c23a62f3a-ab38501c397si59321066b.596.2025.01.16.15.02.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 15:02:05 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qVSC8Hm4; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 1B10680778; Fri, 17 Jan 2025 00:01:43 +0100 (CET) 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="qVSC8Hm4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7383780757; Fri, 17 Jan 2025 00:01:40 +0100 (CET) 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-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) (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 DC0688022B for ; Fri, 17 Jan 2025 00:01:37 +0100 (CET) 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-oi1-x22a.google.com with SMTP id 5614622812f47-3eb9bbcc936so968191b6e.0 for ; Thu, 16 Jan 2025 15:01:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737068496; x=1737673296; 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=EeIWRehaDvJW3klYrgdOiErw+8LPdGBx2RHkuWpcIL4=; b=qVSC8Hm4QkNfi2j04KIErovXZ1ESfA/bHvx4cABGRj5Yq5c5mtXDWWABQSoom5B0W1 +P1XUPcCp4JERmuNIl4NzJgg+WS6TznF02risjN7xe+pPJfS/a2lY4B618WZ2HZJQcLV nPRq8QTVjYo29zh8UZ8ORHOJbaoa51myYe89M8yC+1n/G6JPXVBoyxzUY37FPaBFaTfe 0/taDwFlz6mYkaoSSkBGxGmu+JuiSphdfQ4xO7g0hvq0iVqHrt5iBVIOa1L9uAxSk4ce ZKBx1yrbM0MhRrkSYTP1NKpy/AhyLqJPfLJs2tkJTo+H3Y3tQ+60S0Cy9ila83qTjF1/ ytxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737068496; x=1737673296; 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=EeIWRehaDvJW3klYrgdOiErw+8LPdGBx2RHkuWpcIL4=; b=mnf3xv2aTNwwbgSTU7E7MnKNDLT2Yzln2AC3GJPr4QyZa5spInkWZjMf3TzwJpP+Q8 UWZATMG7TtTvwGsOcX0nl7FysmUc/oMlaMQFL21yn0g4yxnK7DAnHM4Gd+EZYhPtC6u6 g1jpFXV79p3Am5xx7wxevBtxYCnGtqhrNEfeqOxOIYcuKLNuLXKnX7bmOThrYB/NM9cT lPABw60UVkNslorvFi08crozIKiijZi43ngHqVuvyM6C7JHpMqMgE4lOC1babSW4IKjm t2dTdocK3HjfN+Rr6NiUytpM772OChovgRalgCbf95GvAjUXSjI6Kbi/2PU/cQp+rTv3 LBmw== X-Forwarded-Encrypted: i=1; AJvYcCWosxPcZgfXxKD3TBmwIfwcpPOoDJRnW+9KPXOmv52fGy9Xa8Fh5SDn4eT56MmfOJvHPCzNDAo=@lists.denx.de X-Gm-Message-State: AOJu0Yw+U4O3lBeDCFuhLHNFN8daZ/ByjeRQDdmqJQP+wAAM4fUJRupf 0C6GmjTLGc4Yjyb32dCrKrYufoGsyU60TPOylJAokpG5l3Y6PrYszIycU4bHdSk= X-Gm-Gg: ASbGncvgbEN8VqabUv8duGRXcUir9bnk2n7U5o+mnunfXnk/M8ckt+6Y/+GGr1l/tM3 jvDjtBPT4BPh5a2fdnLbpsnnedR/47Dm0ICibfIL9U8v2SOwQTUv4p4lAIR9+s7hEr/IIlqJpKI S44RK/A7DeHCuLj+iosEYiDL7b7BlcLBGB4D4Nv5zDOZyineBcId33kLT18++585zQcXE7jwE8y SUBZC8Yn19KIdIRShno2qWxIUbKxbYqm9hMFOWAWiUMvfSsmkvnZ5nYonQypD5qV84= X-Received: by 2002:a05:6808:830f:b0:3e6:5f3:f0d8 with SMTP id 5614622812f47-3f19fdd1e38mr331284b6e.24.1737068496718; Thu, 16 Jan 2025 15:01:36 -0800 (PST) Received: from localhost ([2605:a601:a0f4:b000:264b:feff:fe59:d7f7]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3f19da7a23dsm413084b6e.20.2025.01.16.15.01.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 15:01:36 -0800 (PST) From: Sam Protsenko To: Tom Rini , Minkyu Kang Cc: Ilias Apalodimas , Sumit Garg , Simon Glass , Heinrich Schuchardt , u-boot@lists.denx.de Subject: [PATCH 3/7] configs: e850-96: Enable more EFI features Date: Thu, 16 Jan 2025 17:01:26 -0600 Message-Id: <20250116230130.3337-4-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250116230130.3337-1-semen.protsenko@linaro.org> References: <20250116230130.3337-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 The basic EFI support is already enabled by EFI_LOADER. Follow SystemReady IR recommendations [1,2] for U-Boot and enable support for more EFI features. That includes: - CONFIG_CMD_BOOTEFI_SELFTEST: support for "bootefi selftest" command - CONFIG_CMD_NVEDIT_EFI: support for "env -e" to explore EFI vars - CONFIG_CMD_EFIDEBUG: support for "efidebug" command Also enable RTC support: - CONFIG_EFI_SET_TIME - CONFIG_CMD_RTC - CONFIG_DM_RTC - CONFIG_RTC_EMULATION [1] https://developer.arm.com/documentation/DUI1101/1-1/Configure-U-Boot-for-SystemReady [2] https://developer.arm.com/documentation/DUI1101/1-1/Test-SystemReady-IR Signed-off-by: Sam Protsenko Reviewed-by: Ilias Apalodimas --- configs/e850-96_defconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configs/e850-96_defconfig b/configs/e850-96_defconfig index d287018ec632..1cae252175be 100644 --- a/configs/e850-96_defconfig +++ b/configs/e850-96_defconfig @@ -14,16 +14,22 @@ CONFIG_DEFAULT_DEVICE_TREE="exynos/exynos850-e850-96" CONFIG_SYS_LOAD_ADDR=0x80000000 CONFIG_ENV_OFFSET_REDUND=0x10000 # CONFIG_PSCI_RESET is not set +CONFIG_EFI_SET_TIME=y CONFIG_ANDROID_BOOT_IMAGE=y # CONFIG_AUTOBOOT is not set CONFIG_DEFAULT_FDT_FILE="exynos850-e850-96.dtb" # CONFIG_DISPLAY_CPUINFO is not set CONFIG_HUSH_PARSER=y +CONFIG_CMD_BOOTEFI_SELFTEST=y CONFIG_CMD_ABOOTIMG=y +CONFIG_CMD_NVEDIT_EFI=y CONFIG_CMD_CLK=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y CONFIG_CMD_PART=y +CONFIG_CMD_EFIDEBUG=y +# CONFIG_CMD_DATE is not set +CONFIG_CMD_RTC=y CONFIG_CMD_TIME=y CONFIG_CMD_RNG=y CONFIG_PARTITION_TYPE_GUID=y @@ -36,6 +42,8 @@ CONFIG_NO_NET=y CONFIG_CLK_EXYNOS850=y CONFIG_SUPPORT_EMMC_BOOT=y CONFIG_MMC_DW=y +CONFIG_DM_RTC=y +CONFIG_RTC_EMULATION=y CONFIG_SOC_SAMSUNG=y CONFIG_EXYNOS_PMU=y CONFIG_EXYNOS_USI=y From patchwork Thu Jan 16 23:01:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 857936 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:cc8:b0:385:e875:8a9e with SMTP id dq8csp441867wrb; Thu, 16 Jan 2025 15:02:13 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWqkmXFIbLKcJ1uJFpDAruG+5jRM76mAuKaFVVWmPEFtNI8l3By/8ZwpOft9JPCTl8ekIndqw==@linaro.org X-Google-Smtp-Source: AGHT+IHQjjsLx+n7XOf3pv+Lf9YZrcbKTV/w0Z8SRy33qGWkJexyFhN9Nqvycun7G+kHXgYDfuE/ X-Received: by 2002:a17:907:86aa:b0:ab3:30b5:fa62 with SMTP id a640c23a62f3a-ab38b15c7d6mr50820666b.24.1737068533341; Thu, 16 Jan 2025 15:02:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737068533; cv=none; d=google.com; s=arc-20240605; b=ZCZqTahIKKy/b+sdfguXWeRlIoxPwrzPzYc8oj/kkiwjcApdYPTNVi2yPz9rgH+eHj 2oHA7kOPEJgrYPn5AFDZR+8nKUiSfl+8zlRZjVzDcd4qOBfZsNsfFTWAuRFEDxCD1pZW ya5hUFLOr8CVYZLL4wSF27sY8RJJeRLEmVRzI94a9xQfjOmc7fiPcnTojUEvtsEyHOiP N5EKV/NFJfGHocVE+Qy8TP3ZVGSth70RymTZM6G9bZO/MclRkS6oTIppL3k2EiVz99f2 Unwmq1gTndqum7jX3rrxdQOUqo2l9ViNd82fHY46QxXcXPb2FrxRhQgggvcnxL6t1F8C yf6Q== 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=Rrgy3baiLJxl+ZSeXLdCueyRWZTgW85ExpoRH31UxJk=; fh=cEWG+45t9c/x8z0d+Gm4tfHVHiuSQeN1TeumIXqWvXk=; b=FpeSeHoMPD27uObFN2XizZGwQ7lUiMlv2QLGD0/KGZ/pSwMXZHA/KW4iaFxvbzlm7v ipaj8Aj4gNBsTGefNwP7WdgU3zp1B9DUqG/HNOy08pV5Kli1ubfLBLGE/tdSbN0Q3IX4 KP2fWWXSe27ldsrar5NtCrMEKt70sXMo40Nx1ICWlFUOePSVbIMWqumO+R5fh2dYdLNh yugLbXk+mYOx/QaLklte1iDYI7wVPms4NBnqz74CZLgvHkX30yo83SwItX2FoM8Rc4NK Re1XUFtg46zHyVIdtZ7+GE6cDAVvunPWVK3oulUZ7kq5HT3BLncgPXJwBju8kjaga7q+ Y6Jg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Dh7tMSrU; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a640c23a62f3a-ab384ff77d4si60049566b.572.2025.01.16.15.02.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 15:02:13 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Dh7tMSrU; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 65E3680790; Fri, 17 Jan 2025 00:01:43 +0100 (CET) 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="Dh7tMSrU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1EEA28022B; Fri, 17 Jan 2025 00:01:41 +0100 (CET) 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-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) (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 E4A848073D for ; Fri, 17 Jan 2025 00:01:38 +0100 (CET) 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-x34.google.com with SMTP id 586e51a60fabf-2addd5053c0so829884fac.1 for ; Thu, 16 Jan 2025 15:01:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737068497; x=1737673297; 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=Rrgy3baiLJxl+ZSeXLdCueyRWZTgW85ExpoRH31UxJk=; b=Dh7tMSrUm042Vvt5pBLgqPMwoeAHeh+EKQXxRC6sWf9cogth/7w+R8QQ30+K2YoYq1 Bz0mEymoICcKzEhvSRtz3bCALmcUQT7ulsLM9h/iaGJ98BL9tolt/zmM84pGhU8381Mr OrjzWtM+nPFFDXkf3JvFSrZ0XPRtvfYDps7M44abt99GLe6wRwJQ8i8c9346bN4pH2iy rf+7JFnZLUlFntUxjMAm1dEpDkjjB9Z/kgQ0P7cJjcywAtFtPS3870V+rl6/JC/ssOzu iR3I49reOBg+zUusep2MoAcoReEJ0EWj91usBc7EIYkfZh/emn9SoOCyFKTVdZqpvBTd suLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737068497; x=1737673297; 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=Rrgy3baiLJxl+ZSeXLdCueyRWZTgW85ExpoRH31UxJk=; b=Ri3ry/NYQxyuJnNtEeZ6T36qTp2wuihh35SP3oVpccTsBFAoRedaleDbWxA00pn6e6 OnuY81kfoWL3cvT0hCJSJ4czI+hfN2A5RHrKqAGO2YorE3V+DKwkEsbIwzSPQosrI4dw r7jf+Na/Q8OjmQe1QMs2chHhGdLh/9olt/313C9ar5BCHaIH22yTr+CUu8Kv9tuHMtdY oM5Y/eO9xhAY6b7fO0W4Vn53qt/im+qzPGXLlJq2iT2TnILz5WxNPs1qRqtByHrb2B6y 8VEVMT6W7UMZtLsg5FrzmJzTYTumTa3ODXJIikCnWwEoaTn1RNUJMGZzpeQ3BUEebfk9 xCkA== X-Forwarded-Encrypted: i=1; AJvYcCWIVYupBHBwE5weRqOnBgXTjrUIO0oDle47dkUXATkf06iRgnDXFZVzq+YrmsJodn288RE6spQ=@lists.denx.de X-Gm-Message-State: AOJu0YzD9yjfVJbActo+4eOauHGb84MvcIJH0U+r7/LgZ7aAyTpSi7kX WzglCtVHEmBfDA43euUPIH3kaOXsxhgHIq0Tt3FvHmpecCCTudI5hOCkAOM7HvE= X-Gm-Gg: ASbGncvp8udmoLxIB2wJTgP6tmCnTU2xvIaWOFPqZBj+xv3z3tkkmOGdB/jht+MZaqy 3BaonXymjs1sIuuPqFZccBXYqjOwbAOVPh2GBM3wdNuJpLehLuqzBLfjWqXEEU08ttOdvpFlZ+S eh1MV25ic67sMYMkA1dBVyOHXyozXi6w7DWeRXMJMeyWGOlc6Zdw1sJAMIjEPf5kIsp5UQNZXwZ yEjm+Ftcv07RUD8w/M1Jup1qQnTv1lcWUdA1mXJJdqP+A+x/rZGrl0c9Xh7kul1FcM= X-Received: by 2002:a05:6871:d10c:b0:295:eb96:9fd4 with SMTP id 586e51a60fabf-2b1c08bfdddmr396950fac.11.1737068497741; Thu, 16 Jan 2025 15:01:37 -0800 (PST) Received: from localhost ([2605:a601:a0f4:b000:264b:feff:fe59:d7f7]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2b1b90d0acdsm588976fac.50.2025.01.16.15.01.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 15:01:37 -0800 (PST) From: Sam Protsenko To: Tom Rini , Minkyu Kang Cc: Ilias Apalodimas , Sumit Garg , Simon Glass , Heinrich Schuchardt , u-boot@lists.denx.de Subject: [PATCH 4/7] configs: e850-96: Enable Standard Boot Date: Thu, 16 Jan 2025 17:01:27 -0600 Message-Id: <20250116230130.3337-5-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250116230130.3337-1-semen.protsenko@linaro.org> References: <20250116230130.3337-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 Enable Standard Boot on E850-96 as documented in [1]. Along with corresponding changes in the default environment and properly prepared eMMC partitions (ESP and rootfs), it makes it possible to boot Debian rootfs automatically. All boot methods were tested: efi_mgr, efi, syslinux and script. The preferred boot method is efi_mgr, which relies on the configured EFI variables (stored in /ubootefi.var file on ESP partition), which boots either GRUB from /EFI/debian/grubaa64.efi, or systemd-boot from /EFI/BOOT/BOOTAA64.EFI. Currently used boot sequence: U-Boot -> bootcmd -> 'bootflow scan -lb' -> efi_mgr -> GRUB -> Debian [1] doc/develop/bootstd/overview.rst Signed-off-by: Sam Protsenko --- configs/e850-96_defconfig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configs/e850-96_defconfig b/configs/e850-96_defconfig index 1cae252175be..5facd418260c 100644 --- a/configs/e850-96_defconfig +++ b/configs/e850-96_defconfig @@ -16,17 +16,15 @@ CONFIG_ENV_OFFSET_REDUND=0x10000 # CONFIG_PSCI_RESET is not set CONFIG_EFI_SET_TIME=y CONFIG_ANDROID_BOOT_IMAGE=y -# CONFIG_AUTOBOOT is not set +CONFIG_BOOTSTD_FULL=y CONFIG_DEFAULT_FDT_FILE="exynos850-e850-96.dtb" # CONFIG_DISPLAY_CPUINFO is not set -CONFIG_HUSH_PARSER=y CONFIG_CMD_BOOTEFI_SELFTEST=y CONFIG_CMD_ABOOTIMG=y CONFIG_CMD_NVEDIT_EFI=y CONFIG_CMD_CLK=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y -CONFIG_CMD_PART=y CONFIG_CMD_EFIDEBUG=y # CONFIG_CMD_DATE is not set CONFIG_CMD_RTC=y From patchwork Thu Jan 16 23:01:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 857937 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:cc8:b0:385:e875:8a9e with SMTP id dq8csp441936wrb; Thu, 16 Jan 2025 15:02:21 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWinI8IWfdNQT8CUigDUrVC3Qy6W3bVoVODooOp168cdkWxSsh7gSHGKJAftLVIjNur/5u8OA==@linaro.org X-Google-Smtp-Source: AGHT+IFrbtv0PnukY62G+gO6zxo86qj3BrgpqRHIWZPUTpoEdO6GKelXmkSLie3sRunPGC1VfC9A X-Received: by 2002:a05:6402:1e8e:b0:5d4:55e:f99e with SMTP id 4fb4d7f45d1cf-5db7d300e9dmr874209a12.18.1737068541528; Thu, 16 Jan 2025 15:02:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737068541; cv=none; d=google.com; s=arc-20240605; b=DyvazM2Axlh/UlPznAZOf6Hsj8vWWuNePuXitcWc+ZPs3W5UD4hJekLnzuez/vt2U+ 2EnXnT301fe+Yu9NlKB/Zf1WjkPZmXoLTvr2Tv21hdDrC0nLw297pvRPy0vZSGwc/4ie o8A6ZnF0lwyuN6ruHWGJmQsITWDRwyEojeI2SNFrEGrLL+/nqF50ZabFTlZI4JHU/uMB HECCdR0ZsGUE0wDpslBqENdD76Oy1GFAlZMWPmiWjTZbrQS51q6FxTbRvtxyaefmtPAY x+YTY3EApQYCbbmlfIdBghQC1h+FHSdIAAIQTVilzArPceDyNOGprIN3wXcqPVq9gfON rsqg== 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=mrfgxcFwNvdOF9sDqxRCvp0D3dnFqVKZKtyf/eaT5Jg=; fh=Ah+n4AyvLP6/Hf0vhK+Jrm3qnW22eE2DHQH1dFFQIw4=; b=Owx8YxfvYcGC0kssan0ZgKgmjaKZtgyaWRsKrTl11r87LE1kcNkch3IKdpnTNeIxb0 huGs6GU0XgY3BOk7AX840egag70eFVWuz9D+d/lTnHeTUgTYzC6L5puVQEY0w8obZ/0w SnrRdG1NB6sHuoCFtQx7bD12ljm2+JVoO3BiW2opXPKwDWvYfQhRh3WwnR1W6qrRKvlc NY0X+BEA6uFxxG16C5r4LxsWYU0LGq/wRS6/zBwt3mmcGZuRxiXT3JE6CHllDCFMwJKM 4lSKxQnF/6DcGTbfWDWTf2W80+fq2CXHIeZ0gY9nUiFnE2mwglNRsbpLC76/BrKUbEbq iU+w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L8IPzr2S; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a640c23a62f3a-ab385265296si61351766b.837.2025.01.16.15.02.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 15:02:21 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L8IPzr2S; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 AF5F280713; Fri, 17 Jan 2025 00:01:44 +0100 (CET) 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="L8IPzr2S"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 39C6180726; Fri, 17 Jan 2025 00:01:42 +0100 (CET) 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-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0: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 EC31D80713 for ; Fri, 17 Jan 2025 00:01:39 +0100 (CET) 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-x331.google.com with SMTP id 46e09a7af769-71e565708beso836503a34.1 for ; Thu, 16 Jan 2025 15:01:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737068499; x=1737673299; 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=mrfgxcFwNvdOF9sDqxRCvp0D3dnFqVKZKtyf/eaT5Jg=; b=L8IPzr2Sb8oY6AmBmovrrYOI0W1BnsawRkbTSCdXW7beYw3IWxPWeqmqSeLcPH3+OD HuKxWqkafBQcG4NAVBjM/p5iz+CTEMyPYdeH/ny2NqC2iCt/79KkEmZ99/rSzI1cMs0a mOEWSLJRxC6f7RAZQnnRc8m0dMW/+nxhnfHido58lkTf7UhsXZFRqPQVM/PK3d6BVPlx +jM7ByYS5HvIux+LFudkW+aB6onIIXpOOUj7Bjl0nwlAy11Jp1m8g18PnVfpsRg+ezU6 km2QJTS9Dd/2M8CSfPDorrRu8VFqgHopNnexZwj8hHNQQyg3nd/CfFzakZhurPvNKa8+ SeBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737068499; x=1737673299; 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=mrfgxcFwNvdOF9sDqxRCvp0D3dnFqVKZKtyf/eaT5Jg=; b=bkisaM9n8dIb/o43atkhZo4dkE4vaOZaB5kRYVx6cHKioUPnD4P4k6cLk5oUfs/Wdl T5oI38WhPVBAxC+LO6lFHVUwsLIf3TZUCi0eMiOZwxYUQ197lIpCzlRzcatdSoKuhghx OZDKe7xGI0pRQCMOGGpQdwYA/zhBSp/nJqxqdDhzpZ1vb9X2A0P2MzF528eGwH3h+tnY 47WRdngMDODxBkr5co/z4fOdN38P1gEVV52I5fklrxj10UF4B9kV8VqXFt6Ob/XmuBF6 6jynBQyQc2lNMyy3tvvCAv/aMUgMSGnV78uD4N0Qb9ecq3xGu0WC1c0weH1/OQN7nPCz 9RsA== X-Forwarded-Encrypted: i=1; AJvYcCXF+5a8WKSJUCnTeFdpOv0fnoyifC/+ZGrzfOYtcr43rV+AaOlzgAPpxSXtRNVblMwIG8Php+A=@lists.denx.de X-Gm-Message-State: AOJu0YyfGPuWjDExIl6UO5gVsxW1KlRqcozfBzN0rThbZPOtus1Osx5P u6gU2oVCTV8ZwuNoH+5egpiva8t1Pic8vXPwrwBzyNvGGh7nPPzYLzWUu78VgTg= X-Gm-Gg: ASbGncvK6CVnECTvk6BmannxyUTDu97+Dl4UBayzH6gt0QoPcJyYn5sAY23ywoZEaxh evBwadtlXh8YXRFpbj0Hwzq2DaAPgpjbDb3qBusAot195+taCUMH05N4C2QzEqd5PlRNE3IiBdD s0hOXckBlHbBZKYzv9ck8yzwe4J3ZIfGM8Jf1yX1s5/sJXk9hlUflX/jalhAtVN1mXhYMGG35Nh 9KBlQVRZ6aCszZWrSFMv52ZLVHkcq1a7ZaZBsvsVmAl53w+fsn1kt+n6sTTJ7zO71M= X-Received: by 2002:a05:6830:6213:b0:71d:f239:c0a8 with SMTP id 46e09a7af769-7249da56afemr212876a34.6.1737068498743; Thu, 16 Jan 2025 15:01:38 -0800 (PST) Received: from localhost ([2605:a601:a0f4:b000:264b:feff:fe59:d7f7]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5fa35ed8befsm405149eaf.5.2025.01.16.15.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 15:01:38 -0800 (PST) From: Sam Protsenko To: Tom Rini , Minkyu Kang Cc: Ilias Apalodimas , Sumit Garg , Simon Glass , Heinrich Schuchardt , u-boot@lists.denx.de Subject: [PATCH 5/7] board: samsung: e850-96: Load LDFW from EFI partition Date: Thu, 16 Jan 2025 17:01:28 -0600 Message-Id: <20250116230130.3337-6-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250116230130.3337-1-semen.protsenko@linaro.org> References: <20250116230130.3337-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 In case when EFI System Partition is present it can be used to store firmware binaries, instead of keeping those on separate dedicated partitions. That simplifies the partition table and makes it more standard. Rework the firmware loader code to look for LDFW binary at /EFI/firmware/ldfw.bin on ESP first, and if either the partition or the file doesn't exist -- fallback to reading it from 'ldfw' partition. This way backward compatibility can be kept, and Android partition tables without ESP partition can be handled too. Signed-off-by: Sam Protsenko --- board/samsung/e850-96/fw.c | 45 ++++++++++++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 7 deletions(-) diff --git a/board/samsung/e850-96/fw.c b/board/samsung/e850-96/fw.c index 82a0b224c670..8f64e759b431 100644 --- a/board/samsung/e850-96/fw.c +++ b/board/samsung/e850-96/fw.c @@ -7,14 +7,16 @@ */ #include +#include #include #include "fw.h" #define EMMC_IFACE "mmc" #define EMMC_DEV_NUM 0 +#define LDFW_RAW_PART "ldfw" +#define LDFW_FAT_PART "esp" +#define LDFW_FAT_PATH "/EFI/firmware/ldfw.bin" -/* LDFW constants */ -#define LDFW_PART_NAME "ldfw" #define LDFW_NWD_ADDR 0x88000000 #define LDFW_MAGIC 0x10adab1e #define SMC_CMD_LOAD_LDFW -0x500 @@ -36,7 +38,33 @@ struct ldfw_header { char fw_name[16]; }; -static int read_fw(const char *part_name, void *buf) +/* Load LDFW binary as a file from FAT partition */ +static int read_fw_from_fat(const char *part_name, const char *path, void *buf) +{ + char dev_part_str[8]; + loff_t len_read; + int err; + + snprintf(dev_part_str, sizeof(dev_part_str), "%d#%s", EMMC_DEV_NUM, + LDFW_FAT_PART); + + err = fs_set_blk_dev(EMMC_IFACE, dev_part_str, FS_TYPE_FAT); + if (err) { + debug("%s: Can't set block device\n", __func__); + return -ENODEV; + } + + err = fs_read(path, (ulong)buf, 0, 0, &len_read); + if (err) { + debug("%s: Can't read LDFW file\n", __func__); + return -EIO; + } + + return 0; +} + +/* Load LDFW binary from raw partition on block device into RAM buffer */ +static int read_fw_from_raw(const char *part_name, void *buf) { struct blk_desc *blk_desc; struct disk_partition part; @@ -73,10 +101,13 @@ int load_ldfw(void) u64 size = 0; int err, i; - /* Load LDFW from the block device partition into RAM buffer */ - err = read_fw(LDFW_PART_NAME, buf); - if (err) - return err; + /* First try to read LDFW from EFI partition, then from the raw one */ + err = read_fw_from_fat(LDFW_FAT_PART, LDFW_FAT_PATH, buf); + if (err) { + err = read_fw_from_raw(LDFW_RAW_PART, buf); + if (err) + return err; + } /* Validate LDFW by magic number in its header */ hdr = buf; From patchwork Thu Jan 16 23:01:29 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 857938 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:cc8:b0:385:e875:8a9e with SMTP id dq8csp442020wrb; Thu, 16 Jan 2025 15:02:30 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW2wm+V8UfYnJHkIbmvk1/Qg7jk77UMFjgrptt/c/xAJqX81gNSVhvbGA0aeWshipO2xc7aBw==@linaro.org X-Google-Smtp-Source: AGHT+IG+sQTETkrB4DScKJiqM2cZhNn1evAtqBUmT9Taod2Ia4UqkwWXkxhMEFK1skNZFoe44vDP X-Received: by 2002:a05:6402:50d4:b0:5d0:cfad:f71 with SMTP id 4fb4d7f45d1cf-5db7db2bea3mr832647a12.32.1737068550297; Thu, 16 Jan 2025 15:02:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737068550; cv=none; d=google.com; s=arc-20240605; b=Pi7ieXhd8/L2Gx3U9yMD+g+PxBnOdFEstYNQWOHmv90/+8jxU3ydb054LD0DXEdn76 4ugyFZh6Dq2a1j8QYLrekQbngjdjT4dhwRA1d4M9hiQL9hp6Q3LWhhYjdeiMaC8A3NA8 WNA2yjW+miTSLCYeCz/TZab/KBCgHgDEI2eSiB4mqJE6Ewhss58iAAf7JRhqnOHCau4d wFlnkkvjyJGPuJi6XZZVbMKKeRoQ9mPMSBdc/T6Qwv59EtvaFaJrfP2TKn2QAza+s/ur 3iA9Sj3P1KPdW7IaupmyI4FIlxWrwAtObV8H2Ll9pMurac/zVAgFB17fK0GDvxwNsJUB FyxQ== 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=gyXw+LS/E0IjZvfIOmv0tX+zMKFoiXdYXxrJHpBaL10=; fh=BWkruDG3rstM8oRR3k2mgNoIh94D83Feuc4eGG8SFq4=; b=Nq5BgShfL3wy4CLM2uudiDOO60asCQiC0sotRXsLmX1twAS3dUGulu1WjiZzkkgEHH d/7hhmpLy0DNaVkYrk24tb556aB6PWV9Cy4dEz6FIl8ZGIRaOfsvFQ1EG1ugid1GqeL8 lGvoCTvPPDzxXgVJzNoOsGli431n4Rby0D2eiRi39X0wMARQqbS6Udw2fNp3Q29mzTDh 7thH/qLdCJfa7yprQEnK0qW+Bc7eqdZxhMBTO5CnKIv6D1HXIjLsCqlgUHihxZuF4pcL +qHRexcUAf6VHTr76vsslodXf2VCUkiRMD8Kk6ZsYBt1f7R2eCg5fE6G3opDGWzHLvsI PPmg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KT75Y9nD; 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 4fb4d7f45d1cf-5db73f5d036si590928a12.310.2025.01.16.15.02.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 15:02:30 -0800 (PST) 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=KT75Y9nD; 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 103A98074B; Fri, 17 Jan 2025 00:01:45 +0100 (CET) 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="KT75Y9nD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7A9858022B; Fri, 17 Jan 2025 00:01:43 +0100 (CET) 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-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) (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 519088022B for ; Fri, 17 Jan 2025 00:01:41 +0100 (CET) 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-oi1-x229.google.com with SMTP id 5614622812f47-3ee29277d44so817970b6e.1 for ; Thu, 16 Jan 2025 15:01:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737068500; x=1737673300; 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=gyXw+LS/E0IjZvfIOmv0tX+zMKFoiXdYXxrJHpBaL10=; b=KT75Y9nD00shPbd01v8LKqOEW3iw84RLFTWNTS28O4qSARD4T4xKfyRcYjs2/+fty8 379d0uHdrMCzehOvmohgSV+rXHukxPodU4mSIghZue1TU2Bdg/hVN4Y03B753upH3cUV YrOIV9Hqj0WZOn6ZStx5Qny/VEHbe2t6isGbnWAal8jVArma1jVfpg3vUNcUlAtvkpUH k5lWW5rNBslFmeT4JtxHF66OY+bF8Dz23u12UbA3HFsXa9BtBc/XREKWSJmjV04O3vqG 6e5I5Sdv7Cn4tVb9mvlQwoujKm2ZvjqAdeY0IEpZraBywJENZCDD68xeKwEfDENhtWck oc7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737068500; x=1737673300; 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=gyXw+LS/E0IjZvfIOmv0tX+zMKFoiXdYXxrJHpBaL10=; b=Qx0H607wgSO8BisWkEB182J2MH1qqMHPXFlKD7sDD4t6qmRp5awADmQb1MDY0sSqoY VsyJ+uRaLDVpehnF20QNtTLiLsg/FrkXa2KESsntds4bTCU/y1UJghB+pMrOskLqPlOL 4JukEJWVVVuz7BHuA6l3Y019zI8AOag/eRanugWKXQyJ1X7WqSGCDlOVnB4MeADzsIhW 5IkblZEn6hQUM8Q7JDxrwRcU7A9qwbGfSbGQO2Pc7mujGoSNuQanJG20w/kYQ+xrJQwb nbB0Kbns/SBRbY2q2hW6omZTk7f4cXCt8S6erI7L5rjCDtu+hIlAf0is3WP7hD+oRStp hlYA== X-Forwarded-Encrypted: i=1; AJvYcCXWPCE+yzqHciWaMQabiBs7VMHQBbmNUFxHGFp9UvNPRsNETLZ7x25pOPUMSQ2EWDL9tyr044Y=@lists.denx.de X-Gm-Message-State: AOJu0YyvWAqOENDXEa1t3qSslSkRKNscsM11fDwlVr6aJ/Dxxo3uyZ59 HHcboCy5GHuvXkuRad6cKD7heoGviINMWjqZ1wF2atGNZxNQJrsto8xVw3wXRBU= X-Gm-Gg: ASbGncv+I41ezOhlquOKqkudhB5Yhir/VRa0T1yjs6GxCXl0ij+uis5/8IJ4RxhnqM+ YzNUIy8RHjLnCP6QK4C91x/FJWko3SOxTihwR5C2c3o+3xz0I8Tc3NKqZ8FEnGQLsuo0VYvgqof 4oFkgZqjJ0HeIkvo06rsu/Xh0rjdAwc20IK3y5R/zX0hs+/kRwbjIPVkXvBdlTckElxGQCVer2i peM15VDV9eL6HsoAi+sprW2EIkHaB+qjOAad+2SHtp15w5b+SRBZP7gwtj2oVLHRc8= X-Received: by 2002:a05:6808:22ab:b0:3ea:431c:4f70 with SMTP id 5614622812f47-3f19fb1f3a0mr509366b6e.0.1737068500131; Thu, 16 Jan 2025 15:01:40 -0800 (PST) Received: from localhost ([2605:a601:a0f4:b000:264b:feff:fe59:d7f7]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3f19da453b0sm419022b6e.6.2025.01.16.15.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 15:01:39 -0800 (PST) From: Sam Protsenko To: Tom Rini , Minkyu Kang Cc: Ilias Apalodimas , Sumit Garg , Simon Glass , Heinrich Schuchardt , u-boot@lists.denx.de Subject: [PATCH 6/7] board: samsung: e850-96: Report LDFW loading failures Date: Thu, 16 Jan 2025 17:01:29 -0600 Message-Id: <20250116230130.3337-7-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250116230130.3337-1-semen.protsenko@linaro.org> References: <20250116230130.3337-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 loading can fail, e.g. in case if user forgot to upload the binary to the appropriate location (/EFI/firmware/ldfw.bin on ESP partition). Report such errors explicitly, so that the user can notice it early and take necessary actions. But don't return error code from board_init() in this case, as LDFW firmware is not mandatory for board operation and is only required for some features like TRNG. Signed-off-by: Sam Protsenko --- board/samsung/e850-96/e850-96.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/board/samsung/e850-96/e850-96.c b/board/samsung/e850-96/e850-96.c index c5cef6f19d22..0bef68d2fb20 100644 --- a/board/samsung/e850-96/e850-96.c +++ b/board/samsung/e850-96/e850-96.c @@ -19,6 +19,11 @@ int dram_init_banksize(void) int board_init(void) { - load_ldfw(); + int err; + + err = load_ldfw(); + if (err) + printf("ERROR: LDFW loading failed (%d)\n", err); + return 0; } From patchwork Thu Jan 16 23:01:30 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 857939 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:cc8:b0:385:e875:8a9e with SMTP id dq8csp442104wrb; Thu, 16 Jan 2025 15:02:40 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVQ2KTcJk7p0h3BtTB7141BfvidrZ0rvEOD5UKqtKNUJ8v/ZnodHxYxONydLxVbE5Mg5/papA==@linaro.org X-Google-Smtp-Source: AGHT+IEISz805iHjeNLa/SQ23USyINht7DulLUTxwuWHUPcbBu8c0o6E+o/FFDoDRVd1iThVLcgU X-Received: by 2002:a17:907:8687:b0:ab2:e7c0:6561 with SMTP id a640c23a62f3a-ab38b27be6dmr34270766b.22.1737068559751; Thu, 16 Jan 2025 15:02:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737068559; cv=none; d=google.com; s=arc-20240605; b=GTeLOT0hEh2rzJJJbGDqGvVn6Nkh945aSpVygWhEvYwwfmCE4YzlmvY3W7gzpO9/Tk 8CxeDg3ybtvA06ZKp2+qnt7qCyqxHA2gAo31mCQKiIWQboM1OruhpW1qc8EkvnJE8E85 7NUh+aEschTglu9o7oY+LiHPhMcAKzYPle5g5aAB8eIJuUV3iDGSgE79qmmk+oEaBTq5 ntbkPSm6mKn65JnR4ghtCYARBTFrCnqMOFY2BT/nQDs0De1Uhc5AbmJyf64QBh/7X1I2 0X1FzPJPRE1bt0t4Du++onWmZfVW1Hdq6KkmaXe3ILw8+YCkN0L2pFcQvkau7s0ZdF+k PyAw== 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=PeB+2S7QIgs0sbUOEKaMH1NI6p3bQT/kxzrpVGwCzD0=; fh=xL7PBXagOjzjiu0v5ub28OHBY/hLOBJmZu8peEnhKts=; b=YCy9fiY6//F6YwrAnC0dG7RVBT4WGpv82E+WnbWgYDupWKJgXqnfC5EtqMoBtKDFgV TQbYrFEwXyP77HM+xLprE2d9wuxq9Z3StsqrPKKRwuFPMPV1i3z6boT1pVafR3q+350/ quCN7isvj+il5OUJQVZYAq3MECicLjbnuGDOxc5QcMDvD1ujoCK1w/tuQU3wFygkVHao l0DRhNIbwemdRxM0vfm2GMPrTsCCZYTjsXai6chwlFCQS3XRu2T+73bxwEcgBc8B9pRc YXI1Gav6bVW1EFX3/I+H8IYjaYzuAJhGAeDk8JHG3sAhFsSOTSro1/oRcn91KtC0Fgpx tiLg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HUxYtqin; 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 a640c23a62f3a-ab38526584asi58145366b.834.2025.01.16.15.02.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 15:02:39 -0800 (PST) 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=HUxYtqin; 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 6285C80761; Fri, 17 Jan 2025 00:01:46 +0100 (CET) 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="HUxYtqin"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7A2B38075F; Fri, 17 Jan 2025 00:01:45 +0100 (CET) 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-oo1-xc30.google.com (mail-oo1-xc30.google.com [IPv6:2607:f8b0:4864:20::c30]) (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 4185780780 for ; Fri, 17 Jan 2025 00:01:43 +0100 (CET) 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-oo1-xc30.google.com with SMTP id 006d021491bc7-5f31b3db5ecso714573eaf.0 for ; Thu, 16 Jan 2025 15:01:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737068502; x=1737673302; 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=PeB+2S7QIgs0sbUOEKaMH1NI6p3bQT/kxzrpVGwCzD0=; b=HUxYtqinKrmc293zeOTzjxV84psCSizI+m77AtXb/ypNiXu6vRNWiVaioo3nmtvnZa H1UeEVESWLtI2K1OKPetF7obPOY5v8chKkqP6Ua18pISDE1IgF6CF5B67JRRxOrGqV4u rE2xCQJ+8STpyqmGKufW2R0DyZKI2+9BH4BmDyP/1RPzagaNOviui1kVAu/oP4S1bPzV oDXkoQe7yaWIsTlS75EV8+iO1vdk8C9jbsIjXmiXqs+DQzzMquA62zSmTgMIRCtpw9Q+ BtNcZ9bwb9RA5eKnzRaohrn7oHyz+NZIYRdl/wEVgvTx4a/sOvyy3t3WlxqElgwFk5I0 njXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737068502; x=1737673302; 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=PeB+2S7QIgs0sbUOEKaMH1NI6p3bQT/kxzrpVGwCzD0=; b=UejoE0rklEpvyct5si19Pk53Ns4TkY9MyiKkPjERpSGd1AFficTT42OPXy/Sjf2Zy3 G3WVil8Mb4Yy+BVOb2o+U0J/8zKJ4/A5lKQWaca/wGKhtCFOKd/iWJ1Mwdixtlupkpe9 O265sDZIzVjGiju4ICUVPn3aqYK4ig5Sy9UP70wcpyaa+WvIZxhsFxfnUd4xmJ/7JzpF vJdK9opYzfPzYAfjSiYucru1Y4VTAPfnD1xq/Iju5r4wxQBjP2bHw/OjBXiiyC490OKU j9CySGUw8o/OmaRjg7U8RK4WZgD75EufwrjxOGnNUsYW2GG47/R4iRwF9ymtNhx+RQLf o4rw== X-Forwarded-Encrypted: i=1; AJvYcCU7rTHAlxn3A7okcCGz3SJN0ea5KcRDR10tgWRFa+x32K1tcAG7VE87E3j7fsBTdIfw8UrubjQ=@lists.denx.de X-Gm-Message-State: AOJu0YwxCFcZM2uqxErd9no4hXAW5zUrj8CouEnP5an77+tUtc2PmkPD gnK767TSl8Nvd65o26x+3BX6NwElmJCzJQ4dHG2ph8unrcAtmeQNCk80kP85IWY= X-Gm-Gg: ASbGnctzxWs3SSEpZkpyrnFansNW/kpgUsZX9LtTgQJEOiHGO/MUOyi9f0WAuEiKZle ilqtpjgrTDoHzToMgycQ1JkPt6Km5WlFE6zwKStjfgoo7i4jY+1AMhh/OMfNRmnOntI4HyR1m8Z 589A/HNoVaIj5CDI1ATe4w2f9mIOfIKIsK2BAVpDwB9JCQYk41f40lXjP54nZ/vSoQEXhWKOCfX g2QhJ4Rtmno6xx9b3mVeZHo+BmPuNY4B/GGEFl4BjaJ0nHzvX5hEyR9+zCgvx0QDOc= X-Received: by 2002:a05:6820:206:b0:5f6:4ce2:fa4f with SMTP id 006d021491bc7-5fa38884e18mr391976eaf.4.1737068502085; Thu, 16 Jan 2025 15:01:42 -0800 (PST) Received: from localhost ([2605:a601:a0f4:b000:264b:feff:fe59:d7f7]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5fa3605d9a2sm380578eaf.38.2025.01.16.15.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 15:01:40 -0800 (PST) From: Sam Protsenko To: Tom Rini , Minkyu Kang Cc: Ilias Apalodimas , Sumit Garg , Simon Glass , Heinrich Schuchardt , u-boot@lists.denx.de Subject: [PATCH 7/7] board: samsung: e850-96: Provide bootstd default env Date: Thu, 16 Jan 2025 17:01:30 -0600 Message-Id: <20250116230130.3337-8-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250116230130.3337-1-semen.protsenko@linaro.org> References: <20250116230130.3337-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 Add default environment variables needed for Standard Boot enablement as described in [1]. Also rework the eMMC partition table for Linux boot so it only has two partitions: 1. EFI System Partition (EFI vars, GRUB efi app, firmware files) 2. rootfs partition (Debian rootfs, /boot, extlinux.conf, boot.scr) Both partitions are made bootable so that 'bootflow' command can detect all loader files (rootfs might contain extlinux.conf and boot.scr). 'ldfw' partition is removed too, as ldfw.bin can be loaded from ESP now (from /EFI/firmware/ldfw.bin). Android partitons will be added later, once Android boot is actually enabled for E850-96. Notes: - $kernel_comp_addr_r uses the same address (0x88000000) as LDFW buffer (in board/samsung/e850-96/fw.c), but that's fine, as LDFW will be copied to another RAM location (Secure World) by SMC command, so it's only used temporarily on startup - addition assignment (+=) operation is used for $partitions to avoid spaces added by newlines, so that $partitions can be used in the shell with no quotes Now it's possible to successfully automatically boot Debian rootfs: => env default -f -a => env save => gpt write mmc 0 $partitions => reset [1] doc/develop/bootstd/overview.rst Signed-off-by: Sam Protsenko --- board/samsung/e850-96/e850-96.env | 37 +++++++++---------------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/board/samsung/e850-96/e850-96.env b/board/samsung/e850-96/e850-96.env index f36f90be9509..5ac76bcef027 100644 --- a/board/samsung/e850-96/e850-96.env +++ b/board/samsung/e850-96/e850-96.env @@ -1,26 +1,11 @@ -partitions= - uuid_disk=${uuid_gpt_disk}; - name=efs,start=512K,size=20M,uuid=${uuid_gpt_efs}; - name=env,size=16K,uuid=${uuid_gpt_env}; - name=kernel,size=30M,uuid=${uuid_gpt_kernel}; - name=ramdisk,size=26M,uuid=${uuid_gpt_ramdisk}; - name=dtbo,size=1M,uuid=${uuid_gpt_dtbo}; - name=ldfw,size=4016K,uuid=${uuid_gpt_ldfw}; - name=keystorage,size=8K,uuid=${uuid_gpt_keystorage}; - name=tzsw,size=1M,uuid=${uuid_gpt_tzsw}; - name=harx,size=2M,uuid=${uuid_gpt_harx}; - name=harx_rkp,size=2M,uuid=${uuid_gpt_harx_rkp}; - name=logo,size=40M,uuid=${uuid_gpt_logo}; - name=super,size=3600M,uuid=${uuid_gpt_super}; - name=cache,size=300M,uuid=${uuid_gpt_cache}; - name=modem,size=100M,uuid=${uuid_gpt_modem}; - name=boot,size=100M,uuid=${uuid_gpt_boot}; - name=persist,size=30M,uuid=${uuid_gpt_persist}; - name=recovery,size=40M,uuid=${uuid_gpt_recovery}; - name=misc,size=40M,uuid=${uuid_gpt_misc}; - name=mnv,size=20M,uuid=${uuid_gpt_mnv}; - name=frp,size=512K,uuid=${uuid_gpt_frp}; - name=vbmeta,size=64K,uuid=${uuid_gpt_vbmeta}; - name=metadata,size=16M,uuid=${uuid_gpt_metadata}; - name=dtb,size=1M,uuid=${uuid_gpt_dtb}; - name=userdata,size=-,uuid=${uuid_gpt_userdata} +kernel_addr_r=0x80000000 +kernel_comp_addr_r=0x88000000 +kernel_comp_size=0x4000000 +fdt_addr_r=0x8c000000 +scriptaddr=0x8c100000 +pxefile_addr_r=0x8c200000 +ramdisk_addr_r=0x8c300000 +fdtfile=CONFIG_DEFAULT_FDT_FILE + +partitions=name=esp,start=512K,size=128M,bootable,type=system; +partitions+=name=rootfs,size=-,bootable,type=linux