Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ED989C6FA8F for ; Wed, 30 Aug 2023 23:29:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4A2B08651C; Thu, 31 Aug 2023 01:29:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="gq8h42zU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 76746864D4; Thu, 31 Aug 2023 01:29:38 +0200 (CEST) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (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 4A2208654E for ; Thu, 31 Aug 2023 01:29:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-7926b7f8636so5362439f.1 for ; Wed, 30 Aug 2023 16:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1693438172; x=1694042972; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZP1rVZA70Cnf3UMGcCPrIoXLTA+pV2S0FwYeFViSqfA=; b=gq8h42zUokzfjYHTXb6qplGhox7Akpjqkuwzf0QRlbla1WDjnn0Wlru3HXzceh9t+9 nJ/vsivYKkpBkyyQ1Zxr77DFI7mx2I6zY7BKMYtKhvn4Jqpw3h/wwHDi+CB2EVBphLti W+QH4zLzolJ4QEqH82Kgg0IlNWikY2KW+owak= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693438172; x=1694042972; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZP1rVZA70Cnf3UMGcCPrIoXLTA+pV2S0FwYeFViSqfA=; b=PObyMz9H9UnXSCtRHe5Nzo8Ke4TvjwDmQMyz2DHP+OoUkKsOqZVSzg2m1SKE7oJnnW 3OJxgwJ2bqcM0oJW5J91S2YmfDNOTo27oVFwrf7yZjQuYbutqDogGbWjnmZjRffevVMy 9L9cLWyWWgavJCEQPN/DVBbswnyt9efJhSnk9xH9OF/1aNba+JQNn8MLn+1tK7ooHHgH afwLkhC+fKQNO4YZNGM8JtECOVG/AdCoJpIIhDyH5mjPKiLSTp3t22xzbrJF4q6Ad4sa zlIMAa9MigV5AGJWECyVvvpdg2LwYgqPqjoe+Oc5V4XlPDUYsWHWZi1f2tMYDmVITfNN hbKA== X-Gm-Message-State: AOJu0YxdgbNwU2yc0PJLRuoiL89tCP4NcdAw7daqXwj2mc65iaw2Zt/4 Q7LxaccdS9Mkm3CfJ2oLgFNdFBf5gikx7feod00= X-Google-Smtp-Source: AGHT+IHfkVXsNEuDsgx5GFl/tng4gZOZU6jjupNo4x6qPUOpY9rUmo+8N27vw8eakuF5y+8Tba9dDA== X-Received: by 2002:a05:6602:168f:b0:792:7c46:3dec with SMTP id s15-20020a056602168f00b007927c463decmr1039772iow.4.1693438171921; Wed, 30 Aug 2023 16:29:31 -0700 (PDT) Received: from kea.bld.corp.google.com ([2620:15c:183:200:b147:266a:7359:2232]) by smtp.gmail.com with ESMTPSA id dj14-20020a056602256e00b0077e35ffac2fsm78512iob.32.2023.08.30.16.29.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Aug 2023 16:29:31 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Abdellatif El Khlifi , Alexey Romanov , Algapally Santosh Sagar , Bin Meng , Dzmitry Sankouski , Heinrich Schuchardt , Ilias Apalodimas , Marek Vasut , Marek Vasut , Masahisa Kojima , Mayuresh Chitale , Michal Simek , Michal Suchanek , Nathan Barrett-Morrison , Neil Armstrong , Nikhil M Jain , Oleksandr Suvorov , Ovidiu Panait , =?UTF-8?q?Pierre-Cl=C3=A9ment=20Tosi?= , Ramon Fried , Rasmus Villemoes , Roger Knecht , Roger Quadros , Sean Edmond , Shiji Yang , Stefan Herbrechtsmeier , Stefan Roese , Sughosh Ganu , Tobias Waldekranz Subject: [RFC PATCH 0/9] Universal Payload initial series Date: Wed, 30 Aug 2023 17:29:14 -0600 Message-ID: <20230830232928.2590178-1-sjg@chromium.org> X-Mailer: git-send-email 2.42.0.rc2.253.gd59a3bf2b4-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Universal Payload (UPL) is an upcoming Industry Standard for firmware components. UPL is designed to improve interoperability within the firmware industry, allowing mixing and matching of projects with less friction and fewer project-specific implementations. UPL is cross-platform, supporting ARM, x86 and RISC-V initially. This series provides some initial support for this, for comment only. Simon Glass (9): upl: Add support for reading a upl handoff upl: Add support for writing a upl handoff upl: Add basic tests upl: Add a command upl: Add support for Universal Payload in SPL spl: Plumb in the Universal Payload handoff Plumb in universal payload to the init process sandbox_vpl: Enable Universal Payload upl: Add initial documentation boot/Kconfig | 72 +++- boot/Makefile | 4 + boot/upl_common.c | 51 +++ boot/upl_common.h | 24 ++ boot/upl_read.c | 607 +++++++++++++++++++++++++++++ boot/upl_write.c | 623 ++++++++++++++++++++++++++++++ cmd/Kconfig | 7 + cmd/Makefile | 1 + cmd/upl.c | 99 +++++ common/board_f.c | 22 ++ common/board_r.c | 2 + common/spl/Makefile | 2 + common/spl/spl.c | 6 + common/spl/spl_fit.c | 22 ++ common/spl/spl_upl.c | 153 ++++++++ configs/sandbox_defconfig | 6 +- configs/sandbox_vpl_defconfig | 4 + doc/usage/cmd/upl.rst | 149 +++++++ doc/usage/index.rst | 2 + doc/usage/upl.rst | 27 ++ include/asm-generic/global_data.h | 15 + include/spl.h | 11 + include/upl.h | 361 +++++++++++++++++ test/boot/Makefile | 2 + test/boot/upl.c | 457 ++++++++++++++++++++++ test/py/tests/test_upl.py | 25 ++ 26 files changed, 2750 insertions(+), 4 deletions(-) create mode 100644 boot/upl_common.c create mode 100644 boot/upl_common.h create mode 100644 boot/upl_read.c create mode 100644 boot/upl_write.c create mode 100644 cmd/upl.c create mode 100644 common/spl/spl_upl.c create mode 100644 doc/usage/cmd/upl.rst create mode 100644 doc/usage/upl.rst create mode 100644 include/upl.h create mode 100644 test/boot/upl.c create mode 100644 test/py/tests/test_upl.py -- 2.42.0.rc2.253.gd59a3bf2b4-goog