From patchwork Wed Sep 27 09:36:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 726697 Delivered-To: patch@linaro.org Received: by 2002:adf:ea87:0:b0:31d:da82:a3b4 with SMTP id s7csp3430851wrm; Wed, 27 Sep 2023 02:38:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHIcJvVnjfTKvppBBJAJtNkW7/THkwbTlD+Fu2srJJV9kWhMLL49KMnk4JWZhlvMUU8K/A/ X-Received: by 2002:adf:f8cd:0:b0:321:5e4d:a455 with SMTP id f13-20020adff8cd000000b003215e4da455mr1165616wrq.69.1695807513415; Wed, 27 Sep 2023 02:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695807513; cv=none; d=google.com; s=arc-20160816; b=PSS+pkZTXqWNNpGYONbVWEW5u8ezur7ImwDLxTuzWyCjGNMFDiv5eqm6ENzUtqZulG tapoIRGsCRHLOXa/SBdt+m4Pke/XfOG1v0jSIjOvdDUfeAme4GlY9IUGPQSO8ojeUPw3 HVKFpdpwxy+tRHsCKuo0v2d4sEtpWJylY0L4LkzOk3wXVxDd+YMaM747Yjd+SdTh1QUA ReXX6+yDoCTDgRPobjEZLuxaGgkTrndum7FS0g2PvnWsJ6cBLw+Dr/G9OIvXpk1YUUHd qYMdcGo4vGVpPsaY36GAm1GTPEK5VxtLqX1WvNR9pva5IGuXUBVWILoJtG8PhzxuUQ7x KQFg== 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=ft0XemQ2LZg3nTnvojmSzmjsDNWPuZyrC59jAwUrwXw=; fh=XwOfspvhog7otCudZV1ecvxibH3YToEgjgP70JntENo=; b=AZ7sT4Eeui/5QYjjwIBBgbtENVVRebsceYNoX3k6u1HUbW8PFoefZHMF0tXaMlBO36 AoYayLrbIHaLVLWR1tNyHvonxAbyOcJVW37+CMYuMAH42EFEU/WHBiClgXTu1wMkdhzt 9AgO0GN2oDQ7g84HqHmlyiAIQzwgA62fb7JJA5rpJk3MczG7Gd5QExsJERWfZLq+NV+X xcVCWweUtbHic//rCN8qMPRltSLOEYmfGU7orYkwif2SAz9oMiggXhXaSCOziZbtBbi1 KT+VO2r8pIfRCOlkEch0ekzjy0i1upqZwlJ5Bfb5/dJy/+0UQEqrX7IF2GQ4wnGFWkoC 81eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nm8iReCx; 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 q1-20020a5d5741000000b0032339f9660bsi1596872wrw.725.2023.09.27.02.38.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 02:38:33 -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=nm8iReCx; 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 A7A2C85C98; Wed, 27 Sep 2023 11:37:59 +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="nm8iReCx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 137868074B; Wed, 27 Sep 2023 11:37:59 +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-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (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 DB8A886DC5 for ; Wed, 27 Sep 2023 11:37: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-pf1-x429.google.com with SMTP id d2e1a72fcca58-69101022969so9578216b3a.3 for ; Wed, 27 Sep 2023 02:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695807475; x=1696412275; 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=ft0XemQ2LZg3nTnvojmSzmjsDNWPuZyrC59jAwUrwXw=; b=nm8iReCxImEY9A/By87XGZlkkB1gtOwRqP338rFghuZtkwj4VTWCGV5R4HejPHZbEC kY7uXsGwCdfCwjLU9rUisOlt8B5YJmK3Ry0ACFxWQMX4VkM1sMOittpjliR4TuZQBtd+ SV3ECq/jo1IxWBalAzBSD6DwrM5CwjbHydLi4x302IMwBhopJLmUx59R9RpfuWZJHaIg 5iZdysFUvaNZoAuV3HjwW2odSSVcEtaxSmFYABgg398pdRsCvCAkhTzBcNRB1CJ5u6xa K7+8e1ljUsfy/SuqkJ8HW8P3Af7sDqhhCvsdo3nUQh1k4hLjXc7fY67n4NRCBa+Gl+Mn CrfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695807475; x=1696412275; 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=ft0XemQ2LZg3nTnvojmSzmjsDNWPuZyrC59jAwUrwXw=; b=aCuJ01GOzM9SkVfzv/s0s39gA16UgYmZk1I5wLDWb1pTGJ8Q/Zxd8qp0uLOMrjvpyi 5TL5vjIGk150DzNUZ2eiQNpAkLIPB/2Ihw07r82IQKaJ0Em4J8FZKnv2I7utFIj7SvAW Ht8Qr4gj9LuFir9a7N7al9EsVZ0mJhcNn/SL0+lHNGG4FFhr4G6Nm0jSFLRpF/vqx6JI V0eGeGGXVD6w6yQSTL5yQ2u2Xw+IDd2vGLjT58qz1PPO5PAX8Sf5a0ciJTgqPcZH/Amr KYyiCOGC2S6v6uG9sqKd0adZH2mwqXrx3G0YI0LeKkBEwEAOgo1stPVBpkzwG+ynPOR2 OlRQ== X-Gm-Message-State: AOJu0YzPylBnVrG1SAxuPPPi0pLsXEu/UCw0Iz+dp6lkWXs6TQ1Qed4B xbnqUNccdKVPgB5AMrgAuaJ8vmVgfced4D9o0Lc= X-Received: by 2002:a05:6a20:938b:b0:153:8754:8a7e with SMTP id x11-20020a056a20938b00b0015387548a7emr1694072pzh.3.1695807474919; Wed, 27 Sep 2023 02:37:54 -0700 (PDT) Received: from localhost ([164.70.16.189]) by smtp.gmail.com with ESMTPSA id jb22-20020a170903259600b001bd41b70b60sm12682051plb.45.2023.09.27.02.37.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 02:37:54 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Masahisa Kojima Subject: [PATCH v5 6/7] doc: uefi: add HTTP Boot support Date: Wed, 27 Sep 2023 18:36:30 +0900 Message-Id: <20230927093631.1595494-7-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230927093631.1595494-1-masahisa.kojima@linaro.org> References: <20230927093631.1595494-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..23b3da0f95 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. + +The 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~