Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6087AC433EF for ; Tue, 30 Nov 2021 19:30:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5AB9A802D6; Tue, 30 Nov 2021 20:30:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="r6fNG8it"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8EDA680735; Tue, 30 Nov 2021 20:30:17 +0100 (CET) Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (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 6D1FF801E7 for ; Tue, 30 Nov 2021 20:30:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf36.google.com with SMTP id g9so17144940qvd.2 for ; Tue, 30 Nov 2021 11:30:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=WPzeKDAqS7zVruogLBnNyMfzQXkG3bdNVXmndz7hi34=; b=r6fNG8itoB6bdzIFwbZsiATdq3/ebEXN+ZlVtmZIwNzjFz7v1xqnXgG+Wn9clAy3Z7 WC0KZ1mRVVAruRpWuJwMd8OzRW9w3PKnw4e51lgoqZmFwNJGEfsg5GS7N+sm8m1oW7Ya 0q37nUfyDu8JnrYGJxWKCaEO7I7P2uCOgNz00= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=WPzeKDAqS7zVruogLBnNyMfzQXkG3bdNVXmndz7hi34=; b=gWJzur3t61CXq8V3wWPDIpN7ac/NPHnlQ94Lo+Lh6ZOzBIlwlvmRhPqd8Mo55QSO5H wyj/3uRG7ncWsTkew2cWG4zuw/ho+PKqbrzVvEAH27pvyPFlyBHp5VP8Os52q9noGAVr jDmCXn3fUoX4iAhuJcztuuq+7PZZ2tfvIA6/aUYfmEdBbXFsDu3EGNdN+W/IJR9DIwqZ MdWDYbUjJwXK8ps57EqQeLSrcNpIg+qIUQc66SOeQP/4CVq3gm/aZJ4OUXMq1EGYxGxL a8lPBUTcSX1Jiobysoc9XQ74+Q+VC8cVG0WvOwc1TTu9kzpS/MfV86KhihdBL3zXSMfj T7Jw== X-Gm-Message-State: AOAM532BkhuvpxXym/yKqDU/bZVGUZ6RAta2lK9r+c4CRoyXWrgTfuDe bJ2wbnpm4vt1BzHgafYvqdUt5w== X-Google-Smtp-Source: ABdhPJysXVYzKaHsnPZ/Z8KZe/8fgQetSmtPYwnBpJ3eW/zbzUFOpUbGYoUJgv/+mQEuZ3CYmhniDQ== X-Received: by 2002:a05:6214:21e3:: with SMTP id p3mr1270868qvj.93.1638300613205; Tue, 30 Nov 2021 11:30:13 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-e478-4cc2-fb2f-8620.res6.spectrum.com. [2603:6081:7b01:cbda:e478:4cc2:fb2f:8620]) by smtp.gmail.com with ESMTPSA id v21sm11634084qta.0.2021.11.30.11.30.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Nov 2021 11:30:12 -0800 (PST) Date: Tue, 30 Nov 2021 14:30:10 -0500 From: Tom Rini To: Elmar Psilog Cc: u-boot@lists.denx.de Subject: Re: get file via tftp and write to filesystem, get length of tftp transfer Message-ID: <20211130193010.GM24579@bill-the-cat> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WrgD/HgqBLyzORPv" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 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.2 at phobos.denx.de X-Virus-Status: Clean --WrgD/HgqBLyzORPv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 30, 2021 at 07:51:28AM +0100, Elmar Psilog wrote: > Hello, is it possible to download a file via network (tftp) and write it > to a filesystem as ext4? This looks like a combination of > tftpboot and ext4write but how to get sizebytes? > I don't find how to get the length information from tftpboot into a > variable - it seems to me only displayed on screen. Did I miss something? The filesize environment variable is almost always set when we "read" something from a source, including tftp. --=20 Tom --WrgD/HgqBLyzORPv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmGme8IACgkQFHw5/5Y0 tyy9SwwAps/Ih8/qDCSkY6iAMe1k08a4KEQmSAjA6r2Xb8r3Ey1ZuaABgof60tXV so/ACNPm0UpwVYziJDFeouGFjY/iH47ayRnYPJpvKL2XebyH53726tl9FKEfRmYT r5TOuqyrXTagpomFlcqFjru3npePB9I13IaTOqINn0qq3rHBoLcSZcJKh0D8sgzm //ksetdlnuNepoVRW9l5Lrr94b3FoNXTfKr6AmTJENXZsaaFGxHobhmivxUeeW3S r6SL8TK71cPgn8WOSS6CGBwUt3+a4LaiQaYNF21FEtfn0nBNukSYObhPMCd3RCCa gXM68PZ/AraE1mAgXKtuwEq3N/yexBYCuyQLQ5y1/DvWaKeKB+Zpxvpi4dVrxl/6 E5Lo25Oy0AKqYCWqpYOL7mQnIKdzrzLGkVXEBftpN/4uNHQRbLnp+krn3eEhaBIS Alzwsdg2QT7Uq57WIgaRl+hN0nOJOis425sB1B8ZeawN+M4qe16BIguantCxMaG0 Xz0HXX2W =elgR -----END PGP SIGNATURE----- --WrgD/HgqBLyzORPv--