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 790ADC433EF for ; Wed, 1 Dec 2021 14:36:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D70B283090; Wed, 1 Dec 2021 15:36:48 +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="WfQqjcMu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E2BA982FAF; Wed, 1 Dec 2021 15:36:46 +0100 (CET) Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (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 C09C380F89 for ; Wed, 1 Dec 2021 15:36:42 +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-qk1-x72f.google.com with SMTP id p4so31104529qkm.7 for ; Wed, 01 Dec 2021 06:36:42 -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=5roJdlVJAEs1hZ+JXa0cb9KzDWm+GQgvDe1p2tF//AY=; b=WfQqjcMuNnguNnIywU1pzEsl5Omz+r9OPfQEdH9+H/f2WHnz+Lnn6TfqHxW4pIvEWY 8p4e9s0GRiQBOmFuE6ygJigwTl/plPoDGGfOq4sKqOMcg1D27sRtN7xRuD90dg146BYu UcdOi5DIM4APhvsIiXKDkyXyq+s44ZPYnlktM= 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=5roJdlVJAEs1hZ+JXa0cb9KzDWm+GQgvDe1p2tF//AY=; b=VbXvIJ9L2FekT5IGIhae9zK3pY7KLlWimmz9v2DdGTNmj9My0hNE9H3NEOD9JoxaPr KCgsUaXyOFMZvlAqPjA3vhpcZ2ipF1z7hsZMnzoRXI7110YKuZqLw/91kidHPj7s96QS xcm3yCtr5eyHBBVG7CkjObqtlMVTQbnN9XLxpDmKU877kxQiZV4vzBiYaRcqC/Sfnvl2 JgjrWeHam6dfuq2XFgh4xvwaDA+Y8g9PbpcPpRmY89mEBNSjyyiEFpENY02Ls1PMDHQb j0RdkLWCh58lUTEkllU5j452MCOCqKabQHTuN7R2aQgjHEmzLNJsLnzmWVK/F1pz5jgd PLWw== X-Gm-Message-State: AOAM531QgMECLddA34cAVhMB9CHCEreFRt5ZeyP4adgHX7m+1AJ47j/y FBr2+/dZkMilX6XU7Ej36QWv/g== X-Google-Smtp-Source: ABdhPJzoH5mObT98ig0fywBktm+MyIVhqK7tJoUvksEPNWSg1mfCiToGWOtkY0l7gNNHDvlxT2Cb/w== X-Received: by 2002:a37:502:: with SMTP id 2mr6538520qkf.701.1638369401604; Wed, 01 Dec 2021 06:36:41 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-c825-72b9-4e49-4490.res6.spectrum.com. [2603:6081:7b01:cbda:c825:72b9:4e49:4490]) by smtp.gmail.com with ESMTPSA id f34sm12216131qtb.7.2021.12.01.06.36.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 06:36:40 -0800 (PST) Date: Wed, 1 Dec 2021 09:36:39 -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: <20211201143639.GD1220664@bill-the-cat> References: <20211130193010.GM24579@bill-the-cat> <35c7cea7-08e3-f4c0-2368-4b16b4c38d9f@gmx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DKU6Jbt7q3WqK7+M" Content-Disposition: inline In-Reply-To: <35c7cea7-08e3-f4c0-2368-4b16b4c38d9f@gmx.de> 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 --DKU6Jbt7q3WqK7+M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 01, 2021 at 02:58:05PM +0100, Elmar Psilog wrote: >=20 > > On Tue, Nov 30, 2021 at 07:51:28AM +0100, Elmar Psilog wrote: > >=20 > > > 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 someth= ing? > > The filesize environment variable is almost always set when we "read" > > something from a source, including tftp. > >=20 > Thanks Tom! How could I miss that? >=20 > Writing ext4 only works if it was formatted with -O ^metadata_csum. Yes, there's https://patchwork.ozlabs.org/project/uboot/patch/20210212165747.207979-1-me= gahallon@gmail.com/ but someone needs to pick it up and re-spin it. --=20 Tom --DKU6Jbt7q3WqK7+M Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmGniHMACgkQFHw5/5Y0 tyyJUwwAj1mgqDTajKk3QRanVlYjJfR5deeg8qCvAJ/cSwEPJG+EzcOemEkR7WGe qhaj6C5oCt29o42F6JVwgUK9Nc1ZAZvHGHx6tue9Jw0BRTRQXY2odBea9jC5EWAN FfFaLrdgrASJlfH7tfH8BfzyFQ/QQ7vcugd9riTSPDWcgzbU/XR5L9IvlfUpA+A/ T6oye1ZE+bt5iKmkMIZapxJWqQ2NJXjH8QjraDZtVCSodsT7p6D+bkjYBAPWKQM+ Yy0Y3QoV7L7eviX+bhk3EhVieT4shpRJ7ZBdfRPH43OWzb8ySaS3gkB2MdHRVP0t pnZ2Au78Pxuf/3TeyWEClKgfdendUT31c7GEmtgHOgwmpN8VR3MbcG+WHql98YhL rDQFlfrSJDKkNfavwAps4Kr7g7MPLvt7uHfOwpsGmvM7KW2nAl39iSpjsYa/9Em1 B7OMynne2+eVLQ7fbe4GinQxD2TEgp288hh+dGdekIYTHb2hVFMxLhWeKe1CzmLS r0kejVL4 =4V3z -----END PGP SIGNATURE----- --DKU6Jbt7q3WqK7+M--