From patchwork Fri Mar 5 22:23:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 1448277 X-Patchwork-Delegate: xypron.glpk@gmx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=rjl66+ay; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Dsj2H1rh7z9sRf for ; Sat, 6 Mar 2021 09:24:06 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A8DFF827AA; Fri, 5 Mar 2021 23:23:27 +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="rjl66+ay"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1B7B3826B2; Fri, 5 Mar 2021 23:23:22 +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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (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 9917E826CA for ; Fri, 5 Mar 2021 23:23:18 +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=ilias.apalodimas@linaro.org Received: by mail-wr1-x42a.google.com with SMTP id u14so3749623wri.3 for ; Fri, 05 Mar 2021 14:23:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AbjXuhzGhrYgUvmsk0K1lv3lmYx7MmAS+Gpm1Bj3ybE=; b=rjl66+aymmHReh+ATgjLkqZXZU5KRrPm89plieC+yK04P9mvbLPciZWJ/lOyk2yDm2 M01lEELRiXTOhxIe3uQ0vXpcGAYPUc7ycQVzY+jBpmBwZSZvlYAfFcr7kZKKoGaoHGF6 OxFYwP2aQugy2IlkwNnyIe3fxk9E5PEh1dbAmmd/XzI0+6q6ahKwEahlTXxQx0H84bBe Md21519c5KM4gKcs3cjy9wi7OUhPpUXQj7TCcOiWKcqUFPDL1KClGKo5lxHsimfsKaAx 0kTioQoReduLH4BmDcl+/886ONIfWV2+vbv1U0pI744eJ48AiICCB7KqmAmeUvtKJeDb 6y9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AbjXuhzGhrYgUvmsk0K1lv3lmYx7MmAS+Gpm1Bj3ybE=; b=obHnFcsWoUSIXV2UOa7/2H2pS7ZIPP/3SywZonRrteuPnSYg2P8V477uxzF6lg8rHq rlGjh4BL5kxhduxoAA3S/lOgj6Vl4qFa1x6+d0yFsC2ZeBMIDzHyQQt0tHobywL+GqTB IdOd2TC2xBhw704DyS/NWQ77iU9IRBS2i8M0+RpieVnSsTikoESs2zxKSPgXWoqSuFMG WVVQSDDLf2dnrm46FF4s7LXzY72vN8kBMRpXGgArAxnTIgTwTeycVsnO8btegCfwnn8L ossQAKTgrr6FK81fMld1xcqPwwxKmJcvTb4Z1u3XUeZegn68FsNYSlfdMEhbJKE6sLdA y/iw== X-Gm-Message-State: AOAM530RddtOM6Qe8MjfAWwYsuMV2qKYlQCPrWH2xlX3pfg33imHrYzy ph3Y3+LRxESBlY0vmCnyGi/5UA== X-Google-Smtp-Source: ABdhPJyIhZjidoM62ER/UJhi7zbmS8drAFqs9M8klmBgLaPmisXzJECND/qqPqUMNDiTo8FnWY6BVg== X-Received: by 2002:adf:f44b:: with SMTP id f11mr11530124wrp.345.1614982998290; Fri, 05 Mar 2021 14:23:18 -0800 (PST) Received: from apalos.home ([2a02:587:4647:e6c6:2e56:dcff:fe9a:8f06]) by smtp.gmail.com with ESMTPSA id s11sm6493296wme.22.2021.03.05.14.23.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 14:23:18 -0800 (PST) From: Ilias Apalodimas To: xypron.glpk@gmx.de, takahiro.akashi@linaro.org Cc: Ilias Apalodimas , Alexander Graf , Sughosh Ganu , u-boot@lists.denx.de Subject: [PATCH 6/6] doc: Update uefi documentation for initrd loading options Date: Sat, 6 Mar 2021 00:23:02 +0200 Message-Id: <20210305222303.2866284-6-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210305222303.2866284-1-ilias.apalodimas@linaro.org> References: <20210305222303.2866284-1-ilias.apalodimas@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.4 at phobos.denx.de X-Virus-Status: Clean Document the command line options for efidebug and initrd loading Signed-off-by: Ilias Apalodimas --- doc/uefi/uefi.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/uefi/uefi.rst b/doc/uefi/uefi.rst index b3494c22e073..b3330f8d7273 100644 --- a/doc/uefi/uefi.rst +++ b/doc/uefi/uefi.rst @@ -180,6 +180,12 @@ Set up boot parameters on your board:: efidebug boot add -b 1 HELLO mmc 0:1 /helloworld.efi.signed "" +Since kernel 5.7 there's an alternative way of loading an initrd using +LoadFile2 protocol if CONFIG_EFI_LOAD_FILE2_INITRD is enabled. +The initrd path can be specified with:: + + efidebug boot add -b ABE0 'kernel' mmc 0:1 Image -i mmc 0:1 initrd + Now your board can run the signed image via the boot manager (see below). You can also try this sequence by running Pytest, test_efi_secboot, on the sandbox