Some chips such as the ENE KB9012 internal flash require a write granularity of
128 bytes.
Signed-off-by: Paul Kocialkowski <contact(a)paulk.fr>
---
flash.h | 1 +
flashrom.c | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/flash.h b/flash.h
index 2c2839f..24861ba 100644
--- a/flash.h
+++ b/flash.h
@@ -85,6 +85,7 @@ enum write_granularity {
write_gran_1bit, /* Each bit can be cleared individually. */
write_gran_1byte, /* A byte can be written once. Further writes to an …
[View More]already written byte cause
* its contents to be either undefined or to stay unchanged. */
+ write_gran_128bytes, /* If less than 128 bytes are written, the unwritten bytes are undefined. */
write_gran_264bytes, /* If less than 264 bytes are written, the unwritten bytes are undefined. */
write_gran_512bytes, /* If less than 512 bytes are written, the unwritten bytes are undefined. */
write_gran_528bytes, /* If less than 528 bytes are written, the unwritten bytes are undefined. */
diff --git a/flashrom.c b/flashrom.c
index d51a44c..c9c7e31 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -781,6 +781,9 @@ int need_erase(const uint8_t *have, const uint8_t *want, unsigned int len, enum
break;
}
break;
+ case write_gran_128bytes:
+ result = need_erase_gran_bytes(have, want, len, 128);
+ break;
case write_gran_256bytes:
result = need_erase_gran_bytes(have, want, len, 256);
break;
@@ -847,6 +850,9 @@ static unsigned int get_next_write(const uint8_t *have, const uint8_t *want, uns
case write_gran_1byte_implicit_erase:
stride = 1;
break;
+ case write_gran_128bytes:
+ stride = 128;
+ break;
case write_gran_256bytes:
stride = 256;
break;
--
1.9.1
[View Less]
[DEADLINE IS NOW+48 hours!]
Hi,
thanks to Paul and Florentin for announcing they will come and thanks to
Paul for submitting a talk!
Who else is coming?
Do we want one or two tables?
Regards,
Carl-Daniel
On 21.10.2015 10:15, echelon(a)free.fr (Florentin) wrote:
> +1
>
> * for the stands count me in : I can bring my AMD boards and if all is going well I will be able to do demos on my G505s laptop. (I will also bring various electronic stuff and tools..)
> * for the main tracks I …
[View More]cannot help unfortunately
> * for the lightining traks I have some (bold!) ideeas but they are not mature yet (and I must first discuss with you about this .. maybe on irc..)
On 31.10.2015 10:41, Paul Kocialkowski wrote:
> I will definitely be around at FOSDEM, not sure I should have a seat at
> the table at this point (I'm still pretty new to the community), but I'd
> be happy to come by!
> ----- Mail d'origine -----
> De: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>
> À: coreboot <coreboot(a)coreboot.org>, flashrom <flashrom(a)flashrom.org>
> Envoyé: Tue, 20 Oct 2015 23:20:56 +0200 (CEST)
> Objet: [coreboot] FOSDEM deadlines now!
>
> Hi,
>
> we obviously want to participate in FOSDEM.
> https://fosdem.org/2016/news/2015-09-24-call-for-participation/
>
> ACT NOW!
>
> Some deadlines already expired. Some can still be managed.
>
> Main track talks: Deadline 2015-10-30 (10 days left)
> One hour of entertainment, huge audience.
> Anyone up for the challenge?
>
> Stands: Deadline 2015-11-13 (24 days left)
> I can send in the proposal if I'm not going to be alone there.
> How many tables do we want for our stand/booth(s)?
> Who is coming?
>
> Lightning talks: Deadline 2015-11-27 (38 days left)
> Short and to the point. Your 15-minute elevator pitch.
> Can you sell the project?
>
> All deadlines are at 23.59 UTC
>
> Developer room proposal: Deadline EXPIRED
> Maybe some developer room will accept talks/demos from us.
>
> Regards,
> Carl-Daniel
>
>
[View Less]
On Mon, 9 Nov 2015 19:27:49 -0700
Jose Luis León <zenky1(a)gmail.com> wrote:
> I did modify the file patch and replace this:
> + .name = "LE25FU406C/LE25U40CMC",
>
> for this:
> + .name = "LE25FU406C",
>
> and execute the command:
> flashrom -p serprog:dev=/dev/ttyACM0:115200 -V -c LE25FU406C -o log2.txt
>
> and show information interesting
Hi Jose,
please leave out the -c LE25FU406C parameter. We need to see how the
chip replies to probes for other …
[View More]chips as well.
flashrom -p serprog:dev=/dev/ttyACM0:115200 -o probe.txt
The command above should suffice. Please reply again with the probe.txt
attached.
--
Kind regards/Mit freundlichen Grüßen, Stefan Tauner
[View Less]
Greatings. I want to buy SPI FLASH programmer based on CH341A. Will
FlashROM work with this type of programmers? And if it will, how I have to
use FlashROM with this programmer?
Thanks in advance.
P.S. Here is the link to programmer, I want to buy:
http://www.aliexpress.com/item/CH341A-Series-24-EEPROM-Writer-25-SPI-routin…
I did modify the file patch and replace this:
+ .name = "LE25FU406C/LE25U40CMC",
for this:
+ .name = "LE25FU406C",
and execute the command:
flashrom -p serprog:dev=/dev/ttyACM0:115200 -V -c LE25FU406C -o log2.txt
and show information interesting
Link in choapp
http://chopapp.com/#f81lkgy7
attach of log:
Log full: http://chopapp.com/#i794hbux
-----------
Other command:
flashrom -p serprog:dev=/dev/ttyACM0:115200 -V -c LE25FU406C
flashrom v0.9.8-r1888 on Linux 3.19.0-25-generic (i686)
flashrom is free software, get the source code at http://www.flashrom.org
flashrom was built with libpci 3.2.1, GCC 4.8.4, little endian
Command line (5 args): flashrom -p serprog:dev=/dev/ttyACM0:115200 -V -c
LE25FU406C
Error: Unknown chip 'LE25FU406C' specified.
Run flashrom -L to view the hardware …
[View More]supported in this flashrom version.
-----------------------------
look this information:
zenky@zenky-HP-Mini-110-1000:~/Descargas/flashrom-0.9.8$ flashrom -L | grep
LE25FU406CSanyo LE25FU406C/ 512 SPI
is it normal the / about last character?
[View Less]
please, helpme. i want flashear mi notebook (
http://bangho.com.ar/wp-content/uploads/2015/04/Ultrabook-Bangho-ZERO-1430-…)
but I do not know how to do it.
I do not know what parameter to use in --programmer.
my bios is AMI BIOS SPI Flash ROM de 96 M b
Por favor, alguien puede ayudarme: Quiero hacer un volcado de la memoria
rom de mi notebook pero no sé cómo hacerlo.
Hi all, I am doing send logs that applied on chips:
SANYO LE25FU406B - http://chopapp.com/#7cvgvoav
SANYO LE25FU406C - http://chopapp.com/#zw01179t
too I attaching conversation of IRC channel.
I am using chopapp because pastebin failed :s