From patchwork Fri Sep 22 07:11:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 725222 Delivered-To: patch@linaro.org Received: by 2002:adf:ea87:0:b0:31d:da82:a3b4 with SMTP id s7csp876208wrm; Fri, 22 Sep 2023 00:13:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6QXdZAkqwhdxzZlgcGfl6xeBu1Gh2bpn3SDSS685bkcgruxKQiV1fn7ACIsS3HTxYw4s+ X-Received: by 2002:adf:9dc5:0:b0:321:9979:99ef with SMTP id q5-20020adf9dc5000000b00321997999efmr3616060wre.48.1695366790216; Fri, 22 Sep 2023 00:13:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695366790; cv=none; d=google.com; s=arc-20160816; b=Cylf8WEKP5szQC80Y0ZV47tZ0mIrYkahrZ/ocXo5/xwD5BhV1i5bNLYNClIJ9SJ42y hdKkTjDDERy5pMfvgdlTqFXG61Xzdq4OKBIMKAk086cd9hvBdtXy8bs2mePiGoSfkawV IwxFS+iQdaOjTh9Ig80z6K5amHI4V6B9MojOBRxeUcfwvdc37T6tUyh3uP3l/5P006DV a3M4FNwGdMQgNHAQHyIw6LsLTVIDIuBZAbTWSFqDsPCqYxomqsWkD52Cj2Gz5RpdMYmz 4xwNGXJNnV96UGkjJTJeajGoEFEAPj8NrLO5OHT2frw9l1rVB273n8G1tzgic9ZKlO5Q rqOw== 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=sP7LVMmuM4MkWBCRUtJbDwtwgSyY4fsCDLvm6USUOR0=; fh=XwOfspvhog7otCudZV1ecvxibH3YToEgjgP70JntENo=; b=lD7+hnYl3rAixLX20jQWAfHhfJK+CjK4Jv9vZkIa8ba4bYgnYO9L5TVPQM10BWImKG EQzDXO32Z/O34EXLymH7X7YtlFjHjtdEOfIX++UkxEEI4j9wZ+lJvt6U4iIbq32mQzuR Vu0mRdCbp4N/mnxeT8US/Y12wfyPHlX0bIccCEgX9c+tWH4wJEpSqWPS3mPY+DQzo8sw L16ZAIDJxT8AQy1mIDCQc13ICTZ3CnqycmjDxfV6tSv0vgLfHQOxFmR3UIfM2jRL/DK/ vsREVpQ7ajJ14l8d9W/J2Rirn8zxqfSXeVo4Uixc29B7ICqf0gLNIbAEhlfqBfbjOr+7 NY1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gzPIKPHo; 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 k3-20020adfe3c3000000b0031975e83403si1576943wrm.307.2023.09.22.00.13.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 00:13:10 -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=gzPIKPHo; 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 8EB2786A1D; Fri, 22 Sep 2023 09:12:34 +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="gzPIKPHo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8537A86ADC; Fri, 22 Sep 2023 09:12:33 +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=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NUMERIC_HTTP_ADDR,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) (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 1DB7286ACF for ; Fri, 22 Sep 2023 09:12: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=masahisa.kojima@linaro.org Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-573e67cc6eeso1391922a12.2 for ; Fri, 22 Sep 2023 00:12:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695366748; x=1695971548; 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=sP7LVMmuM4MkWBCRUtJbDwtwgSyY4fsCDLvm6USUOR0=; b=gzPIKPHox/0Ap2GqWKcdQHPxe+W59gg1XB9RFtjY3Co7DKZfKmU9gKpJHt2z8MWUng mJhlhWUaacEeIh+sJEkDWO8xk54KkMP0LxW895spGNz+xLhOdWuRmNJyApqDlSqKNBjY k1uM+K3WPnHyREKO5Ht537dwWzj0PcDt6xVG3gYUzukIPdOVYvKNu8pgBVlrfi3GbS2b t0bRgQz4f7ypUzWqoOfej4VpOLYqSxkQDd/vy2eKuL6wn9x1BA3FU1zAJz1xJIlIfeXq 0vUFQ0q78FdF53ekt4FFzJHxF9T/8xn0In1+f0MmUvC5gDsCro7JbGw8Gsq9gUPCVxr6 f2uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695366748; x=1695971548; 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=sP7LVMmuM4MkWBCRUtJbDwtwgSyY4fsCDLvm6USUOR0=; b=crfGE7Lxy1S6sK7sN/ossifTviYI9Q1vN+D4SX4Lq5KrXpba18+HIkCBMjTpq/TROR o+VPFfTQ7/1amdjIDqcpOTQNKZdFBybn9EtokgAfhEXeU6NhUjiahgGGVCRSUz3otkYL 9DXFDsJPV3a2iLAqPoMse7uLKuhNhHkLyube693e7WVPZHv3kClnDkbFA7ExEfzCTV3U x5MApKTELuycFHLA+H6LjYRAirWBf8vA1BUnmKcVku8w2qmC6foQYu4o1A9DJsWt+HnG /Q/yOL9dpxZ6zyTdiG07SPAIbD5Hijn5a3YbR12aUw18U970x237fbQn2jawtjYOx6lA dc9w== X-Gm-Message-State: AOJu0Yybs1jHNXP/Ax5nbQ/9wZyqF5wfsZTGCQuEhno75GWy3S4tpr2K +s+TjxBfTegecm72yiLQSOAL2+kXYrTiEZlvg2U= X-Received: by 2002:a05:6a21:4994:b0:13a:43e8:3fa6 with SMTP id ax20-20020a056a21499400b0013a43e83fa6mr6994848pzc.23.1695366748226; Fri, 22 Sep 2023 00:12:28 -0700 (PDT) Received: from localhost ([164.70.16.189]) by smtp.gmail.com with ESMTPSA id kb14-20020a170903338e00b001bb3beb2bc6sm2730384plb.65.2023.09.22.00.12.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 00:12:27 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Masahisa Kojima Subject: [PATCH v4 7/8] doc: uefi: add HTTP Boot support Date: Fri, 22 Sep 2023 16:11:18 +0900 Message-Id: <20230922071119.1439482-8-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230922071119.1439482-1-masahisa.kojima@linaro.org> References: <20230922071119.1439482-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 Reviewed-by: Ilias Apalodimas --- doc/develop/uefi/uefi.rst | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/doc/develop/uefi/uefi.rst b/doc/develop/uefi/uefi.rst index a7a41f2fac..65eea89265 100644 --- a/doc/develop/uefi/uefi.rst +++ b/doc/develop/uefi/uefi.rst @@ -594,6 +594,36 @@ 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 dns, 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 is PE-COFF image, load the downloaded file and +start it. + +There is a limitation that current implementation tries to resolve +the IP address as a host name. If the uri is like "http://192.168.1.1/foobar", +the dns process tries to resolve the host "192.168.1.1" and it will +end up with "host not found". + +We need to preset the "httpserverip" environment variable to proceed the wget:: + + setenv httpserverip 192.168.1.1 + Executing the built in hello world application ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~