tftp to flash from linux
Baruch Siach
baruch at tkos.co.il
Wed Sep 14 12:43:54 EDT 2011
On Wed, Sep 14, 2011 at 05:03:07PM +0200, Vanhauwaert Wouter wrote:
> > You need a tftp client that supports writing to stdout and a nandwrite
> > that
> > supports reading from stdin.
> >
> > Than it's the usual
> >
> > tftp $server $file | nandwrite /dev/mtdfoo -
>
> I try
> mx27iat# tftp -g -l /proc/self/fd/1 -r zImage_iat_3.0.11_0.02-dbg1 10.0.56.4 | nandwrite -p /dev/mtd4 -
>
> But this doesn't work. Gives some output, from which:
> open input file: No such file or directory
> The same command without the pipe at the end works (output to stdout)
Try passing the data via a named pipe:
mkfifo nand_pipe
tftp -g -l nand_pipe -r zImage 10.0.56.4 &
nandwrite -p /dev/mtd4 nand_pipe
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
More information about the barebox
mailing list