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

Frank Wunderlich frank-w at public-files.de
Sun Dec 2 16:26:53 UTC 2018


seems like strings breaks my (older 2014-04) uboot:

BPI-IoT> tftp ${loadaddr} 192.168.0.10:files.lst
Using mtk_eth device
TFTP from server 192.168.0.10; our IP address is 192.168.0.11
Filename 'files.lst'.
Load address: 0x84000000
Loading: #
         43 KiB/s
done
Bytes transferred = 89 (59 hex)
BPI-IoT> echo ${filesize}                       
59
BPI-IoT> strings ${loadaddr} ${filesize}
lߟA�����������������c���_���=�������������w�������{ߟ��wo�W�������������y�_
BPI-IoT> Minicom2.7Minicom2.7�߅_k�|UZ���߿����������0�������Ż��{�������     �

also tested with bytecount 20 instead of filesize-var, same result

cannot use here new uboot till ethernet-driver is not ready

regards Frank


> Gesendet: Sonntag, 02. Dezember 2018 um 11:34 Uhr
> Von: "Simon Goldschmidt" <simon.k.r.goldschmidt at gmail.com>
> An: "Frank Wunderlich" <frank-w at public-files.de>
> Cc: u-boot at lists.denx.de
> Betreff: Re: [U-Boot] list files on tftp / large kernel-image
>
> Am 02.12.2018 um 10:33 schrieb Frank Wunderlich:
> > 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
> 
> => tftp ${loadaddr} 192.168.1.1:list.txt
> Speed: 100, full duplex
> Using ethernet at ff702000 device
> TFTP from server 192.168.1.1; our IP address is 192.168.1.101
> Filename 'list.txt'.
> Load address: 0x1000000
> Loading: #
>           12.7 KiB/s
> done
> Bytes transferred = 158 (9e hex)
> => strings ${loadaddr} 9e
> dhcppkgstyle.xsl
> dhcpstyle.xsl
> favicon.ico
> index.html
> ldlinux.c32
> list.txt
> mini.iso
> netboot.tar.gz
> pxelinux.0
> pxelinux.cfg
> RJ45_5.JPG
> RJ45_52.JPG
>   ã(Ðå
> =>
> 
> The 'strings' command has to be enabled under "Command line interface" 
> -> "Memory commands". It helps to show the contents, but not really for 
> scripting...
> 
> Simon
> 
> > 
> > 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
> >>
> 
>


More information about the U-Boot mailing list