Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Hollingsworth <Martin.Hollingsworth@itk-engineering.de>
To: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: ubiupdatevol read input from stdin or similar
Date: Thu, 2 Nov 2017 17:09:29 +0000	[thread overview]
Message-ID: <f46ce07819e74170a974bb7b0b5cddf1@itk-engineering.de> (raw)

Hello MTD Tools community,
I am searching for help on the usage of ubiupdatevol. 
I am using ubiupdatevol version 1.5.2 and would like to pass input data from stdin or similar sources.
I hope to achieve something like the following line, where dd can be replaced by various other tools:

dd if=/dev/urandom | ubiupdatevol /dev/ubi10_1

However the above example always fails with the following error:

ubiupdatevol: error!: specify UBI device name and image file name as first 2 parameters (use -h for help)

However the commit ab8c6fb93ce9db0f09401c4b819b0b277dc00340 gives me the impression, that it could be done.
http://git.infradead.org/mtd-utils.git/commit/ab8c6fb93ce9db0f09401c4b819b0b277dc00340

However I cannot figure out how to make this work. If anyone has a code example I would be very grateful for your support!

Thanks and regards,
Martin Hollingsworth

             reply	other threads:[~2017-11-02 17:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-02 17:09 Martin Hollingsworth [this message]
2017-11-02 17:54 ` ubiupdatevol read input from stdin or similar Richard Weinberger
2017-11-06 17:51   ` AW: " Martin Hollingsworth

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=f46ce07819e74170a974bb7b0b5cddf1@itk-engineering.de \
    --to=martin.hollingsworth@itk-engineering.de \
    --cc=linux-mtd@lists.infradead.org \
    /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