From patchwork Wed Nov 8 11:06:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 742230 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:110f:b0:32d:baff:b0ca with SMTP id z15csp228164wrw; Wed, 8 Nov 2023 03:09:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNpQ8GwPtLdQbKPbvoWQuoQ9/1uxp7R5WjCt9eDoF8bcpqwBmVYSQMaACgw9g69GH+vWgq X-Received: by 2002:a50:cc85:0:b0:540:37d6:c1f3 with SMTP id q5-20020a50cc85000000b0054037d6c1f3mr1109104edi.11.1699441781322; Wed, 08 Nov 2023 03:09:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699441781; cv=none; d=google.com; s=arc-20160816; b=LSJpCMfEWmPF1FxmsvoJgE494S4yQ5LcRkE4kLdkmWkMNeHiLY5jTbKmhnii+9LkjM josidkrK6MysRadDPHYyv6GxSXkdsFnrp/sIn3H32/dquBMqn9YZboMiHmEW01J9jodx v430BRKnvo+Q/RFR2orjRHPoV+CXBkyURxNM3z/xR1B006bZNrqqMIWNZNTRxRTboGYe T+ItoxcVBJaxlVKP9JZanyp1BqWMGN/nx+AaKNm1/QfChhpayoNXiDtD9pMPMO/BZcda Esy8VsEVRw+GWPx/nDFvpGsoSW6CXcsMfnKLQXamde7JydnG5pUQBG76Dp/dAscXa9z0 m/jw== 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=9yfAtkx/MLAaC2e3oTVCEdGrlnmIaFPaJzkqM3lqaYU=; fh=I7E+BwgHMByijVVN/pPHsLSpz7oP4y4e73noHEekrEE=; b=CNfg/IitgYw7KZWoKjD8Lhlc+NWE4YF1ELbwfzJp5U1TfOPKxGsGbVMbo01jCPTib2 jpurZkjlTZfg0gdmY+B2pWQfuNFgTw+dXDGCyChYRIIjQlirAMagUaOmUWo9MSBb0SNX otwhh3f4UH9K+2/Jf4K3bzFIfFX1rv11nICIFXMICv+0ysJMnznbGX5RJcjXqBlYjOzY TRpdR3lwaw0kZ3Q5yDI+BYYC10XAQ94BjELo7wyHd2doZEIYWsznI93q3yNKeMtPUX4u VFk0u0NMvIYj5Ezsl4aHNo6lyPeB7tluckfZAnrpwx9ptuRypHKmoiQaZQekVTpntoVb jrgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cz0ha4rv; 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 l17-20020a50c111000000b00544f8271b62si1254703edf.521.2023.11.08.03.09.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 03:09:41 -0800 (PST) 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=Cz0ha4rv; 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 BA571874BD; Wed, 8 Nov 2023 12:08:24 +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="Cz0ha4rv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CA6D587253; Wed, 8 Nov 2023 12:08:23 +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=-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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) (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 319AE87716 for ; Wed, 8 Nov 2023 12:08:21 +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=masahisa.kojima@linaro.org Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-6c4884521f6so142067b3a.0 for ; Wed, 08 Nov 2023 03:08:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699441699; x=1700046499; 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=9yfAtkx/MLAaC2e3oTVCEdGrlnmIaFPaJzkqM3lqaYU=; b=Cz0ha4rvoK9GGalglGTf0RF6032/xR01RPpjoiPr5uZpou8jGlE2juC7CASNpD4wEC xLvghyOa05eiWTtkbTB0/71KDZTFj/tIfDvj9C9r8nRzU/mW6EIAQi/E/nzeY1DQJPSs yGCFTBwujS82zSPHxXPJX4Aoc+FJKaiYPSNwiBE3IxREvEJUYilYyNQGPZkZJfsUbryM 06tnWSbQTfwtUMJ5FWxV+AInVaJTGPbs5oulpRO+6coGMfuNCjvFKmTp9iHORTRh/Lhw zx9JSD4nWe7uL4ZtCs08bjeAGfr//lEZ6aBvY6qytUZ73ve5u8pOPmKzMmuxCaEHU4ir 6l6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699441699; x=1700046499; 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=9yfAtkx/MLAaC2e3oTVCEdGrlnmIaFPaJzkqM3lqaYU=; b=rCk+ikj5SqyzFMHlsjqEcLZew+C1THh01S9Z2qtZDSysC5eJVEtFgXcq66Pe4gXBEP V8ErqeqDf7XBiDvAWmG8i3iRv4q9Z+zQIEe8QPu+4X4LU2bYmA+8sTR1KXaYSiT0jijH fvOBhm+QvvizeEWVTn1ol3PFwVunDH01hqKxMziOLMyAk/PMH0+n/1iJZnB16iE3Q8Y8 voFZpLenskWSy4IkL4lIp5Ef0gOfD1zNorKfUTepBInzASMO1Vl88PXSHZvkRcPKb8X9 91ISLk8yisKNAB2N8Ry4VP6lJqnxZLZC6hgJYLw8aLE2E9FXhtoFr0dhb/CJj1RktvBm LRpA== X-Gm-Message-State: AOJu0YyE+4N7tR1n17svms2NSsSaPNrlGpTz4rodGZL1+ptywOO8octw RHZjSurpAoq8sNeHr2/wsP4zCK0t96oMwiwYXLs= X-Received: by 2002:a05:6a20:9188:b0:17b:3438:cf92 with SMTP id v8-20020a056a20918800b0017b3438cf92mr1687558pzd.5.1699441699260; Wed, 08 Nov 2023 03:08:19 -0800 (PST) Received: from localhost ([164.70.16.189]) by smtp.gmail.com with ESMTPSA id s12-20020a170902988c00b001cc55bcd0c3sm1497914plp.47.2023.11.08.03.08.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 03:08:18 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Michal Simek , Masahisa Kojima Subject: [PATCH v11 9/9] doc: uefi: add HTTP Boot support Date: Wed, 8 Nov 2023 20:06:36 +0900 Message-Id: <20231108110637.3691441-10-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231108110637.3691441-1-masahisa.kojima@linaro.org> References: <20231108110637.3691441-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 fb16ac743a..ca9a573669 100644 --- a/doc/develop/uefi/uefi.rst +++ b/doc/develop/uefi/uefi.rst @@ -642,6 +642,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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~