ubiupdatevol read input from stdin or similar

Martin Hollingsworth Martin.Hollingsworth at itk-engineering.de
Thu Nov 2 10:09:29 PDT 2017


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



More information about the linux-mtd mailing list