get file via tftp and write to filesystem, get length of tftp transfer

Tom Rini trini at konsulko.com
Wed Dec 1 15:36:39 CET 2021


On Wed, Dec 01, 2021 at 02:58:05PM +0100, Elmar Psilog wrote:
> 
> > 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.
> > 
> Thanks Tom! How could I miss that?
> 
> 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-megahallon@gmail.com/
but someone needs to pick it up and re-spin it.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20211201/a5d071bf/attachment.sig>


More information about the U-Boot mailing list