Here is an example script that I'm using to read the flash contents to a file
once and update it as I flash newer versions of the software:
#!/bin/sh
flashrom="flashrom"
programmer="ft2232_spi:type=openmoko,divisor=8"
contents="~/flash-contents.img"
image="$1"
if [ -z $image ]
then
echo "Reading initial flash contents"
timeb=$( date +%s )
$flashrom -p $programmer -r $contents
timea=$( date +%s )
echo "Time: "$(( $timea - $timeb ))" seconds"
else
echo "Writing new flash contents"
…
[View More]timeb=$( date +%s )
$flashrom -p $programmer -w $image -C $contents --noverify
timea=$( date +%s )
cp $image $contents
echo "Time: "$(( $timea - $timeb ))" seconds"
fi
[View Less]
On Thu, 26 Nov 2015 00:31:02 +0200
Ran Weizman <ranwzmn(a)gmail.com> wrote:
> Hi, I have the CH341, device with version4.03, is Flashrom gonna support it
> in the future ?
> Can I help with something ? (I'm not a dev just Linux user. )
> Thanks
> Ran
Hi Ran,
yes, and yes.
You can test the existing patch for that programmer, see
http://www.flashrom.org/pipermail/flashrom/2015-November/014009.html
--
Kind regards/Mit freundlichen Grüßen, Stefan Tauner
Hi, I have the CH341, device with version4.03, is Flashrom gonna support it
in the future ?
Can I help with something ? (I'm not a dev just Linux user. )
Thanks
Ran
Hi,
I’ve try to flash Eon flash chip "EN25F32” with flashrom on
raspberry pi 2. The rpi found the programmer /dev/spidev0.0 but cannot
recognise the chip. Someone else have the same problem or have try this?
Thanks
--
Andrea Vinci
On Wed, 30 Sep 2015 15:18:12 +0200
Ádám Attila Nagy <osiixy(a)gmail.com> wrote:
> Thank you!
> That happens time to time but I am really grateful that you have even not
> forgotten it.
>
> I am really looking forward to this cheapass programmer being arrived and
> testing it with your code.
Hi Ádám,
here is a branch that should actually work:
https://github.com/urjaman/flashrom/tree/ch341a
--
Kind regards/Mit freundlichen Grüßen, Stefan Tauner
Hi, I read from http://www.flashrom.org/pipermail/flashrom/2014-September/012951.html that you have successful test
the chip EN25F32 with
flashrom. I try to flash this chip with a raspberry 2 but the
software doesn’t recognise the chip.
Can you give me more info about your
test?
I found this
circuit, can you say me if it is right for my case?
Thanks.
--
Darka
On Sun, 22 Nov 2015 18:29:34 +0100
Stefan Tauner <stefan.tauner(a)alumni.tuwien.ac.at> wrote:
> Nevertheless I think we should merge this patch ASAP.
Or maybe with a goto from the error state of fwrite to the fclose call
(skipping fflush and fsync if fwrite fails), because there is really
no benefit of doing these calls in that case - it even produces one more
error output when trying to fsync /dev/full... OTOH fsyncing often
fails on non-regular files (e.g. /dev/null) even though …
[View More]everything
works as intended... *sigh*
--
Kind regards/Mit freundlichen Grüßen, Stefan Tauner
[View Less]