From patchwork Fri Nov 10 04:25:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 742845 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp12783wrw; Thu, 9 Nov 2023 20:29:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IFLxz6KiHeZmKH1Kz1fCAZHtWDSMy3eCr5Kvzzx9PyVQBtSLMjs8igD164LcNpA/+t4LrNU X-Received: by 2002:a17:906:4fd5:b0:9c6:19ea:cdd6 with SMTP id i21-20020a1709064fd500b009c619eacdd6mr6236483ejw.50.1699590580601; Thu, 09 Nov 2023 20:29:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699590580; cv=none; d=google.com; s=arc-20160816; b=v0h17ShBtfrep/Zp34QY4oiDIUq7EdmQrNm/9/NGCZkHMPsq6cJAFYWUp2CbBOHB6M GklGaEI137cEr8tXeA8w/cIRJnlKbduqReDepN5PsTfE0tVQ3OA1b1TtkcW/RE4TA2xT Hn+GXCpfCMyNkqhti46iPmIVRF1wRHzb0iFYyXqTGE01wePuLVkdudkbXwt8kmmvZQHX HczGhUtQFfyYDPWfuAqV+s5ANIH7gKevAWBI7trMzYJVwzCZCSAXx88U7criEjEDKtb+ vfnOSVFzxuL7g7RPHUM+bf0s2OW3/UyW+2027bx/ReCJ4MZAvIqoztZ2gyvu0WheiDZv rYgA== 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=UZ+JF9NJYlyKUH5reGegh8kYEzI4T6bSFzQJyaIsPY+ZadY51hkLCpc1UI0o20bjtD 7BK4WJgros7qZ7rlzQa36t7o2+1y9dXWU1AKVt1O71Mz/JISZOhQGYalWxgZ7u03/gAp Db2rJNVUJoJq0C9l5qbYeM6Vsv3TZH4Xw2M0A9BEvJgTRcwXTydMBxtmIOrOCy/F6DPO UDPJnScjaEvE7XbLhSDQYQyBSPpByeshnYxPThaBFxb5mE0jAQqImQ4uS1a6I/Y6uEkB gK/XVGEaZi/BoInzYZDLjHyCsR5XXcccwAwo5gx1MkdpUUonArqfJkwT7Max5z5A143f pHBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="G/zHShEF"; 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 ml11-20020a170906cc0b00b009dd8bc8778esi3727189ejb.382.2023.11.09.20.29.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 20:29:40 -0800 (PST) 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="G/zHShEF"; 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 5671B877A5; Fri, 10 Nov 2023 05:28:12 +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="G/zHShEF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4B8E887783; Fri, 10 Nov 2023 05:28:07 +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-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) (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 ED1048779C for ; Fri, 10 Nov 2023 05:27:47 +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-pg1-x530.google.com with SMTP id 41be03b00d2f7-5b9a7357553so1340454a12.0 for ; Thu, 09 Nov 2023 20:27:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699590461; x=1700195261; 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=G/zHShEFZgkGEY5i5m4OoSTt51cfmTFnHerz5VRmAJdrJrtdUSxGZ5cz+VfvIKzqrx v+4Y6VGGmQlifBQ7/rnciuI9aC+rqpWXk79v57fP0EDm0BHPaiekdoQ3z75bV4MtNltO 0aH3/g5lyWHFfekzqmuh0qgXUdl93ZIOY/PwwRkkZNGOUcOK3cfCwDDgvFODlQh9cBru 5rkoWb4TIPrWGVFBBNXm1rVhfuuJZh3ICbY8BAbZG6eRKXevCGMIuQTuKitFDldvV4nx bQqxkifTrqOqcvf+Hx+jzSmZPhJfNB3uuuqZQ8VCxSO2r9XMiaKZQEaz/UUT/RCKI8JP xk0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699590461; x=1700195261; 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=m7765guAgVBqw5PfsqlOIbx/O0aOb/J8deQc6ol/jTyzvWRrCFZb7eu2fm/RacrrYV yZ7vrE3YE2BSOrZ5jABWhjK6rCnMNBzZwjGKKOFQCcSyXOa1JrHJwFADC5mFiUOpR36y 6o+/fa6n5p1xhPiIRHVbLGkB/+hPeO5eHEk4nQRfIwQGHyg5NpZtIpUkmOj1BDR83+UK p1ArzwR2y/0LP0Y5Pc6HnEn/zjXXoynSo6zMaPv9UN38RlzG1BCkblM3KzqPsQg4Fecd AuRgVJynTPDVeG7eyWjgbtMCR68AFImgS8qr/rCOvygK/0+j57hKVq6V9FczhbLRVj3z Ia+g== X-Gm-Message-State: AOJu0YyQ3k43BsVUWnwmTriOiZdasrUlVwURSl8kNBMejizMdFPTRPPE 9Z3/rMm3Im7K36o1oa8Y/V92E8y9LTDpmNRneys= X-Received: by 2002:a17:90b:38cb:b0:280:e85a:9dde with SMTP id nn11-20020a17090b38cb00b00280e85a9ddemr4145136pjb.33.1699590461222; Thu, 09 Nov 2023 20:27:41 -0800 (PST) Received: from localhost ([164.70.16.189]) by smtp.gmail.com with ESMTPSA id v18-20020a17090ac91200b00273744e6eccsm605226pjt.12.2023.11.09.20.27.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 20:27:40 -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 v12 9/9] doc: uefi: add HTTP Boot support Date: Fri, 10 Nov 2023 13:25:42 +0900 Message-Id: <20231110042542.3797301-10-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231110042542.3797301-1-masahisa.kojima@linaro.org> References: <20231110042542.3797301-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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~