From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TYsWg-0008AQ-NU for barebox@lists.infradead.org; Thu, 15 Nov 2012 06:02:11 +0000 Received: by mail-pb0-f49.google.com with SMTP id un15so864482pbc.36 for ; Wed, 14 Nov 2012 22:02:09 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <20121115031146.GA31296@greatfirst.com> Date: Thu, 15 Nov 2012 10:02:09 +0400 Message-ID: From: Antony Pavlov 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: barebox On 15 November 2012 09:45, Antony Pavlov wrote: > On 15 November 2012 07:11, zzs 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 -- Best regards, Antony Pavlov _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox