From patchwork Sat Oct 12 13:57:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 834964 Delivered-To: patch@linaro.org Received: by 2002:adf:b352:0:b0:37d:45d0:187 with SMTP id k18csp1246059wrd; Sat, 12 Oct 2024 06:58:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWZcsu8q0KPD1Qv8+z+71IxQpY+wgb/YDEIoxGhO4+odDvYX05T/c2dQGBg3eEX+WGP+z+hRA==@linaro.org X-Google-Smtp-Source: AGHT+IGOKxR+uufV7v8M1eToO4ClcMTFG914BMGP68HaMGWT3iUYnUFlq+2TARYfeIFQ/FXFbG/Z X-Received: by 2002:a05:6e02:3dc1:b0:39b:330b:bb25 with SMTP id e9e14a558f8ab-3a3b5fb03a4mr40746245ab.12.1728741491840; Sat, 12 Oct 2024 06:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728741491; cv=none; d=google.com; s=arc-20240605; b=CSOSKo1TCr9RMccC/4TTEFwCOq/Um2IeZcast3UDvg4jA5/iqG63Fa8ta5dINC64vS EO7M6G3RekBZjmOzUaDdF5ITFiFPn++f+eTixjNGUbTRq6WoWjOfBwRTeWgM+G69bAuO zY/CaCky169KxGpwmSM1hUVTgN3otKfKd68mudCZCrAp7wettSP+lZSiJ4eAd2FoRHDE yzCObVCSQdMHR564f1M7qwGvg1tnT6q+aqs1x253KaQdqztwfcSaUtPD113JiUvbofmh DQRFm2g1T5F3kzIt7twfVk4bn4g15kEpTRi4vQRodnGUSJ4akVlxlISN2Y1EZQMvmmmC RiGQ== 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:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=cd5H1QdPdYTurC7eKdOorF59l0kwIdATGVIexsLuxOE=; fh=gknfDVNTb4QQHc2D/TeyQBI5n73hbk1ZCRe0Wq96GRI=; b=Hp3L4f3cYgEFbF+uhX6DDKilmTgYmTgUZLgnetxcSOP3pflRaknWzIvvssDULFUfK7 eH6vJiiLI2mkDRN8bbbpSPRUsF9EOhrVs8Sqgn6c4NrFUDXRHhjW+bmex643AP5xanOc bLaUnJDH6+m62VQ3OCLahHrrHWosrxE/T3HSIKJWSpVDAiqdElc6ToNKhvvv3zsbO3dw 7OFf99ClY6WmU+RMwLriy3Jfaq30S62+mEedgLwOKJDvNGd5Fw6EyYgvY3ZWLJfEn5YA YijyMU2YJvV6DRS6jY8qD/B6vc1djdsWFgT7t7AFJ7v7y3u+FRJCnV6KY4WqbQ8EsKaL 4AXQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O30HvAFU; 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 8926c6da1cb9f-4dbadaa977dsi2462251173.161.2024.10.12.06.58.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Oct 2024 06:58:11 -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=O30HvAFU; 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 BB8FF88E42; Sat, 12 Oct 2024 15:57:35 +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="O30HvAFU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8CF9F889C3; Sat, 12 Oct 2024 15:57:32 +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,UPPERCASE_50_75 autolearn=no autolearn_force=no version=3.4.2 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) (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 A5DA088B23 for ; Sat, 12 Oct 2024 15:57:30 +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=caleb.connolly@linaro.org Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a99ea294480so61199566b.2 for ; Sat, 12 Oct 2024 06:57:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728741450; x=1729346250; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=cd5H1QdPdYTurC7eKdOorF59l0kwIdATGVIexsLuxOE=; b=O30HvAFUZv9A1KKWPrvE4N5r/XTw70R4PfmEcwvUb+YPlTsp7TtzuuCAuyJ990SgaJ HKlNxB5e1e1Hyv0Cj7B5Z/0RG2Fu1rpVa9ZyqNbJWQMJubY3v0/pVx2sD0FZeTM+OEy2 UdkpfK826LYl0dtEGHIJ8ikrtGkPvxBBVN4W42damzl03PVkVD2K3lcLW4kFPzlhbW0L 75xVpvvzfvSbR+36/Zrs9ocbqtIiDgePh556dFDbXrpvUXIWfHDKABPzGYQ3bow8Pxe1 G0zhI4/bbrFLbMXCVDxoC8CNUwQs8VR2kIV+OpfKLiJv9duCkopyaCCEriq6BMIG85dr sT8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728741450; x=1729346250; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cd5H1QdPdYTurC7eKdOorF59l0kwIdATGVIexsLuxOE=; b=n7QhHteIX5ig2fWspjcrfZi1LL2nSfXIMAK9yiYyr5XbobyR9KovXKxqy+B85ktPtj OroFc8dj6wsJFumgPaBIUPxjtLX4uwMhq/5GxKBYKVH35hiY9Qhkd5X4ddt8hIWt0512 +7dqGu/y5WEM9nHkN+4p70y94bDR02rGyuBbjVgpCUlJJzpqY3+LuS8nyE3iOqV93QgX gZGCQiEiwDPlHe7sAgFo5ypbQv4gDfUwJ8It6LK001xASJWYntBZNfFN+5fFBlhqbvXY hmBrYTR+Nt/4vAuDNC9+7yhZvVeqTvsLO4RzvyNljlEwdmCyWAzcy7YJSsyHujeUN5H7 yiJQ== X-Forwarded-Encrypted: i=1; AJvYcCVKGo+G2XSUK4YEcYvAJDQ/xbQg1Hb5nInME/f7YjhM6ECVpYMWBX+ZD4YPMU8KDM4j/cs35Es=@lists.denx.de X-Gm-Message-State: AOJu0Yzo8TguuqAFL8+R0Ooi56Thjp/79pvdfvlkTEpgZ5yuUZVEG9Mc HDAGdHTycgBW8Txu6t8EigoMg2efmDmtMnygdLl8FIK7PAAnL+Omw65kypWV2N4= X-Received: by 2002:a05:6402:4401:b0:5c9:446c:88f8 with SMTP id 4fb4d7f45d1cf-5c95ac156b3mr4955103a12.10.1728741450035; Sat, 12 Oct 2024 06:57:30 -0700 (PDT) Received: from cymric.local ([2a02:8109:888d:ff00::2]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a7f2c1f4sm324955966b.87.2024.10.12.06.57.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Oct 2024 06:57:29 -0700 (PDT) From: Caleb Connolly Date: Sat, 12 Oct 2024 15:57:20 +0200 Subject: [PATCH v4 4/4] qcom_defconfig: enable capsule update support MIME-Version: 1.0 Message-Id: <20241012-b4-qcom-capsule-updates-v4-4-abd05f15255f@linaro.org> References: <20241012-b4-qcom-capsule-updates-v4-0-abd05f15255f@linaro.org> In-Reply-To: <20241012-b4-qcom-capsule-updates-v4-0-abd05f15255f@linaro.org> To: Tom Rini , Simon Glass , Lukasz Majewski , Mattijs Korpershoek , Caleb Connolly , Neil Armstrong , Sumit Garg Cc: Ilias Apalodimas , u-boot@lists.denx.de, u-boot-qcom@groups.io X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2357; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=E+5vYobahjp/ayl7KfnhRZ4liQ12bdvr/8bB01S6W1U=; b=kA0DAAgBBYMxKxlfZLYByyZiAGcKgEOhodznmm58rgcW3oUe8EbwHLGctXQy3ApCz2eaH9pFy IkCMwQAAQgAHRYhBLZRoUY8ar7QaQxVzQWDMSsZX2S2BQJnCoBDAAoJEAWDMSsZX2S2uKIP/Rnn D8e2xh/9tyU8lgoBn0KdOJqJ4gFAwrY0dwk7kpGuynV0kgP3PHM6LctOzL0iXMumLPaZOyLm+fD 2bwBTgBxxin75Jp3UJJh2prYvSsgWLNr3lqLOn7hNn2ph9APbYGuIOktsN8REKBaed0n8H+g/Xl Swt9T7yD59priFCT4YYUakTtrRKD0naYp1WBcLRXIxho+hrShVAHAI8c5VGvCKeyboOfMRhhgQU HbPzGCYfAPhGArzkJyAxMm/1TVYHcKSY0Y5m5IodTg0yd0fQtG6KD0VqUD0z6scBBP48Wcon7zL eychlCjDcRXtPbMWlVMQxuiQfmEzX28dY1SqJA00YvqYyMQOWCumBhFJcRtQxHaFna/fksgX06C UYUS91MMCkO3Jr4xVhQ+HzEd1wzE1fJ4pt5hZp8TBfbnqyNjnBKkiiW6meCiNkXd+Jx7OBBLae9 cg/4KUMLaSi2TuC2ZXPlHmAtXW6gOFiBoLMCQsBsbIes1hM7nX9doB6amMAfWci+SzAYl54fKLz 4HKJvSck+EmiYjI0kOh+NySPUVz1x/1nZdXVT1Zu+7D4AFmHQKnSyuPJjt7vSe62DwCrQ9oZzhN lWJMm9jYL87VJ4gr+ouwZHkN5MHwDwx0ayUBRcymXGTZ7cr0pSnG5Pagkyw+PgCPG+LaOu4Xnry Icz5j X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 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 all the necessary options for capsule updates to work, as well as a few additional EFI features. Capsule updates themselves are only enabled for the RB3 Gen 2, since the exact details on where to flash U-Boot (or how to handle multiple boot methods) has not been finalised for other boards. Signed-off-by: Caleb Connolly Reviewed-by: Neil Armstrong Reviewed-by: Ilias Apalodimas --- configs/qcm6490_defconfig | 6 ++++++ configs/qcom_defconfig | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/configs/qcm6490_defconfig b/configs/qcm6490_defconfig index 5ddc5ab3ef8c..ba26924da161 100644 --- a/configs/qcm6490_defconfig +++ b/configs/qcm6490_defconfig @@ -18,4 +18,10 @@ CONFIG_DEBUG_UART_CLOCK=14745600 CONFIG_TEXT_BASE=0x9fc00000 CONFIG_REMAKE_ELF=y CONFIG_DEFAULT_DEVICE_TREE="qcom/qcs6490-rb3gen2" + +# Enable capsule updates +CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y +CONFIG_EFI_CAPSULE_ON_DISK=y +CONFIG_EFI_IGNORE_OSINDICATIONS=y +CONFIG_EFI_CAPSULE_FIRMWARE_RAW=y diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index e7ed03ff0f24..4c8ff0e84372 100644 --- a/configs/qcom_defconfig +++ b/configs/qcom_defconfig @@ -20,21 +20,24 @@ CONFIG_LOG_MAX_LEVEL=9 CONFIG_LOG_DEFAULT_LEVEL=4 # CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_CMD_BOOTMENU=y +CONFIG_CMD_NVEDIT_EFI=y CONFIG_CMD_EEPROM=y CONFIG_SYS_I2C_EEPROM_BUS=2 CONFIG_SYS_I2C_EEPROM_ADDR_LEN=2 CONFIG_SYS_EEPROM_PAGE_WRITE_BITS=5 # CONFIG_CMD_BIND is not set CONFIG_CMD_CLK=y +CONFIG_CMD_DFU=y CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_UFS=y CONFIG_CMD_USB=y CONFIG_CMD_CAT=y CONFIG_CMD_BMP=y +CONFIG_CMD_EFIDEBUG=y CONFIG_CMD_REGULATOR=y CONFIG_CMD_LOG=y CONFIG_OF_LIVE=y CONFIG_USE_DEFAULT_ENV_FILE=y @@ -44,15 +47,18 @@ CONFIG_CLK=y CONFIG_CLK_QCOM_APQ8016=y CONFIG_CLK_QCOM_APQ8096=y CONFIG_CLK_QCOM_QCM2290=y CONFIG_CLK_QCOM_QCS404=y -CONFIG_CLK_QCOM_SC7280=y CONFIG_CLK_QCOM_SDM845=y CONFIG_CLK_QCOM_SM6115=y CONFIG_CLK_QCOM_SM8150=y CONFIG_CLK_QCOM_SM8250=y CONFIG_CLK_QCOM_SM8550=y CONFIG_CLK_QCOM_SM8650=y +CONFIG_CLK_QCOM_SC7280=y +CONFIG_DFU_MMC=y +CONFIG_DFU_SCSI=y +CONFIG_SYS_DFU_DATA_BUF_SIZE=0x200000 CONFIG_MSM_GPIO=y CONFIG_QCOM_PMIC_GPIO=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_QUP=y