From patchwork Fri Sep 1 10:25:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 719516 Delivered-To: patch@linaro.org Received: by 2002:adf:d08b:0:b0:31d:da82:a3b4 with SMTP id y11csp158963wrh; Fri, 1 Sep 2023 03:27:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLTfXAcnsg9ZkyBsGqL/nPsZ+JiaE83U2UKCuRHVXfD9SukFuPcjHGbVhmy8C4DpR7HgOA X-Received: by 2002:a7b:c3cb:0:b0:401:eb0:a98d with SMTP id t11-20020a7bc3cb000000b004010eb0a98dmr1476691wmj.24.1693564051266; Fri, 01 Sep 2023 03:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693564051; cv=none; d=google.com; s=arc-20160816; b=TKvb9gTNJB3jyCR3EA3osDuNcgGuvX8sFAGpPo9GYW8aHhMeqc2S3V5OoOtw989vSb 8W7yOPILEK6P+dEjtvPX0ttKK/r+9LlUCbl7Gw3NBZR856Sb5+3Vcvn8FM32OCKcTE1X ZPtUEOOsFvj39uMjYX+UKGaRpOXLxMCS6gaQNIJr9+f1U2TrZ7RY8YvgxGD6lHHgWjfq FQ+Mqj/uHG+2700QcJBM/t+lj/KKyCHGsjR0QLiSWxAeOBGghfZbhUyFsTCXeWJ1KBBe N+KQZ/2rQ2vs8sBYGocrDjRDTRDLWtAPQ4Hb242zPKL7m1uktEh7wwDoWSq0IimwlVGJ f+wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=/NmMRlMmHbAXwjiLaquucgjFfrDauScedEYe17PD+cM=; fh=XwOfspvhog7otCudZV1ecvxibH3YToEgjgP70JntENo=; b=CB50w2Hab2k3dmzhdcuRZ2XvGaoZ36BlLHUF0m/JXzzxzLrZs9j6zsHaozaqrfeRed YMCamgaxLZ+BX+G9Etbu0fx6mmU3FnWhR6A74Pd/PrR5rEtttbXttelSJkFGhd77RCVX 9+jjMO2GJnSXxn14+2v0Rh4+E/ZVqqsV9euzlS5G/8J09TJDmFUFfhWfXEHXcbibOfkq 8I526/3K5Z+tIWnh95EXQMhvYTo/eQb4kN21aBpdb/+wTBgJkw5RWKkIy9Kq6XXK8YAZ MHVXZrap/vyYQj/nEfdx8RLRz3S1H8Om0jwmNBzl50TAET9dIFX0P/+d+Pi/XdwOcU3U keBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SKiPvnHV; 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 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 s3-20020a05600c45c300b003fe67890554si1749329wmo.205.2023.09.01.03.27.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Sep 2023 03:27:31 -0700 (PDT) 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=SKiPvnHV; 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 Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1E9A086932; Fri, 1 Sep 2023 12:27:04 +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="SKiPvnHV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5659586906; Fri, 1 Sep 2023 12:27: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,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oo1-xc32.google.com (mail-oo1-xc32.google.com [IPv6:2607:f8b0:4864:20::c32]) (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 759088693C for ; Fri, 1 Sep 2023 12:26:56 +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=masahisa.kojima@linaro.org Received: by mail-oo1-xc32.google.com with SMTP id 006d021491bc7-57358a689d2so1125504eaf.2 for ; Fri, 01 Sep 2023 03:26:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693564014; x=1694168814; 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=/NmMRlMmHbAXwjiLaquucgjFfrDauScedEYe17PD+cM=; b=SKiPvnHVwv7jEJKNACqz3wJ8TxHAfBctprySrsuQs/9FthiK/iuCZk7AYWWVafwqtW 1EVYdGlc4lUbJvGrJvYJQtOzJCYHL+mV4/+7kSPCZBFs/DO00u0Zuog+/S6H8Xzv6KpJ zAIColgEAlgy96Ibm8PjZILD1+lb4FBU6D0QaSqZPwZhu/7Fe5LtnQ0aOs2l7hwJ03RZ Cn0bZr/VuQ73nRmri1/n1XgvbKuPpqe27zMNSdwERiXZienoZN3MCTSMlbf5IOJJwPGP SvbZQ4d0JSV2HezBDtZO50DqchCxlSB7eAnOYxexiQBb1gcKZxhKI50bnzbt+ERzEbuK ji7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693564014; x=1694168814; 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=/NmMRlMmHbAXwjiLaquucgjFfrDauScedEYe17PD+cM=; b=DOoZoYSptEToBa8wXkqxlSM2AzMDZFwrRaRGyNURv9EjR1RAlrK1vQl1YUs2zCJp15 BJflMEeXiTy6Rz4leTxl2u2htUHWmQAydUT8NLZ6u8cNAKZ5ys7SplUfVZyJ0eu6svYf 0pzGjX9K++bxOXYYnSGcpcdWDP+KthWqkJ6cG4QWbY1b+qgaN/FXJxQSdUq9vvEIQFlA 5X2G99vD4mN8yjP+jw8Uc0w3UAPjOBuF1vgGRIrox6YVHWa2ptlq39sDQBG3GbnwfYgw 63OMXwDO/OT8yJR2+egKSUYX/4v9pCSGzIokn2UOnXsnPT/6XUt62Tv9CDn9MnuocIQM ey7g== X-Gm-Message-State: AOJu0YwEQVcxJi2CjJ/kB9UNRrIVQs2gcH00s+MS6CCU81LqUpsWEzkU dFStmv+ZFhTBQcaIwzgASI4WXQ+y7mbATJamCPE= X-Received: by 2002:a05:6808:1150:b0:3a8:7c67:7f5 with SMTP id u16-20020a056808115000b003a87c6707f5mr2733211oiu.1.1693564014597; Fri, 01 Sep 2023 03:26:54 -0700 (PDT) Received: from localhost ([164.70.16.189]) by smtp.gmail.com with ESMTPSA id b15-20020a63714f000000b0056c24c2e23dsm2526016pgn.25.2023.09.01.03.26.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Sep 2023 03:26:53 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Masahisa Kojima Subject: [PATCH v2 6/6] doc: uefi: add HTTP Boot support Date: Fri, 1 Sep 2023 19:25:42 +0900 Message-Id: <20230901102542.609239-7-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230901102542.609239-1-masahisa.kojima@linaro.org> References: <20230901102542.609239-1-masahisa.kojima@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 This adds the description about HTTP Boot. Signed-off-by: Masahisa Kojima --- doc/develop/uefi/uefi.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/doc/develop/uefi/uefi.rst b/doc/develop/uefi/uefi.rst index a7a41f2fac..fd87bb1edb 100644 --- a/doc/develop/uefi/uefi.rst +++ b/doc/develop/uefi/uefi.rst @@ -594,6 +594,27 @@ UEFI variables. Booting according to these variables is possible via:: As of U-Boot v2020.10 UEFI variables cannot be set at runtime. The U-Boot command 'efidebug' can be used to set the variables. +UEFI HTTP Boot +~~~~~~~~~~~~~~ + +HTTP Boot provides the capability for system deployment and configuration +over the network. HTTP Boot can be activated by specifying:: + + CONFIG_CMD_DNS + CONFIG_CMD_WGET + CONFIG_BLKMAP + +Set up the load option specifying the target URI:: + + efidebug boot add -u 1 netinst http://foo/bar + +When this load option is selected as boot selection, resolve the +host ip address by dhs, then download the file with wget. +If the downloaded file extension is .iso or .img file, efibootmgr tries to +mount the image and boot with the default file(e.g. EFI/BOOT/BOOTAA64.EFI). +If the downloaded file extension is .efi and file is PE-COFF image, +load the downloaded file and start it. + Executing the built in hello world application ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~