[flashrom] [PATCH] dummyflasher.c: add an "empty" parameter and initialize with random bytes by default
stefan.tauner at student.tuwien.ac.at
Thu Jul 21 23:55:32 CEST 2011
On Thu, 21 Jul 2011 23:27:34 +0200
Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net> wrote:
> Am 21.07.2011 17:54 schrieb Stefan Tauner:
> > previously the dummies were initialized to be empty (all ones), which makes writes skip
> > erasing altogether. with this patch the default is to fill it with random bytes instead and the
> > old behavior can be enforced with stating "empty=yes" on the command line.
> > Signed-off-by: Stefan Tauner <stefan.tauner at student.tuwien.ac.at>
> Does the following not work for you?
> dd if=/dev/urandom bs=1k count=4k of=oldimage.bin
> flashrom -p dummy:emulate=SST25VF032B,image=oldimage.bin -w newimage.bin
did i mention that the man page needs an update? :P
Kind regards/Mit freundlichen Grüßen, Stefan Tauner
More information about the flashrom