[U-Boot] list files on tftp / large kernel-image

Frank Wunderlich frank-w at public-files.de
Sun Dec 2 10:32:31 UTC 2018


i've walked through code and it seems i've found it in cmd/strings.c

strings
	display strings
	<addr> [byte count]
	    - display strings at <addr> for at least [byte count] or first double NUL

does tftp add the "double NUL" if i do this:

tftp 0x80200000 filelist.txt
strings 0x80200000

or do i need to add ${filesize} to strings-command (if this is set via tftp)

regards Frank

> Gesendet: Sonntag, 02. Dezember 2018 um 10:33 Uhr
> Von: "Frank Wunderlich" <frank-w at public-files.de>
> An: "Simon Goldschmidt" <simon.k.r.goldschmidt at gmail.com>
> Cc: u-boot at lists.denx.de
> Betreff: Re: [U-Boot] list files on tftp / large kernel-image
>
> can you give me an example how to download and display it, seems i only have tftpboot which runs kernel directly?
> 
> also found no strings-command in https://www.denx.de/wiki/DULG/Manual
> 
> Frank
> 
> > Gesendet: Montag, 19. November 2018 um 12:29 Uhr
> > Von: "Simon Goldschmidt" <simon.k.r.goldschmidt at gmail.com>
> > An: "Frank Wunderlich" <frank-w at public-files.de>
> > Cc: "U-Boot Mailing List" <u-boot at lists.denx.de>
> > Betreff: Re: Re: [U-Boot] list files on tftp / large kernel-image
> >
> > On Wed, Nov 14, 2018 at 4:52 PM Frank Wunderlich
> > <frank-w at public-files.de> wrote:
> > >
> > > Hi Simon,
> > > thanks for fast answer
> > >
> > > i hope mediatek release ethernet soon (i know it's a more complex driver for r2 than the other 18 patches ), than i can drop the old uboot ;)
> > >
> > > for list tftp, it seems to be a protocol limitation.
> > > here https://unix.stackexchange.com/questions/76400/download-directory-structure-from-a-tftp-server the server creates a textfile...this can be a workaround
> > >
> > > can i download (to memory) and display it (without writing it)? i only have loaded kernel and executed it's address. I don't know how to print a "Textfile" (if it's in memory i need to know it's size and print this "data block"). maybe there is a way to load the data directly to an env-var
> > 
> > Have you tried the 'strings' command? Is that enough?
> > 
> > Simon
> > 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
> 


More information about the U-Boot mailing list