Re: tftp to flash from linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Wouter,

On Tue, Sep 13, 2011 at 01:50:42PM +0200, Vanhauwaert Wouter wrote:
> Yes, I already thought that this nandwrite command can be used for writing. 
> But problem is I get the image via tftp and my RAM is to little to store it 
> temporary.  So I have to write it directly to flash. Can I combine this 
> nandwrite and tftp in any way? I'm using busybox

The nandwrite utility (and also the Busybox version) reads data from standard 
input in the absence of file argument. You can pipe the data stream from the 
network directly to nandwrite.

baruch

> -----Original Message-----
> From: Baruch Siach [mailto:baruch@xxxxxxxxxx] 
> Sent: dinsdag 13 september 2011 13:44
> To: Vanhauwaert Wouter
> Cc: barebox@xxxxxxxxxxxxxxxxxxx
> Subject: Re: tftp to flash from linux
> 
> Hi Wouter,
> 
> On Tue, Sep 13, 2011 at 01:36:31PM +0200, Vanhauwaert Wouter wrote:
> > To update our platform from within a booted linux, we need tftp to 
> > write to the nand-flash (another partition) directly.
> > Which one do I use? /dev/mtdx or /dev/mtdblockx? And what happens with 
> > bad blocks here? Are these bad-block aware?
> 
> Use the nandwrite utility from the mtd-utils package (there's also a Busybox 
> version), and a/dev/mtdx.
> 
> baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@xxxxxxxxxx - tel: +972.2.679.5364, http://www.tkos.co.il -

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux