From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from m15-114.126.com ([220.181.15.114]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TYsro-0000Lf-7o for barebox@lists.infradead.org; Thu, 15 Nov 2012 06:24:02 +0000 Date: Thu, 15 Nov 2012 14:30:11 +0800 From: zzs Message-ID: <20121115063011.GB31296@greatfirst.com> References: <20121115031146.GA31296@greatfirst.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: how to download a file to specified mem location using tftp To: Antony Pavlov Cc: barebox In message 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 > > > > (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 > 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