David Hendricks has uploaded this change for review. ( https://review.coreboot.org/23343
Change subject: layout: Add a helper to get number of '-i' args with files
......................................................................
layout: Add a helper to get number of '-i' args with files
Change-Id: I2629167d371bc7f3766006600d2d256bed9ec145
Signed-off-by: David Hendricks <dhendricks(a)fb.com>
---
M layout.c
M layout.h
2 files changed, 14 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/43/23343/1
diff --git a/layout.c b/layout.c
index a990adc..ebbb0a1 100644
--- a/layout.c
+++ b/layout.c
@@ -260,6 +260,19 @@
return overlap_detected;
}
+/* return number of '-i' args with both region and filename specified */
+int get_num_include_args_with_files(const struct flashrom_layout *const l)
+{
+ int i, ret = 0;
+
+ for (i = 0; i < l->num_entries; i++) {
+ if (l->entries[i].included && l->entries[i].file)
+ ret++;
+ }
+
+ return ret;
+}
+
void layout_cleanup(void)
{
int i;
diff --git a/layout.h b/layout.h
index f401ef2..9131b06 100644
--- a/layout.h
+++ b/layout.h
@@ -64,5 +64,6 @@
int process_include_args(struct flashrom_layout *);
int included_regions_overlap(const struct flashrom_layout *const flashrom_layout);
+int get_num_include_args_with_files(const struct flashrom_layout *const layout);
#endif /* !__LAYOUT_H__ */
--
To view, visit https://review.coreboot.org/23343
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2629167d371bc7f3766006600d2d256bed9ec145
Gerrit-Change-Number: 23343
Gerrit-PatchSet: 1
Gerrit-Owner: David Hendricks <david.hendricks(a)gmail.com>
Hello Carl-Daniel Hailfinger, Arthur Heymans, Nicola Corna, Paul Menzel, build bot (Jenkins), Nico Huber,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/23021
to look at the new patch set (#9).
Change subject: layout: Add -i <region>[:<file>] support.
......................................................................
layout: Add -i <region>[:<file>] support.
Add an optional sub-parameter to the -i parameter to allow building the
image to be written from multiple files. This will also allow regions to
be read from flash and written to separate image files.
This is a rebase of a patch that was ported from chromiumos. A lot of
things have changed, but the idea is the same.
Original patch by Louis Yung-Chieh Lo <yjlou(a)chromium.org>:
Summary: Support -i partition:file feature for both read and write.
Commit: 9c7525f
Review URL: http://codereview.chromium.org/6611015
Ported version by Stefan Tauner <stefan.tauner(a)student.tuwien.ac.at>
and Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>:
Summary: [PATCH 2/6] layout: Add -i <region>[:<file>] support.
Review URL: https://mail.coreboot.org/pipermail/flashrom/2013-October/011729.html
Change-Id: Ic5465659605d8431d931053967b40290195cfd99
Signed-off-by: David Hendricks <dhendrix(a)chromium.org>
Signed-off-by: Stefan Tauner <stefan.tauner(a)student.tuwien.ac.at>
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M cli_classic.c
M dummyflasher.c
M flash.h
M flashrom.8.tmpl
M flashrom.c
M layout.c
M layout.h
7 files changed, 269 insertions(+), 41 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/21/23021/9
--
To view, visit https://review.coreboot.org/23021
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ic5465659605d8431d931053967b40290195cfd99
Gerrit-Change-Number: 23021
Gerrit-PatchSet: 9
Gerrit-Owner: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Nicola Corna <nicola(a)corna.info>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/23338 )
Change subject: digilent_spi: add a driver for the iCEblink40 development board
......................................................................
Patch Set 2: Verified+1
Build Successful
https://qa.coreboot.org/job/flashrom-customrules/1042/ : SUCCESS
--
To view, visit https://review.coreboot.org/23338
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I7ffcd9a2db4395816f0e8b6ce6c3b0d8e930c9e6
Gerrit-Change-Number: 23338
Gerrit-PatchSet: 2
Gerrit-Owner: Lubomir Rintel <lkundrak(a)v3.sk>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Sat, 20 Jan 2018 18:18:30 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: Yes
Hello Paul Menzel, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/23337
to look at the new patch set (#2).
Change subject: flashchips: reset a M25P10-A before a probe
......................................................................
flashchips: reset a M25P10-A before a probe
I have a ST chip here labeled "25P10VP". Initially it doesn't respond to
any commands but a RES, to which it responds 0x10 (like a "M25P10").
After that it quacks like a "M25P10-A" -- provides the same RDID and
supports 256B writes.
Perhaps a regular "M25P10-A" does the same?
Change-Id: I19a5332756d15b3cb74609c44a8d3fed2f4a2d68
Signed-off-by: Lubomir Rintel <lkundrak(a)v3.sk>
---
M chipdrivers.h
M flashchips.c
M spi25.c
3 files changed, 12 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/37/23337/2
--
To view, visit https://review.coreboot.org/23337
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I19a5332756d15b3cb74609c44a8d3fed2f4a2d68
Gerrit-Change-Number: 23337
Gerrit-PatchSet: 2
Gerrit-Owner: Lubomir Rintel <lkundrak(a)v3.sk>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Hello Paul Menzel, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/23338
to look at the new patch set (#2).
Change subject: digilent_spi: add a driver for the iCEblink40 development board
......................................................................
digilent_spi: add a driver for the iCEblink40 development board
This is driver that supports the Lattice iCE40 evaluation kits. On the
board is a SPI flash memory chip labeled ST 25P10VP.
Tested to work read/write/erase with "-p digilent_spi -c M25P10" or
with a patch that resets the part beforehands (in which case it gets
detected as a M25P10-A and is way faster due to paged writes).
Change-Id: I7ffcd9a2db4395816f0e8b6ce6c3b0d8e930c9e6
Signed-off-by: Lubomir Rintel <lkundrak(a)v3.sk>
---
M Makefile
A digilent_spi.c
M flashrom.c
M programmer.h
4 files changed, 428 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/38/23338/2
--
To view, visit https://review.coreboot.org/23338
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I7ffcd9a2db4395816f0e8b6ce6c3b0d8e930c9e6
Gerrit-Change-Number: 23338
Gerrit-PatchSet: 2
Gerrit-Owner: Lubomir Rintel <lkundrak(a)v3.sk>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Lubomir Rintel has uploaded this change for review. ( https://review.coreboot.org/23337
Change subject: flashchips: reset a M25P10-A before a probe
......................................................................
flashchips: reset a M25P10-A before a probe
I have a ST chip here labeled "25P10VP". Initially it doesn't respond to
any commands but a RES, to which it responds 0x10 (like a "M25P10").
After that it quacks like a "M25P10-A" -- provides the same RDID and
supports 256B writes.
Perhaps a regular "M25P10-A" does the same?
Change-Id: I19a5332756d15b3cb74609c44a8d3fed2f4a2d68
---
M chipdrivers.h
M flashchips.c
M spi25.c
3 files changed, 12 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/37/23337/1
diff --git a/chipdrivers.h b/chipdrivers.h
index 8405220..69e68fd 100644
--- a/chipdrivers.h
+++ b/chipdrivers.h
@@ -34,6 +34,7 @@
/* spi25.c */
int probe_spi_rdid(struct flashctx *flash);
+int probe_spi_res1_rdid(struct flashctx *flash);
int probe_spi_rdid4(struct flashctx *flash);
int probe_spi_rems(struct flashctx *flash);
int probe_spi_res1(struct flashctx *flash);
diff --git a/flashchips.c b/flashchips.c
index e389af6..1ff2de6 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -8948,7 +8948,7 @@
.page_size = 256,
.feature_bits = FEATURE_WRSR_WREN,
.tested = TEST_OK_PREW,
- .probe = probe_spi_rdid,
+ .probe = probe_spi_res1_rdid,
.probe_timing = TIMING_ZERO,
.block_erasers =
{
diff --git a/spi25.c b/spi25.c
index 00e0992..51b27e3 100644
--- a/spi25.c
+++ b/spi25.c
@@ -149,6 +149,16 @@
return probe_spi_rdid_generic(flash, 3);
}
+int probe_spi_res1_rdid(struct flashctx *flash)
+{
+ unsigned char readarr[1];
+
+ if (spi_res(flash, readarr, 1)) {
+ return 0;
+ }
+ return probe_spi_rdid_generic(flash, 3);
+}
+
int probe_spi_rdid4(struct flashctx *flash)
{
/* Some SPI controllers do not support commands with writecnt=1 and
--
To view, visit https://review.coreboot.org/23337
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I19a5332756d15b3cb74609c44a8d3fed2f4a2d68
Gerrit-Change-Number: 23337
Gerrit-PatchSet: 1
Gerrit-Owner: Lubomir Rintel <lkundrak(a)v3.sk>