From patchwork Fri Sep 15 10:16:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 723110 Delivered-To: patch@linaro.org Received: by 2002:adf:f0d1:0:b0:31d:da82:a3b4 with SMTP id x17csp285955wro; Fri, 15 Sep 2023 03:18:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGwnpdv0jvp8UxVcrOXSGY6FHL6iQW2Lws0dPj5p5+kLQESstSdHE5agGUumfYMU8Wl29SH X-Received: by 2002:a05:600c:260e:b0:401:b3a5:ebff with SMTP id h14-20020a05600c260e00b00401b3a5ebffmr1265386wma.13.1694773122791; Fri, 15 Sep 2023 03:18:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694773122; cv=none; d=google.com; s=arc-20160816; b=ESHaP9GElAKiB3++9R9VgGiuFWrlIRr/gWo4m/bwrXMO8bvOCHo+FwJJGPu3G+mUA/ d4BXh8rM7iqihzoB9s4TUHpSgQjrd4b+XlWytodnvV3uNfKi0PhIwY3/gz2eoT4ZnfFS BvtTvsnOgCeJ/wHaGSY3ZcdA1ZfNdQXeumrAc8eSPxTRgbJ0gdJIR5Ie2SICD0Ek3FUz dKemLkwhdhbOVHrTeaCxwRyRxLEKlqlfm1bPV9cj/Z3qQ2UMToC2j9p45AzrEKei+HFP BozvQdohhQbD+6V4Z1SIDtZK9QtAlVvYtVhCcRWtoZMqcr1I4W2Q6V13Adn5k7Xat3iX iCWA== 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=x+NnFyDf2V17kPovo4ibQUwK8mdW1aGSlTgkKznYTZ3IjiR7HqqHEqj0mYVxeSlIiQ DsVyALNQuL0rEeLplojU6GRsUyIKcyETM1TZcwu5FDJwwQwIcOLAjWKBGMqJz4KFDaK6 BSB7mRgtyXXj1C3HCKZr6tno+mdFRFcHAIuZUNntAVp5NhjSAsuN0i04DPHwoeT/NMAC zH+dpzwuDwHq4fiUbqCBkUFQrCxPyCpT4XnfhaKnMQ2lgCoIX5WFutKLM45zFovtKF3k qDfVZmwXweHQZunN0S6cnsSRvBhEP9ugr5Mmega91aTdHedoQzz+M4ohnak4gx3ezi+P yCkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Vuov4tC7; 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 Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id n41-20020a05600c3ba900b003fbdd90fe4asi697147wms.145.2023.09.15.03.18.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 03:18:42 -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=Vuov4tC7; 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 Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A1798868C1; Fri, 15 Sep 2023 12:18:14 +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="Vuov4tC7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8C3F9868C1; Fri, 15 Sep 2023 12:18:13 +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-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) (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 6B852865AB for ; Fri, 15 Sep 2023 12:18:11 +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-pl1-x62e.google.com with SMTP id d9443c01a7336-1c43b4b02c1so2119485ad.3 for ; Fri, 15 Sep 2023 03:18:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694773089; x=1695377889; 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=Vuov4tC72j42iSOfZ2r/0pJWRkVjzOpw3bqsljoAl6FFBkHrqsnxtpOGhZWZMZQb3+ JBPp9iu1xS9C3vhn9CB7RjkISXLMgSBzJC3wZ0yVXLm7qQsjd+Izrzv4AeWIqVdPxLIJ J/NZbHz1Vef8LholdHcQQ0jnp152IIPQF7tREXNjUSDI1T/1j56TjuLllJT68uMff4kU c04OaZeKZLL/Llsfc8fSnqrF6iyTN8QxUVJ+WvgrSgialoQ4c3GunZmxi+G6OnyHcxxw +ij30cOo/agAKuFv3lCm3i48S+tx7tjY/tvJE+H8dYSrIut9P/PXhlAfWugacPf1m4LF okSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694773089; x=1695377889; 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=E+e9A47dYPOKC8s4e4bcJs0BG86y0qMeVcmyRy0Th858bxqYIBZfredfPs5T23CBA7 u7Pguzqpg1CttFnOIAlyiFHv9pwCGmwK+qP0fWPCjlIBf80LgzvqukssVw/QsHTetx+J /SOlzXCA/XETnBhLukg369GbKfK78Ct4uQBRzS+th6Sp9ULrg4ZLYw61WChkASpQMi2X r3FNW0DlrM4JtNgQlzvWjhkGMwmcAoEC/xoNEwCn7TbcmB7XUCpGxstl7G0bwYYW4O8i WxGAZozQXrZCsbG3gI42yaziqybU5slSgf0krXJewXbTwt3lnZWbRJaIeV18UzsHhXmC NH2w== X-Gm-Message-State: AOJu0YzBejpL18YlK6GuJn4tAON/ts+9bs4fnXVJwXI78ZPEixchOxnj 3fxUbASwnMMglMy1E/tlHY99m7928+lIWC8sMsU= X-Received: by 2002:a17:902:7590:b0:1bc:844:5831 with SMTP id j16-20020a170902759000b001bc08445831mr1140542pll.57.1694773089594; Fri, 15 Sep 2023 03:18:09 -0700 (PDT) Received: from localhost ([164.70.16.189]) by smtp.gmail.com with ESMTPSA id j17-20020a170902da9100b001b8af7f632asm3125550plx.176.2023.09.15.03.18.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 03:18:08 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Masahisa Kojima Subject: [PATCH v3 7/7] doc: uefi: add HTTP Boot support Date: Fri, 15 Sep 2023 19:16:40 +0900 Message-Id: <20230915101640.1166332-8-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915101640.1166332-1-masahisa.kojima@linaro.org> References: <20230915101640.1166332-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 | 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~