From patchwork Wed Aug 7 17:11:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 817411 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e11:0:b0:367:895a:4699 with SMTP id p17csp492735wrt; Wed, 7 Aug 2024 10:13:16 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVTo2Y3MhFrfeAN/jEKc4CbSBfSYJxB1NLGxj9PHrmJzxEFrfw1HqO5Kov3oPh9TFUWNOzLsnodVzV/HS8JDRVf X-Google-Smtp-Source: AGHT+IFe0oSahj6BMUhu0NXwGIRHBBmzrqKsvYbPLS2uhlv4ozRuW+vSWruKwMvnvb2NhBPLULPQ X-Received: by 2002:a17:907:e8b:b0:a7a:adac:57d5 with SMTP id a640c23a62f3a-a7dc4e282demr1469349266b.18.1723050796190; Wed, 07 Aug 2024 10:13:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723050796; cv=none; d=google.com; s=arc-20160816; b=XUuSnnVZRAcAF5U591lNLp7XBw/a/XEtKuzhVF3LWz5kFySb4CWMV2WnqhkLNlpgbu f3ClCGg5ZxikWzN10ckVmMhXXZEd+5zLfMRO1rYOXo85iu8G9PiLG2sX1l/lvuWNGiiM 0X/g3UWw20305L7TSOUD+HFjFILfc+TKuzJehH1Bm4+J4T9+BnnVjmQfKPxRVZvJna9J s2roQvXAmeSfx9GeGkEfP8r76o6sUzUjrydOfJXDnjjyOiJbF0NGFP8euB8U0oGUhwWn KcR+p+XNjAhbx1E5U85sNFpTq1ZZzf6FJpRQGPiQ4qgozTZsCp9rQ1LPsWrliRqmrjEC DrNw== 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=ALJZhM9QCzxl8KYaUtyIpLCZizsdfn1cqW7h7h5CSXA=; fh=5Fdzae20gi4ZVX2++pSsMcX5CcWBHPAXFw4P1DhOa3E=; b=jDEy4PraDFif171Dtt/2dNbzYLKrySqf27vtBL3DJ8UJuSp2zhpa6RPhGDFV60p0tS F7DI9A0uAs7ELDECvBNh1gdIIJRatxzo+Q84DJHAWuyVG2WgBr51q1xVKC6cl7sXltO2 5pvzPTZVCGSrya//MhOVG6m9WRka5dQMVrcHxD3Q/aO3/TfMDs3O9QrDwfiP5n1h+9Os GDqq/IaRegoePCh9nLx9rjBgZHte4Wo2YzWOINwyox4z95dsCeIOrKYUGa80+bc2i32n h3iHuLwx3ojjYNFXm/eueeAJLFyl7JAiVhIyOrqEhM1pctucx3Oz/0mLd4hXPP0O4ETR 8hSA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lGjc3Q9J; 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; dara=neutral header.i=@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 a640c23a62f3a-a7dc9f667fasi714044066b.939.2024.08.07.10.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 10:13:16 -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=lGjc3Q9J; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5FF9A88D1D; Wed, 7 Aug 2024 19:12:45 +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="lGjc3Q9J"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 43E7088B63; Wed, 7 Aug 2024 19:12:43 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (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 2E1CB88A84 for ; Wed, 7 Aug 2024 19:12:41 +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=jerome.forissier@linaro.org Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-367990aaef3so46771f8f.0 for ; Wed, 07 Aug 2024 10:12:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723050760; x=1723655560; 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=ALJZhM9QCzxl8KYaUtyIpLCZizsdfn1cqW7h7h5CSXA=; b=lGjc3Q9JH5Ec6MaokoavDHbbQeLj1RNZJjoxy64G66BGuZuF/0TeRDSsLYU318QdWH V/88eCvKO+ZX7K+Sg96z+Kkcs/q3yM4vLUH7vrm1wnbCdw2PahGxQh88vlmp8NEFnI4k qTlUMFohZOWBL6Nhd6dBMshL/8Hz5tu2KoEK5xqtFupN53wgcW6Thi2IWR5LfA6JZtKE XD5HyO38AgddmxDMcqqtnlcCwyF6nd+4ry62RoTBhRwv2Nl9W9Wvh8LAgMk2hKY5PmBB CYK5Nsl5tRbIrP09r9tuGJ8QhiJjI6KHtMu8eSJ6PVrjKN/mFxbIiPVTHk827O3c3O9L YiBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723050760; x=1723655560; 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=ALJZhM9QCzxl8KYaUtyIpLCZizsdfn1cqW7h7h5CSXA=; b=eVEo+Zg8z2nfwFxL8MYIRnKZR1Zcnm7noA2BUDudzcSmU0gWgA1GbQjLbevnJuo5eX 1Q1ayOZYBeIwkTwY67nbNgkdEOVQW4zHgaaJOstPiRBArOUS8IPNIxowbbKkQ0Wz5j5s ljF2iOq7p2/sGfkYWciJWS9fQMr/Ah9Em9tOrL+xh92yqW6EcPY715r09C6mMECwWWQR aW9DQm44Uu2e4CUvejcJWq+Vg3IuKxfTgvwW+SAM3fwETngG1iiZMGqt/xyiVfr0C8I6 jFnSIcSYoM1Fi7z93ho7eRoylfByBWeWFIalXyiil7PXNehcS0oaYHnw6a6xOrO73Iil xWSQ== X-Gm-Message-State: AOJu0YzqgmFn3tjfwcpx6+0yKajKzqaAOerBZeEGURI+sEBCRWCu2ueE YEeXHChxCtZ+lM1NLQ32KEI3M1xQ8Y9Lk7IOGv+0JHuC63/3H4dt28GIxrG+IrlH/PT8uwh/B0j UJH64JqQN X-Received: by 2002:a05:6000:11c1:b0:368:7f8f:ca72 with SMTP id ffacd0b85a97d-36bbc0fdac1mr13797169f8f.29.1723050760359; Wed, 07 Aug 2024 10:12:40 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:bb3d:43b8:4780:757c]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36bbd0597b2sm16623781f8f.81.2024.08.07.10.12.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 10:12:40 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Javier Tia , Raymond Mao , Maxim Uvarov , Tim Harvey , Jerome Forissier , Joe Hershberger , Ramon Fried , Tom Rini , Masahisa Kojima , Simon Glass , Yasuharu Shibata , Marek Vasut Subject: [PATCH v8 03/23] net: wget: allow EFI boot Date: Wed, 7 Aug 2024 19:11:47 +0200 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 wget followed by bootefi currently fails as follows: U-Boot> wget 200000 192.168.0.30:helloworld.efi Waiting for Ethernet connection... done. HTTP/1.0 200 OK Packets received 13, Transfer Successful Bytes transferred = 12720 (31b0 hex) U-Boot> bootefi 200000 No UEFI binary known at 200000 U-Boot> Fix the problem by adding the missing efi_set_bootdev() call. Signed-off-by: Jerome Forissier --- net/wget.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/wget.c b/net/wget.c index 0e4dc5159d0..cf7681a4e79 100644 --- a/net/wget.c +++ b/net/wget.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -429,6 +430,9 @@ static void wget_handler(uchar *pkt, u16 dport, case WGET_TRANSFERRED: printf("Packets received %d, Transfer Successful\n", packets); net_set_state(wget_loop_state); + efi_set_bootdev("Net", "", image_url, + map_sysmem(image_load_addr, 0), + net_boot_file_size); break; } }