ubiupdatevol read input from stdin or similar

Richard Weinberger richard.weinberger at gmail.com
Thu Nov 2 10:54:45 PDT 2017


Martin,

On Thu, Nov 2, 2017 at 6:09 PM, Martin Hollingsworth
<Martin.Hollingsworth at itk-engineering.de> wrote:
> 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!

Did you try using "-" as filename?

-- 
Thanks,
//richard



More information about the linux-mtd mailing list