how to download a file to specified mem location using tftp

Antony Pavlov antonynpavlov at gmail.com
Thu Nov 15 01:02:09 EST 2012


On 15 November 2012 09:45, Antony Pavlov <antonynpavlov at gmail.com> wrote:
> On 15 November 2012 07:11, zzs <zzs213 at 126.com> wrote:
>> tftp command only have filename args, Now I want
>> download a file to mem loctaion, ex 0x21f00000.
>> How to do that?
>
> AFAIR,
>  memcpy -s /mnt/tftp/file -d /dev/mem 0 <memaddr> <size>
>
> (but /dev/mem is default value for -d).
>

If you have tftp command only (old barebox without tftp filesystem support)
then use

 barebox:/ tftp your_file
 barebox:/ memcpy -s your_file 0 0x21f00000 <file size>

-- 
Best regards,
  Antony Pavlov



More information about the barebox mailing list