From: Vanhauwaert Wouter <W.Vanhauwaert@TELEVIC.com>
To: Baruch Siach <baruch@tkos.co.il>
Cc: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: RE: tftp to flash from linux
Date: Thu, 15 Sep 2011 10:38:02 +0200 [thread overview]
Message-ID: <E78BBE677EB9144B8F0A0A29674CD533489C0CE54B@SRV-VS06.TELEVIC.COM> (raw)
In-Reply-To: <20110914164353.GA27520@sapphire.tkos.co.il>
> > 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
>
Doesn't work:
mx27iat# mkfifo nand_pipe
mx27iat# tftp -g -l nand_pipe -r output 10.56.114 | nandwrite -p /dev/mtd4 nand_pipe
tftp: using blksize 512MTD_open
MTD_ioctl
using server '10.0.56.114:69', rMTD_ioctl
emote_file 'output', local_file MTD_write
'nand_pipe'
sending 15 bytes
00 01 6f 75 74 70 75 74 00 6f 63 MTD_close
74 65 74 00
Writing data to block 0
sending 15 bytes
00 01 6f 75 74 70 75 74 00 6f 63 74 65 74 00
received 516 bytes: 0003 0001
End then it quits, no error, no warning, but file should be 128kB
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2011-09-15 8:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-13 11:36 Vanhauwaert Wouter
2011-09-13 11:43 ` Baruch Siach
2011-09-13 11:50 ` Vanhauwaert Wouter
2011-09-13 11:57 ` Marc Kleine-Budde
2011-09-14 15:03 ` Vanhauwaert Wouter
2011-09-14 16:43 ` Baruch Siach
2011-09-15 8:38 ` Vanhauwaert Wouter [this message]
2011-09-15 9:40 ` Vanhauwaert Wouter
2011-09-13 12:03 ` Baruch Siach
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=E78BBE677EB9144B8F0A0A29674CD533489C0CE54B@SRV-VS06.TELEVIC.COM \
--to=w.vanhauwaert@televic.com \
--cc=barebox@lists.infradead.org \
--cc=baruch@tkos.co.il \
/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