Hello Patrick Rudolph,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/flashrom/+/34629
to review the following change.
Change subject: dediprog: Fix SF600 4BA mode ......................................................................
dediprog: Fix SF600 4BA mode
Flash chips greater than 16MiB require 4BA mode support. Current master doesn't support such mode as the SF600 uses PROTOCOL_V3.
Fix protocol version check to support 4BA on PROTOCOL_V3, too.
Tested on SF600 V:7.2.45 Able to read and write "IS25WP256" (32768 kB, SPI).
Change-Id: I2d3089693fbd2f8f7717a8f71be242be131ce707 Signed-off-by: Patrick Rudolph patrick.rudolph@9elements.com --- M dediprog.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/29/34629/1
diff --git a/dediprog.c b/dediprog.c index 3566109..add478d 100644 --- a/dediprog.c +++ b/dediprog.c @@ -1160,7 +1160,7 @@ if (dediprog_devicetype == DEV_SF100 && protocol() == PROTOCOL_V1) spi_master_dediprog.features &= ~SPI_MASTER_NO_4BA_MODES;
- if (protocol() == PROTOCOL_V2) + if (protocol() >= PROTOCOL_V2) spi_master_dediprog.features |= SPI_MASTER_4BA;
if (register_spi_master(&spi_master_dediprog) || dediprog_set_leds(LED_NONE))
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/34629 )
Change subject: dediprog: Fix SF600 4BA mode ......................................................................
Patch Set 1: Code-Review+1
David Hendricks has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/34629 )
Change subject: dediprog: Fix SF600 4BA mode ......................................................................
Patch Set 1: Code-Review+2
Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/34629 )
Change subject: dediprog: Fix SF600 4BA mode ......................................................................
Patch Set 1: Code-Review-1
I'm getting 'flash erasure failure' when using this patch. Not sure if it's related to the 4BA mode or something else. Needs more tests.
Hello Angel Pons, Patrick Rudolph, David Hendricks, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/34629
to look at the new patch set (#2).
Change subject: dediprog: Fix SF600 4BA mode ......................................................................
dediprog: Fix SF600 4BA mode
Flash chips greater than 16MiB require 4BA mode support. Current master doesn't support such mode as the SF600 uses PROTOCOL_V3.
Fix protocol version check to support 4BA on PROTOCOL_V3, and use different read/write commands.
Tested on SF600 V:7.2.45 Able to read and write "IS25WP256" (32768 kB, SPI).
Change-Id: I2d3089693fbd2f8f7717a8f71be242be131ce707 Signed-off-by: Patrick Rudolph patrick.rudolph@9elements.com --- M dediprog.c 1 file changed, 8 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/29/34629/2
Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/34629 )
Change subject: dediprog: Fix SF600 4BA mode ......................................................................
Patch Set 2: Code-Review-1
It worked only *once* to flash the full IC. Using a different ROM it's broken again. Looks like it takes a different code path. Needs further investigation.
Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/34629 )
Change subject: dediprog: Fix SF600 4BA mode ......................................................................
Patch Set 2:
Tested with SF600 and MX66L51235F. Can erase, read and write the whole chip with this patch.
Attention is currently required from: Patrick Rudolph.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/34629?usp=email )
Change subject: dediprog: Fix SF600 4BA mode ......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2: Hello Patrick! I haven't looked closely at this patch, but what is the current state of it, are you still interested in the patch, is it relevant? I can see the last action was in 2020, but it's very possible it's still relevant and valid patch. Are you interested to complete it?