From: zzs <zzs213@126.com>
To: Antony Pavlov <antonynpavlov@gmail.com>
Cc: barebox <barebox@lists.infradead.org>
Subject: Re: how to download a file to specified mem location using tftp
Date: Thu, 15 Nov 2012 14:30:11 +0800 [thread overview]
Message-ID: <20121115063011.GB31296@greatfirst.com> (raw)
In-Reply-To: <CAA4bVAEhhLxXfzNZ_mBP_=W-TNOHOkEnwF=vgBMBy16ezd2_NA@mail.gmail.com>
In message <CAA4bVAEhhLxXfzNZ_mBP_=W-TNOHOkEnwF=vgBMBy16ezd2_NA@mail.gmail.com> Antony Pavlov 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>
>
Thanks, I'm a barebox beginner.
So how to mount tftp to /mnt/tftp
my barebox version is 2012.10.0
--
Best Regards,
zzs
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-11-15 6:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-15 3:11 zzs
2012-11-15 5:45 ` Antony Pavlov
2012-11-15 6:02 ` Antony Pavlov
2012-11-15 6:30 ` zzs [this message]
2012-11-15 7:07 ` zzs
2012-11-15 7:41 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121115063011.GB31296@greatfirst.com \
--to=zzs213@126.com \
--cc=antonynpavlov@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox