From patchwork Mon Oct 16 06:45:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 734027 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1045:b0:32d:baff:b0ca with SMTP id c5csp70138wrx; Sun, 15 Oct 2023 23:48:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBJYxeckLa3bf0x+M4l3NQmq5kwicO8ApuGIuh0P+GBDrG+dW2N5VmiyYeju/B1wSpT9d5 X-Received: by 2002:a05:600c:21d0:b0:405:3a3b:2aa2 with SMTP id x16-20020a05600c21d000b004053a3b2aa2mr28432511wmj.37.1697438910182; Sun, 15 Oct 2023 23:48:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697438910; cv=none; d=google.com; s=arc-20160816; b=hu3WGe4DZ4HOrIzGy1iX4GvRx0xPRX6Bo4F1CLU+TZBJRP4YtRP3WsR4dqIJUCA6B5 KWn5wzNhQ8YM+bzTIH7Ukj4XDlDOAZnJX6diSZ3M+srWIbuDMCmTEiyhZr6Jeo7qmn5T ICUAIvB/NXzWAIOuvv9ziE8v//Y1fvxQa2w4fLYuO4K2F+VGbjG/fhdPHeodnPfpbqNb nE01ijhD88BuP1aphXWlVCvMVtLUNPgfATlKYj+Uz6gE7yE5VW5A5P9G1xuegKQ+USvf 61LrUWFmdTeKjpn+gSX4QqLTfdH9zBiW11wySnsv55EqHmRdByytwMB2u7ABbgCyuq8/ Qg0g== 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=krCW1EDHArtGI48lreyiAHizzZlT4boUPNv3WI7tL2A=; fh=I7E+BwgHMByijVVN/pPHsLSpz7oP4y4e73noHEekrEE=; b=HcNx45+N4wrSy/H8GVCXYJZFkRKjYemxpxZczKf3l/AqjDxFTh4yXZ/AL/6/Kgc1Lr otQhDBXdjoxWsHRbWkcKt9dsfNIBLvIcV2Z+uKoBpI9AzYFFDOUyvzh27/9uJPK0+b4G TGo4EMBy/ErVCvVg93AayKS94gKgDbwyltrwjDvZhYvwkk5NKslfH1NsQd0PyFar/Zun tow6boqcfxxl06ru8GtUMoybcHbfxAkxZriub6kxYLF6lCO1ygFqRMIVniML0qM0Q4mo h+H7LckOSQQxiq+MbpJ1bLdgHHHktpLQDNhkTEJuc1vEUURlAWKF/p0iW9g+ZDnGq5jE /9AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nmfrcKWV; 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 r13-20020a5d694d000000b0032d9a85c5c3si3173706wrw.1045.2023.10.15.23.48.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:48:30 -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=nmfrcKWV; 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 1A4FF86EED; Mon, 16 Oct 2023 08:47:31 +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="nmfrcKWV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 96B7686BD7; Mon, 16 Oct 2023 08:47:29 +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-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) (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 B375B86537 for ; Mon, 16 Oct 2023 08:47:19 +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-x630.google.com with SMTP id d9443c01a7336-1c8a1541232so36127105ad.0 for ; Sun, 15 Oct 2023 23:47:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697438838; x=1698043638; 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=krCW1EDHArtGI48lreyiAHizzZlT4boUPNv3WI7tL2A=; b=nmfrcKWVb1ndswrdu0sPviqOx5KNQa7Vr4eH4DNnOWLschqoKYAPDDiCHONITzQLJ2 +D3/bIOCGN+D1OdzBcfvvS4h3XxN7wrCGl33gaqJ38hOelVyzdgyT/n0Mp3wXIhRpDIl 0FGtZATYBtlShKkK8D6spbXwsXtBFMRTiH3UsvPxeSCYLucbXJA1+ghawwCwiJKcjQ40 FB12iJI3DovRGmN91sk+4ZNkmxzyzRmp//sHxT+zEaRNgCkrmhDLZ3bKqSkc1vDvxQD2 257hgL1jDZ2tJSE0TLielvnL8aDu21qDsd+++y7tWvnHH4De/JiVe1YHgdCipv4SQ6Fm ECCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697438838; x=1698043638; 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=krCW1EDHArtGI48lreyiAHizzZlT4boUPNv3WI7tL2A=; b=OwMVhjKj/SRDHeNYuK79cClbD1VH+RmmX6x1tzvqfAyp1jWla2etaMULCKiOQr4+Gy xvQtkbu5kTneD5Qq4qnb1wkI9RLRQnTMsPpnEyme24AGruvNLkTenNNjfD4suKhlNdn2 usVpxBeIsrGtxjKvF6IxaNUezUe3dtfjAjKBv96tSmGaAdL55etS/gZLD6Dno+G1oR3q 5sPkWH1N/QamvaQ9VD31u1Pjdomfzl0I7PIyDnNb/dzF2/6XRcGrttROhrbJUB5Ewt1G 25YijPDKBgddCRF/iuBhBtUSUH1KfuRGdH5NbE3BCB46JC6C3KatuJ3JRnFuAGyoBJ6J C+Vg== X-Gm-Message-State: AOJu0YyuzgpUxdKyc3AFDqEmdh40yc0xiojKf5KUggdkn5YblkADMk7L mi+955JAIEaKXmycjtRMy6NNObBptLv3tozw0mM= X-Received: by 2002:a17:903:187:b0:1bc:2d43:c747 with SMTP id z7-20020a170903018700b001bc2d43c747mr43936985plg.38.1697438837821; Sun, 15 Oct 2023 23:47:17 -0700 (PDT) Received: from localhost ([164.70.16.189]) by smtp.gmail.com with ESMTPSA id n15-20020a170902d2cf00b001b06c106844sm7706342plc.151.2023.10.15.23.47.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:47:17 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Michal Simek , Masahisa Kojima Subject: [PATCH v7 9/9] doc: uefi: add HTTP Boot support Date: Mon, 16 Oct 2023 15:45:26 +0900 Message-Id: <20231016064526.2410856-10-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231016064526.2410856-1-masahisa.kojima@linaro.org> References: <20231016064526.2410856-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 f8510d31d7..d7332c300d 100644 --- a/doc/develop/uefi/uefi.rst +++ b/doc/develop/uefi/uefi.rst @@ -625,6 +625,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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~